Merge pull request #34 from secretagentjr/knockdown

make knockdown stat push enemies back similar to heat wave or berserker weapons
This commit is contained in:
GenZmeY 2021-08-24 02:27:15 +03:00 committed by GitHub
commit cd0d0db1f8
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 17 additions and 2 deletions

View File

@ -562,7 +562,7 @@ function float GetKnockdownPowerModifier(optional class<DamageType> DamageType,
function float GetStumblePowerModifier(optional KFPawn KFP, optional class<KFDamageType> DamageType, optional out float CooldownModifier, optional byte BodyPart)
{
return (CurrentPerk!=None ? CurrentPerk.GetKnockdownPowerModifier() : 1.f);
return (CurrentPerk!=None ? CurrentPerk.GetStumblePowerModifier() : 1.f);
}
function float GetStunPowerModifier(optional class<DamageType> DamageType, optional byte HitZoneIdx)

View File

@ -1318,6 +1318,11 @@ function float GetStunPowerModifier(optional class<DamageType> DamageType, optio
return Modifiers[7];
}
function float GetStumblePowerModifier( optional KFPawn KFP, optional class<KFDamageType> DamageType, optional out float CooldownModifier, optional byte BodyPart )
{
return Modifiers[7];
}
simulated function ModifyMeleeAttackSpeed(out float InDuration);
function AddDefaultInventory(KFPawn P)

View File

@ -28,6 +28,16 @@ simulated function float GetZedTimeModifier(KFWeapon W)
return 0.f;
}
function float GetStumblePowerModifier( optional KFPawn KFP, optional class<KFDamageType> DamageType, optional out float CooldownModifier, optional byte BodyPart )
{
if (bRapidAssault)
{
return 2.f * Modifiers[7];
}
return Modifiers[7];
}
defaultproperties
{
PerkIcon=Texture2D'UI_PerkIcons_TEX.UI_PerkIcon_SWAT'