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

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

int m_id = 0
 
vector m_maxs = '0 0 0'
 turret hitbox size More...
 
vector m_mins = '-0 -0 -0'
 turret hitbox size More...
 
int spawnflags = 0
 
string turret_name = _("Turret")
 human readable name More...
 

Detailed Description

Definition at line 5 of file turret.qh.

Member Function Documentation

◆ ATTRIB() [1/5]

Turret::ATTRIB ( Turret  ,
netname  ,
string   
)

short name

◆ ATTRIB() [2/5]

Turret::ATTRIB ( Turret  ,
mdl  ,
string   
)

currently a copy of the model

◆ ATTRIB() [3/5]

Turret::ATTRIB ( Turret  ,
model  ,
string   
)

full name of model

◆ ATTRIB() [4/5]

Turret::ATTRIB ( Turret  ,
head_model  ,
string   
)

full name of tur_head model

◆ ATTRIB() [5/5]

Turret::ATTRIB ( Turret  ,
m_weapon  ,
Weapon   
)

◆ Turret ::display()

virtual void Turret::Turret ::display ( )
inlinevirtual

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 ( )
inlinevirtual

(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 ( )
inlinevirtual

(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 ( )
inlinevirtual

(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 ( )
inlinevirtual

(BOTH) setup turret data

Definition at line 29 of file turret.qh.

29  {
30 
31  }

◆ Turret ::tr_think()

virtual void Turret::Turret ::tr_think ( )
inlinevirtual

(SERVER) logic to run every frame

Definition at line 33 of file turret.qh.

33  {
34 
35  }

Member Data Documentation

◆ m_id

int Turret::m_id = 0

Definition at line 6 of file turret.qh.

◆ m_maxs

vector Turret::m_maxs = '0 0 0'

turret hitbox size

Definition at line 23 of file turret.qh.

◆ m_mins

vector Turret::m_mins = '-0 -0 -0'

turret hitbox size

Definition at line 21 of file turret.qh.

◆ spawnflags

int Turret::spawnflags = 0

Definition at line 19 of file turret.qh.

◆ turret_name

string Turret::turret_name = _("Turret")

human readable name

Definition at line 11 of file turret.qh.


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