Xonotic
sv_weapons.qc
Go to the documentation of this file.
2 
4 {
6  {
7  WEP_OVERKILL_SHOTGUN.spawnflags &= ~WEP_FLAG_MUTATORBLOCKED;
8  WEP_OVERKILL_MACHINEGUN.spawnflags &= ~WEP_FLAG_MUTATORBLOCKED;
9  WEP_OVERKILL_NEX.spawnflags &= ~WEP_FLAG_MUTATORBLOCKED;
10  WEP_OVERKILL_HMG.spawnflags &= ~WEP_FLAG_MUTATORBLOCKED;
11  WEP_OVERKILL_RPC.spawnflags &= ~WEP_FLAG_MUTATORBLOCKED;
12  }
13 
15  {
16  WEP_OVERKILL_SHOTGUN.spawnflags |= WEP_FLAG_MUTATORBLOCKED;
17  WEP_OVERKILL_MACHINEGUN.spawnflags |= WEP_FLAG_MUTATORBLOCKED;
18  WEP_OVERKILL_NEX.spawnflags |= WEP_FLAG_MUTATORBLOCKED;
19  WEP_OVERKILL_HMG.spawnflags |= WEP_FLAG_MUTATORBLOCKED;
20  WEP_OVERKILL_RPC.spawnflags |= WEP_FLAG_MUTATORBLOCKED;
21  }
22 }
REGISTER_MUTATOR(ok_weapons, expr_evaluate(autocvar_g_overkill_weapons)||MUTATOR_IS_ENABLED(ok))
Definition: sv_weapons.qc:3
#define MUTATOR_IS_ENABLED(this)
Definition: base.qh:176
string autocvar_g_overkill_weapons
Definition: sv_weapons.qc:1
#define MUTATOR_ONREMOVE
Definition: base.qh:285
const int WEP_FLAG_MUTATORBLOCKED
Definition: weapon.qh:203
#define MUTATOR_ONADD
Definition: base.qh:284
ERASEABLE bool expr_evaluate(string s)
Evaluate an expression of the form: [+ | -]? [var[op]val | [op]var | val | var] ...
Definition: cvar.qh:48