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

Public Member Functions

 ATTRIB (Vehicle, m_icon, string)
 hud icon More...
 
 ATTRIB (Vehicle, tag_head, string)
 tur_head model tag More...
 
 ATTRIB (Vehicle, tag_hud, string)
 hud model tag More...
 
 ATTRIB (Vehicle, tag_view, string)
 cockpit model tag More...
 
 ATTRIB (Vehicle, PlayerPhysplug, bool(entity, float))
 player physics mod More...
 
virtual void Vehicle ::vr_crosshair ()
 (CLIENT) logic to run every frame More...
 
virtual void Vehicle ::vr_death ()
 (SERVER) called when vehicle dies More...
 
virtual void Vehicle ::vr_enter ()
 (SERVER) called when a player enters this vehicle More...
 
virtual void Vehicle ::vr_gunner_enter ()
 (SERVER) called when a player enters this vehicle while occupied More...
 
virtual void Vehicle ::vr_hud ()
 (CLIENT) logic to run every frame More...
 
virtual void Vehicle ::vr_impact ()
 (SERVER) called when a vehicle hits something More...
 
virtual void Vehicle ::vr_precache ()
 (BOTH) precaches models/sounds used by this vehicle More...
 
virtual void Vehicle ::vr_setcolors ()
 (SERVER) called when a vehicle's colors are being reset, so modules can be updated More...
 
virtual void Vehicle ::vr_setup ()
 (BOTH) setup vehicle data More...
 
virtual void Vehicle ::vr_spawn ()
 (SERVER) called when the vehicle re-spawns More...
 
virtual void Vehicle ::vr_think ()
 (SERVER) logic to run every frame More...
 

Public Attributes

string head_model = ""
 full name of tur_head model More...
 
float height = 170
 
string hud_model = ""
 cockpit model More...
 
string m_icon = "vehicle_spider"
 
vector m_maxs = '75 75 125'
 
vector m_mins = '-75 -75 10'
 
string mdl = ""
 currently a copy of the model More...
 
string model = ""
 full name of model More...
 
string netname = "spiderbot"
 
int spawnflags = VHF_DMGSHAKE
 
string vehicle_name = _("Spiderbot")
 
int vehicleid = 0
 
vector view_ofs = '0 0 70'
 

Detailed Description

Definition at line 5 of file spiderbot.qh.

Member Function Documentation

◆ ATTRIB() [1/5]

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

hud icon

◆ ATTRIB() [2/5]

Vehicle::ATTRIB ( Vehicle  ,
tag_head  ,
string   
)
inherited

tur_head model tag

◆ ATTRIB() [3/5]

Vehicle::ATTRIB ( Vehicle  ,
tag_hud  ,
string   
)
inherited

hud model tag

◆ ATTRIB() [4/5]

Vehicle::ATTRIB ( Vehicle  ,
tag_view  ,
string   
)
inherited

cockpit model tag

◆ ATTRIB() [5/5]

Vehicle::ATTRIB ( Vehicle  ,
PlayerPhysplug  ,
bool(entity, float  
)
inherited

player physics mod

◆ Vehicle ::vr_crosshair()

virtual void Vehicle::Vehicle ::vr_crosshair ( )
inlinevirtualinherited

(CLIENT) logic to run every frame

Definition at line 59 of file vehicle.qh.

References ENDCLASS.

59 { }

◆ Vehicle ::vr_death()

virtual void Vehicle::Vehicle ::vr_death ( )
inlinevirtualinherited

(SERVER) called when vehicle dies

Definition at line 43 of file vehicle.qh.

43 { }

◆ Vehicle ::vr_enter()

virtual void Vehicle::Vehicle ::vr_enter ( )
inlinevirtualinherited

(SERVER) called when a player enters this vehicle

Definition at line 47 of file vehicle.qh.

47 { }

◆ Vehicle ::vr_gunner_enter()

virtual void Vehicle::Vehicle ::vr_gunner_enter ( )
inlinevirtualinherited

(SERVER) called when a player enters this vehicle while occupied

Definition at line 49 of file vehicle.qh.

49 { }

◆ Vehicle ::vr_hud()

virtual void Vehicle::Vehicle ::vr_hud ( )
inlinevirtualinherited

(CLIENT) logic to run every frame

Definition at line 57 of file vehicle.qh.

57 { }

◆ Vehicle ::vr_impact()

virtual void Vehicle::Vehicle ::vr_impact ( )
inlinevirtualinherited

(SERVER) called when a vehicle hits something

Definition at line 53 of file vehicle.qh.

53 { }

◆ Vehicle ::vr_precache()

virtual void Vehicle::Vehicle ::vr_precache ( )
inlinevirtualinherited

(BOTH) precaches models/sounds used by this vehicle

Definition at line 45 of file vehicle.qh.

45 { }

◆ Vehicle ::vr_setcolors()

virtual void Vehicle::Vehicle ::vr_setcolors ( )
inlinevirtualinherited

(SERVER) called when a vehicle's colors are being reset, so modules can be updated

Definition at line 55 of file vehicle.qh.

55 { }

◆ Vehicle ::vr_setup()

virtual void Vehicle::Vehicle ::vr_setup ( )
inlinevirtualinherited

(BOTH) setup vehicle data

Definition at line 39 of file vehicle.qh.

39 { }

◆ Vehicle ::vr_spawn()

virtual void Vehicle::Vehicle ::vr_spawn ( )
inlinevirtualinherited

(SERVER) called when the vehicle re-spawns

Definition at line 51 of file vehicle.qh.

51 { }

◆ Vehicle ::vr_think()

virtual void Vehicle::Vehicle ::vr_think ( )
inlinevirtualinherited

(SERVER) logic to run every frame

Definition at line 41 of file vehicle.qh.

41 { }

Member Data Documentation

◆ head_model

string Vehicle::head_model = ""
inherited

full name of tur_head model

Definition at line 16 of file vehicle.qh.

Referenced by vehicle_initialize().

◆ height

float Spiderbot::height = 170

Definition at line 10 of file spiderbot.qh.

◆ hud_model

string Vehicle::hud_model = ""
inherited

cockpit model

Definition at line 18 of file vehicle.qh.

Referenced by vehicle_initialize().

◆ m_icon

string Spiderbot::m_icon = "vehicle_spider"

Definition at line 22 of file spiderbot.qh.

◆ m_maxs

vector Spiderbot::m_maxs = '75 75 125'

Definition at line 8 of file spiderbot.qh.

◆ m_mins

vector Spiderbot::m_mins = '-75 -75 10'

Definition at line 7 of file spiderbot.qh.

◆ mdl

string Vehicle::mdl = ""
inherited

currently a copy of the model

Definition at line 14 of file vehicle.qh.

◆ model

string Vehicle::model = ""
inherited

full name of model

Definition at line 12 of file vehicle.qh.

Referenced by vehicle_initialize().

◆ netname

string Spiderbot::netname = "spiderbot"

Definition at line 20 of file spiderbot.qh.

◆ spawnflags

int Spiderbot::spawnflags = VHF_DMGSHAKE

Definition at line 6 of file spiderbot.qh.

◆ vehicle_name

string Spiderbot::vehicle_name = _("Spiderbot")

Definition at line 21 of file spiderbot.qh.

◆ vehicleid

int Vehicle::vehicleid = 0
inherited

Definition at line 4 of file vehicle.qh.

Referenced by vehicle_initialize().

◆ view_ofs

vector Spiderbot::view_ofs = '0 0 70'

Definition at line 9 of file spiderbot.qh.


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