X-Git-Url: http://de.git.xonotic.org/?a=blobdiff_plain;f=qcsrc%2Fserver%2Frace.qh;h=4dafbcf63710615df0b75b9ee07df04f4e9718d6;hb=016835f8f51aff29719995f8d080d9c1b19392c4;hp=bfdc9be4305b80f27265d4c526694a51cfd6ee1e;hpb=bb80a6aba067167c6ef8d5f3465f03bd34142fa2;p=xonotic%2Fxonotic-data.pk3dir.git diff --git a/qcsrc/server/race.qh b/qcsrc/server/race.qh index bfdc9be43..4dafbcf63 100644 --- a/qcsrc/server/race.qh +++ b/qcsrc/server/race.qh @@ -1,5 +1,16 @@ -#ifndef RACE_H -#define RACE_H +#pragma once + +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; +float speedaward_lastupdate; float race_spawns; float race_highest_place_spawn; // number of places; a place higher gets spawned at 0 @@ -10,6 +21,7 @@ float race_timelimit; .float race_place; .float race_started; .float race_completed; +.float race_laptime; float race_completing; .float race_movetime; // for reading @@ -29,4 +41,31 @@ 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); -#endif +void race_ClearRecords(); +void race_SendNextCheckpoint(entity e, float spec); +void race_PreparePlayer(entity this); +void race_send_recordtime(float msg); +void race_send_speedaward(float msg); +void race_setTime(string map, float t, string myuid, string mynetname, entity e, bool showmessage); + +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_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);