Xonotic QuakeC
The free, fast arena FPS with crisp movement and a wide array of weapons
sv_survival.qh File Reference
Include dependency graph for sv_survival.qh:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Functions

 REGISTER_MUTATOR (surv, false)
void surv_Initialize ()

Variables

int survival_validkills

Function Documentation

◆ REGISTER_MUTATOR()

REGISTER_MUTATOR ( surv ,
false  )

Definition at line 7 of file sv_survival.qh.

8{
11 {
13 }
14 return false;
15}
#define MUTATOR_ONADD
Definition base.qh:309
#define MUTATOR_STATIC()
Definition base.qh:313
void surv_Initialize()

References MUTATOR_ONADD, MUTATOR_STATIC, and surv_Initialize().

◆ surv_Initialize()

void surv_Initialize ( )

Definition at line 239 of file sv_survival.qc.

240{
242 field(SP_SURV_SURVIVALS, "survivals", 0);
243 field(SP_SURV_HUNTS, "hunts", SFL_SORT_PRIO_SECONDARY);
244 });
245
246 allowed_to_spawn = true;
251}
const int SFL_SORT_PRIO_SECONDARY
Scoring priority (NOTE: PRIMARY is used for fraglimit) NOTE: SFL_SORT_PRIO_SECONDARY value must be lo...
Definition scores.qh:133
const int SFL_SORT_PRIO_PRIMARY
Definition scores.qh:134
void EliminatedPlayers_Init(float(entity) isEliminated_func)
void round_handler_Init(float the_delay, float the_count, float the_round_timelimit)
void round_handler_Spawn(bool() canRoundStart_func, bool() canRoundEnd_func, void() roundStart_func)
bool allowed_to_spawn
#define GameRules_scoring(teams, spprio, stprio, fields)
Definition sv_rules.qh:58
bool surv_isEliminated(entity e)
bool Surv_CheckPlayers()
void Surv_RoundStart()
float Surv_CheckWinner()
float autocvar_g_survival_warmup
Definition sv_survival.qc:5
float autocvar_g_survival_round_timelimit
Definition sv_survival.qc:4
void SurvivalStatuses_Init()

References allowed_to_spawn, autocvar_g_survival_round_timelimit, autocvar_g_survival_warmup, EliminatedPlayers_Init(), GameRules_scoring, round_handler_Init(), round_handler_Spawn(), SFL_SORT_PRIO_PRIMARY, SFL_SORT_PRIO_SECONDARY, Surv_CheckPlayers(), Surv_CheckWinner(), surv_isEliminated(), Surv_RoundStart(), and SurvivalStatuses_Init().

Referenced by REGISTER_MUTATOR().

Variable Documentation

◆ survival_validkills

int survival_validkills

Definition at line 17 of file sv_survival.qh.