]> de.git.xonotic.org Git - xonotic/xonotic-data.pk3dir.git/blobdiff - qcsrc/common/monsters/all.qc
Add a cvar to control the minimum speed a vehicle needs to be travelling to crush...
[xonotic/xonotic-data.pk3dir.git] / qcsrc / common / monsters / all.qc
index 232441e57370613861292c8b5f0b5ca5f4c7b80e..9dc09ca394b47166bc4d717901d0aa17f6465664 100644 (file)
@@ -1,19 +1,12 @@
-#ifndef MONSTERS_ALL_C
-#define MONSTERS_ALL_C
-
 #include "all.qh"
 
-entity get_monsterinfo(int id)
+string M_Model(string m_mdl)
 {
-       if (id >= MON_FIRST && id <= MON_LAST) {
-               entity m = monster_info[id];
-               if (m) return m;
-       }
-       return MON_Null;
-}
-
-#define IMPLEMENTATION
-#include "all.inc"
-#undef IMPLEMENTATION
-
+       string output = strcat("models/monsters/", m_mdl);
+#ifdef SVQC
+       MUTATOR_CALLHOOK(MonsterModel, m_mdl, output);
+       return M_ARGV(1, string);
+#else
+       return output;
 #endif
+}