Xonotic
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  Strength
 

Functions

 REGISTER_ITEM (Strength, Powerup)
 
 REGISTER_STATUSEFFECT (Strength, NEW(Strength))
 

Function Documentation

◆ REGISTER_ITEM()

REGISTER_ITEM ( Strength  ,
Powerup   
)

Definition at line 29 of file strength.qh.

References ITEM_FLAG_MUTATORBLOCKED, ITEM_FLAG_NORMAL, m_itemid, m_name, netname, and spawnflags.

29  {
30  this.m_canonical_spawnfunc = "item_strength";
31 #ifdef SVQC
32  if(autocvar_g_powerups_strength)
34  else
36 
37  this.m_iteminit = powerup_strength_init;
38 #endif
39 #ifdef GAMEQC
40  this.m_itemid = IT_STRENGTH;
41  this.m_model = MDL_Strength_ITEM;
42  this.m_sound = SND_Strength;
43  this.m_glow = true;
44  this.m_respawnsound = SND_STRENGTH_RESPAWN;
45 #endif
46  this.netname = "strength";
47  this.m_name = _("Strength");
48  this.m_icon = "strength";
49  this.m_color = '0 0 1';
50  this.m_waypoint = _("Strength");
51  this.m_waypointblink = 2;
52 }
Item is usable during normal gameplay.
Definition: item.qh:98
string netname
Definition: powerups.qc:20
int m_itemid
Definition: jetpack.qh:11
float spawnflags
Definition: progsdefs.qc:191
string m_name
Definition: scores.qh:135

◆ REGISTER_STATUSEFFECT()

REGISTER_STATUSEFFECT ( Strength  ,
NEW(Strength  
)