Xonotic
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
NEW
#define NEW(cname,...)
Definition:
oo.qh:105
CLASS
CLASS(Object) Object
Definition:
oo.qh:318
REGISTER_GAMETYPE
REGISTER_GAMETYPE(DEATHMATCH, NEW(Deathmatch))
METHOD
#define METHOD(cname, name, prototype)
Definition:
oo.qh:257
ATTRIB
#define ATTRIB(...)
Definition:
oo.qh:136
INIT
#define INIT(cname)
Definition:
oo.qh:198
mapinfo.qh
GAMETYPE_FLAG_PREFERRED
const int GAMETYPE_FLAG_PREFERRED
Definition:
mapinfo.qh:21
GAMETYPE_FLAG_USEPOINTS
const int GAMETYPE_FLAG_USEPOINTS
Definition:
mapinfo.qh:20
ENDCLASS
#define ENDCLASS(cname)
Definition:
oo.qh:269
Gametype
Definition:
mapinfo.qh:29
common
gamemodes
gamemode
deathmatch
deathmatch.qh
Generated on Thu Mar 17 2022 17:26:27 for Xonotic by
1.8.13