Keybind Messages
2 KB, 14 years ago, submitted by
Tired of telling people "right click to scope this weapon" when really right clicking does nothing because they have remapped the control to something else? Then this is the script for you.
This script adds a TorqueML type notation for letting you type the name of the keybind, and clients individually turn it into their respective keys, so your descriptions of what to press are always accurate.
The keybind notation works like so:
Code:
<bind:remap name or command>
which the client translates into the bound key.
If the "remap name or command" begins with " then the client will only look for remap names.
If the "remap name or command" ends with () then the client will only look for remap commands.
Beginning with " overrides ending with ()
If neither " or () are given, both will automatically be checked, starting with remap commands, then names.
You can also use /DetectKeybindMessages [player name] to see if a person has this script before you use the <bind: notation, because if they do not have this script, it will look like <bind:whatever you typed> instead of turning into what you expect it to.
Note to scripters:
I have designed this framework while keeping in mind that others will want to use it, so...
When a client connects, the server checks wether or not the client has this script via a commandToClient/commandToServer handshake. If the client does have this framework,
Code:
client.hasKeybindMessages
will be set to true.
If a client does not have this mod, and you still send them messages using the <bind:whatever> notation, they will see <bind:whatever> instead of what they have bound their whatever remap to.
In order to avoid clients seeing this, please check if the client has this script first via checking client.hasKeybindMessages.
Why I use the laptop setting when I have a full keyboard is beyond me... may it's because I started playing Blockland on a laptop...
Besides, who DOESN'T use "r" for their jets? :D
Why did what pop up red?
I AM CONFUISED, i download it anyway because any mod by BobAndRob is epic :}
This might be helpfull for those "Nice" admins that awnser all the stupid questions.
No, the exact opposite is true. It makes it easier to help those noobs who bother you asking how to do something. The sooner you tell them to press ALT BACKSLASH instead of F2 to open the player list because they have it bound to something odd, the sooner they will stop bothering asking you "HAO 2 DO?"
[quote=
I use right mouse button 4
wow i can't beleive someone could even say so many cutoff and mixed up words in one sentence
i would say "OMG FTW WTF IS THIS THE 7 KEY NOT WRKN 4 JET?"
Yes it does, you just don't know how to use it. Nobody said you had to try to use it, not understand what it does, and then whine in a comment. If it didn't work, it wouldn't have been approved.