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

47 lines
1.3 KiB
Ucode

//=============================================================================
// KFDT_Bludgeon_MedicBatBash
//=============================================================================
// Killing Floor 2
// Copyright (C) 2019 Tripwire Interactive LLC
//=============================================================================
// Toxic Weapon with added Bludgeon functionality
class KFDT_Bludgeon_MedicBatBash extends KFDT_Bludgeon
abstract
hidedropdown;
// Damage type to use for the damage over time effect
var class<KFDamageType> DoTDamageType;
/** 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)
{
if (default.DoTDamageType.default.DoT_Type != DOT_None)
{
Victim.ApplyDamageOverTime(DamageTaken, InstigatedBy, default.DoTDamageType);
}
}
defaultproperties
{
//physics
KDamageImpulse=1600
KDeathUpKick=0
KDeathVel=500
//Afflictions
PoisonPower=10
StumblePower=200
MeleeHitPower=100
DoTDamageType=class'KFDT_Toxic_MedicBatDoT'
WeaponDef=class'KFWeapDef_MedicBat'
ModifierPerkList(0)=class'KFPerk_FieldMedic'
ModifierPerkList(1)=class'KFPerk_Berserker'
// Don't do damage to teammates
bNoFriendlyFire=true
}