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

Go to the source code of this file.

Classes

class  Speed
 

Functions

 REGISTER_ITEM (Speed, Powerup)
 
 REGISTER_STATUSEFFECT (Speed, NEW(Speed))
 

Function Documentation

◆ REGISTER_ITEM()

REGISTER_ITEM ( Speed  ,
Powerup   
)

Definition at line 29 of file speed.qh.

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

29  {
30  this.m_canonical_spawnfunc = "item_speed";
31 #ifdef SVQC
32  if(autocvar_g_powerups_speed)
34  else
36 
37  this.m_iteminit = powerup_speed_init;
38 #endif
39 #ifdef GAMEQC
40  this.m_itemid = IT_SPEED;
41  this.m_model = MDL_BUFF; // TODO: MDL_Speed_ITEM when new model available
42  this.m_skin = 9;
43  this.m_sound = SND_Speed;
44  this.m_glow = true;
45  this.m_respawnsound = SND_SHIELD_RESPAWN;
46 #endif
47  this.netname = "speed";
48  this.m_name = _("Speed");
49  this.m_icon = "buff_speed";
50  this.m_color = '0.1 1 0.84';
51  this.m_waypoint = _("Speed");
52  this.m_waypointblink = 2;
53 }
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 ( Speed  ,
NEW(Speed  
)