Xonotic QuakeC
The free, fast arena FPS with crisp movement and a wide array of weapons
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.

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 MUTATOR_ONADD
Definition base.qh:309
#define MUTATOR_ONREMOVE
Definition base.qh:310
@ ITEM_FLAG_MUTATORBLOCKED
Definition item.qh:121
ERASEABLE entity IL_PUSH(IntrusiveList this, entity it)
Push to tail.
#define IL_NEW()
#define IL_DELETE(this)
Delete the list.
void precache_all_playermodels(string pattern)
Definition player.qc:659
bool autocvar_g_overkill_filter_armormega
Definition sv_overkill.qh:7
bool autocvar_g_overkill_filter_armorbig
Definition sv_overkill.qh:6
bool autocvar_g_overkill_filter_healthmega
Definition sv_overkill.qh:4
bool autocvar_g_overkill_filter_armormedium
Definition sv_overkill.qh:5
IntrusiveList g_overkill_items

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

Variable Documentation

◆ autocvar_g_overkill

string autocvar_g_overkill

Definition at line 3 of file sv_overkill.qh.

Referenced by REGISTER_MUTATOR().

◆ 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(), and REGISTER_MUTATOR().

◆ ok_item

float ok_item

Definition at line 9 of file sv_overkill.qh.