Xonotic
|
#include <common/mutators/base.qh>
Go to the source code of this file.
Macros | |
#define | autocvar_g_keyhunt_point_limit cvar("g_keyhunt_point_limit") |
#define | FOR_EACH_KH_KEY(v) for(v = kh_worldkeylist; v; v = v.kh_worldkeynext ) |
Typedefs | |
using | kh_Think_t = void() |
Functions | |
void | kh_Controller_SetThink (float t, kh_Think_t func) |
void | kh_Initialize () |
void | kh_StartRound () |
REGISTER_MUTATOR (kh, false) | |
Variables | |
int | autocvar_g_keyhunt_point_leadlimit |
bool | autocvar_g_keyhunt_team_spawns |
entity | kh_next |
bool | kh_tracking_enabled |
entity | kh_worldkeylist |
entity | kh_worldkeynext |
#define autocvar_g_keyhunt_point_limit cvar("g_keyhunt_point_limit") |
Definition at line 4 of file sv_keyhunt.qh.
Referenced by REGISTER_MUTATOR().
#define FOR_EACH_KH_KEY | ( | v | ) | for(v = kh_worldkeylist; v; v = v.kh_worldkeynext ) |
Definition at line 27 of file sv_keyhunt.qh.
Referenced by kh_FinishRound(), kh_Key_AllOwnedByWhichTeam(), kh_Key_AssignTo(), kh_Key_Think(), kh_LoserTeam(), kh_update_state(), and kh_WinnerTeam().
using kh_Think_t = void() |
Definition at line 35 of file sv_keyhunt.qh.
void kh_Controller_SetThink | ( | float | t, |
kh_Think_t | func | ||
) |
Definition at line 148 of file sv_keyhunt.qc.
References ceil(), kh_controller, kh_Controller_Thinkfunc, kh_WaitForPlayers(), and time.
Referenced by kh_FinishRound(), kh_Initialize(), kh_StartRound(), and kh_WaitForPlayers().
void kh_Initialize | ( | ) |
Definition at line 974 of file sv_keyhunt.qc.
References autocvar_g_keyhunt_teams_override, BITS, bound(), cvar(), kh_controller, kh_Controller_SetThink(), kh_Controller_Think(), kh_key_carried, kh_key_dropped, kh_ScoreRules(), kh_teams, kh_WaitForPlayers(), new_pure, setmodel, and setthink.
Referenced by REGISTER_MUTATOR().
void kh_StartRound | ( | ) |
Definition at line 911 of file sv_keyhunt.qc.
References autocvar_g_balance_keyhunt_delay_tracking, entity(), FOREACH_CLIENT, IS_DEAD, IS_PLAYER, kh_Controller_SetThink(), kh_EnableTrackingDevice(), kh_GetMissingTeams(), kh_Key_Spawn(), kh_Team_ByID(), kh_teams, kh_tracking_enabled, kh_WaitForPlayers(), NULL, NumTeams(), PHYS_INPUT_BUTTON_CHAT, players, and time.
Referenced by kh_FinishRound(), and kh_WaitForPlayers().
REGISTER_MUTATOR | ( | kh | , |
false | |||
) |
Definition at line 9 of file sv_keyhunt.qh.
References autocvar_g_keyhunt_point_leadlimit, autocvar_g_keyhunt_point_limit, autocvar_g_keyhunt_team_spawns, GameRules_limit_lead(), GameRules_limit_score(), GameRules_spawning_teams(), GameRules_teams(), kh_Initialize(), MUTATOR_ONADD, and MUTATOR_STATIC.
int autocvar_g_keyhunt_point_leadlimit |
Definition at line 5 of file sv_keyhunt.qh.
Referenced by REGISTER_MUTATOR().
bool autocvar_g_keyhunt_team_spawns |
Definition at line 6 of file sv_keyhunt.qh.
Referenced by REGISTER_MUTATOR().
entity kh_next |
Definition at line 33 of file sv_keyhunt.qh.
bool kh_tracking_enabled |
Definition at line 32 of file sv_keyhunt.qh.
Referenced by havocbot_goalrating_kh(), kh_EnableTrackingDevice(), kh_Key_waypointsprite_visible_for_player(), kh_KeyCarrier_waypointsprite_visible_for_player(), and kh_StartRound().
entity kh_worldkeylist |
Definition at line 24 of file sv_keyhunt.qh.
Referenced by havocbot_goalrating_kh(), kh_Key_Remove(), and kh_Key_Spawn().
entity kh_worldkeynext |
Definition at line 25 of file sv_keyhunt.qh.