Xonotic QuakeC
The free, fast arena FPS with crisp movement and a wide array of weapons
deathmatch.qh
Go to the documentation of this file.
1
#pragma once
2
3
#include <
common/mapinfo.qh
>
4
5
CLASS
(
Deathmatch
,
Gametype
)
6
INIT
(
Deathmatch
)
7
{
8
this.
gametype_init
(
this
, _(
"Deathmatch"
),
"dm"
,
"g_dm"
,
GAMETYPE_FLAG_USEPOINTS
|
GAMETYPE_FLAG_PREFERRED
,
""
,
"timelimit=15 pointlimit=30 leadlimit=0"
,_(
"Score as many frags as you can"
));
9
}
10
METHOD
(
Deathmatch
,
m_isAlwaysSupported
,
bool
(
Gametype
this
,
int
spawnpoints,
float
diameter))
11
{
12
return
true
;
13
}
14
ATTRIB
(
Deathmatch
,
m_legacydefaults
,
string
,
"30 20 0"
);
15
ENDCLASS
(
Deathmatch
)
16
REGISTER_GAMETYPE
(DEATHMATCH,
NEW
(
Deathmatch
));
Deathmatch
Definition
deathmatch.qh:5
Deathmatch::Deathmatch
Deathmatch()
Definition
deathmatch.qh:6
Deathmatch::m_isAlwaysSupported
virtual void m_isAlwaysSupported()
Definition
deathmatch.qh:10
Deathmatch::m_legacydefaults
string m_legacydefaults
Definition
deathmatch.qh:14
Gametype
Definition
mapinfo.qh:33
Gametype::gametype_init
virtual void gametype_init()
Definition
mapinfo.qh:117
mapinfo.qh
GAMETYPE_FLAG_USEPOINTS
const int GAMETYPE_FLAG_USEPOINTS
Definition
mapinfo.qh:20
REGISTER_GAMETYPE
#define REGISTER_GAMETYPE(NAME, inst)
Definition
mapinfo.qh:149
GAMETYPE_FLAG_PREFERRED
const int GAMETYPE_FLAG_PREFERRED
Definition
mapinfo.qh:21
NEW
#define NEW(cname,...)
Definition
oo.qh:117
INIT
#define INIT(cname)
Definition
oo.qh:210
CLASS
#define CLASS(...)
Definition
oo.qh:145
ENDCLASS
#define ENDCLASS(cname)
Definition
oo.qh:281
METHOD
#define METHOD(cname, name, prototype)
Definition
oo.qh:269
ATTRIB
#define ATTRIB(...)
Definition
oo.qh:148
common
gametypes
gametype
deathmatch
deathmatch.qh
Generated on
for Xonotic QuakeC by
1.14.0