Xonotic
sv_overkill.qh File Reference
+ This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Functions

 REGISTER_MUTATOR (ok, expr_evaluate(autocvar_g_overkill) &&!MUTATOR_IS_ENABLED(mutator_instagib) &&!MapInfo_LoadedGametype.m_weaponarena &&cvar_string("g_mod_balance")=="Overkill")
 

Variables

string autocvar_g_overkill
 
bool autocvar_g_overkill_filter_armorbig = true
 
bool autocvar_g_overkill_filter_armormedium = true
 
bool autocvar_g_overkill_filter_armormega
 
bool autocvar_g_overkill_filter_healthmega
 
IntrusiveList g_overkill_items
 
float ok_item
 

Function Documentation

◆ REGISTER_MUTATOR()

REGISTER_MUTATOR ( ok  ,
expr_evaluate(autocvar_g_overkill) &&!MUTATOR_IS_ENABLED(mutator_instagib) &&!MapInfo_LoadedGametype.m_weaponarena &&cvar_string("g_mod_balance")  = = "Overkill" 
)

Definition at line 12 of file sv_overkill.qh.

References autocvar_g_overkill_filter_armorbig, autocvar_g_overkill_filter_armormedium, autocvar_g_overkill_filter_armormega, autocvar_g_overkill_filter_healthmega, IL_DELETE, IL_NEW, IL_PUSH(), ITEM_FLAG_MUTATORBLOCKED, MUTATOR_ONADD, MUTATOR_ONREMOVE, and precache_all_playermodels().

13 {
15  {
16  precache_all_playermodels("models/ok_player/*.dpm");
17 
19  {
20  ITEM_HealthMega.spawnflags |= ITEM_FLAG_MUTATORBLOCKED;
21  }
23  {
24  ITEM_ArmorMedium.spawnflags |= ITEM_FLAG_MUTATORBLOCKED;
25  }
27  {
28  ITEM_ArmorBig.spawnflags |= ITEM_FLAG_MUTATORBLOCKED;
29  }
31  {
32  ITEM_ArmorMega.spawnflags |= ITEM_FLAG_MUTATORBLOCKED;
33  }
35  IL_PUSH(g_overkill_items, ITEM_HealthMega);
36  IL_PUSH(g_overkill_items, ITEM_ArmorSmall);
37  IL_PUSH(g_overkill_items, ITEM_ArmorMedium);
38  IL_PUSH(g_overkill_items, ITEM_ArmorBig);
39  IL_PUSH(g_overkill_items, ITEM_ArmorMega);
40  }
41 
43  {
44  ITEM_HealthMega.spawnflags &= ~ITEM_FLAG_MUTATORBLOCKED;
45  ITEM_ArmorMedium.spawnflags &= ~ITEM_FLAG_MUTATORBLOCKED;
46  ITEM_ArmorBig.spawnflags &= ~ITEM_FLAG_MUTATORBLOCKED;
47  ITEM_ArmorMega.spawnflags &= ~ITEM_FLAG_MUTATORBLOCKED;
49  }
50 }
#define IL_NEW()
bool autocvar_g_overkill_filter_healthmega
Definition: sv_overkill.qh:4
bool autocvar_g_overkill_filter_armorbig
Definition: sv_overkill.qh:6
bool autocvar_g_overkill_filter_armormedium
Definition: sv_overkill.qh:5
ERASEABLE entity IL_PUSH(IntrusiveList this, entity it)
Push to tail.
IntrusiveList g_overkill_items
Definition: sv_overkill.qh:10
#define IL_DELETE(this)
Delete the list.
bool autocvar_g_overkill_filter_armormega
Definition: sv_overkill.qh:7
#define MUTATOR_ONREMOVE
Definition: base.qh:285
#define MUTATOR_ONADD
Definition: base.qh:284
void precache_all_playermodels(string pattern)
Definition: player.qc:651
+ Here is the call graph for this function:

Variable Documentation

◆ autocvar_g_overkill

string autocvar_g_overkill

Definition at line 3 of file sv_overkill.qh.

◆ autocvar_g_overkill_filter_armorbig

bool autocvar_g_overkill_filter_armorbig = true

Definition at line 6 of file sv_overkill.qh.

Referenced by MUTATOR_HOOKFUNCTION(), and REGISTER_MUTATOR().

◆ autocvar_g_overkill_filter_armormedium

bool autocvar_g_overkill_filter_armormedium = true

Definition at line 5 of file sv_overkill.qh.

Referenced by MUTATOR_HOOKFUNCTION(), and REGISTER_MUTATOR().

◆ autocvar_g_overkill_filter_armormega

bool autocvar_g_overkill_filter_armormega

Definition at line 7 of file sv_overkill.qh.

Referenced by MUTATOR_HOOKFUNCTION(), and REGISTER_MUTATOR().

◆ autocvar_g_overkill_filter_healthmega

bool autocvar_g_overkill_filter_healthmega

Definition at line 4 of file sv_overkill.qh.

Referenced by MUTATOR_HOOKFUNCTION(), and REGISTER_MUTATOR().

◆ g_overkill_items

IntrusiveList g_overkill_items

Definition at line 10 of file sv_overkill.qh.

Referenced by RandomItems_GetRandomOverkillItemClassName().

◆ ok_item

float ok_item

Definition at line 9 of file sv_overkill.qh.