Xonotic
Main Page
Related Pages
+
Classes
Class List
Class Index
Class Hierarchy
+
Class Members
+
All
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
r
s
t
u
v
w
x
y
z
+
Functions
a
b
c
d
e
f
g
i
k
l
m
n
o
p
r
s
t
v
w
x
+
Variables
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
r
s
t
u
v
w
y
z
+
Files
File List
+
File Members
+
All
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
+
Functions
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
+
Variables
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Typedefs
+
Enumerator
i
m
o
p
r
s
t
+
Macros
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
•
All
Classes
Files
Functions
Variables
Typedefs
Enumerator
Macros
Pages
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
entity
deathent =
REGISTRY_GET
(Deathtypes, deathtype -
DT_FIRST
);
7
if
(!deathent) {
backtrace
(
"Deathtype_Name: Could not find deathtype entity!\n"
);
return
""
; }
8
return
deathent.nent_name;
9
}
10
return
ftos
(deathtype);
11
}
ftos
string ftos(float f)
entity
entity() spawn
DT_FIRST
const int DT_FIRST
Definition:
all.qh:33
REGISTRY_GET
#define REGISTRY_GET(id, i)
Definition:
registry.qh:43
Deathtype_Name
string Deathtype_Name(int deathtype)
Definition:
all.qc:3
backtrace
#define backtrace(msg)
Definition:
log.qh:105
all.qh
DEATH_ISSPECIAL
#define DEATH_ISSPECIAL(t)
Definition:
all.qh:35
common
deathtypes
all.qc
Generated on Thu Mar 17 2022 17:26:27 for Xonotic by
1.8.13