The code:
Code: Select all
//=============================================================================
// BoomBallofdeath.
//=============================================================================
class BoomBallofdeath expands BruteProjectile;
simulated function Landed( vector HitNormal )
{
local DirectionalBlast D;
if ( EffectIsRelevant(Location) )
{
D = Spawn(class'DirectionalBlast',self);
if ( D != None )
D.DirectionalAttach(vector(rotation), HitNormal);
}
Explode(Location,HitNormal);
}
function Explode(vector HitLocation, vector HitNormal)
{
HurtRadiusProj(Damage,300.0, 'exploded', MomentumTransfer, HitLocation );
Spawn(class'SpriteBallExplosion',,,HitLocation);
Destroy();
}