Author Topic: Chat Binds v2  (Read 6293 times)

This is pretty cool. It's not like bad, but it's not the awesomest thing. It's just useful and convenient. :P
Idk how to make it better so I say it's pretty awesome.

I recommend making this a little more dynamic then you have it now. Have the editable .txt stored outside of the .zip, like in the config folder, so newbs won't struggle with rezipping the files (some OS require it). Also, I'm not sure how well you know scripting, but try looking into having it make enough binds for all the lines you have. What I mean is this:

Code: [Select]
I've got the flag!
We need defense, quick!
Stop spawnkilling...

If that was my .txt file, then the script should only add three binds to the options menu for me to set to places. However, if my .txt file was this:

Code: [Select]
I've got the flag!
We need defense, quick!
Stop spawnkilling...
Incoming!

Then the script would generate four binds for me to set on the options menu. This way people can have as many as they need, so that this mod can be widely used.

Great concept though, I had made myself one for Rky's Blockrace awhile ago; it's a very useful client-sided script to have.

I'll try making a GUI for this. I didn't make a GUI originally because I thought it'd be slower than a keybind.
Truce, it already has ten lines. I can't imagine you would need more than ten.

I have a much better one.
If this one doesn't get trashed I might aswell release it.
It's like, months old. (Made August 30th)
Has GUI and options to allow slash commands.
I still have it :D

You're welcome.
It took me all afternoon because I couldn't figure out why it wasn't picking up the variable used for each line.
It was using the wrong file name. :|
that could be a problem, and also good job, good for slow typers

- Allow as many phrases as there are lines in the file (this is what Truce said, eval() some functions or something so there aren't unnecessary options which are binded to nothing)
- Make the keybinds show the name of it ("Phrase 1 - Incoming!")
- Make it copy the file to config/client at the start if it doesn't exist so it is editable without opening the .zip
- LoadRules will break GRules mod or cause errors if re-executed etc. Change the name of this function.

First thought: Spam

First thought: Spam
GET OVER IT. If people are going to spam, they're going to spam.
- Allow as many phrases as there are lines in the file (this is what Truce said, eval() some functions or something so there aren't unnecessary options which are binded to nothing)
- Make the keybinds show the name of it ("Phrase 1 - Incoming!")
- Make it copy the file to config/client at the start if it doesn't exist so it is editable without opening the .zip
- LoadRules will break GRules mod or cause errors if re-executed etc. Change the name of this function.
Oh shoot, I thought I changed the name of that. Thanks for pointing it out. I'll move the file to config/client/ChatBinds. I'll see if it's possible to add the phrase to the name of the keybind, or even to just use the phrase for the name of the keybind. Not sure about the as many binds as lines, thing, though. I'll see what I can do.

now you can spam the server's rules!



Bump for v2. See the first post for updates.