37 lines
1.2 KiB
Ucode
37 lines
1.2 KiB
Ucode
//=============================================================================
|
|
// KFDT_Ballistic_ParasiteImplanterAlt
|
|
//=============================================================================
|
|
//=============================================================================
|
|
// Killing Floor 2
|
|
// Copyright (C) 2021 Tripwire Interactive LLC
|
|
//=============================================================================
|
|
|
|
class KFDT_Ballistic_ParasiteImplanterAlt extends KFDT_Toxic
|
|
abstract
|
|
hidedropdown;
|
|
|
|
/** 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
|
|
{
|
|
KnockdownPower=30
|
|
StumblePower=200
|
|
GunHitPower=100
|
|
PoisonPower=0 //80
|
|
|
|
WeaponDef=class'KFWeapDef_ParasiteImplanter'
|
|
|
|
ModifierPerkList(0)=class'KFPerk_FieldMedic'
|
|
ModifierPerkList(1)=class'KFPerk_Sharpshooter'
|
|
}
|