Xonotic QuakeC
The free, fast arena FPS with crisp movement and a wide array of weapons
all.qc File Reference
#include "all.qh"
Include dependency graph for all.qc:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Functions

string Deathtype_Name (int deathtype)

Function Documentation

◆ Deathtype_Name()

string Deathtype_Name ( int deathtype)

Definition at line 3 of file all.qc.

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}
var entity(vector mins, vector maxs,.entity tofield) findbox_tofield_OrFallback
const int DT_FIRST
Definition all.qh:37
#define DEATH_ISSPECIAL(t)
Definition all.qh:39
#define backtrace(msg)
Definition log.qh:99
string ftos(float f)
#define REGISTRY_GET(id, i)
Definition registry.qh:43

References backtrace, DEATH_ISSPECIAL, DT_FIRST, entity(), ftos(), and REGISTRY_GET.

Referenced by LogDeath(), and Obituary().