Lergen Posted July 14, 2019 Share Posted July 14, 2019 I looked around a bit, but couldn't find an answer for this. When using https://wiki.multitheftauto.com/wiki/SetPedWalkingStyle is there any way to change the speed a player sprints at while using it? A sprinting ped animation is probably slower than CJ's walking speed. So in other words, when someone is using a ped walking style, is it possible to let them sprint as fast as CJ? I'd greatly appreciate any help. Link to comment
HassoN Posted July 14, 2019 Share Posted July 14, 2019 Have you tried to use 'setGameSpeed' in client side once you give a walking style to a player? That'd change the speed of a certain player but not for everyone. 1 Link to comment
Lergen Posted July 17, 2019 Author Share Posted July 17, 2019 (edited) Thanks! This probably sounds dumb but how would you check that a player selected an animation on the client if it's handled server-side? I'm guessing getPedAnimation would be used. Edited July 17, 2019 by Lergen Link to comment
HassoN Posted July 17, 2019 Share Posted July 17, 2019 You're welcome! Yes. You may use getPedAnimation 1 Link to comment
MTA Anti-Cheat Team Dutchman101 Posted July 17, 2019 MTA Anti-Cheat Team Share Posted July 17, 2019 Note that setting game speed affects everything around them and not just walking, as well as worsening sync (everything around them will appear badly synced, and others will see that player as moving around badly synced) This is a reason why I personally would never touch setGameSpeed. It's not really a feature designed for multiplayer SetPedAnimationSpeed also cannot be used, because it doesn't support active walking styles (the player movement anim group and ID instead of a static anim) and also would only support slow-downs (speed 0.0 - 1.0). You will have to use custom animations; find (or create) IFP walking style that has a speed you desire. @Lergen 1 Link to comment
Lergen Posted July 17, 2019 Author Share Posted July 17, 2019 Ahhh, that's unfortunate then. I appreciate the heads-up though, thanks! Link to comment
MTA Anti-Cheat Team Dutchman101 Posted July 17, 2019 MTA Anti-Cheat Team Share Posted July 17, 2019 1 hour ago, Lergen said: Ahhh, that's unfortunate then. I appreciate the heads-up though, thanks! No problem. There's plenty of modded walking style anims to be found on GTA modding sites, also if you want to get help creating one yourself or changing the speed of existing ones then i advise you to join the MTA discord (https://discord.com/invite/mtasa) and ask in #modelling Link to comment
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now