Xonotic QuakeC
The free, fast arena FPS with crisp movement and a wide array of weapons
strength.qh File Reference
Include dependency graph for strength.qh:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

class  StrengthItem
class  StrengthStatusEffect

Functions

 MODEL (Strength_ITEM, Item_Model("g_strength.md3"))
void powerup_strength_init (Pickup def, entity item)
 REGISTER_ITEM (Strength, NEW(StrengthItem))
 REGISTER_STATUSEFFECT (Strength, NEW(StrengthStatusEffect))
 SOUND (Strength, Item_Sound("powerup"))

Variables

float autocvar_g_balance_powerup_strength_damage
float autocvar_g_balance_powerup_strength_force
float autocvar_g_balance_powerup_strength_selfdamage
float autocvar_g_balance_powerup_strength_selfforce
float autocvar_g_balance_powerup_strength_time
bool autocvar_g_powerups_strength

Function Documentation

◆ MODEL()

MODEL ( Strength_ITEM ,
Item_Model("g_strength.md3")  )

◆ powerup_strength_init()

void powerup_strength_init ( Pickup def,
entity item )

Definition at line 23 of file strength.qh.

24{
26 def.spawnflags |= ITEM_FLAG_MUTATORBLOCKED;
27
28 if(!item.strength_finished)
29 item.strength_finished = (item.count) ? item.count : autocvar_g_balance_powerup_strength_time;
30}
@ ITEM_FLAG_MUTATORBLOCKED
Definition item.qh:121
float autocvar_g_balance_powerup_strength_time
Definition strength.qh:22
bool autocvar_g_powerups_strength
Definition strength.qh:17
int autocvar_g_powerups
Definition sv_powerups.qh:7

References autocvar_g_balance_powerup_strength_time, autocvar_g_powerups, autocvar_g_powerups_strength, entity(), and ITEM_FLAG_MUTATORBLOCKED.

Referenced by StrengthItem::void().

◆ REGISTER_ITEM()

REGISTER_ITEM ( Strength ,
NEW(StrengthItem)  )

References NEW, REGISTER_ITEM, and SPAWNFUNC_ITEM.

◆ REGISTER_STATUSEFFECT()

REGISTER_STATUSEFFECT ( Strength ,
NEW(StrengthStatusEffect)  )

References NEW, and REGISTER_STATUSEFFECT.

◆ SOUND()

SOUND ( Strength ,
Item_Sound("powerup")  )

Variable Documentation

◆ autocvar_g_balance_powerup_strength_damage

float autocvar_g_balance_powerup_strength_damage

Definition at line 18 of file strength.qh.

Referenced by MUTATOR_HOOKFUNCTION().

◆ autocvar_g_balance_powerup_strength_force

float autocvar_g_balance_powerup_strength_force

Definition at line 19 of file strength.qh.

Referenced by MUTATOR_HOOKFUNCTION(), and W_Porto_Attack().

◆ autocvar_g_balance_powerup_strength_selfdamage

float autocvar_g_balance_powerup_strength_selfdamage

Definition at line 20 of file strength.qh.

Referenced by MUTATOR_HOOKFUNCTION().

◆ autocvar_g_balance_powerup_strength_selfforce

float autocvar_g_balance_powerup_strength_selfforce

Definition at line 21 of file strength.qh.

Referenced by MUTATOR_HOOKFUNCTION().

◆ autocvar_g_balance_powerup_strength_time

float autocvar_g_balance_powerup_strength_time

Definition at line 22 of file strength.qh.

Referenced by powerup_strength_init(), powerups_DropItem(), and spawnfunc().

◆ autocvar_g_powerups_strength

bool autocvar_g_powerups_strength

Definition at line 17 of file strength.qh.

Referenced by powerup_strength_init().