Crouch walk speed

Report bugs of MFPS 2.0 here
Post Reply
User avatar
Leonid_RU
Contributor
Contributor
Posts: 56
Joined: Tue Sep 11, 2018 3:04 am

I use the MFPS version 1.7. If you fall from an object while crouch, the player remains crouch, but the speed is like walking.

Actions:
1) Jump on any object;
2) Sit down;
3) Slide off the subject, so that the player was in the air, while the C key is not released;
4) Start to move with the C key clamped, the speed of the player is obtained Walk, not crouch walk.
User avatar
Lovatto
Admin
Admin
Posts: 1772
Joined: Sun Dec 07, 2014 3:18 pm
Contact:

Hi,

I'm not sure if I'm not doing steps as you described of if it's the same issue from this report (which I already fixed): viewtopic.php?f=60&t=4912&p=10258&hilit=slide#p10258

Please try the fix from that post and let me know if that fixes for you too.
How to find your Invoice Number: Here
How to find your Order Number: Here
User avatar
Leonid_RU
Contributor
Contributor
Posts: 56
Joined: Tue Sep 11, 2018 3:04 am

There changes specifically parameter DoSlide, what I describe sliding is not used at all.

For clarity, I attached a video with the bug.
User avatar
Lovatto
Admin
Admin
Posts: 1772
Joined: Sun Dec 07, 2014 3:18 pm
Contact:

Thanks for the video,
For fix it, simply add this line:

Code: Select all

 if(State != PlayerState.Crouching)
in bl_FirstPersonController.cs -> OnUpdate() -> right before this line:

Code: Select all

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
User avatar
Leonid_RU
Contributor
Contributor
Posts: 56
Joined: Tue Sep 11, 2018 3:04 am

It works! Thank you for your work.
Post Reply