Xonotic QuakeC
The free, fast arena FPS with crisp movement and a wide array of weapons
all.qc
Go to the documentation of this file.
1
#include "
all.qh
"
2
3
string
Deathtype_Name
(
int
deathtype)
4
{
5
if
(!
DEATH_ISSPECIAL
(deathtype))
6
return
itos
(deathtype);
7
8
entity
deathent =
REGISTRY_GET
(Deathtypes, deathtype -
DT_FIRST
);
9
if
(deathent)
10
return
deathent.m_name;
11
12
backtrace
(
"Deathtype_Name: Could not find deathtype entity!\n"
);
13
return
""
;
14
}
entity
var entity(vector mins, vector maxs,.entity tofield) findbox_tofield_OrFallback
Deathtype_Name
string Deathtype_Name(int deathtype)
Definition
all.qc:3
all.qh
DT_FIRST
const int DT_FIRST
Definition
all.qh:39
DEATH_ISSPECIAL
#define DEATH_ISSPECIAL(t)
Definition
all.qh:41
itos
#define itos(i)
Definition
int.qh:6
backtrace
#define backtrace(msg)
Definition
log.qh:96
REGISTRY_GET
#define REGISTRY_GET(id, i)
Definition
registry.qh:62
common
deathtypes
all.qc
Generated on
for Xonotic QuakeC by
1.16.1