Xonotic
|
#include "sv_cts.qh"
#include <server/client.qh>
#include <server/race.qh>
#include <server/world.qh>
#include <server/gamelog.qh>
#include <server/intermission.qh>
#include <server/items/spawning.qh>
#include <server/weapons/common.qh>
#include <common/mapobjects/triggers.qh>
Go to the source code of this file.
Variables | |
float | autocvar_g_cts_finish_kill_delay |
bool | autocvar_g_cts_removeprojectiles |
bool | autocvar_g_cts_selfdamage |
float | race_checkpoint |
Definition at line 68 of file sv_cts.qc.
References autocvar_sv_eventlog, ftos(), GameLogEcho(), NULL, and strcat().
Referenced by MUTATOR_HOOKFUNCTION().
void cts_Initialize | ( | ) |
Definition at line 373 of file sv_cts.qc.
References CTS_RECORD, cts_ScoreRules(), and record_type.
Referenced by REGISTER_MUTATOR().
void cts_ScoreRules | ( | ) |
Definition at line 54 of file sv_cts.qc.
References g_race_qualifying, GameRules_score_enabled(), GameRules_scoring, SFL_LOWER_IS_BETTER, SFL_SORT_PRIO_PRIMARY, SFL_SORT_PRIO_SECONDARY, and SFL_TIME.
Referenced by cts_Initialize(), and MUTATOR_HOOKFUNCTION().
Definition at line 18 of file sv_cts.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().
MUTATOR_HOOKFUNCTION | ( | cts | , |
PlayerPhysics | |||
) |
Definition at line 74 of file sv_cts.qc.
References CS(), entity(), fabs(), floor(), IS_PLAYER, M_ARGV, M_SQRT1_2, movement, MOVETYPE_NONE, set_movetype(), time, vector(), and vlen().
MUTATOR_HOOKFUNCTION | ( | cts | , |
reset_map_global | |||
) |
Definition at line 145 of file sv_cts.qc.
References cts_EventLog(), cts_ScoreRules(), cvar_set(), FOREACH_CLIENT, ftos(), g_race_qualifying, independent_players, NULL, PlayerScore_Sort(), race_ClearRecords(), race_fraglimit, race_leadlimit, race_place, race_timelimit, and Score_NicePrint().
MUTATOR_HOOKFUNCTION | ( | cts | , |
ClientConnect | |||
) |
Definition at line 175 of file sv_cts.qc.
References entity(), M_ARGV, race_PreparePlayer(), and race_SendAll().
MUTATOR_HOOKFUNCTION | ( | cts | , |
AbortSpeedrun | |||
) |
Definition at line 185 of file sv_cts.qc.
References autocvar_g_allow_checkpoints, entity(), M_ARGV, and race_PreparePlayer().
MUTATOR_HOOKFUNCTION | ( | cts | , |
MakePlayerObserver | |||
) |
Definition at line 193 of file sv_cts.qc.
References entity(), FRAGS_PLAYER_OUT_OF_GAME, FRAGS_SPECTATOR, GameRules_scoring_add, M_ARGV, and race_PreparePlayer().
MUTATOR_HOOKFUNCTION | ( | cts | , |
PlayerSpawn | |||
) |
Definition at line 206 of file sv_cts.qc.
References entity(), M_ARGV, and race_PreparePlayer().
MUTATOR_HOOKFUNCTION | ( | cts | , |
PutClientInServer | |||
) |
Definition at line 222 of file sv_cts.qc.
References CS(), entity(), FRAGS_SPECTATOR, g_race_qualifying, IS_PLAYER, killcount, M_ARGV, race_AbandonRaceCheck(), race_PreparePlayer(), and race_RetractPlayer().
MUTATOR_HOOKFUNCTION | ( | cts | , |
PlayerDamaged | |||
) |
MUTATOR_HOOKFUNCTION | ( | cts | , |
PlayerDies | |||
) |
Definition at line 245 of file sv_cts.qc.
References autocvar_g_cts_removeprojectiles, entity(), g_projectiles, IL_EACH, M_ARGV, race_AbandonRaceCheck(), and RESPAWN_FORCE.
MUTATOR_HOOKFUNCTION | ( | cts | , |
HavocBot_ChooseRole | |||
) |
Definition at line 261 of file sv_cts.qc.
References entity(), havocbot_role_cts(), and M_ARGV.
MUTATOR_HOOKFUNCTION | ( | cts | , |
GetPressedKeys | |||
) |
Definition at line 269 of file sv_cts.qc.
References entity(), M_ARGV, race_checkAndWriteName(), and race_SpeedAwardFrame().
MUTATOR_HOOKFUNCTION | ( | cts | , |
ForbidThrowCurrentWeapon | |||
) |
MUTATOR_HOOKFUNCTION | ( | cts | , |
FilterItem | |||
) |
Definition at line 283 of file sv_cts.qc.
References entity(), Item_IsLoot(), and M_ARGV.
MUTATOR_HOOKFUNCTION | ( | cts | , |
Damage_Calculate | |||
) |
Definition at line 293 of file sv_cts.qc.
References autocvar_g_cts_selfdamage, entity(), and M_ARGV.
MUTATOR_HOOKFUNCTION | ( | cts | , |
ForbidPlayerScore_Clear | |||
) |
MUTATOR_HOOKFUNCTION | ( | cts | , |
GetRecords | |||
) |
Definition at line 313 of file sv_cts.qc.
References M_ARGV, MapInfo_count, MapInfo_Get_ByID(), MapInfo_Map_bspname, race_readName(), race_readTime(), strcat(), and TIME_ENCODED_TOSTRING.
MUTATOR_HOOKFUNCTION | ( | cts | , |
ClientKill | |||
) |
MUTATOR_HOOKFUNCTION | ( | cts | , |
Race_FinalCheckpoint | |||
) |
Definition at line 340 of file sv_cts.qc.
References autocvar_g_cts_finish_kill_delay, ClientKill_Silent(), entity(), and M_ARGV.
MUTATOR_HOOKFUNCTION | ( | cts | , |
HideTeamNagger | |||
) |
MUTATOR_HOOKFUNCTION | ( | cts | , |
FixClientCvars | |||
) |
MUTATOR_HOOKFUNCTION | ( | cts | , |
WantWeapon | |||
) |
MUTATOR_HOOKFUNCTION | ( | cts | , |
ForbidDropCurrentWeapon | |||
) |
float autocvar_g_cts_finish_kill_delay |
Definition at line 12 of file sv_cts.qc.
Referenced by MUTATOR_HOOKFUNCTION().
bool autocvar_g_cts_removeprojectiles |
Definition at line 14 of file sv_cts.qc.
Referenced by MUTATOR_HOOKFUNCTION().
bool autocvar_g_cts_selfdamage |
Definition at line 13 of file sv_cts.qc.
Referenced by MUTATOR_HOOKFUNCTION().
float race_checkpoint |
Definition at line 17 of file sv_cts.qc.
Referenced by havocbot_role_cts().