X-Git-Url: http://de.git.xonotic.org/?a=blobdiff_plain;f=qcsrc%2Fserver%2Frace.qh;h=472827efa4a81d13a014ae84d998f1b88d62628f;hb=109c961b4eacb3f617d9c66f9fdec40e1264f97e;hp=b69b0006a96d1a8a1b381fd4a4aaaf785657fe8a;hpb=edf01df130d0d1877461561178b8833a9ab6051c;p=xonotic%2Fxonotic-data.pk3dir.git diff --git a/qcsrc/server/race.qh b/qcsrc/server/race.qh index b69b0006a..472827efa 100644 --- a/qcsrc/server/race.qh +++ b/qcsrc/server/race.qh @@ -4,9 +4,6 @@ float race_teams; // scores const float ST_RACE_LAPS = 1; -const float SP_RACE_LAPS = 4; -const float SP_RACE_TIME = 5; -const float SP_RACE_FASTEST = 6; bool g_race_qualifying; @@ -32,6 +29,9 @@ float race_completing; .float race_respawn_checkpoint; .entity race_respawn_spotref; // try THIS spawn in case you respawn +IntrusiveList g_racecheckpoints; +STATIC_INIT(g_racecheckpoints) { g_racecheckpoints = IL_NEW(); } + // definitions for functions used outside race.qc float race_PreviousCheckpoint(float f); float race_NextCheckpoint(float f); @@ -47,6 +47,7 @@ void race_SendNextCheckpoint(entity e, float spec); void race_PreparePlayer(entity this); void race_send_recordtime(float msg); void race_send_speedaward(float msg); +void race_setTime(string map, float t, string myuid, string mynetname, entity e, bool showmessage); float speedaward_speed; string speedaward_holder;