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

63 lines
1.8 KiB
Ucode
Raw Normal View History

2020-12-13 15:01:13 +00:00
//=============================================================================
// KFDT_Ballistic_HRGIncisionHeal
//=============================================================================
//=============================================================================
// Killing Floor 2
// Copyright (C) 2019 Tripwire Interactive LLC
//=============================================================================
class KFDT_Ballistic_HRGIncisionHeal extends KFDT_Dart_Toxic
abstract;
/** Allows the damage type to map a hit zone to a different bone for dismemberment purposes. */
static simulated function GetBoneToDismember(KFPawn_Monster InPawn, vector HitDirection, name InHitZoneName, out name OutBoneName)
{
local KFCharacterInfo_Monster MonsterInfo;
MonsterInfo = InPawn.GetCharacterMonsterInfo();
if ( MonsterInfo != none )
{
// Randomly pick the left or right shoulder to dismember
if( InHitZoneName == 'chest')
{
OutBoneName = Rand(2) == 0 ? MonsterInfo.SpecialMeleeDismemberment.LeftShoulderBoneName : MonsterInfo.SpecialMeleeDismemberment.RightShoulderBoneName;
}
}
}
/** Allows the damage type to customize exactly which hit zones it can dismember */
static simulated function bool CanDismemberHitZone( name InHitZoneName )
{
switch ( InHitZoneName )
{
case 'lupperarm':
case 'rupperarm':
case 'chest':
case 'heart':
return true;
}
return false;
}
defaultproperties
{
GoreDamageGroup=DGT_Shotgun
KDamageImpulse=4500
KDeathUpKick=1500
KDeathVel=500
KnockdownPower=100
StumblePower=200
GunHitPower=200
MeleeHitPower=100
DoT_Duration=0
DoT_Interval=0
DoT_DamageScale=0
WeaponDef=class'KFWeapDef_HRGIncision'
ModifierPerkList(0)=class'KFPerk_FieldMedic'
}