• Trying to remove jump/sprint using SetupMove
    2 replies, posted
I'm trying to make a basic stamina system, I basically just want to stop players jumping based on a certain condition. I've read the guide on player movement garry put on the wiki: [url]http://wiki.garrysmod.com/page/Game_Movement[/url] He states that: "[SetupMove] is a good place to change controls. For example - if you don't want a player to jump.. you can remove the jump button from the MoveData here. This has advantages over removing it from the usercommand in CreateMove - because it's controlled by the server - not the client." But I can't find any suitable method in [url=http://wiki.garrysmod.com/page/Category:CMoveData]CMoveData[/url] to remove a key? CUserCmd has a RemoveKey method, but modifying that has no effect in SetupMove.
Yeah you're right! In the next update: [url]http://wiki.garrysmod.com/page/CMoveData/SetButtons[/url] [url]http://wiki.garrysmod.com/page/CMoveData/GetButtons[/url] [url]http://wiki.garrysmod.com/page/CMoveData/SetOldButtons[/url] [url]http://wiki.garrysmod.com/page/CMoveData/GetOldButtons[/url]
Thanks
Sorry, you need to Log In to post a reply to this thread.