Xonotic QuakeC
The free, fast arena FPS with crisp movement and a wide array of weapons
HealthMega Class Reference
Inheritance diagram for HealthMega:
Collaboration diagram for HealthMega:

Public Member Functions

 ATTRIB (GameItem, m_canonical_spawnfunc, string)
 the canonical spawnfunc name
 ATTRIB (GameItem, m_icon, string)
 ATTRIB (GameItem, m_name, string)
 ATTRIB (GameItem, m_waypoint, string)
 ATTRIB (Pickup, m_iteminit, void(Pickup this, entity item))
 ATTRIB (Pickup, m_model, Model)
 ATTRIB (Pickup, m_name, string)
 ATTRIB (Pickup, m_pickupanyway, bool)
 ATTRIB (Pickup, m_respawntime, float)
 ATTRIB (Pickup, m_respawntimejitter, float)
 ATTRIB (Pickup, m_skin, int)
 ATTRIB (Pickup, netname, string)
virtual void describe ()
 float (entity player, entity item) m_pickupevalfunc
float generic_pickupevalfunc (entity player, entity item)
virtual void giveTo ()
float Item_GiveTo (entity item, entity player)
void ITEM_HANDLE (Show, GameItem this)
bool ITEM_HANDLE (Pickup, Pickup this, entity item, entity player)
virtual void m_spawnfunc_hookreplace ()
virtual void show ()
 void (Pickup this, entity item) m_iteminit

Public Attributes

int m_botvalue = 5000
string m_canonical_spawnfunc = "item_health_mega"
vector m_color = '1 0 0'
bool m_glow = false
string m_icon = #ifdef 1 (precache_pic(strcat("gfx/hud/luma/", "health_mega")) == "") ? "item_mega_health" : "health_mega" #else "health_mega" #endif
int m_id = 0
int m_itemflags = 0
int m_itemid = IT_RESOURCE
vector m_maxs = ITEM_L_MAXS
vector m_mins = ITEM_D_MINS
Model m_model = MDL_HealthMega_ITEM
string m_name = _("Mega health")
bool m_pickupanyway = autocvar_g_pickup_healthmega_anyway
Sound m_respawnsound = SND_ITEMRESPAWN
float m_respawntime = autocvar_g_pickup_respawntime_health_mega
float m_respawntimejitter = autocvar_g_pickup_respawntimejitter_health_mega
Sound m_sound = SND_HealthMega
string m_waypoint = _("Mega health")
int m_waypointblink = 2
string netname = "health_mega"
int spawnflags = ITEM_FLAG_NORMAL | ITEM_FLAG_RESOURCE

Detailed Description

Definition at line 191 of file health.qh.

Member Function Documentation

◆ ATTRIB() [1/12]

GameItem::ATTRIB ( GameItem ,
m_canonical_spawnfunc ,
string  )
inherited

the canonical spawnfunc name

References ATTRIB().

Referenced by ATTRIB().

◆ ATTRIB() [2/12]

GameItem::ATTRIB ( GameItem ,
m_icon ,
string  )
inherited

◆ ATTRIB() [3/12]

GameItem::ATTRIB ( GameItem ,
m_name ,
string  )
inherited

References m_name.

◆ ATTRIB() [4/12]

GameItem::ATTRIB ( GameItem ,
m_waypoint ,
string  )
inherited

◆ ATTRIB() [5/12]

Pickup::ATTRIB ( Pickup ,
m_iteminit ,
void(Pickup this, entity item)  )
inherited

References entity().

◆ ATTRIB() [6/12]

Pickup::ATTRIB ( Pickup ,
m_model ,
Model  )
inherited

◆ ATTRIB() [7/12]

Pickup::ATTRIB ( Pickup ,
m_name ,
string  )
inherited

References m_name.

◆ ATTRIB() [8/12]

Pickup::ATTRIB ( Pickup ,
m_pickupanyway ,
bool  )
inherited

◆ ATTRIB() [9/12]

Pickup::ATTRIB ( Pickup ,
m_respawntime ,
float  )
inherited

◆ ATTRIB() [10/12]

Pickup::ATTRIB ( Pickup ,
m_respawntimejitter ,
float  )
inherited

◆ ATTRIB() [11/12]

Pickup::ATTRIB ( Pickup ,
m_skin ,
int  )
inherited

References m_skin.

◆ ATTRIB() [12/12]

Pickup::ATTRIB ( Pickup ,
netname ,
string  )
inherited

References netname.

◆ describe()

virtual void GameItem::describe ( )
inlinevirtualinherited

Reimplemented in Powerup.

Definition at line 141 of file item.qh.

142 {
143 TC(GameItem, this);
144 return SUPER(GameItem).describe(this);
145 }
#define TC(T, sym)
Definition _all.inc:82
#define SUPER(cname)
Definition oo.qh:231

References describe(), SUPER, and TC.

Referenced by describe().

◆ float()

Health::float ( entity player,
entity item )
inherited

◆ generic_pickupevalfunc()

float Pickup::generic_pickupevalfunc ( entity player,
entity item )
inherited

References entity().

Referenced by float().

◆ giveTo()

