zombie claw animation fix (#12537)

This commit is contained in:
Nemanja
2022-11-19 11:07:09 -05:00
committed by GitHub
parent 57a2081e08
commit dad7d17c10
4 changed files with 19 additions and 7 deletions

View File

@@ -140,11 +140,18 @@ public sealed class MeleeWeaponComponentState : ComponentState
public TimeSpan NextAttack;
public TimeSpan? WindUpStart;
public MeleeWeaponComponentState(float attackRate, bool attacking, TimeSpan nextAttack, TimeSpan? windupStart)
public string ClickAnimation;
public string WideAnimation;
public float Range;
public MeleeWeaponComponentState(float attackRate, bool attacking, TimeSpan nextAttack, TimeSpan? windupStart, string clickAnimation, string wideAnimation, float range)
{
AttackRate = attackRate;
Attacking = attacking;
NextAttack = nextAttack;
WindUpStart = windupStart;
ClickAnimation = clickAnimation;
WideAnimation = wideAnimation;
Range = range;
}
}