Player continues running after sliding

Report bugs of MFPS 2.0 here
Post Reply
User avatar
FoxArm
Member
Member
Posts: 10
Joined: Mon Apr 20, 2020 2:42 am

Goodmorning. I'd like to report a bug about the sliding. When you press C to slide, if you run, the player continues running being crouch.
User avatar
Lovatto
Admin
Admin
Posts: 1834
Joined: Sun Dec 07, 2014 3:18 pm
Contact:

To fix simply change these lines:

Code: Select all

if (State != PlayerState.Jumping)
            State = PlayerState.Idle;
in bl_FirstPersonController.cs -> DoSilde()
with:

Code: Select all

if(Crounching)
                State = PlayerState.Crouching;
            else if (State != PlayerState.Jumping)
            State = PlayerState.Idle;
Let me know if that works for you.
How to find your Invoice Number: Here
How to find your Order Number: Here
Post Reply