void Pickup::giveTo ( )
virtualinherited

Reimplemented in WeaponPickup.

Definition at line 9 of file pickup.qc.

10{
11 TC(Pickup, this);
12 bool b = Item_GiveTo(item, player);
13 if (b)
14 Inventory_pickupitem(this, player);
15 return b;
16}
float Item_GiveTo(entity item, entity player)
void Inventory_pickupitem(Pickup this, entity player)
Definition inventory.qh:161

References entity(), giveTo(), Inventory_pickupitem(), Item_GiveTo(), and TC.

Referenced by giveTo(), and Item_GiveTo().

◆ Item_GiveTo()

float Pickup::Item_GiveTo ( entity item,
entity player )
inherited

References entity(), and giveTo().

◆ ITEM_HANDLE() [1/2]

void GameItem::ITEM_HANDLE ( Show ,
GameItem this )
inlineinherited

Definition at line 159 of file item.qh.

159{ this.show(this); }
virtual void show()
Definition item.qh:154

References show().

◆ ITEM_HANDLE() [2/2]

bool Pickup::ITEM_HANDLE ( Pickup ,
Pickup this,
entity item,
entity player )
inherited

References entity().

◆ m_spawnfunc_hookreplace()

virtual void GameItem::m_spawnfunc_hookreplace ( )
inlinevirtualinherited

Definition at line 130 of file item.qh.

130{ return this; }

References entity(), m_spawnfunc_hookreplace(), METHOD, and this.

Referenced by m_spawnfunc_hookreplace().

◆ show()

virtual void Pickup::show ( )
inlinevirtualinherited

Reimplemented from GameItem.

Definition at line 14 of file pickup.qh.

15 {
16 TC(Pickup, this);
17 LOG_INFOF("%s: %s", etos(this), this.m_name);
18 }
string m_name
Definition scores.qh:142
#define LOG_INFOF(...)
Definition log.qh:66
string etos(entity e)

References etos(), LOG_INFOF, m_name, show(), and TC.

Referenced by show().

◆ void()

HealthMega::void ( Pickup this,
entity item )

References entity(), and item_healthmega_init().

Member Data Documentation

◆ m_botvalue

int Health::m_botvalue = 5000
inherited

Definition at line 8 of file health.qh.

◆ m_canonical_spawnfunc

string HealthMega::m_canonical_spawnfunc = "item_health_mega"

Definition at line 192 of file health.qh.

◆ m_color

vector HealthMega::m_color = '1 0 0'

Definition at line 209 of file health.qh.

◆ m_glow

bool GameItem::m_glow = false
inherited

Definition at line 137 of file item.qh.

◆ m_icon

string HealthMega::m_icon = #ifdef 1 (precache_pic(strcat("gfx/hud/luma/", "health_mega")) == "") ? "item_mega_health" : "health_mega" #else "health_mega" #endif

Definition at line 208 of file health.qh.

◆ m_id

int GameItem::m_id = 0
inherited

Definition at line 127 of file item.qh.

Referenced by GetAmmoResource(), Item_ItemsTime_SetTime(), and NET_HANDLE().

◆ m_itemflags

int Pickup::m_itemflags = 0
inherited

Definition at line 24 of file pickup.qh.

◆ m_itemid

int HealthMega::m_itemid = IT_RESOURCE

Definition at line 214 of file health.qh.

◆ m_maxs

vector HealthMega::m_maxs = ITEM_L_MAXS

Definition at line 213 of file health.qh.

◆ m_mins

vector Pickup::m_mins = ITEM_D_MINS
inherited

Definition at line 21 of file pickup.qh.

◆ m_model

Model HealthMega::m_model = MDL_HealthMega_ITEM

Definition at line 195 of file health.qh.

◆ m_name

string HealthMega::m_name = _("Mega health")

Definition at line 199 of file health.qh.

◆ m_pickupanyway

bool HealthMega::m_pickupanyway = autocvar_g_pickup_healthmega_anyway

Definition at line 217 of file health.qh.

◆ m_respawnsound

Sound GameItem::m_respawnsound = SND_ITEMRESPAWN
inherited

Definition at line 138 of file item.qh.

◆ m_respawntime

float HealthMega::m_respawntime = autocvar_g_pickup_respawntime_health_mega

Definition at line 215 of file health.qh.

◆ m_respawntimejitter

float HealthMega::m_respawntimejitter = autocvar_g_pickup_respawntimejitter_health_mega

Definition at line 216 of file health.qh.

◆ m_sound

Sound HealthMega::m_sound = SND_HealthMega

Definition at line 196 of file health.qh.

◆ m_waypoint

string HealthMega::m_waypoint = _("Mega health")

Definition at line 210 of file health.qh.

◆ m_waypointblink

int HealthMega::m_waypointblink = 2

Definition at line 211 of file health.qh.

◆ netname

string HealthMega::netname = "health_mega"

Definition at line 198 of file health.qh.

◆ spawnflags

int HealthMega::spawnflags = ITEM_FLAG_NORMAL | ITEM_FLAG_RESOURCE

Definition at line 194 of file health.qh.


The documentation for this class was generated from the following file: