bugfix 07/10/26 + evil laugh
This commit is contained in:
parent
eaa87f892a
commit
0159f1e8c4
11 changed files with 417 additions and 8 deletions
|
|
@ -34,6 +34,32 @@ namespace RacesOfValheim
|
|||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// The rest of the human's attack loop, shut while a form is up. StartAttack is the only door an
|
||||
/// attack starts through and it is blocked above, but a crossbow also lives in the loop around it:
|
||||
/// PlayerAttackInput reloads it and holds its draw, and the form's own Animator carries
|
||||
/// CharacterAnimEvent, whose OnAttackTrigger event resolves to the PLAYER (its Character is the first
|
||||
/// one up the hierarchy) and fires whatever attack the human still has in hand. A tester's crossbow
|
||||
/// shot on all three form attacks, reloaded for free, like a semi-automatic.
|
||||
/// </summary>
|
||||
[HarmonyPatch(typeof(Player), "PlayerAttackInput")]
|
||||
public static class BlockPlayerAttackInputPatch
|
||||
{
|
||||
public static bool Prefix(Player __instance)
|
||||
{
|
||||
return !FenrirForms.LocalInForm(__instance);
|
||||
}
|
||||
}
|
||||
|
||||
[HarmonyPatch(typeof(Humanoid), nameof(Humanoid.OnAttackTrigger))]
|
||||
public static class BlockPlayerAttackTriggerPatch
|
||||
{
|
||||
public static bool Prefix(Humanoid __instance)
|
||||
{
|
||||
return !FenrirForms.LocalInForm(__instance);
|
||||
}
|
||||
}
|
||||
|
||||
// --- PATCH 2: BLOCCO ANIMAZIONI ED EFFETTI SONORI NATIVI ---
|
||||
// Every form now, not the Fenring alone: see BlockPlayerLogicAttackPatch.
|
||||
[HarmonyPatch(typeof(ZSyncAnimation), nameof(ZSyncAnimation.SetTrigger))]
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue