Xonotic QuakeC
The free, fast arena FPS with crisp movement and a wide array of weapons
racer.qh
Go to the documentation of this file.
1
#pragma once
2
3
#include "
racer_weapon.qh
"
4
5
CLASS
(
Racer
,
Vehicle
)
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
,
m_name
,
string
, _(
"Racer"
));
22
/* icon */
ATTRIB
(
Racer
,
m_icon
,
string
,
"vehicle_racer"
);
23
ENDCLASS
(
Racer
)
24
REGISTER_VEHICLE
(RACER,
NEW
(
Racer
));
Racer
Definition
racer.qh:5
Racer::view_ofs
vector view_ofs
Definition
racer.qh:9
Racer::spawnflags
int spawnflags
Definition
racer.qh:6
Racer::m_mins
vector m_mins
Definition
racer.qh:7
Racer::tag_head
string tag_head
Definition
racer.qh:16
Racer::tag_view
string tag_view
Definition
racer.qh:18
Racer::head_model
string head_model
Definition
racer.qh:14
Racer::model
string model
Definition
racer.qh:13
Racer::m_icon
string m_icon
Definition
racer.qh:22
Racer::m_name
string m_name
Definition
racer.qh:21
Racer::tag_hud
string tag_hud
Definition
racer.qh:17
Racer::netname
string netname
Definition
racer.qh:20
Racer::m_maxs
vector m_maxs
Definition
racer.qh:8
Racer::mdl
string mdl
Definition
racer.qh:12
Racer::height
float height
Definition
racer.qh:10
Racer::hud_model
string hud_model
Definition
racer.qh:15
Vehicle
Definition
vehicle.qh:7
Vehicle::ATTRIB
ATTRIB(Vehicle, m_icon, string)
hud icon
NEW
#define NEW(cname,...)
Definition
oo.qh:117
CLASS
#define CLASS(...)
Definition
oo.qh:145
ENDCLASS
#define ENDCLASS(cname)
Definition
oo.qh:281
ATTRIB
#define ATTRIB(...)
Definition
oo.qh:148
racer_weapon.qh
vector
vector
Definition
self.qh:92
VHF_DMGSHAKE
const int VHF_DMGSHAKE
Vehicle is airborn.
Definition
vehicle.qh:93
VHF_DMGROLL
const int VHF_DMGROLL
Add random velocity each frame if health < 50%.
Definition
vehicle.qh:94
REGISTER_VEHICLE
#define REGISTER_VEHICLE(id, inst)
Definition
all.qh:12
common
vehicles
vehicle
racer.qh
Generated on
for Xonotic QuakeC by
1.14.0