Xonotic
shield.qh File Reference
+ Include dependency graph for shield.qh:
+ This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

class  Shield
 

Functions

 REGISTER_ITEM (Shield, Powerup)
 
 REGISTER_STATUSEFFECT (Shield, NEW(Shield))
 

Function Documentation

◆ REGISTER_ITEM()

REGISTER_ITEM ( Shield  ,
Powerup   
)

Definition at line 27 of file shield.qh.

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

27  {
28  this.m_canonical_spawnfunc = "item_shield";
29 #ifdef SVQC
30  if(autocvar_g_powerups_shield)
32  else
34 
35  this.m_iteminit = powerup_shield_init;
36 #endif
37 #ifdef GAMEQC
38  this.m_itemid = IT_INVINCIBLE;
39  this.m_model = MDL_Shield_ITEM;
40  this.m_sound = SND_Shield;
41  this.m_glow = true;
42  this.m_respawnsound = SND_SHIELD_RESPAWN;
43 #endif
44  this.netname = "invincible";
45  this.m_name = _("Shield");
46  this.m_icon = "shield";
47  this.m_color = '1 0 1';
48  this.m_waypoint = _("Shield");
49  this.m_waypointblink = 2;
50 }
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 ( Shield  ,
NEW(Shield  
)