Xonotic
racer.qh
Go to the documentation of this file.
1 #pragma once
2 
3 #include "racer_weapon.qh"
4 
6 /* spawnflags */ ATTRIB(Racer, spawnflags, int, VHF_DMGSHAKE | VHF_DMGROLL);
7 /* mins */ ATTRIB(Racer, m_mins, vector, '-120 -120 -40' * 0.5);
8 /* maxs */ ATTRIB(Racer, m_maxs, vector, '120 120 40' * 0.5);
9 /* view offset*/ ATTRIB(Racer, view_ofs, vector, '0 0 50');
10 /* view dist */ ATTRIB(Racer, height, float, 200);
11 #ifdef GAMEQC
12 /* model */ ATTRIB(Racer, mdl, string, "models/vehicles/wakizashi.dpm");
13 /* model */ ATTRIB(Racer, model, string, "models/vehicles/wakizashi.dpm");
14 /* head_model */ ATTRIB(Racer, head_model, string, "null");
15 /* hud_model */ ATTRIB(Racer, hud_model, string, "models/vehicles/wakizashi_cockpit.dpm");
16 /* tags */ ATTRIB(Racer, tag_head, string, "");
17 /* tags */ ATTRIB(Racer, tag_hud, string, "");
18 /* tags */ ATTRIB(Racer, tag_view, string, "tag_viewport");
19 #endif
20 /* netname */ ATTRIB(Racer, netname, string, "racer");
21 /* fullname */ ATTRIB(Racer, vehicle_name, string, _("Racer"));
22 /* icon */ ATTRIB(Racer, m_icon, string, "vehicle_racer");
23 ENDCLASS(Racer)
24 REGISTER_VEHICLE(RACER, NEW(Racer));
#define NEW(cname,...)
Definition: oo.qh:105
vector view_ofs
Definition: progsdefs.qc:151
CLASS(Object) Object
Definition: oo.qh:318
const int VHF_DMGROLL
Add random velocity each frame if health < 50%.
Definition: vehicle.qh:73
const int VHF_DMGSHAKE
Vehicle is airborn.
Definition: vehicle.qh:72
string netname
Definition: powerups.qc:20
float spawnflags
Definition: progsdefs.qc:191
string model
Definition: csprogsdefs.qc:108
#define ATTRIB(...)
Definition: oo.qh:136
float height
Definition: jumppads.qh:12
vector(float skel, float bonenum) _skel_get_boneabs_hidden
REGISTER_VEHICLE(RACER, NEW(Racer))
#define ENDCLASS(cname)
Definition: oo.qh:269
Definition: racer.qh:5