X-Git-Url: http://de.git.xonotic.org/?a=blobdiff_plain;f=qcsrc%2Fserver%2Frace.qh;h=6419afb737690604dace62c681cabe9da377f4e7;hb=87bec07409c336c956a798556064c6819ad40a4d;hp=47c1db4a3860176672e7e9ad486be8cf06a1f181;hpb=e090603a32c8cba598f2c54e355cdb5b32b0d986;p=xonotic%2Fxonotic-data.pk3dir.git diff --git a/qcsrc/server/race.qh b/qcsrc/server/race.qh index 47c1db4a3..6419afb73 100644 --- a/qcsrc/server/race.qh +++ b/qcsrc/server/race.qh @@ -1,5 +1,14 @@ -#ifndef RACE_H -#define RACE_H +#pragma once + +float race_teams; + +// scores +const float ST_RACE_LAPS = 1; + +bool g_race_qualifying; + +float speedaward_lastsent; +float speedaward_lastupdate; float race_spawns; float race_highest_place_spawn; // number of places; a place higher gets spawned at 0 @@ -20,6 +29,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 float race_PreviousCheckpoint(float f); float race_NextCheckpoint(float f); @@ -32,7 +44,7 @@ string race_readUID(string map, float pos); string race_readName(string map, float pos); void race_ClearRecords(); void race_SendNextCheckpoint(entity e, float spec); -void race_PreparePlayer(); +void race_PreparePlayer(entity this); void race_send_recordtime(float msg); void race_send_speedaward(float msg); @@ -50,6 +62,6 @@ void race_send_speedaward_alltimebest(float msg); void race_SendRankings(float pos, float prevpos, float del, float msg); -void race_RetractPlayer(); +void race_RetractPlayer(entity this); -#endif +void race_InitSpectator();