Race Postion Ingame (Rep +2)
#3

Ok, let me put this out in pseudo code:

Код:
new racepos[MAX_PLAYERS];

Max player loop
    if (current player checkpoint > current idx checkpoint) && racepos player != 1
        racepos playerid --
    else if current player checkpoint < current idx checkpoint
        racepos playerid ++
    else
        get pos of the active checkpoint
        get distance of player to checkpoint
        get distance of idx to checkpoint

        if (distance player < distance idx) && racepos player != 1
            racepos player --
        else
            racepos player ++
Reply


Messages In This Thread
Race Postion Ingame (Rep +2) - by sameer419 - 19.01.2012, 11:18
Re: Race Postion Ingame (Rep +2) - by Min - 19.01.2012, 11:29
Re: Race Postion Ingame (Rep +2) - by Vince - 19.01.2012, 11:56
Re: Race Postion Ingame (Rep +2) - by sameer419 - 19.01.2012, 12:04
Re: Race Postion Ingame (Rep +2) - by Vince - 19.01.2012, 12:07
Re: Race Postion Ingame (Rep +2) - by sameer419 - 19.01.2012, 12:12
Re: Race Postion Ingame (Rep +2) - by sameer419 - 19.01.2012, 12:29
Re: Race Postion Ingame (Rep +2) - by sameer419 - 19.01.2012, 13:44
Re: Race Postion Ingame (Rep +2) - by milanosie - 19.01.2012, 13:47
Re: Race Postion Ingame (Rep +2) - by sameer419 - 19.01.2012, 14:01

Forum Jump:


Users browsing this thread: 1 Guest(s)