}
void spawnfunc_monster_spawn() { Monster_Spawn(MON_SPAWN); }
+#endif // SVQC
-float M_Spawn(float req)
+bool M_Spawn(int req)
{
switch(req)
{
+ #ifdef SVQC
case MR_THINK:
{
// prevent standard code from breaking everything
defer(0.05, M_Spawn_Attack_Explode); // simply defer to prevent recursion
return true;
}
+ #endif
case MR_ANIM:
{
vector none = '0 0 0';
return true;
}
+ #ifdef SVQC
case MR_SETUP:
{
if(!self.health) self.health = (autocvar_g_monster_spawn_health);
{
return true;
}
+ #endif
}
return true;
}
-#endif // SVQC
#endif // REGISTER_MONSTER