mkafrin / PolyZone

PolyZone is a FiveM mod to define zones of different shapes and test whether a point is inside or outside of the zone
MIT License
204 stars 191 forks source link

Creation possible ctrl button change #33

Closed mkafrin closed 3 years ago

mkafrin commented 4 years ago

Look into changing ctrl from being a "hold down to make slower" function to instead "press ctrl to toggle through speeds"

JiminyKroket commented 3 years ago

Sorry to interject into not my issue, you should be able to simply turn IsControlPressed/IsDisabledControlPressed to IsControlJustPressed/IsDisabledControlJustPressed, correct?

mkafrin commented 3 years ago

No, changing it to IsControlJustPressed would just mean that the slow down would only occur on the single frame you pressed control. Instead the functionality that this is targeting is a toggle through a series of speeds. So you pressed ctrl once and it goes to half speed permanently, then you press it again and it goes to 1/4th speed, then again and 1/8th, etc., until you get to the lowest speed and you press ctrl one more time and it cycles back to normal speed.

Though this feature probably won't make it in to the resource, at least for a little while. I'm just keeping the issue open until I make a final decision to shelve or not.