rott/kf_sources/KFMod/Classes/KFLandMine.uc
2026-07-14 20:27:09 +07:00

24 lines
474 B
Ucode

// Landmine which destroys itself on exploding...
class KFLandMine extends Landmine;
function PostTouch(Actor Other)
{
local Pawn P;
P = Pawn(Other);
if (P != None)
{
PlaySound(BlowupSound,,3.0*TransientSoundVolume);
spawn(BlowupEffect,,,P.Location - P.CollisionHeight * vect(0,0,1));
P.AddVelocity(ChuckVelocity);
P.Died(None, DamageType, P.Location);
}
Destroy();
}
defaultproperties
{
}