]> de.git.xonotic.org Git - xonotic/xonotic-data.pk3dir.git/blob - qcsrc/server/race.qh
Merge branch 'master' into Mario/ctf_updates
[xonotic/xonotic-data.pk3dir.git] / qcsrc / server / race.qh
1 #ifndef RACE_H
2 #define RACE_H
3
4 float race_spawns;
5 float race_highest_place_spawn; // number of places; a place higher gets spawned at 0
6 float race_lowest_place_spawn; // where to spawn in qualifying
7 float race_fraglimit;
8 float race_leadlimit;
9 float race_timelimit;
10 .float race_place;
11 .float race_started;
12 .float race_completed;
13 float race_completing;
14
15 .float race_movetime; // for reading
16 .float race_movetime_frac; // fractional accumulator for higher accuracy (helper for writing)
17 .float race_movetime_count; // integer accumulator
18
19 .float race_respawn_checkpoint;
20 .entity race_respawn_spotref; // try THIS spawn in case you respawn
21
22 // definitions for functions used outside race.qc
23 float race_PreviousCheckpoint(float f);
24 float race_NextCheckpoint(float f);
25 void race_AbandonRaceCheck(entity p);
26 void race_ImposePenaltyTime(entity pl, float penalty, string reason);
27 void race_StartCompleting();
28 float race_GetFractionalLapCount(entity e);
29 float race_readTime(string map, float pos);
30 string race_readUID(string map, float pos);
31 string race_readName(string map, float pos);
32 #endif