]> de.git.xonotic.org Git - xonotic/xonotic-data.pk3dir.git/blob - qcsrc/server/race.qh
Merge branch 'master' into terencehill/quickmenu
[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_laptime;
14 float race_completing;
15
16 .float race_movetime; // for reading
17 .float race_movetime_frac; // fractional accumulator for higher accuracy (helper for writing)
18 .float race_movetime_count; // integer accumulator
19
20 .float race_respawn_checkpoint;
21 .entity race_respawn_spotref; // try THIS spawn in case you respawn
22
23 // definitions for functions used outside race.qc
24 float race_PreviousCheckpoint(float f);
25 float race_NextCheckpoint(float f);
26 void race_AbandonRaceCheck(entity p);
27 void race_ImposePenaltyTime(entity pl, float penalty, string reason);
28 void race_StartCompleting();
29 float race_GetFractionalLapCount(entity e);
30 float race_readTime(string map, float pos);
31 string race_readUID(string map, float pos);
32 string race_readName(string map, float pos);
33 void race_ClearRecords();
34 void race_SendNextCheckpoint(entity e, float spec);
35 void race_PreparePlayer();
36 void race_send_recordtime(float msg);
37 void race_send_speedaward(float msg);
38
39 float speedaward_speed;
40 string speedaward_holder;
41 string speedaward_uid;
42
43 float speedaward_alltimebest;
44 string speedaward_alltimebest_holder;
45 string speedaward_alltimebest_uid;
46
47 void race_send_speedaward(float msg);
48
49 void race_send_speedaward_alltimebest(float msg);
50
51 void race_SendRankings(float pos, float prevpos, float del, float msg);
52
53 void race_RetractPlayer();
54
55 #endif