X-Git-Url: http://de.git.xonotic.org/?a=blobdiff_plain;f=qcsrc%2Fserver%2Frace.qh;h=c78c7765bb40a4d5f81a1aeed5212ec8bbe0217a;hb=329056086018f809df4c4513a52c584577b1e453;hp=f6cc54a15e1522dc1ddd724cf6cdc328f44b95bf;hpb=0e7ed909bffb4ff21f0c68d163edfc17487e380a;p=xonotic%2Fxonotic-data.pk3dir.git diff --git a/qcsrc/server/race.qh b/qcsrc/server/race.qh index f6cc54a15..c78c7765b 100644 --- a/qcsrc/server/race.qh +++ b/qcsrc/server/race.qh @@ -1,14 +1,12 @@ -void race_InitSpectator(); -void race_PreSpawnObserver(); -void race_PreSpawn(); -void race_PostSpawn(entity spot); -void race_PreDie(); -void race_ReadyRestart(); -float race_teams; +#ifndef RACE_H +#define RACE_H + +bool g_race_qualifying; + +float speedaward_lastsent; +float speedaward_lastupdate; + float race_spawns; -float race_PreviousCheckpoint(float f); -float race_NextCheckpoint(float f); -void race_AbandonRaceCheck(entity p); float race_highest_place_spawn; // number of places; a place higher gets spawned at 0 float race_lowest_place_spawn; // where to spawn in qualifying float race_fraglimit; @@ -17,9 +15,8 @@ float race_timelimit; .float race_place; .float race_started; .float race_completed; +.float race_laptime; float race_completing; -void race_ImposePenaltyTime(entity pl, float penalty, string reason); -void race_StartCompleting(); .float race_movetime; // for reading .float race_movetime_frac; // fractional accumulator for higher accuracy (helper for writing) @@ -28,4 +25,38 @@ void race_StartCompleting(); .float race_respawn_checkpoint; .entity race_respawn_spotref; // try THIS spawn in case you respawn +// definitions for functions used outside race.qc +float race_PreviousCheckpoint(float f); +float race_NextCheckpoint(float f); +void race_AbandonRaceCheck(entity p); +void race_ImposePenaltyTime(entity pl, float penalty, string reason); +void race_StartCompleting(); float race_GetFractionalLapCount(entity e); +float race_readTime(string map, float pos); +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_send_recordtime(float msg); +void race_send_speedaward(float msg); + +float speedaward_speed; +string speedaward_holder; +string speedaward_uid; + +float speedaward_alltimebest; +string speedaward_alltimebest_holder; +string speedaward_alltimebest_uid; + +void race_send_speedaward(float msg); + +void race_send_speedaward_alltimebest(float msg); + +void race_SendRankings(float pos, float prevpos, float del, float msg); + +void race_RetractPlayer(); + +void race_InitSpectator(); + +#endif