General > General Server Discussion

MTA SERVER!

<< < (24/42) > >>

[MAF]Karlis:
correct if i'm wrong with any of these vals

timeconvert2(RACE_Best_Time) returns seconds form ms (you showed timeconvert(), not timeconvert2() )
RACE_Finish_Order  = finish rank (in any case in one of 2 fields where its used in it has negative effect in comparison to lower finish positions?)
STATS_Players = max players? or player count online
PLAYER_Wins[playerid] = streak count (so it allows you to skip few races and still get streak? otherwise i don't see any reason for an array)

___

@ melky : means few changes in code, but ill do it. it'll be a ghostmode with high transparency tough(laggers gonna hate).

[MAF]Rac3r:
STATS_Players: Is total players racing at that time. (bit of a glitch)
PLAYER_Wins[playerid] increases if they win races in a row, otherwise it resets to 0

[MAF]Karlis:
k, thanks.
i've done the sk.

what to do to make sk race:
1) put spawnpoints, 1 spawn for a 1 slot in a grid(more then 20spawns results in a oneworld)
 only 1st and 2nd spawn is relevant(player is spawned randomly between the two), others are just to indicate the grid size(didnt want to make dedicated setting as it would break support with default map editor.)
2) put the vehicles from default map editor defenition
3) make ur race and cps as usual, 1st cp is the start area
4)open map with notepad and remove the vehicle field in any of the spawnpoint lines.(used to detect footspawn and therefore difference between normal race and sk)

sorry for this not being straightforward, but i cant make it without any external downloads, while buildmode is not done.

[MAF]mooman:

--- Quote from: karlis on January 10, 2012, 10:07:48 pm ---
--- Quote from: [MAF]Rac3r on January 10, 2012, 08:49:06 pm ---
--- Quote from: karlis on January 07, 2012, 04:02:41 pm ---id need a formula list how score is calculated, how its dependant on top time, streak, etc.

--- End quote ---

--- Code: ---SetPrize = (1+b) * ((((RACE_Finish_Order * 0.1) + (timeconvert2(RACE_Best_Time) * 0.0775))*((STATS_Players + 1) - RACE_Finish_Order) / STATS_Players)*(1 + 0.15 *(PLAYER_Wins[playerid]-1)));

--- End code ---

--- End quote ---

excuse me, but what is b, and to what timeconvert converts?

--- End quote ---
               if(!PLAYER_Crashes[playerid])b=0.1;

so 10% bonus for not crashing

MELK1Y:
karlis, here my map. Please, do this 4)open map with notepad and remove the vehicle field in any of the spawnpoint lines.(used to detect footspawn and therefore difference between normal race and sk) by yourself properly and you can upload it.

Navigation

[0] Message Index

[#] Next page

[*] Previous page

Go to full version