Xonotic
sv_weapons.qc File Reference

Go to the source code of this file.

Functions

 REGISTER_MUTATOR (ok_weapons, expr_evaluate(autocvar_g_overkill_weapons)||MUTATOR_IS_ENABLED(ok))
 

Variables

string autocvar_g_overkill_weapons
 

Function Documentation

◆ REGISTER_MUTATOR()

REGISTER_MUTATOR ( ok_weapons  ,
expr_evaluate(autocvar_g_overkill_weapons)||MUTATOR_IS_ENABLED(ok)   
)

Definition at line 3 of file sv_weapons.qc.

References MUTATOR_ONADD, MUTATOR_ONREMOVE, and WEP_FLAG_MUTATORBLOCKED.

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 }
#define MUTATOR_ONREMOVE
Definition: base.qh:285
const int WEP_FLAG_MUTATORBLOCKED
Definition: weapon.qh:203
#define MUTATOR_ONADD
Definition: base.qh:284

Variable Documentation

◆ autocvar_g_overkill_weapons

string autocvar_g_overkill_weapons

Definition at line 1 of file sv_weapons.qc.