X-Git-Url: http://de.git.xonotic.org/?a=blobdiff_plain;f=qcsrc%2Fserver%2Frace.qh;h=4dafbcf63710615df0b75b9ee07df04f4e9718d6;hb=016835f8f51aff29719995f8d080d9c1b19392c4;hp=472827efa4a81d13a014ae84d998f1b88d62628f;hpb=1b0decb9afb829407eae763b3053a122e2ae3de6;p=xonotic%2Fxonotic-data.pk3dir.git diff --git a/qcsrc/server/race.qh b/qcsrc/server/race.qh index 472827efa..4dafbcf63 100644 --- a/qcsrc/server/race.qh +++ b/qcsrc/server/race.qh @@ -5,6 +5,8 @@ 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,9 +31,6 @@ 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 float race_PreviousCheckpoint(float f); float race_NextCheckpoint(float f); @@ -61,8 +60,12 @@ 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(); + +spawnfunc(target_checkpoint);