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

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 = ""
 full name of tur_head model
float height = 0
 vehicle 3rd person view distance
string hud_model = ""
 cockpit model
vector m_color = '1 1 1'
 color
bool m_hidden = true
vector m_maxs = '0 0 0'
 vehicle hitbox size
vector m_mins = '-0 -0 -0'
 vehicle hitbox size
string m_name = _("Vehicle")
 human readable name
string mdl = ""
 currently a copy of the model
string model = ""
 full name of model
string netname = ""
 short name
int spawnflags = 0
int vehicleid = 0
vector view_ofs = '0 0 0'
 vehicle 3rd person view offset

Detailed Description

Definition at line 20 of file all.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 Vehicle::head_model = ""
inherited

full name of tur_head model

Definition at line 22 of file vehicle.qh.

Referenced by vehicle_initialize().

◆ height

float Vehicle::height = 0
inherited

vehicle 3rd person view distance

Definition at line 42 of file vehicle.qh.

Referenced by View_EventChase().

◆ hud_model

string Vehicle::hud_model = ""
inherited

cockpit model

Definition at line 24 of file vehicle.qh.

Referenced by vehicle_initialize().

◆ m_color

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

color

Definition at line 16 of file vehicle.qh.

◆ m_hidden

bool NullVehicle::m_hidden = true

Definition at line 21 of file all.qh.

◆ m_maxs

vector Vehicle::m_maxs = '0 0 0'
inherited

vehicle hitbox size

Definition at line 38 of file vehicle.qh.

Referenced by vehicle_initialize().

◆ m_mins

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

vehicle hitbox size

Definition at line 36 of file vehicle.qh.

Referenced by vehicle_initialize().

◆ m_name

string Vehicle::m_name = _("Vehicle")
inherited

human readable name

Definition at line 14 of file vehicle.qh.

◆ mdl

string Vehicle::mdl = ""
inherited

currently a copy of the model

Definition at line 20 of file vehicle.qh.

◆ model

string Vehicle::model = ""
inherited

full name of model

Definition at line 18 of file vehicle.qh.

Referenced by vehicle_initialize().

◆ netname

string Vehicle::netname = ""
inherited

short name

Definition at line 12 of file vehicle.qh.

◆ spawnflags

int Vehicle::spawnflags = 0
inherited

Definition at line 34 of file vehicle.qh.

◆ vehicleid

int Vehicle::vehicleid = 0
inherited

Definition at line 8 of file vehicle.qh.

Referenced by vehicle_initialize().

◆ view_ofs

vector Vehicle::view_ofs = '0 0 0'
inherited

vehicle 3rd person view offset

Definition at line 40 of file vehicle.qh.

Referenced by View_EventChase().


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