]> de.git.xonotic.org Git - xonotic/xonotic-data.pk3dir.git/blob - qcsrc/common/deathtypes/all.qc
Rename t_items.qc to items.qc
[xonotic/xonotic-data.pk3dir.git] / qcsrc / common / deathtypes / all.qc
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 }