]> git.xonotic.org Git - xonotic/xonotic-data.pk3dir.git/blobdiff - qcsrc/common/monsters/all.qh
Add level saving for admins, and include 2 levels to progress through
[xonotic/xonotic-data.pk3dir.git] / qcsrc / common / monsters / all.qh
index d30f29894ec12ccf4a952a11b8bb2307a8593842..b771984f212b1b4ef3a680099e19e7059600662e 100644 (file)
@@ -1,5 +1,23 @@
-#include "monster/zombie.qc"
-#include "monster/spider.qc"
-#include "monster/mage.qc"
-#include "monster/wyvern.qc"
-#include "monster/shambler.qc"
+#ifndef MONSTERS_ALL_H
+#define MONSTERS_ALL_H
+
+#include "monster.qh"
+
+string M_Model(string m_mdl);
+
+REGISTRY(Monsters, BITS(5))
+#define Monsters_from(i) _Monsters_from(i, MON_Null)
+#define get_monsterinfo(i) Monsters_from(i)
+REGISTER_REGISTRY(Monsters)
+REGISTRY_CHECK(Monsters)
+const int MON_FIRST = 1;
+#define MON_LAST (Monsters_COUNT - 1)
+/** If you register a new monster, make sure to add it to all.inc */
+#define REGISTER_MONSTER(id, inst) REGISTER(Monsters, MON, id, monsterid, inst)
+
+REGISTER_MONSTER(Null, NEW(Monster));
+
+
+#include "all.inc"
+
+#endif