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:
commit
cd0d0db1f8
@ -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)
|
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)
|
function float GetStunPowerModifier(optional class<DamageType> DamageType, optional byte HitZoneIdx)
|
||||||
|
@ -1318,6 +1318,11 @@ function float GetStunPowerModifier(optional class<DamageType> DamageType, optio
|
|||||||
return Modifiers[7];
|
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);
|
simulated function ModifyMeleeAttackSpeed(out float InDuration);
|
||||||
|
|
||||||
function AddDefaultInventory(KFPawn P)
|
function AddDefaultInventory(KFPawn P)
|
||||||
|
@ -28,6 +28,16 @@ simulated function float GetZedTimeModifier(KFWeapon W)
|
|||||||
return 0.f;
|
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
|
defaultproperties
|
||||||
{
|
{
|
||||||
PerkIcon=Texture2D'UI_PerkIcons_TEX.UI_PerkIcon_SWAT'
|
PerkIcon=Texture2D'UI_PerkIcons_TEX.UI_PerkIcon_SWAT'
|
||||||
|
Loading…
Reference in New Issue
Block a user