X-Git-Url: http://git.xonotic.org/?a=blobdiff_plain;f=qcsrc%2Fserver%2Frace.qh;h=b69b0006a96d1a8a1b381fd4a4aaaf785657fe8a;hb=c0da80fe6125a43ee99a90808ac6f9d0ddcf88c8;hp=09b4b36ce4aadbb1619ae6d56c1d1b2df8a54143;hpb=0f444e0d57db660b27b5a54a263a61bc5da41004;p=xonotic%2Fxonotic-data.pk3dir.git diff --git a/qcsrc/server/race.qh b/qcsrc/server/race.qh index 09b4b36ce..b69b0006a 100644 --- a/qcsrc/server/race.qh +++ b/qcsrc/server/race.qh @@ -1,3 +1,18 @@ +#pragma once + +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; + +float speedaward_lastsent; +float speedaward_lastupdate; + float race_spawns; float race_highest_place_spawn; // number of places; a place higher gets spawned at 0 float race_lowest_place_spawn; // where to spawn in qualifying @@ -7,6 +22,7 @@ float race_timelimit; .float race_place; .float race_started; .float race_completed; +.float race_laptime; float race_completing; .float race_movetime; // for reading @@ -26,3 +42,26 @@ float race_GetFractionalLapCount(entity e); float race_readTime(string map, float pos); string race_readUID(string map, float pos); string race_readName(string map, float pos); +void race_ClearRecords(); +void race_SendNextCheckpoint(entity e, float spec); +void race_PreparePlayer(entity this); +void race_send_recordtime(float msg); +void race_send_speedaward(float msg); + +float speedaward_speed; +string speedaward_holder; +string speedaward_uid; + +float speedaward_alltimebest; +string speedaward_alltimebest_holder; +string speedaward_alltimebest_uid; + +void race_send_speedaward(float msg); + +void race_send_speedaward_alltimebest(float msg); + +void race_SendRankings(float pos, float prevpos, float del, float msg); + +void race_RetractPlayer(entity this); + +void race_InitSpectator();