Author Topic: Chat Binds v2  (Read 6295 times)

Chat Binds
Press a button, send a message!

Description
This is a client sided add-on (I did make sure it was client sided) that lets you say something by pressing a button you assign in the controls menu. The phrases are pre-designated and can be edited by changing Phrases.txt in config/client/ChatBinds/Phrases. It only works up to nine lines.

This was originally requested by Demian for use with TDMs to avoid deaths because you were sitting around typing.

Changes in v2:
- GUI, set a keybind to open it.
- You can change or use the phrases in the GUI.
- You can update the file from ingame with the GUI.
Here's a picture of the GUI:


Download
Client_ChatBinds.zip
Put Client_ChatBinds.zip into the Add-Ons folder in your Blockland folder.
Click Here to view this file on the RTB Download Manager
« Last Edit: May 09, 2009, 01:20:39 PM by Amade »

Useful, thanks for making.

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. :|

Eh, not the most usful of things, but k.


This could be abused, this is why I didn't release Client_ChatMacros.

This could be abused, this is why I didn't release Client_ChatMacros.
It's no more abusive than pasting or using the up arrow.

It's no more abusive than pasting or using the up arrow.

This is pretty cool. It's not like bad, but it's not the awesomest thing. It's just useful and convenient. :P

Could we see more that one bind to program several phrases?

You could easily modify it to do that.

You could easily modify it to do that.
I don't know code... :P

I don't know code... :P
Open client.cs and find this bit of code
Code: [Select]
function useLine1(%wot) //The function that triggers when you use the keybind.
{
if(%wot) return; //This prevents spamming if you don't release the button at superhuman speed
commandToServer('messageSent'," " @ $CB::ChatLine1, ''); //Sends a chat message, via a script, that shows the variable $CB::ChatLine1
}
Modify it to send two messages, like this
Code: [Select]
function useLine1(%wot)
{
if(%wot) return;
commandToServer('messageSent'," " @ $CB::ChatLine1, '');
commandToServer('messageSent'," " @ $CB::ChatLine2, '');
}

If someone makes a "can I have admin?" bind I'll kill them..

Great Mod I get sick of dieing in a mini-game cause of typing..

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.

Anyone who actually knows how to fight 'n' type doesn't need this.

Great concept!

I editted all of these, made them swear words. Good job! :D