pablosscripts wrote:UK_Wildcats_Fans wrote:What were the issues getting auto sprint refined?
i was trying to see if it possible to make less responsible i press the analog half way and im already sprinting i would like prefer if it less sensitive and work just when the analog is full press
Good question, getting it to work is easy, getting it to function perfectly took some more work. The problem has to do with using the Sprint button. Because I use Easy Sprint, that means the Sprint button is literally not being used, so it was the obvious candidate for activating Auto Sprint. Now the issue with this is I also use the Sprint button to toggle walk mode as well - it also makes a ton of sense to use the Sprint button here too. I never needed a toggle walk before but I felt this was necessary for Blackout because of how important sneaking around is. Therefore, the fundamental problem is I'm using the same button for two functions - Auto Sprint and Toggle Walk. So these are the scenarios I had to code for:
1) While sprinting, tap Sprint:
outcome = Auto Sprint enabled (FULL SPRINT) -- the trick here is to prevent this from toggling to a walk as it is using the same button!
2) While walking, tap Sprint:
outcome = Auto Sprint enabled (WALKING) -- the trick here is to prevent this from toggling to a sprint as it is using the same button!
3) While in Auto Sprint (FULL SPRINT), tap Sprint again:
outcome = player should now be walking, Auto Sprint is maintained4) While in Auto Sprint (WALKING), tap Sprint again:
outcome = player should now be sprinting, Auto Sprint is maintained5 / 6) Scenarios 3 and 4 should also work with or without the analogue stick pegged forward.
7) If you're trying to do any of the above while you have the Map opened, it will cause issues because the Sprint button is being used to reset your cursor. So you need to suppress all of the above when the Map is open.
So that's 7 scenarios I had to code for. It feels great now but it took a lot more work than I was expecting to get here! It also gets even more complicated due to my Easy Slide feature, but I won't go into that because I could be here all day. Suffice to say it's taken me days of play testing and refinement!