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

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 = 0
 vehicle 3rd person view distance More...
 
string hud_model = ""
 cockpit model More...
 
vector m_maxs = '0 0 0'
 vehicle hitbox size More...
 
vector m_mins = '-0 -0 -0'
 vehicle hitbox size More...
 
string mdl = ""
 currently a copy of the model More...
 
string model = ""
 full name of model More...
 
string netname = ""
 short name More...
 
int spawnflags = 0
 
string vehicle_name = "Vehicle"
 human readable name More...
 
int vehicleid = 0
 
vector view_ofs = '0 0 0'
 vehicle 3rd person view offset More...
 

Detailed Description

Definition at line 3 of file vehicle.qh.

Member Function Documentation

◆ ATTRIB() [1/5]

Vehicle::ATTRIB ( Vehicle  ,
m_icon  ,
string   
)

hud icon

◆ ATTRIB() [2/5]

Vehicle::ATTRIB ( Vehicle  ,
tag_head  ,
string   
)

tur_head model tag

◆ ATTRIB() [3/5]

Vehicle::ATTRIB ( Vehicle  ,
tag_hud  ,
string   
)

hud model tag

◆ ATTRIB() [4/5]

Vehicle::ATTRIB ( Vehicle  ,
tag_view  ,
string   
)

cockpit model tag

◆ ATTRIB() [5/5]

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

player physics mod

◆ Vehicle ::vr_crosshair()

virtual void Vehicle::Vehicle ::vr_crosshair ( )
inlinevirtual

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

(SERVER) called when vehicle dies

Definition at line 43 of file vehicle.qh.

43 { }

◆ Vehicle ::vr_enter()

virtual void Vehicle::Vehicle ::vr_enter ( )
inlinevirtual

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

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

(CLIENT) logic to run every frame

Definition at line 57 of file vehicle.qh.

57 { }

◆ Vehicle ::vr_impact()

virtual void Vehicle::Vehicle ::vr_impact ( )
inlinevirtual

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

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

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

(BOTH) setup vehicle data

Definition at line 39 of file vehicle.qh.

39 { }

◆ Vehicle ::vr_spawn()

virtual void Vehicle::Vehicle ::vr_spawn ( )
inlinevirtual

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

(SERVER) logic to run every frame

Definition at line 41 of file vehicle.qh.

41 { }

Member Data Documentation

◆ head_model

string Vehicle::head_model = ""

full name of tur_head model

Definition at line 16 of file vehicle.qh.

Referenced by vehicle_initialize().

◆ height

float Vehicle::height = 0

vehicle 3rd person view distance

Definition at line 36 of file vehicle.qh.

Referenced by View_EventChase().

◆ hud_model

string Vehicle::hud_model = ""

cockpit model

Definition at line 18 of file vehicle.qh.

Referenced by vehicle_initialize().

◆ m_maxs

vector Vehicle::m_maxs = '0 0 0'

vehicle hitbox size

Definition at line 32 of file vehicle.qh.

Referenced by vehicle_initialize().

◆ m_mins

vector Vehicle::m_mins = '-0 -0 -0'

vehicle hitbox size

Definition at line 30 of file vehicle.qh.

Referenced by vehicle_initialize().

◆ mdl

string Vehicle::mdl = ""

currently a copy of the model

Definition at line 14 of file vehicle.qh.

◆ model

string Vehicle::model = ""

full name of model

Definition at line 12 of file vehicle.qh.

Referenced by vehicle_initialize().

◆ netname

string Vehicle::netname = ""

short name

Definition at line 8 of file vehicle.qh.

◆ spawnflags

int Vehicle::spawnflags = 0

Definition at line 28 of file vehicle.qh.

◆ vehicle_name

string Vehicle::vehicle_name = "Vehicle"

human readable name

Definition at line 10 of file vehicle.qh.

◆ vehicleid

int Vehicle::vehicleid = 0

Definition at line 4 of file vehicle.qh.

Referenced by vehicle_initialize().

◆ view_ofs

vector Vehicle::view_ofs = '0 0 0'

vehicle 3rd person view offset

Definition at line 34 of file vehicle.qh.

Referenced by View_EventChase().


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