]> de.git.xonotic.org Git - xonotic/xonotic-data.pk3dir.git/blob - qcsrc/server/race.qh
Merge branch 'master' into TimePath/items
[xonotic/xonotic-data.pk3dir.git] / qcsrc / server / race.qh
1 #ifndef RACE_H
2 #define RACE_H
3
4 bool g_race_qualifying;
5
6 float speedaward_lastsent;
7 float speedaward_lastupdate;
8
9 float race_spawns;
10 float race_highest_place_spawn; // number of places; a place higher gets spawned at 0
11 float race_lowest_place_spawn; // where to spawn in qualifying
12 float race_fraglimit;
13 float race_leadlimit;
14 float race_timelimit;
15 .float race_place;
16 .float race_started;
17 .float race_completed;
18 .float race_laptime;
19 float race_completing;
20
21 .float race_movetime; // for reading
22 .float race_movetime_frac; // fractional accumulator for higher accuracy (helper for writing)
23 .float race_movetime_count; // integer accumulator
24
25 .float race_respawn_checkpoint;
26 .entity race_respawn_spotref; // try THIS spawn in case you respawn
27
28 // definitions for functions used outside race.qc
29 float race_PreviousCheckpoint(float f);
30 float race_NextCheckpoint(float f);
31 void race_AbandonRaceCheck(entity p);
32 void race_ImposePenaltyTime(entity pl, float penalty, string reason);
33 void race_StartCompleting();
34 float race_GetFractionalLapCount(entity e);
35 float race_readTime(string map, float pos);
36 string race_readUID(string map, float pos);
37 string race_readName(string map, float pos);
38 void race_ClearRecords();
39 void race_SendNextCheckpoint(entity e, float spec);
40 void race_PreparePlayer();
41 void race_send_recordtime(float msg);
42 void race_send_speedaward(float msg);
43
44 float speedaward_speed;
45 string speedaward_holder;
46 string speedaward_uid;
47
48 float speedaward_alltimebest;
49 string speedaward_alltimebest_holder;
50 string speedaward_alltimebest_uid;
51
52 void race_send_speedaward(float msg);
53
54 void race_send_speedaward_alltimebest(float msg);
55
56 void race_SendRankings(float pos, float prevpos, float del, float msg);
57
58 void race_RetractPlayer();
59
60 #endif