Xonotic
DualPlasmaTurret Class Reference
+ Inheritance diagram for DualPlasmaTurret:
+ Collaboration diagram for DualPlasmaTurret:

Public Member Functions

 ATTRIB (Turret, netname, string)
 short name More...
 
 ATTRIB (Turret, mdl, string)
 currently a copy of the model More...
 
 ATTRIB (Turret, model, string)
 full name of model More...
 
 ATTRIB (Turret, head_model, string)
 full name of tur_head model More...
 
 ATTRIB (Turret, m_weapon, Weapon)
 
virtual void Turret ::display ()
 
virtual void Turret ::tr_config ()
 (SERVER) dump turret cvars to config in data directory (see: sv_cmd dumpturrets) More...
 
virtual void Turret ::tr_death ()
 (SERVER) called when turret dies More...
 
virtual void Turret ::tr_precache ()
 (BOTH) precaches models/sounds used by this turret More...
 
virtual void Turret ::tr_setup ()
 (BOTH) setup turret data More...
 
virtual void Turret ::tr_think ()
 (SERVER) logic to run every frame More...
 

Public Attributes

string head_model = strcat("models/turrets/", "plasmad.md3")
 
int m_id = 0
 
vector m_maxs = '32 32 64'
 
vector m_mins = '-32 -32 0'
 
Weapon m_weapon = WEP_PLASMA_DUAL
 
string mdl = "base.md3"
 
string model = strcat("models/turrets/", this.mdl)
 
string netname = "plasma_dual"
 
int spawnflags = TUR_FLAG_SPLASH | TUR_FLAG_MEDPROJ | TUR_FLAG_PLAYER
 
string turret_name = _("Dual Plasma Cannon")
 

Detailed Description

Definition at line 12 of file plasma_dual.qh.

Member Function Documentation

◆ ATTRIB() [1/5]

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

short name

◆ ATTRIB() [2/5]

Turret::ATTRIB ( Turret  ,
mdl  ,
string   
)
inherited

currently a copy of the model

◆ ATTRIB() [3/5]

Turret::ATTRIB ( Turret  ,
model  ,
string   
)
inherited

full name of model

◆ ATTRIB() [4/5]

Turret::ATTRIB ( Turret  ,
head_model  ,
string   
)
inherited

full name of tur_head model

◆ ATTRIB() [5/5]

Turret::ATTRIB ( Turret  ,
m_weapon  ,
Weapon   
)
inherited

◆ Turret ::display()

virtual void Turret::Turret ::display ( )
inlinevirtualinherited

Definition at line 25 of file turret.qh.

References string_null.

25  {
26  returns(this.turret_name, string_null);
27  }
string string_null
Definition: nil.qh:9
string turret_name
human readable name
Definition: turret.qh:11

◆ Turret ::tr_config()

virtual void Turret::Turret ::tr_config ( )
inlinevirtualinherited

(SERVER) dump turret cvars to config in data directory (see: sv_cmd dumpturrets)

Definition at line 54 of file turret.qh.

References ENDCLASS.

54 { }

◆ Turret ::tr_death()

virtual void Turret::Turret ::tr_death ( )
inlinevirtualinherited

(SERVER) called when turret dies

Definition at line 37 of file turret.qh.

37  {
38 
39  }

◆ Turret ::tr_precache()

virtual void Turret::Turret ::tr_precache ( )
inlinevirtualinherited

(BOTH) precaches models/sounds used by this turret

Definition at line 41 of file turret.qh.

References ATTRIB, entity(), METHOD, and weaponentities.

41  {
42 
43  }
+ Here is the call graph for this function:

◆ Turret ::tr_setup()

virtual void Turret::Turret ::tr_setup ( )
inlinevirtualinherited

(BOTH) setup turret data

Definition at line 29 of file turret.qh.

29  {
30 
31  }

◆ Turret ::tr_think()

virtual void Turret::Turret ::tr_think ( )
inlinevirtualinherited

(SERVER) logic to run every frame

Definition at line 33 of file turret.qh.

33  {
34 
35  }

Member Data Documentation

◆ head_model

string DualPlasmaTurret::head_model = strcat("models/turrets/", "plasmad.md3")

Definition at line 18 of file plasma_dual.qh.

◆ m_id

int Turret::m_id = 0
inherited

Definition at line 6 of file turret.qh.

◆ m_maxs

vector DualPlasmaTurret::m_maxs = '32 32 64'

Definition at line 15 of file plasma_dual.qh.

◆ m_mins

vector DualPlasmaTurret::m_mins = '-32 -32 0'

Definition at line 14 of file plasma_dual.qh.

◆ m_weapon

Weapon DualPlasmaTurret::m_weapon = WEP_PLASMA_DUAL

Definition at line 21 of file plasma_dual.qh.

◆ mdl

string DualPlasmaTurret::mdl = "base.md3"

Definition at line 16 of file plasma_dual.qh.

◆ model

string DualPlasmaTurret::model = strcat("models/turrets/", this.mdl)

Definition at line 17 of file plasma_dual.qh.

◆ netname

string DualPlasmaTurret::netname = "plasma_dual"

Definition at line 19 of file plasma_dual.qh.

◆ spawnflags

int DualPlasmaTurret::spawnflags = TUR_FLAG_SPLASH | TUR_FLAG_MEDPROJ | TUR_FLAG_PLAYER

Definition at line 13 of file plasma_dual.qh.

◆ turret_name

string DualPlasmaTurret::turret_name = _("Dual Plasma Cannon")

Definition at line 20 of file plasma_dual.qh.


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