Remap default keys in script?
We all know keydown(0) is the direction for up. Similarly, keyName(0) yields "Up" or whatever.
It's editable via the F3 menu. Is there a function to edit the key? Seems as though the vars for it are saved into game_config.txt, which is unreachable by normal .loadvars/.loadlines type stuff. |
no such function exists
it would also be highly prone to abusive developers causing annoyance, plus changes would be applied globally to every server a player logs on to |
Quote:
And don't even get me started on PMs! They're obviously readable/loggable, but you could also make a system for "PM spoofing" -- where I could PM someone and make it look like YOU PMed them, using the default system entirely (basically just using your client as a proxy via new pmctrl/showpm()/plaintext retrieval/paste into pmeditctrl/sendpm() - all invisibly). You can retrieve players histories with each other and upload it to the server (new pmhistoryctrl/plaintext retrieval/trigger the plaintext to server) so you can spy on people's conversations. You can do the same (but to a smaller degree) to retrieve player's email addresses, if they sign in with an email. Not to mention that I know some serious graal security holes that I won't even mention in this thread because nobody else should be aware of them. I could see why mousex/mousey stopped being writeable -- outside of making a first-person-shooter on graal I can't even fathom a reason for why they should be writeable, and they were highly prone to abuse to any old novice coder otherwise (lol lol mousescreenx = int(random...). But not being able to write or EVEN READ the default keybinds? That's just bad form! |
So graal is basically a trojan horse disguised as a game? ;)
|
100 wrongs dont make a right!
and for reading the default keys cant you just use keyname(5) to obtain the sword key for example? |
Quote:
Quote:
By default, sword is S, spacebar, and num5. keyname(5) just returns S. |
All times are GMT +2. The time now is 01:34 AM. |
Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2024, vBulletin Solutions Inc.
Copyright (C) 1998-2019 Toonslab All Rights Reserved.