Xonotic
|
#include "sv_stale_move_negation.qh"
Go to the source code of this file.
Functions | |
AUTOCVAR (g_smneg, bool, false, "Stale-move negation: penalize repeated use of the same weapon") | |
AUTOCVAR (g_smneg_bonus, bool, true, "Stale-move negation: allow weapons to become stronger than their baseline") | |
AUTOCVAR (g_smneg_bonus_asymptote, float, 4, "Stale-move negation: damage = infinity at this bonus level") | |
AUTOCVAR (g_smneg_cooldown_factor, float, 1/4, "Stale-move negation: penalty cooldown factor") | |
MUTATOR_HOOKFUNCTION (mutator_smneg, BuildMutatorsString) | |
MUTATOR_HOOKFUNCTION (mutator_smneg, BuildMutatorsPrettyString) | |
MUTATOR_HOOKFUNCTION (mutator_smneg, Damage_Calculate) | |
REGISTER_MUTATOR (mutator_smneg, autocvar_g_smneg) | |
float | smneg_multiplier (float weight) |
Variables | |
float | x_smneg_weight [REGISTRY_MAX(Weapons)] |
AUTOCVAR | ( | g_smneg | , |
bool | , | ||
false | , | ||
"Stale-move negation: penalize repeated use of the same weapon" | |||
) |
AUTOCVAR | ( | g_smneg_bonus | , |
bool | , | ||
true | , | ||
"Stale-move negation: allow weapons to become stronger than their baseline" | |||
) |
AUTOCVAR | ( | g_smneg_bonus_asymptote | , |
float | , | ||
4 | |||
) |
AUTOCVAR | ( | g_smneg_cooldown_factor | , |
float | , | ||
1/ | 4, | ||
"Stale-move negation: penalty cooldown factor" | |||
) |
MUTATOR_HOOKFUNCTION | ( | mutator_smneg | , |
BuildMutatorsString | |||
) |
Definition at line 9 of file sv_stale_move_negation.qc.
References M_ARGV, and strcat().
MUTATOR_HOOKFUNCTION | ( | mutator_smneg | , |
BuildMutatorsPrettyString | |||
) |
Definition at line 13 of file sv_stale_move_negation.qc.
References M_ARGV, and strcat().
MUTATOR_HOOKFUNCTION | ( | mutator_smneg | , |
Damage_Calculate | |||
) |
Definition at line 32 of file sv_stale_move_negation.qc.
References CS(), DEATH_WEAPONOF, entity(), FOREACH, M_ARGV, Weapon::m_id, smneg_multiplier(), and vector().
REGISTER_MUTATOR | ( | mutator_smneg | , |
autocvar_g_smneg | |||
) |
Definition at line 19 of file sv_stale_move_negation.qc.
References M_PI, max(), and start_health.
Referenced by MUTATOR_HOOKFUNCTION().
float x_smneg_weight[REGISTRY_MAX(Weapons)] |
Definition at line 17 of file sv_stale_move_negation.qc.