void monster_item_spawn()
{
- self.monster_loot();
+ if(self.monster_loot)
+ self.monster_loot();
self.gravity = 1;
self.velocity = randomvec() * 175 + '0 0 325';
if not(targ.vehicle_flags & VHF_ISVEHICLE)
if(targ.flags & FL_NOTARGET)
- return FALSE; // enemy can't be targetted
+ return FALSE; // enemy can't be targeted
if not(autocvar_g_monsters_typefrag)
if(targ.BUTTON_CHAT)
monsters_setframe(manim_idle);
}
- if(self.enemy)
- monster_checkattack(self, self.enemy);
+ monster_checkattack(self, self.enemy);
self.SendFlags |= MSF_ANG;
self.SendFlags |= MSF_MOVE;
self.SendFlags |= MSF_STATUS;
}
-// used to hook into monster post death functions without a mutator
+// post-death functions
void monster_hook_death()
{
WaypointSprite_Kill(self.sprite);
totalspawned -= 1;
}
-// used to hook into monster post spawn functions without a mutator
+// post-spawn functions
void monster_hook_spawn()
{
if not(self.monster_respawned)
float MONSTER_SLIME = 9;
float MONSTER_KNIGHT = 10;
float MONSTER_STINGRAY = 11;
-float MONSTER_MAGE = 12;
+float MONSTER_MAGE = 12;
float MONSTER_SPIDER = 13;
-float MONSTER_LAST = 14;
+float MONSTER_LAST = 14;
// id-string converters (TODO: remove these!)
string monster_id2string(float mnster)
float MSF_FULL_UPDATE = 16777215;
-#endif // CSQC/SVQC
\ No newline at end of file
+#endif // CSQC/SVQC