- implemented GetRadiusDamageType virtuals.

This commit is contained in:
Christoph Oelckers 2022-12-16 17:16:34 +01:00
parent cfa18952d1
commit a014b3436b
3 changed files with 29 additions and 4 deletions

View file

@ -187,4 +187,10 @@ class DukeFlamethrowerFlame : DukeActor
}
return true;
}
override class<DukeActor> GetRadiusDamageType(int targhealth)
{
return 'DukeFlamethrowerFlame';
}
}

View file

@ -31,6 +31,10 @@ class DukeLavaPool : DukeActor
self.scale = (REPEAT_SCALE, REPEAT_SCALE);
self.ChangeStat(STAT_MISC);
}
override class<DukeActor> GetRadiusDamageType(int targhealth)
{
return 'DukeFlamethrowerFlame';
}
}
class DukeLavaPoolBubble : DukeActor

View file

@ -284,6 +284,11 @@ class DukeShrinkSpark : DukeProjectile
tspr.setSpritePic(self, (PlayClock >> 4) & 3);
return true;
}
override class<DukeActor> GetRadiusDamageType(int targhealth)
{
return 'DukeShrinkSpark';
}
}
@ -407,6 +412,12 @@ class DukeRPG : DukeProjectile
self.spawn('DukeWaterBubble');
}
override class<DukeActor> GetRadiusDamageType(int targhealth)
{
if (targhealth > 0) return 'DukeRPG';
return 'DukeRadiusExplosion';
}
}
@ -623,6 +634,7 @@ class DukeFireball : DukeProjectile // WorldTour only
default
{
pic "FIREBALL";
+FULLBRIGHT;
}
override bool premoveeffect()
@ -727,12 +739,11 @@ class DukeFireball : DukeProjectile // WorldTour only
Super.postHitEffect(coll);
}
override bool animate(tspritetype tspr)
override class<DukeActor> GetRadiusDamageType(int targhealth)
{
tspr.shade = -127;
return true;
if (self.detail == 0) return 'DukeFlamethrowerFlame';
return 'DukeRadiusExplosion';
}
}
//---------------------------------------------------------------------------
@ -921,6 +932,10 @@ class RedneckBoatGrenade : RedneckDynamiteArrow // RRRA only
self.Destroy();
}
override class<DukeActor> GetRadiusDamageType(int targhealth)
{
return 'DukeRadiusExplosion';
}
}