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