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

Go to the source code of this file.

Functions

 REGISTER_MUTATOR (tmayhem, false)
void tmayhem_Initialize ()

Variables

float autocvar_g_tmayhem_scoring_damage_weight
bool autocvar_g_tmayhem_scoring_disable_selfdamage2score
float autocvar_g_tmayhem_scoring_kill_weight
float autocvar_g_tmayhem_scoring_upscaler

Function Documentation

◆ REGISTER_MUTATOR()

REGISTER_MUTATOR ( tmayhem ,
false  )

Definition at line 13 of file sv_tmayhem.qh.

14{
17 {
19 }
20 return 0;
21}
#define MUTATOR_ONADD
Definition base.qh:309
#define MUTATOR_STATIC()
Definition base.qh:313
void tmayhem_Initialize()
Definition sv_tmayhem.qc:63

References MUTATOR_ONADD, MUTATOR_STATIC, and tmayhem_Initialize().

◆ tmayhem_Initialize()

void tmayhem_Initialize ( )

Definition at line 63 of file sv_tmayhem.qc.

64{
65 GameRules_teams(true);
67
70
72}
const int INITPRIO_GAMETYPE
Definition constants.qh:94
#define NULL
Definition post.qh:14
void GameRules_limit_score(int limit)
Definition sv_rules.qc:23
void GameRules_teams(bool value)
Definition sv_rules.qc:3
void GameRules_limit_lead(int limit)
Definition sv_rules.qc:33
#define GameRules_spawning_teams(value)
Used to disable team spawns in team modes.
Definition sv_rules.qh:35
float autocvar_g_tmayhem_point_leadlimit
Definition sv_tmayhem.qc:5
void tmayhem_DelayedInit(entity this)
Definition sv_tmayhem.qc:41
bool autocvar_g_tmayhem_team_spawns
Definition sv_tmayhem.qc:9
float autocvar_g_tmayhem_point_limit
Definition sv_tmayhem.qc:4
void InitializeEntity(entity e, void(entity this) func, int order)
Definition world.qc:2209

References autocvar_g_tmayhem_point_leadlimit, autocvar_g_tmayhem_point_limit, autocvar_g_tmayhem_team_spawns, GameRules_limit_lead(), GameRules_limit_score(), GameRules_spawning_teams, GameRules_teams(), InitializeEntity(), INITPRIO_GAMETYPE, NULL, and tmayhem_DelayedInit().

Referenced by REGISTER_MUTATOR().

Variable Documentation

◆ autocvar_g_tmayhem_scoring_damage_weight

float autocvar_g_tmayhem_scoring_damage_weight

Definition at line 8 of file sv_tmayhem.qh.

Referenced by MayhemCalculatePlayerScore(), and MUTATOR_HOOKFUNCTION().

◆ autocvar_g_tmayhem_scoring_disable_selfdamage2score

bool autocvar_g_tmayhem_scoring_disable_selfdamage2score

Definition at line 9 of file sv_tmayhem.qh.

Referenced by MayhemCalculatePlayerScore(), and MUTATOR_HOOKFUNCTION().

◆ autocvar_g_tmayhem_scoring_kill_weight

float autocvar_g_tmayhem_scoring_kill_weight

Definition at line 7 of file sv_tmayhem.qh.

Referenced by MayhemCalculatePlayerScore().

◆ autocvar_g_tmayhem_scoring_upscaler

float autocvar_g_tmayhem_scoring_upscaler

Definition at line 6 of file sv_tmayhem.qh.

Referenced by MayhemCalculatePlayerScore().