1
0
KF2-Dev-Scripts/KFGameContent/Classes/KFExplosion_SirenScream.uc
2020-12-13 18:01:13 +03:00

39 lines
1.2 KiB
Ucode

//=============================================================================
// KFExplosion_SirenScream
//=============================================================================
// Explosion actor class for ground fire
//=============================================================================
// Killing Floor 2
// Copyright (C) 2015 Tripwire Interactive LLC
// Greg Felber
//=============================================================================
class KFExplosion_SirenScream extends KFExplosionActor;
protected function SpecialCringeEffectsFor(Actor Victim, float VictimDist)
{
local KFProjectile KFProj;
KFProj = KFProjectile(Victim);
if( KFProj != none && !KFProj.bDeleteMe && KFProj.bCanDisintegrate && !KFProj.bHasDisintegrated )
{
KFProj.Disintegrate( rotator(-Velocity) );
return;
}
}
function HandleIgnoredVictim(Actor Victim)
{
if (Victim != Instigator && KFPawn_Monster(Victim) != none)
{
if (KFGameInfo(WorldInfo.Game) != none)
{
KFGameInfo(WorldInfo.Game).NotifyIgnoredScream(KFPawn_Monster(Victim));
}
}
}
DefaultProperties
{
bExplodeMoreThanOnce=true
}