]> git.xonotic.org Git - xonotic/xonotic-data.pk3dir.git/blobdiff - qcsrc/server/race.qh
Merge branch 'bones_was_here/csprogs' into 'master'
[xonotic/xonotic-data.pk3dir.git] / qcsrc / server / race.qh
index 472827efa4a81d13a014ae84d998f1b88d62628f..9dd37a89e1f8f9daa7eb53c93507987fab61f9f9 100644 (file)
@@ -1,10 +1,14 @@
 #pragma once
 
+.string stored_netname; // TODO: store this information independently of race-based gamemodes
+
 float race_teams;
 
 // scores
 const float ST_RACE_LAPS = 1;
 
+int autocvar_g_cts_send_rankings_cnt = 15;
+
 bool g_race_qualifying;
 
 float speedaward_lastsent;
@@ -29,10 +33,9 @@ float race_completing;
 .float race_respawn_checkpoint;
 .entity race_respawn_spotref; // try THIS spawn in case you respawn
 
-IntrusiveList g_racecheckpoints;
-STATIC_INIT(g_racecheckpoints) { g_racecheckpoints = IL_NEW(); }
-
 // definitions for functions used outside race.qc
+void write_recordmarker(entity pl, float tstart, float dt);
+
 float race_PreviousCheckpoint(float f);
 float race_NextCheckpoint(float f);
 void race_AbandonRaceCheck(entity p);
@@ -61,8 +64,14 @@ void race_send_speedaward(float msg);
 
 void race_send_speedaward_alltimebest(float msg);
 
+void race_send_rankings_cnt(float msg);
+
 void race_SendRankings(float pos, float prevpos, float del, float msg);
 
 void race_RetractPlayer(entity this);
 
 void race_InitSpectator();
+
+string uid2name(string myuid);
+
+spawnfunc(target_checkpoint);