From b4982f5a43f3fe05e0a6c6bd7037773ecb06279d Mon Sep 17 00:00:00 2001 From: Selim Nahimi Date: Sat, 2 Sep 2023 00:23:42 +0200 Subject: [PATCH] Update Wallrunning logic - Removed unnecessary check & adjusted speed requirement for wallrun initiation --- code/pawn/PawnController.Wallrunning.cs | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/code/pawn/PawnController.Wallrunning.cs b/code/pawn/PawnController.Wallrunning.cs index f32538b..ffdbd72 100644 --- a/code/pawn/PawnController.Wallrunning.cs +++ b/code/pawn/PawnController.Wallrunning.cs @@ -68,11 +68,7 @@ bool CanWallrun( WallRunTrace traceWall ) if ( Wallrunning == WallRunSide.Right && traceWall.side != WallRunSide.Right ) return false; - // Velocity gets halved when starting wallrun, count with that - if ( !IsWallRunning() && (Entity.Velocity * 0.4f).WithZ( 0 ).Length < 75f ) - return false; - - if ( IsWallRunning() && Entity.Velocity.WithZ( 0 ).Length < 75f ) + if ( IsWallRunning() && Entity.Velocity.WithZ( 0 ).Length < 100f ) return false; if ( !AngleWithinRange( GetVelocityRotation().Forward, traceWall.traceResult.Normal, maxAngle: 110f ) )