Xonotic
|
Go to the source code of this file.
Definition at line 1163 of file race.qc.
References ClientData_Touch(), CS(), MAKE_INDEPENDENT_PLAYER, NULL, race_completed, and race_completing.
Referenced by MUTATOR_HOOKFUNCTION(), and race_StartCompleting().
Definition at line 143 of file race.qc.
References CS_CVAR, db_put(), ServerProgsDB, strcat(), strcpy, strzone(), and uid2name().
Referenced by MUTATOR_HOOKFUNCTION().
void race_ClearRecords | ( | ) |
Definition at line 1210 of file race.qc.
References FOREACH_CLIENT, MAX_CHECKPOINTS, race_checkpoint_recordholders, race_checkpoint_records, race_PreparePlayer(), and strfree.
Referenced by MUTATOR_HOOKFUNCTION().
Definition at line 1289 of file race.qc.
References bound(), CS(), entity(), GameRules_scoring_add, IL_EACH, max(), race_completed, race_highest_checkpoint, race_timed_checkpoint, vector(), and vlen().
Definition at line 1225 of file race.qc.
References g_race_qualifying, IS_REAL_CLIENT, msg_entity, MSG_ONE, RACE_NET_PENALTY_QUALIFYING, RACE_NET_PENALTY_RACE, time, TIME_ENCODE, WriteByte(), WriteShort(), and WriteString().
Referenced by CheatCommand(), checkpoint_passed(), penalty_touch(), and penalty_use().
void race_InitSpectator | ( | ) |
Definition at line 71 of file race.qc.
References g_race_qualifying, msg_entity, and race_SendNextCheckpoint().
Referenced by SetSpectatee_status().
Definition at line 182 of file race.qc.
References race_highest_checkpoint.
Referenced by checkpoint_passed(), and trigger_race_checkpoint_verify().
Definition at line 1180 of file race.qc.
References NULL, race_ClearTime(), race_place, race_respawn_checkpoint, race_respawn_spotref, and race_started.
Referenced by MUTATOR_HOOKFUNCTION(), and race_ClearRecords().
Definition at line 138 of file race.qc.
References db_get(), ftos(), record_type, ServerProgsDB, strcat(), and uid2name().
Referenced by getrankings(), MUTATOR_HOOKFUNCTION(), race_SendRanking(), and race_setTime().
Definition at line 78 of file race.qc.
References db_get(), ftos(), record_type, ServerProgsDB, stof(), and strcat().
Referenced by getladder(), getlsmaps(), getrankings(), MUTATOR_HOOKFUNCTION(), race_deleteTime(), race_readPos(), race_send_recordtime(), race_SendRanking(), race_setTime(), and race_writeTime().
Definition at line 83 of file race.qc.
References db_get(), ftos(), record_type, ServerProgsDB, and strcat().
Referenced by getladder(), race_deleteTime(), race_setTime(), and race_writeTime().
Definition at line 1189 of file race.qc.
References g_cts, g_race, race_checkpoint, race_ClearTime(), race_respawn_checkpoint, and race_timed_checkpoint.
Referenced by MUTATOR_HOOKFUNCTION().
Definition at line 277 of file race.qc.
References autocvar_g_cts_send_rankings_cnt, min(), RACE_NET_RANKINGS_CNT, and WriteByte().
Referenced by race_SendAll().
Definition at line 251 of file race.qc.
References GetMapname(), RACE_NET_SERVER_RECORD, race_readTime(), and WriteByte().
Referenced by race_deleteTime(), race_SendAll(), and race_setTime().
Definition at line 259 of file race.qc.
References floor(), RACE_NET_SPEED_AWARD, speedaward_holder, speedaward_speed, WriteByte(), and WriteString().
Referenced by race_SendAll(), and race_SpeedAwardFrame().
Definition at line 268 of file race.qc.
References floor(), RACE_NET_SPEED_AWARD_BEST, speedaward_alltimebest, speedaward_alltimebest_holder, WriteByte(), and WriteString().
Referenced by race_SendAll(), and race_SpeedAwardFrame().
Definition at line 324 of file race.qc.
References autocvar_g_cts_send_rankings_cnt, db_get(), GetMapname(), IS_REAL_CLIENT, min(), msg_entity, MSG_ONE, race_send_rankings_cnt(), race_send_recordtime(), race_send_speedaward(), race_send_speedaward_alltimebest(), race_SendRanking(), record_type, ServerProgsDB, speedaward_alltimebest, speedaward_alltimebest_holder, stof(), strcat(), and uid2name().
Referenced by MUTATOR_HOOKFUNCTION().
Definition at line 216 of file race.qc.
References IS_REAL_CLIENT, msg_entity, MSG_ONE, race_checkpoint_recordholders, race_checkpoint_records, race_CheckpointNetworkID(), RACE_NET_CHECKPOINT_NEXT_QUALIFYING, RACE_NET_CHECKPOINT_NEXT_SPEC_QUALIFYING, time, WriteByte(), WriteCoord(), and WriteString().
Referenced by checkpoint_passed(), and race_InitSpectator().
Definition at line 285 of file race.qc.
References GetMapname(), RACE_NET_SERVER_RANKINGS, race_readName(), race_readTime(), WriteByte(), WriteShort(), and WriteString().
Referenced by race_deleteTime(), race_SendAll(), and race_setTime().
void race_setTime | ( | string | map, |
float | t, | ||
string | myuid, | ||
string | mynetname, | ||
entity | e, | ||
bool | showmessage | ||
) |
Definition at line 365 of file race.qc.
References GetMapname(), getrankings(), MSG_ALL, NULL, race_readName(), race_readPos(), race_readTime(), race_readUID(), race_send_recordtime(), race_SendRanking(), race_SendStatus(), race_writeTime(), strcpy, time, TIME_DECODE, uid2name(), and write_recordmarker().
Referenced by ctf_CaptureRecord(), and race_SendTime().
Definition at line 296 of file race.qc.
References db_put(), ftos(), GetMapname(), intermission_running, IS_OBSERVER, MSG_ALL, race_send_speedaward(), race_send_speedaward_alltimebest(), record_type, ServerProgsDB, speedaward_alltimebest, speedaward_alltimebest_holder, speedaward_alltimebest_uid, speedaward_holder, speedaward_lastsent, speedaward_lastupdate, speedaward_speed, speedaward_uid, strcat(), time, vdist, and vlen().
Referenced by MUTATOR_HOOKFUNCTION().
void race_StartCompleting | ( | ) |
Definition at line 1174 of file race.qc.
References FOREACH_CLIENT, IS_DEAD, IS_PLAYER, race_AbandonRaceCheck(), and race_completing.
Referenced by InitiateSuddenDeath(), and race_SendTime().
spawnfunc | ( | target_checkpoint | ) |
Definition at line 1153 of file race.qc.
References target_checkpoint_setup().
Definition at line 36 of file race.qc.
References db_get(), db_put(), db_remove, ServerProgsDB, and strcat().
Referenced by getladder(), race_checkAndWriteName(), race_readName(), race_SendAll(), and race_setTime().
Definition at line 57 of file race.qc.
References ftos(), GameLogEcho(), GetGametype(), strcat(), stuffcmd, TIME_ENCODE, and TIME_ENCODED_TOSTRING.
Referenced by ctf_CaptureRecord(), and race_setTime().
bool autocvar_g_allow_checkpoints |
Definition at line 3 of file race.qh.
Referenced by CheatImpulse(), checkpoint_passed(), IMPULSE(), and MUTATOR_HOOKFUNCTION().
int autocvar_g_cts_send_rankings_cnt = 15 |
Definition at line 10 of file race.qh.
Referenced by race_send_rankings_cnt(), and race_SendAll().
bool g_race_qualifying |
Definition at line 12 of file race.qh.
Referenced by checkpoint_passed(), CheckRules_World(), ClientCommand_ready(), cts_ScoreRules(), InitiateSuddenDeath(), MUTATOR_HOOKFUNCTION(), PlayerThink(), race_ImposePenaltyTime(), race_Initialize(), race_InitSpectator(), race_ScoreRules(), race_SendTime(), rc_SetLimits(), ReadyRestart_force(), REGISTER_MUTATOR(), trigger_race_checkpoint_spawn_evalfunc(), and trigger_race_checkpoint_verify().
float race_completed |
Definition at line 25 of file race.qh.
Referenced by ClientData_Send(), race_AbandonRaceCheck(), race_GetFractionalLapCount(), race_SendTime(), and WinningCondition_Race().
float race_completing |
Definition at line 27 of file race.qh.
Referenced by race_AbandonRaceCheck(), race_SendTime(), race_StartCompleting(), and ReadyRestart().
float race_fraglimit |
Definition at line 20 of file race.qh.
Referenced by MUTATOR_HOOKFUNCTION(), and rc_SetLimits().
float race_highest_place_spawn |
Definition at line 18 of file race.qh.
Referenced by spawnfunc(), trigger_race_checkpoint_spawn_evalfunc(), and trigger_race_checkpoint_verify().
float race_leadlimit |
Definition at line 21 of file race.qh.
Referenced by MUTATOR_HOOKFUNCTION(), and rc_SetLimits().
float race_lowest_place_spawn |
Definition at line 19 of file race.qh.
Referenced by spawnfunc(), trigger_race_checkpoint_spawn_evalfunc(), and trigger_race_checkpoint_verify().
float race_place |
Definition at line 23 of file race.qh.
Referenced by MUTATOR_HOOKFUNCTION(), race_PreparePlayer(), and spawnfunc().
float race_respawn_checkpoint |
Definition at line 33 of file race.qh.
Referenced by race_PreparePlayer(), and race_RetractPlayer().
entity race_respawn_spotref |
Definition at line 34 of file race.qh.
Referenced by race_PreparePlayer().
float race_spawns |
Definition at line 17 of file race.qh.
Referenced by Spawn_Score(), and spawnfunc().
float race_started |
Definition at line 24 of file race.qh.
Referenced by race_PreparePlayer().
float race_teams |
Definition at line 5 of file race.qh.
Referenced by MUTATOR_HOOKFUNCTION(), race_ScoreRules(), and rc_SetLimits().
float race_timelimit |
Definition at line 22 of file race.qh.
Referenced by MUTATOR_HOOKFUNCTION(), and rc_SetLimits().
float speedaward_alltimebest |
Definition at line 61 of file race.qh.
Referenced by race_send_speedaward_alltimebest(), race_SendAll(), and race_SpeedAwardFrame().
string speedaward_alltimebest_holder |
Definition at line 62 of file race.qh.
Referenced by race_send_speedaward_alltimebest(), race_SendAll(), and race_SpeedAwardFrame().
string speedaward_alltimebest_uid |
Definition at line 63 of file race.qh.
Referenced by race_SpeedAwardFrame().
string speedaward_holder |
Definition at line 58 of file race.qh.
Referenced by race_send_speedaward(), and race_SpeedAwardFrame().
float speedaward_lastsent |
Definition at line 14 of file race.qh.
Referenced by race_SpeedAwardFrame().
float speedaward_lastupdate |
Definition at line 15 of file race.qh.
Referenced by race_SpeedAwardFrame().
float speedaward_speed |
Definition at line 57 of file race.qh.
Referenced by race_send_speedaward(), and race_SpeedAwardFrame().
string speedaward_uid |
Definition at line 59 of file race.qh.
Referenced by race_SpeedAwardFrame().
const float ST_RACE_LAPS = 1 |
Definition at line 8 of file race.qh.
Referenced by race_ScoreRules().