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

Go to the source code of this file.

Classes

class  Invisibility
 

Functions

 REGISTER_ITEM (Invisibility, Powerup)
 
 REGISTER_STATUSEFFECT (Invisibility, NEW(Invisibility))
 

Function Documentation

◆ REGISTER_ITEM()

REGISTER_ITEM ( Invisibility  ,
Powerup   
)

Definition at line 28 of file invisibility.qh.

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

28  {
29  this.m_canonical_spawnfunc = "item_invisibility";
30 #ifdef SVQC
31  if(autocvar_g_powerups_invisibility)
33  else
35 
36  this.m_iteminit = powerup_invisibility_init;
37 #endif
38 #ifdef GAMEQC
40  this.m_model = MDL_BUFF; // TODO: MDL_Invisibility_ITEM when new model available
41  this.m_skin = 12;
42  this.m_sound = SND_Invisibility;
43  this.m_glow = true;
44  this.m_respawnsound = SND_STRENGTH_RESPAWN;
45 #endif
46  this.netname = "invisibility";
47  this.m_name = _("Invisibility");
48  this.m_icon = "buff_invisible";
49  this.m_color = '0.5 0.5 1';
50  this.m_waypoint = _("Invisibility");
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
float IT_INVISIBILITY
Definition: progsdefs.qc:310
string m_name
Definition: scores.qh:135

◆ REGISTER_STATUSEFFECT()

REGISTER_STATUSEFFECT ( Invisibility  ,
NEW(Invisibility  
)