1
0
KF2-Dev-Scripts/KFGameContent/Classes/KFDT_Toxic_MineReconstructorImpactHeavy.uc

56 lines
1.6 KiB
Ucode
Raw Normal View History

2020-12-13 15:01:13 +00:00
//=============================================================================
// KFDT_Toxic_MineReconstructorImpact
//=============================================================================
// Toxic damage type for the Mine reconstructor direct hit when high charge percentage
//=============================================================================
// Killing Floor 2
// Copyright (C) 2017 Tripwire Interactive LLC
// fferrando@saber3d
//=============================================================================
class KFDT_Toxic_MineReconstructorImpactHeavy extends KFDT_Ballistic_Shell
abstract
hidedropdown;
static simulated function bool CanDismemberHitZone( name InHitZoneName )
{
return false;
}
/** Called when damage is dealt to apply additional damage type (e.g. Damage Over Time) */
static function ApplySecondaryDamage( KFPawn Victim, int DamageTaken, optional Controller InstigatedBy )
{
local class<KFDamageType> ToxicDT;
ToxicDT = class'KFDT_Ballistic_Assault_Medic'.static.GetMedicToxicDmgType( DamageTaken, InstigatedBy );
if ( ToxicDT != None )
{
Victim.ApplyDamageOverTime(DamageTaken, InstigatedBy, ToxicDT);
}
}
defaultproperties
{
//override dot as the impact has no dot
DoT_Type=DOT_NONE
EffectGroup=FXG_Toxic
MicrowavePower=50;
PoisonPower=60;
StumblePower=340;
KnockdownPower=190;
GunHitPower=275;
//EMPPower=200;
bHasToSpawnMicrowaveFire=false;
// physics impact
ModifierPerkList(0)=class'KFPerk_FieldMedic'
WeaponDef=class'KFWeapDef_Mine_Reconstructor'
}