if (vlen(self.velocity) > 200)
{
// make the monster die
- self.event_damage(self, self, self.health + self.max_health, DEATH_TOUCHEXPLODE, self.origin, '0 0 0');
+ self.event_damage(self, self, self.health + self.max_health, DEATH_MONSTER_TARBABY, self.origin, '0 0 0');
return;
}
void tarbaby_blowup ()
{
float bigboom = 250 * (self.scale * 0.7);
- RadiusDamage(self, self, 250 * monster_skill, 15, bigboom * (monster_skill * 0.7), world, 250, DEATH_MONSTER_TARBABY_BLOWUP, world);
+ RadiusDamage(self, self, 250 * monster_skill, 15, bigboom * (monster_skill * 0.7), world, 250, DEATH_MONSTER_TARBABY, world);
pointparticles(particleeffectnum(((self.scale > 3) ? "explosion_big" : "explosion_medium")), self.origin, '0 0 0', 1);
sound(self, CH_SHOTS, "weapons/rocket_impact.wav", VOL_BASE, ATTN_NORM);
void spawnfunc_monster_tarbaby ()
{
- if not(autocvar_g_monster_tarbaby)
- {
- remove(self);
- return;
- }
+ if not(autocvar_g_monster_tarbaby) { remove(self); return; }
self.monster_spawnfunc = spawnfunc_monster_tarbaby;