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

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 = 200
 
string hud_model = ""
 cockpit model More...
 
string m_icon = "vehicle_racer"
 
vector m_maxs = '120 120 40' * 0.5
 
vector m_mins = '-120 -120 -40' * 0.5
 
string mdl = ""
 currently a copy of the model More...
 
string model = ""
 full name of model More...
 
string netname = "racer"
 
int spawnflags = VHF_DMGSHAKE | VHF_DMGROLL
 
string vehicle_name = _("Racer")
 
int vehicleid = 0
 
vector view_ofs = '0 0 50'
 

Detailed Description

Definition at line 5 of file racer.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 Racer::height = 200

Definition at line 10 of file racer.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 Racer::m_icon = "vehicle_racer"

Definition at line 22 of file racer.qh.

◆ m_maxs

vector Racer::m_maxs = '120 120 40' * 0.5

Definition at line 8 of file racer.qh.

◆ m_mins

vector Racer::m_mins = '-120 -120 -40' * 0.5

Definition at line 7 of file racer.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 Racer::netname = "racer"

Definition at line 20 of file racer.qh.

◆ spawnflags

int Racer::spawnflags = VHF_DMGSHAKE | VHF_DMGROLL

Definition at line 6 of file racer.qh.

◆ vehicle_name

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

Definition at line 21 of file racer.qh.

◆ vehicleid

int Vehicle::vehicleid = 0
inherited

Definition at line 4 of file vehicle.qh.

Referenced by vehicle_initialize().

◆ view_ofs

vector Racer::view_ofs = '0 0 50'

Definition at line 9 of file racer.qh.


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