Xonotic
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 }
entity() spawn
const int DT_FIRST
Definition: all.qh:33
#define REGISTRY_GET(id, i)
Definition: registry.qh:43
string Deathtype_Name(int deathtype)
Definition: all.qc:3
#define backtrace(msg)
Definition: log.qh:105
#define DEATH_ISSPECIAL(t)
Definition: all.qh:35