Go to the source code of this file.
|
| | AUTOCVAR (g_smneg, bool, false, "enable stale-move negation, penalizing repeated use of the same weapon") |
| | AUTOCVAR (g_smneg_bonus, bool, true, "allow weapons to become stronger than their baseline") |
| | AUTOCVAR (g_smneg_bonus_asymptote, float, 4, "stale-move negation damage is infinity at this bonus level") |
| | AUTOCVAR (g_smneg_cooldown_factor, float, 1/4, "stale-move negation penalty cooldown factor") |
| | MUTATOR_HOOKFUNCTION (mutator_smneg, BuildMutatorsPrettyString) |
| | MUTATOR_HOOKFUNCTION (mutator_smneg, BuildMutatorsString) |
| | MUTATOR_HOOKFUNCTION (mutator_smneg, Damage_Calculate) |
| | REGISTER_MUTATOR (mutator_smneg, autocvar_g_smneg) |
| float | smneg_multiplier (float weight) |
◆ AUTOCVAR() [1/4]
| AUTOCVAR |
( |
g_smneg | , |
|
|
bool | , |
|
|
false | , |
|
|
"enable stale-move | negation, |
|
|
penalizing repeated use of the same weapon" | ) |
◆ AUTOCVAR() [2/4]
| AUTOCVAR |
( |
g_smneg_bonus | , |
|
|
bool | , |
|
|
true | , |
|
|
"allow weapons to become stronger than their baseline" | ) |
◆ AUTOCVAR() [3/4]
| AUTOCVAR |
( |
g_smneg_bonus_asymptote | , |
|
|
float | , |
|
|
4 | , |
|
|
"stale-move negation damage is infinity at this bonus level" | ) |
◆ AUTOCVAR() [4/4]
| AUTOCVAR |
( |
g_smneg_cooldown_factor | , |
|
|
float | , |
|
|
1/ | 4, |
|
|
"stale-move negation penalty cooldown factor" | ) |
◆ MUTATOR_HOOKFUNCTION() [1/3]
| MUTATOR_HOOKFUNCTION |
( |
mutator_smneg | , |
|
|
BuildMutatorsPrettyString | ) |
◆ MUTATOR_HOOKFUNCTION() [2/3]
| MUTATOR_HOOKFUNCTION |
( |
mutator_smneg | , |
|
|
BuildMutatorsString | ) |
◆ MUTATOR_HOOKFUNCTION() [3/3]
| MUTATOR_HOOKFUNCTION |
( |
mutator_smneg | , |
|
|
Damage_Calculate | ) |
Definition at line 32 of file sv_stale_move_negation.qc.
32 {
33 float deathtype =
M_ARGV(3,
float);
35 if (w == WEP_Null) return;
36
39 float weight = c.x_smneg_weight[w.
m_id];
43
45 float restore =
frag_damage * autocvar_g_smneg_cooldown_factor;
47 c.x_smneg_weight[it.m_id] -= restore;
48 });
49}
var entity(vector mins, vector maxs,.entity tofield) findbox_tofield_OrFallback
fields which are explicitly/manually set are marked with "M", fields set automatically are marked wit...
#define DEATH_WEAPONOF(t)
#define FOREACH(list, cond, body)
ClientState CS(Client this)
float smneg_multiplier(float weight)
References CS(), DEATH_WEAPONOF, entity(), FOREACH, frag_damage, M_ARGV, Weapon::m_id, smneg_multiplier(), vector, and Weapons.
◆ REGISTER_MUTATOR()
| REGISTER_MUTATOR |
( |
mutator_smneg | , |
|
|
autocvar_g_smneg | ) |
◆ smneg_multiplier()
◆ x_smneg_weight