|
Xonotic
|
#include "sv_race.qh"#include <server/client.qh>#include <server/world.qh>#include <server/gamelog.qh>#include <server/intermission.qh>#include <server/race.qh>#include <common/ent_cs.qh>#include <common/mapobjects/triggers.qh>
Include dependency graph for sv_race.qc:Go to the source code of this file.
Macros | |
| #define | autocvar_g_race_laps_limit cvar("g_race_laps_limit") |
Variables | |
| float | autocvar_g_race_qualifying_timelimit |
| float | autocvar_g_race_qualifying_timelimit_override |
| int | autocvar_g_race_teams |
| float | race_checkpoint |
| #define autocvar_g_race_laps_limit cvar("g_race_laps_limit") |
Definition at line 11 of file sv_race.qc.
Referenced by rc_SetLimits().
Definition at line 18 of file sv_race.qc.
References g_racecheckpoints, IL_EACH, IS_DEAD, LABEL, navigation_goalrating_end(), navigation_goalrating_start(), navigation_goalrating_timeout(), navigation_goalrating_timeout_set(), navigation_routerating(), and race_checkpoint.
Referenced by MUTATOR_HOOKFUNCTION().
Here is the call graph for this function:
Here is the caller graph for this function:| MUTATOR_HOOKFUNCTION | ( | rc | , |
| ClientKill | |||
| ) |
| MUTATOR_HOOKFUNCTION | ( | rc | , |
| AbortSpeedrun | |||
| ) |
Definition at line 121 of file sv_race.qc.
References autocvar_g_allow_checkpoints, entity(), M_ARGV, and race_PreparePlayer().
Here is the call graph for this function:| MUTATOR_HOOKFUNCTION | ( | rc | , |
| PlayerPhysics | |||
| ) |
Definition at line 129 of file sv_race.qc.
References CS(), entity(), fabs(), floor(), IS_PLAYER, M_ARGV, M_SQRT1_2, movement, MOVETYPE_NONE, set_movetype(), time, vector(), and vlen().
Here is the call graph for this function:| MUTATOR_HOOKFUNCTION | ( | rc | , |
| reset_map_global | |||
| ) |
Definition at line 200 of file sv_race.qc.
References cvar_set(), FOREACH_CLIENT, ftos(), g_race_qualifying, independent_players, NULL, PlayerScore_Sort(), race_ClearRecords(), race_EventLog(), race_fraglimit, race_leadlimit, race_place, race_ScoreRules(), race_timelimit, and Score_NicePrint().
Here is the call graph for this function:| MUTATOR_HOOKFUNCTION | ( | rc | , |
| ClientConnect | |||
| ) |
Definition at line 230 of file sv_race.qc.
References entity(), M_ARGV, race_PreparePlayer(), and race_SendAll().
Here is the call graph for this function:| MUTATOR_HOOKFUNCTION | ( | rc | , |
| MakePlayerObserver | |||
| ) |
Definition at line 240 of file sv_race.qc.
References entity(), FRAGS_PLAYER_OUT_OF_GAME, FRAGS_SPECTATOR, g_race_qualifying, GameRules_scoring_add, M_ARGV, and race_PreparePlayer().
Here is the call graph for this function:| MUTATOR_HOOKFUNCTION | ( | rc | , |
| PlayerSpawn | |||
| ) |
Definition at line 256 of file sv_race.qc.
References entity(), M_ARGV, and race_PreparePlayer().
Here is the call graph for this function:| MUTATOR_HOOKFUNCTION | ( | rc | , |
| PutClientInServer | |||
| ) |
Definition at line 272 of file sv_race.qc.
References CS(), entity(), FRAGS_SPECTATOR, g_race_qualifying, IS_PLAYER, killcount, M_ARGV, race_AbandonRaceCheck(), race_PreparePlayer(), and race_RetractPlayer().
Here is the call graph for this function:| MUTATOR_HOOKFUNCTION | ( | rc | , |
| PlayerDamaged | |||
| ) |
| MUTATOR_HOOKFUNCTION | ( | rc | , |
| PlayerDies | |||
| ) |
Definition at line 295 of file sv_race.qc.
References entity(), M_ARGV, race_AbandonRaceCheck(), and RESPAWN_FORCE.
Here is the call graph for this function:| MUTATOR_HOOKFUNCTION | ( | rc | , |
| HavocBot_ChooseRole | |||
| ) |
Definition at line 303 of file sv_race.qc.
References entity(), havocbot_role_race(), and M_ARGV.
Here is the call graph for this function:| MUTATOR_HOOKFUNCTION | ( | rc | , |
| GetPressedKeys | |||
| ) |
Definition at line 311 of file sv_race.qc.
References entity(), M_ARGV, race_checkAndWriteName(), and race_SpeedAwardFrame().
Here is the call graph for this function:| MUTATOR_HOOKFUNCTION | ( | rc | , |
| ForbidPlayerScore_Clear | |||
| ) |
| MUTATOR_HOOKFUNCTION | ( | rc | , |
| TeamBalance_CheckAllowedTeams | , | ||
| CBC_ORDER_EXCLUSIVE | |||
| ) |
| MUTATOR_HOOKFUNCTION | ( | rc | , |
| Scores_CountFragsRemaining | |||
| ) |
| MUTATOR_HOOKFUNCTION | ( | rc | , |
| GetRecords | |||
| ) |
Definition at line 338 of file sv_race.qc.
References M_ARGV, MapInfo_count, MapInfo_Get_ByID(), MapInfo_Map_bspname, race_readName(), race_readTime(), strcat(), and TIME_ENCODED_TOSTRING.
Here is the call graph for this function:| MUTATOR_HOOKFUNCTION | ( | rc | , |
| HideTeamNagger | |||
| ) |
Definition at line 360 of file sv_race.qc.
| MUTATOR_HOOKFUNCTION | ( | rc | , |
| FixClientCvars | |||
| ) |
Definition at line 365 of file sv_race.qc.
References entity(), M_ARGV, and stuffcmd.
Here is the call graph for this function:| MUTATOR_HOOKFUNCTION | ( | rc | , |
| CheckRules_World | |||
| ) |
Definition at line 372 of file sv_race.qc.
References g_race_qualifying, M_ARGV, WinningCondition_QualifyingThenRace(), and WinningCondition_Race().
Here is the call graph for this function:| MUTATOR_HOOKFUNCTION | ( | rc | , |
| ReadLevelCvars | |||
| ) |
Definition at line 71 of file sv_race.qc.
References autocvar_sv_eventlog, ftos(), GameLogEcho(), NULL, and strcat().
Referenced by MUTATOR_HOOKFUNCTION().
Here is the call graph for this function:
Here is the caller graph for this function:| void race_Initialize | ( | ) |
Definition at line 398 of file sv_race.qc.
References g_race_qualifying, race_ScoreRules(), and warmup_stage.
Referenced by REGISTER_MUTATOR().
Here is the call graph for this function:
Here is the caller graph for this function:| void race_ScoreRules | ( | ) |
Definition at line 54 of file sv_race.qc.
References g_race_qualifying, GameRules_score_enabled(), GameRules_scoring, race_teams, SFL_LOWER_IS_BETTER, SFL_SORT_PRIO_PRIMARY, SFL_SORT_PRIO_SECONDARY, SFL_TIME, and ST_RACE_LAPS.
Referenced by MUTATOR_HOOKFUNCTION(), and race_Initialize().
Here is the call graph for this function:
Here is the caller graph for this function:| void rc_SetLimits | ( | ) |
Definition at line 406 of file sv_race.qc.
References autocvar_g_campaign, autocvar_g_race_laps_limit, autocvar_g_race_qualifying_timelimit, autocvar_g_race_qualifying_timelimit_override, autocvar_g_race_teams, BITS, bound(), g_race_qualifying, GameRules_limit_lead(), GameRules_limit_score(), GameRules_limit_time(), GameRules_limit_time_qualifying(), GameRules_teams(), independent_players, race_fraglimit, race_leadlimit, RACE_RECORD, race_teams, race_timelimit, and record_type.
Referenced by REGISTER_MUTATOR().
Here is the call graph for this function:
Here is the caller graph for this function:Definition at line 101 of file sv_race.qc.
References WINNING_STARTSUDDENDEATHOVERTIME, WINNING_YES, and WinningCondition_Scores().
Referenced by MUTATOR_HOOKFUNCTION().
Here is the call graph for this function:
Here is the caller graph for this function:Definition at line 77 of file sv_race.qc.
References CS(), FOREACH_CLIENT, IS_PLAYER, race_completed, WINNING_NEVER, WINNING_STARTSUDDENDEATHOVERTIME, WINNING_YES, and WinningCondition_Scores().
Referenced by MUTATOR_HOOKFUNCTION().
Here is the call graph for this function:
Here is the caller graph for this function:| float autocvar_g_race_qualifying_timelimit |
Definition at line 12 of file sv_race.qc.
Referenced by rc_SetLimits().
| float autocvar_g_race_qualifying_timelimit_override |
Definition at line 13 of file sv_race.qc.
Referenced by rc_SetLimits().
| int autocvar_g_race_teams |
Definition at line 14 of file sv_race.qc.
Referenced by rc_SetLimits().
| float race_checkpoint |
Definition at line 17 of file sv_race.qc.
Referenced by havocbot_role_race().