fix(fenrir): Cultist claws land on the clip's own hits
The single claw dealt its damage at a fixed 0.4 s, before the swing in ClawAttackCultist (Hit event at 0.64 s of 1.33 s), and released the lock at 0.5 s, so clicking again started a new claw mid-swing. The double claw dealt one hit at 0.6 s although DoubleClawAttackCultist swipes twice (Hit events at 0.64 s and 1.21 s). BlockPlayerAttackTriggerPatch now counts the form's Hit events (FenrirForms.AttackEvents) instead of only swallowing them. Both claws wait for their events, with a timeout, and hold the lock until the clip ends. Each double-claw swipe deals 60% of Double Claw Damage, 120% in all for a slower swing that can be cut short.
This commit is contained in:
parent
373b0069dd
commit
ffb45d1c1c
4 changed files with 73 additions and 17 deletions
|
|
@ -154,7 +154,7 @@ namespace RacesOfValheim
|
|||
CultistClawDamage = config.Bind(cultist, "Claw Damage", 85f,
|
||||
new ConfigDescription("Base damage of the single claw (Left Mouse), before the Unarmed skill bonus.", new AcceptableValueRange<float>(0f, 500f)));
|
||||
CultistDoubleClawDamage = config.Bind(cultist, "Double Claw Damage", 140f,
|
||||
new ConfigDescription("Base damage of the double claw (Middle Mouse), before the Unarmed skill bonus.", new AcceptableValueRange<float>(0f, 500f)));
|
||||
new ConfigDescription("Base damage of the double claw (Middle Mouse), before the Unarmed skill bonus. Each of its two swipes deals 60% of it.", new AcceptableValueRange<float>(0f, 500f)));
|
||||
CultistAttackRadius = config.Bind(cultist, "Claw Attack Radius", 2.5f,
|
||||
new ConfigDescription("Hit-sweep radius for both claw attacks.", new AcceptableValueRange<float>(1f, 10f)));
|
||||
CultistPushForce = config.Bind(cultist, "Claw Push Force", 30f,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue