Scripts / Disable/lock buttons keys?

Author
Message
Peri
Game Guru Backer
14
Years of Service
User Offline
Joined: 6th Jan 2010
Location:
Posted: 24th Aug 2019 17:52
Hi, I looking to a way do disable few
Keyboard buttons while the level
Is it possible?
smallg
Community Leader
18
Years of Service
User Offline
Joined: 8th Dec 2005
Location:
Posted: 24th Aug 2019 18:09
not really, which keys are you looking to lock? if it's standard GG behaviour you can override it if you modify the scripts
lua guide for GG
https://steamcommunity.com/sharedfiles/filedetails/?id=398177770
windows 10
i5 @4ghz, 8gb ram, AMD R9 200 series , directx 11
Peri
Game Guru Backer
14
Years of Service
User Offline
Joined: 6th Jan 2010
Location:
Posted: 24th Aug 2019 21:32
Hi there, I need to disable: space (jump) shift (sprint), right and left mouse (aim and shoot)

I want to keep only the ability to walk in this level,

Its a third person level

Thanks.
Peri
Game Guru Backer
14
Years of Service
User Offline
Joined: 6th Jan 2010
Location:
Posted: 26th Aug 2019 23:26
@smallg
can you give me some start?
I will do some research, there is must be some way to control the game keyboard,
I know in Lua it calls g_key""

Thanks
smallg
Community Leader
18
Years of Service
User Offline
Joined: 8th Dec 2005
Location:
Posted: 26th Aug 2019 23:40
yes, open gameplayercontrols.lua and find and remove the parts you don't want to be active in the game (keep a back up and don't allow GG to update or verify as it will overwrite any changes)
for instance
lines 804 - 870
-- Handle player jumping
lines 1168 - 1214
-- control animation of third person character (notably being able to aim)
line 685
SetGamePlayerControlBasespeed(2.0)
probably change to
SetGamePlayerControlBasespeed(1.0)
to remove sprinting

it's not a quick process i'm afraid
lua guide for GG
https://steamcommunity.com/sharedfiles/filedetails/?id=398177770
windows 10
i5 @4ghz, 8gb ram, AMD R9 200 series , directx 11
Peri
Game Guru Backer
14
Years of Service
User Offline
Joined: 6th Jan 2010
Location:
Posted: 27th Aug 2019 15:28
That a start thanks, I will update.

Login to post a reply

Server time is: 2024-03-29 05:56:44
Your offset time is: 2024-03-29 05:56:44