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

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 = ""
float height = 450
string hud_model = "models/vehicles/spiderbot_cockpit.dpm"
vector m_color = '1 1 1'
 color
string m_icon = "vehicle_bumble"
vector m_maxs = '230 130 130'
vector m_mins = '-245 -130 -130'
string m_name = _("Bumblebee")
string mdl = "models/vehicles/bumblebee_body.dpm"
string model = "models/vehicles/bumblebee_body.dpm"
string netname = "bumblebee"
int spawnflags = VHF_DMGSHAKE
string tag_head = ""
string tag_hud = ""
string tag_view = "tag_viewport"
int vehicleid = 0
vector view_ofs = '0 0 300'

Detailed Description

Definition at line 5 of file bumblebee.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 Bumblebee::head_model = ""

Definition at line 14 of file bumblebee.qh.

◆ height

float Bumblebee::height = 450

Definition at line 10 of file bumblebee.qh.

◆ hud_model

string Bumblebee::hud_model = "models/vehicles/spiderbot_cockpit.dpm"

Definition at line 15 of file bumblebee.qh.

◆ m_color

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

color

Definition at line 16 of file vehicle.qh.

◆ m_icon

string Bumblebee::m_icon = "vehicle_bumble"

Definition at line 22 of file bumblebee.qh.

◆ m_maxs

vector Bumblebee::m_maxs = '230 130 130'

Definition at line 8 of file bumblebee.qh.

◆ m_mins

vector Bumblebee::m_mins = '-245 -130 -130'

Definition at line 7 of file bumblebee.qh.

◆ m_name

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

Definition at line 21 of file bumblebee.qh.

◆ mdl

string Bumblebee::mdl = "models/vehicles/bumblebee_body.dpm"

Definition at line 12 of file bumblebee.qh.

◆ model

string Bumblebee::model = "models/vehicles/bumblebee_body.dpm"

Definition at line 13 of file bumblebee.qh.

◆ netname

string Bumblebee::netname = "bumblebee"

Definition at line 20 of file bumblebee.qh.

◆ spawnflags

int Bumblebee::spawnflags = VHF_DMGSHAKE

Definition at line 6 of file bumblebee.qh.

◆ tag_head

string Bumblebee::tag_head = ""

Definition at line 16 of file bumblebee.qh.

◆ tag_hud

string Bumblebee::tag_hud = ""

Definition at line 17 of file bumblebee.qh.

◆ tag_view

string Bumblebee::tag_view = "tag_viewport"

Definition at line 18 of file bumblebee.qh.

◆ vehicleid

int Vehicle::vehicleid = 0
inherited

Definition at line 8 of file vehicle.qh.

Referenced by vehicle_initialize().

◆ view_ofs

vector Bumblebee::view_ofs = '0 0 300'

Definition at line 9 of file bumblebee.qh.


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