25 lines
571 B
Ucode
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'
|
|
} |