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

25 lines
571 B
Ucode

class APPoofProj extends KFMod.ShotgunBullet;
simulated function ProcessTouch(Actor Other, Vector HitLocation)
{
local Pawn HitPawn;
if(Other == None || Other == Instigator || Other.Base == Instigator)
return;
if(Role == ROLE_Authority)
{
if(ExtendedZCollision(Other) != None)
HitPawn = Pawn(Other.Base);
else
HitPawn = Pawn(Other);
if(HitPawn != None)
HitPawn.Died(Instigator.Controller, MyDamageType, HitLocation);
}
Destroy();
}
defaultproperties
{
MyDamageType=class'KFMod.DamTypeDwarfAxe'
}