Remapped some inputs and added slide, slam and parry mappings

This commit is contained in:
2026-01-12 14:58:43 +01:00
parent 2301884418
commit 52a9c3f120
7 changed files with 76 additions and 50 deletions

View File

@@ -670,16 +670,14 @@ public partial class PlayerController : CharacterBody3D
// Adapt vertical speed
var verticalSpeed = Velocity.Y - WallRunAltitudeLossSpeed * delta;
Velocity = finalHVel + Vector3.Up*verticalSpeed;
Velocity *= 0.995f;
Velocity *= 0.999f;
_currentWallContactPoint = WallHugSystem.WallHugLocation.UnwrapOr(Vector3.Zero);
if (isOnFloorCustom())
_playerState.SendEvent("grounded");
if (!WallHugSystem.IsWallHugging() || Velocity.Length() < WallRunSpeedThreshold)
{
if (!WallHugSystem.IsWallHugging())
_playerState.SendEvent("start_falling");
}
}
public void WallHug(float delta)