REGISTER_MONSTER(
/* MON_##id */ STINGRAY,
/* function */ m_stingray,
-/* spawnflags */ MONSTER_TYPE_SWIM | MONSTER_SIZE_BROKEN | MON_FLAG_MELEE,
+/* spawnflags */ MONSTER_TYPE_SWIM | MONSTER_SIZE_BROKEN | MON_FLAG_MELEE | MON_FLAG_MUTATORBLOCKED,
/* mins,maxs */ '-20 -20 -31', '20 20 20',
/* model */ "fish.mdl",
/* netname */ "stingray",
}
case MR_DEATH:
{
- monsters_setframe(stingray_anim_death);
+ self.frame = stingray_anim_death;
return TRUE;
}
case MR_SETUP:
self.monster_loot = spawnfunc_item_health_small;
self.monster_attackfunc = stingray_attack;
- monsters_setframe(stingray_anim_swim);
+ self.frame = stingray_anim_swim;
return TRUE;
}
- case MR_INIT:
+ case MR_PRECACHE:
{
- // nothing
+ precache_model ("models/monsters/fish.mdl");
return TRUE;
}
case MR_CONFIG:
{
switch(req)
{
- case MR_DEATH:
- {
- // nothing
- return TRUE;
- }
- case MR_INIT:
+ case MR_PRECACHE:
{
precache_model ("models/monsters/fish.mdl");
return TRUE;