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