55 returns(this.m_name, icon_path_from_HUDskin(this.m_icon));
#define BIT(n)
Only ever assign into the first 24 bits in QC (so max is BIT(23)).
var entity(vector mins, vector maxs,.entity tofield) findbox_tofield_OrFallback
virtual void vr_gunner_enter()
(SERVER) called when a player enters this vehicle while occupied
string hud_model
cockpit model
string head_model
full name of tur_head model
virtual void vr_spawn()
(SERVER) called when the vehicle re-spawns
vector m_mins
vehicle hitbox size
float height
vehicle 3rd person view distance
virtual void vr_crosshair()
(CLIENT) logic to run every frame
string model
full name of model
virtual void vr_precache()
(BOTH) precaches models/sounds used by this vehicle
virtual void vr_impact()
(SERVER) called when a vehicle hits something
virtual void vr_think()
(SERVER) logic to run every frame
string m_name
human readable name
virtual void vr_enter()
(SERVER) called when a player enters this vehicle
string mdl
currently a copy of the model
virtual void vr_setup()
(BOTH) setup vehicle data
virtual void vr_death()
(SERVER) called when vehicle dies
vector view_ofs
vehicle 3rd person view offset
vector m_maxs
vehicle hitbox size
virtual void vr_hud()
(CLIENT) logic to run every frame
virtual void vr_setcolors()
(SERVER) called when a vehicle's colors are being reset, so modules can be updated
ATTRIB(Vehicle, m_icon, string)
hud icon
#define METHOD(cname, name, prototype)
const int VHF_PLAYERSLOT
Vehicle has multiple player slots.
const int VHF_MOVE_FLY
Vehicle hover close to gound.
const int VHF_HASSHIELD
Indicates vehicle.
const int VHF_MOVE_HOVER
Vehicle moves on gound.
const int VHF_MULTISLOT
Add random head angles each frame if health < 50%.
const int VHF_HEALTHREGEN
Vehicles shield regenerates.
const int VHF_DMGSHAKE
Vehicle is airborn.
const int VHF_DMGHEADROLL
Add random angles each frame if health < 50%.
const int VHF_MOVE_GROUND
Vehicle ejects pilot upon fatal damage.
const int VHF_ENERGYREGEN
Vehicles health regenerates.
const int VHF_SHIELDREGEN
Vehicle has shileding.
const int VHF_DEATHEJECT
Vehicles energy regenerates.
const int VHF_DMGROLL
Add random velocity each frame if health < 50%.