Xonotic QuakeC
The free, fast arena FPS with crisp movement and a wide array of weapons
Racer Class Reference
Inheritance diagram for Racer:
Collaboration diagram for Racer:

Public Member Functions

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

Public Attributes

string head_model = "null"
float height = 200
string hud_model = "models/vehicles/wakizashi_cockpit.dpm"
vector m_color = '1 1 1'
 color
string m_icon = "vehicle_racer"
vector m_maxs = '120 120 40' * 0.5
vector m_mins = '-120 -120 -40' * 0.5
string m_name = _("Racer")
string mdl = "models/vehicles/wakizashi.dpm"
string model = "models/vehicles/wakizashi.dpm"
string netname = "racer"
int spawnflags = VHF_DMGSHAKE | VHF_DMGROLL
string tag_head = ""
string tag_hud = ""
string tag_view = "tag_viewport"
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

References ATTRIB().

Referenced by ATTRIB(), ATTRIB(), ATTRIB(), ATTRIB(), and ATTRIB().

◆ ATTRIB() [2/5]

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

player physics mod

References ATTRIB(), and entity().

◆ ATTRIB() [3/5]

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

tur_head model tag

References ATTRIB().

◆ ATTRIB() [4/5]

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

hud model tag

References ATTRIB().

◆ ATTRIB() [5/5]

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

cockpit model tag

References ATTRIB().

◆ describe()

virtual void Vehicle::describe ( )
inlinevirtualinherited

Definition at line 45 of file vehicle.qh.

46 {
47 TC(Vehicle, this);
48 return SUPER(Vehicle).describe(this);
49 }
#define TC(T, sym)
Definition _all.inc:82
#define SUPER(cname)
Definition oo.qh:231

References describe(), SUPER, and TC.

Referenced by describe().

◆ vr_crosshair()

virtual void Vehicle::vr_crosshair ( )
inlinevirtualinherited

(CLIENT) logic to run every frame

Definition at line 80 of file vehicle.qh.

80{ }

References entity(), and vr_crosshair().

Referenced by HUD_Crosshair_Vehicle(), and vr_crosshair().

◆ vr_death()

virtual void Vehicle::vr_death ( )
inlinevirtualinherited

(SERVER) called when vehicle dies

Definition at line 64 of file vehicle.qh.

64{ }

References entity(), and vr_death().

Referenced by vehicles_damage(), and vr_death().

◆ vr_enter()

virtual void Vehicle::vr_enter ( )
inlinevirtualinherited

(SERVER) called when a player enters this vehicle

Definition at line 68 of file vehicle.qh.

68{ }

References entity(), and vr_enter().

Referenced by vehicles_enter(), and vr_enter().

◆ vr_gunner_enter()

virtual void Vehicle::vr_gunner_enter ( )
inlinevirtualinherited

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

Definition at line 70 of file vehicle.qh.

70{ }

References entity(), and vr_gunner_enter().

Referenced by vehicles_enter(), and vr_gunner_enter().

◆ vr_hud()

virtual void Vehicle::vr_hud ( )
inlinevirtualinherited

(CLIENT) logic to run every frame

Definition at line 78 of file vehicle.qh.

78{ }

References vr_hud().

Referenced by HUD_Vehicle(), and vr_hud().

◆ vr_impact()

virtual void Vehicle::vr_impact ( )
inlinevirtualinherited

(SERVER) called when a vehicle hits something

Definition at line 74 of file vehicle.qh.

74{ }

References entity(), and vr_impact().

Referenced by vehicles_touch(), and vr_impact().

◆ vr_precache()

virtual void Vehicle::vr_precache ( )
inlinevirtualinherited

(BOTH) precaches models/sounds used by this vehicle

Definition at line 66 of file vehicle.qh.

66{ }

References vr_precache().

Referenced by vehicle_initialize(), and vr_precache().

◆ vr_setcolors()

virtual void Vehicle::vr_setcolors ( )
inlinevirtualinherited

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

Definition at line 76 of file vehicle.qh.

76{ }

References entity(), and vr_setcolors().

Referenced by vehicles_reset_colors(), and vr_setcolors().

◆ vr_setup()

virtual void Vehicle::vr_setup ( )
inlinevirtualinherited

(BOTH) setup vehicle data

Definition at line 60 of file vehicle.qh.

60{ }

References entity(), and vr_setup().

Referenced by NET_HANDLE(), vehicle_initialize(), and vr_setup().

◆ vr_spawn()

virtual void Vehicle::vr_spawn ( )
inlinevirtualinherited

(SERVER) called when the vehicle re-spawns

Definition at line 72 of file vehicle.qh.

72{ }

References entity(), and vr_spawn().

Referenced by vr_spawn().

◆ vr_think()

virtual void Vehicle::vr_think ( )
inlinevirtualinherited

(SERVER) logic to run every frame

Definition at line 62 of file vehicle.qh.

62{ }

References entity(), and vr_think().

Referenced by vehicles_think(), and vr_think().

Member Data Documentation

◆ head_model

string Racer::head_model = "null"

Definition at line 14 of file racer.qh.

◆ height

float Racer::height = 200

Definition at line 10 of file racer.qh.

◆ hud_model

string Racer::hud_model = "models/vehicles/wakizashi_cockpit.dpm"

Definition at line 15 of file racer.qh.

◆ m_color

vector Vehicle::m_color = '1 1 1'
inherited

color

Definition at line 16 of file vehicle.qh.

◆ 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.

◆ m_name

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

Definition at line 21 of file racer.qh.

◆ mdl

string Racer::mdl = "models/vehicles/wakizashi.dpm"

Definition at line 12 of file racer.qh.

◆ model

string Racer::model = "models/vehicles/wakizashi.dpm"

Definition at line 13 of file racer.qh.

◆ 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.

◆ tag_head

string Racer::tag_head = ""

Definition at line 16 of file racer.qh.

◆ tag_hud

string Racer::tag_hud = ""

Definition at line 17 of file racer.qh.

◆ tag_view

string Racer::tag_view = "tag_viewport"

Definition at line 18 of file racer.qh.

◆ vehicleid

int Vehicle::vehicleid = 0
inherited

Definition at line 8 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: