minor bugfix and pad support

This commit is contained in:
Ferdinando 2026-09-12 10:42:01 +02:00
commit 6e87be3c77
21 changed files with 574 additions and 85 deletions

View file

@ -131,8 +131,13 @@ namespace RacesOfValheim
{
if (Player.m_localPlayer == null || Player.m_localPlayer.IsDead()) return;
// Handle Flight Toggle (Right Mouse by default, rebindable) - Disabled for Fader
if (RaceInput.Allowed && SkadiConfig.FlightToggleKey.Value.IsDownIgnoringHeldKeys() && formRules != null && formRules.Form != SkadiProgression.FormType.SkeletonDragon)
// Handle Flight Toggle (Right Mouse by default, rebindable) - Disabled for Fader.
// On a pad it is the Block button, Right Mouse's vanilla partner (RaceInput.PadAttackDown(1)):
// the left trigger in the Classic layout. Free here - neither drake nor Moder has a
// button-1 attack; the only one is Fader's spin, and Fader never flies.
if (RaceInput.Allowed &&
(SkadiConfig.FlightToggleKey.Value.IsDownIgnoringHeldKeys() || RaceInput.PadAttackDown(1)) &&
formRules != null && formRules.Form != SkadiProgression.FormType.SkeletonDragon)
{
if (!isFlying && !isLanding)
{