]> de.git.xonotic.org Git - xonotic/xonotic-data.pk3dir.git/blob - qcsrc/common/monsters/all.qc
Merge branch 'terencehill/obsolete_cvars_removal' into 'master'
[xonotic/xonotic-data.pk3dir.git] / qcsrc / common / monsters / all.qc
1 #ifndef MONSTERS_ALL_C
2 #define MONSTERS_ALL_C
3 #include "all.qh"
4
5 REGISTER_MONSTER(Null, Monster) {
6         this.netname = "";
7         this.monster_name = "Monster";
8         this.monster_func = m_null;
9         this.mdl = "";
10         this.mins = '-0 -0 -0';
11         this.maxs = '0 0 0';
12         this.model = "";
13 }
14
15 #include "all.inc"
16
17 entity get_monsterinfo(int id)
18 {
19         if (id >= MON_FIRST && id <= MON_LAST)
20         {
21                 entity m = monster_info[id];
22                 if (m) return m;
23         }
24         return MON_Null;
25 }
26
27 #endif