Scripts / Disabling the Player Run function

Author
Message
Saintyboy
8
Years of Service
User Offline
Joined: 18th Jun 2015
Playing:
Posted: 18th Jun 2016 09:25 Edited at: 21st Jun 2016 23:00
Hi folks - I recently posted this question but it has now been locked.

I need to disable the ability to run using the shift key - anyone any ideas?

3Com had suggested using enabledshift=0 in the .ini file but that fails to work
Saintyboy
8
Years of Service
User Offline
Joined: 18th Jun 2015
Playing:
Posted: 21st Jun 2016 23:01
Anyone have any ideas relating to this question?
Saintyboy
8
Years of Service
User Offline
Joined: 18th Jun 2015
Playing:
Posted: 26th Jun 2016 13:27
I am really desperate to address this; does any one have any ideas or indeed any pointers on what I can do through Lua to alter the players speed?
Nathan38
13
Years of Service
User Offline
Joined: 13th Feb 2011
Location:
Posted: 26th Jun 2016 14:00 Edited at: 26th Jun 2016 15:46
Are you looking to completely disable running, or just change the speed? The speed can be changed by left-clicking on the player start marker, and going into the properties menu.
Saintyboy
8
Years of Service
User Offline
Joined: 18th Jun 2015
Playing:
Posted: 26th Jun 2016 18:27
Hi Nathan, I appreciate your reply - I just want one speed for the player - I don't want the ability to run - if there was a speed Lua command I could set it to equal the walk speed on a keypress of shift but sadly I don't see such a lua command.

Changing speed in the player properties will only change the walk speed.
smallg
Community Leader
18
Years of Service
User Offline
Joined: 8th Dec 2005
Location:
Posted: 26th Jun 2016 19:19
you could give the player a limited sprint so that they won't be able to simply sprint around the entire map for free.
https://forum.game-guru.com/outbound?url=https%3A%2F%2Fforum.game-guru.com%2Fthread%2F207801%3Fpage%3D12%23msg2538382
lua guide for GG
https://steamcommunity.com/sharedfiles/filedetails/?id=398177770
windows 10
i5 @4ghz, 8gb ram, AMD R9 200 series , directx 11
Saintyboy
8
Years of Service
User Offline
Joined: 18th Jun 2015
Playing:
Posted: 26th Jun 2016 23:41
Thanks smallg - it works but visually its not ideal - used the principle though and I just freeze the player when pressing the sprint key - so it kinda works ok.
Northern
13
Years of Service
User Offline
Joined: 5th Nov 2010
Location: Brazil
Posted: 27th Jun 2016 07:37
@Saintyboy:

wrote:
Quote: "I need to disable the ability to run using the shift key - anyone any ideas?"


Hi there,

If you want to disable the left shift key, for any reason, and no longer make the player run during the game play, below you have a quick solution.

Before making any changes in the setup.ini file, it's wise and recommended, you save a backup copy of the original file, just in case, something goes wrong.

Having said that.

In the path "..\Steam\steamapps\common\Game Guru\setup.ini", you will find the file named 'setup.ini'. Next, open it up with the notepad or notepad++, or another similar program.

After that, scroll down the page until its end. In [GAMEPROFILE] section, at the bottom of the page, you will find the variable, keyRUN = 42. Following, change the number from 42 (Left Shift) to 54 (Right Shift). Finally, save your changes.

It's done! Now, if you want to make the player run, during the game play, you should click on the Right Shift Key.

Have fun!
Northern
PM
synchromesh
Forum Support
10
Years of Service
User Offline
Joined: 24th Jan 2014
Location:
Posted: 27th Jun 2016 11:30
Quote: "After that, scroll down the page until its end. In [GAMEPROFILE] section, at the bottom of the page, you will find the variable, keyRUN = 42. Following, change the number from 42 (Left Shift) to 54 (Right Shift). Finally, save your changes."


Better still change it to keyRUN = 1

That's the Esc key ..... pressing that simply escapes the game so that kind of makes it disabled
The only person ever to get all his work done by "Friday" was Robinson Crusoe..
PM
Saintyboy
8
Years of Service
User Offline
Joined: 18th Jun 2015
Playing:
Posted: 2nd Jul 2016 00:16 Edited at: 2nd Jul 2016 00:19
thanks for the help guys really appreciated.
I resolved it very simply with the following code, if the player presses shift and holds it he slowly grinds to a halt:

Login to post a reply

Server time is: 2024-05-04 09:22:25
Your offset time is: 2024-05-04 09:22:25