fix(fenrir): hidden human no longer attacks or blocks under a form
The attack block patched Character.StartAttack, which Humanoid overrides without calling the base, so it never ran; and it covered the Fenring only. Every form swing also fired the hidden human's attack: stamina spent, regen held at zero while it played, and forward_speed dropped to 0. Patch Humanoid.StartAttack for all four forms, and clear m_blocking after SetControls so the pad's heavy attack stops raising the guard. Forms treat the player as airborne only after 0.25 s off the ground, so bumps no longer flicker run to idle. Melee reach ignores the target's own colliders and accepts a clear line from the eyes or the attack point, with an opt-in hit log. Sunrise names the key that still works by day.
This commit is contained in:
parent
19d331789a
commit
b4b6fe3758
8 changed files with 323 additions and 153 deletions
|
|
@ -82,6 +82,9 @@ namespace RacesOfValheim
|
|||
public static ConfigEntry<float> UlvAttackRadius;
|
||||
public static ConfigEntry<float> UlvPushForce;
|
||||
|
||||
// ─── Debug ─────────────────────────────────────────────────────────────
|
||||
public static ConfigEntry<bool> DebugFormHits;
|
||||
|
||||
public static void Bind(ConfigFile config)
|
||||
{
|
||||
const string keybinds = "Fenrir - Keybinds";
|
||||
|
|
@ -184,6 +187,10 @@ namespace RacesOfValheim
|
|||
new ConfigDescription("Hit-sweep radius for all three attacks.", new AcceptableValueRange<float>(1f, 10f)));
|
||||
UlvPushForce = config.Bind(ulv, "Push Force", 25f,
|
||||
new ConfigDescription("Knockback applied on a hit.", new AcceptableValueRange<float>(0f, 100f)));
|
||||
|
||||
// "debug" in the key keeps it local - see ConfigSync.
|
||||
DebugFormHits = config.Bind("Fenrir - Debug", "Debug: Log Form Hits", false,
|
||||
new ConfigDescription("Writes one log line per claw or bite: what was in reach, what it hit, and why anything was skipped. For bug reports about attacks that do no damage."));
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue