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 MONSTER_ATTACK_MELEE:
{
- if(monster_melee(self.enemy, MON_CVAR(stingray, attack_bite_damage), stingray_anim_attack, self.attack_range, MON_CVAR(stingray, attack_bite_delay), DEATH_MONSTER_STINGRAY, FALSE))
- return TRUE;
-
- return FALSE;
+ return monster_melee(self.enemy, MON_CVAR(stingray, attack_bite_damage), stingray_anim_attack, self.attack_range, MON_CVAR(stingray, attack_bite_delay), DEATH_MONSTER_STINGRAY, FALSE);
}
case MONSTER_ATTACK_RANGED:
{
}
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;