]> de.git.xonotic.org Git - xonotic/xonotic-data.pk3dir.git/blobdiff - qcsrc/common/monsters/all.qc
Replace some ammo field references with resources
[xonotic/xonotic-data.pk3dir.git] / qcsrc / common / monsters / all.qc
index f4b2a4bf0bbb5ac7892ccc1f3ec60497bbbf8503..9dc09ca394b47166bc4d717901d0aa17f6465664 100644 (file)
@@ -1,10 +1,12 @@
-#ifndef MONSTERS_ALL_C
-#define MONSTERS_ALL_C
-
 #include "all.qh"
 
-#define IMPLEMENTATION
-#include "all.inc"
-#undef IMPLEMENTATION
-
+string M_Model(string m_mdl)
+{
+       string output = strcat("models/monsters/", m_mdl);
+#ifdef SVQC
+       MUTATOR_CALLHOOK(MonsterModel, m_mdl, output);
+       return M_ARGV(1, string);
+#else
+       return output;
 #endif
+}