Ao1 Clan
Would you like to react to this message? Create an account in a few clicks or log in to continue.

Applying text formatting to keybinded messages

2 posters

Go down

Applying text formatting to keybinded messages Empty Applying text formatting to keybinded messages

Post by WhiteStone 13/02/15, 05:06 pm

It is possible to bind a key to some user action, like sending a text message to other users.
So actually you don't have to type it, but press a button. I use the F1, F2, F3, etc keybinds.
It is also recommended, because they dont have any input.

Steps:
1. Go to your installation folder of swat 4 TSS, and go to the system folder.
(it should look like this C:\Program Files (x86)\Sierra\SWAT 4\Content\System
or for TSS like this C:\Program Files (x86)\Sierra\SWAT 4\ContentExpansion\System)
2. Go search for this file: User.ini.
3. Open the file with Notepad. (Click on 'open with' and choose 'Notepad').
4. Under [Engine.Input] search for this line: F1=CommandOrEquip Row_FunctionKeys 1
5. After the '1' add a vertical line '|' (above Enter) and type first 'Say' or 'TeamSay' and then whatever you want.
For Example:
F1=CommandOrEquip Row_FunctionKeys 1 | Say Alliance of One
F2=CommandOrEquip Row_FunctionKeys 2 | Say [c=ffffff]I am the [c=0000ff]Best!
F3=CommandOrEquip Row_FunctionKeys 3 | TeamSay [c=ff0000]Watch your grenade!!!

6. SAVE THE FILE!

As you can see in example of F2 and F3 you can also use colors.
Besides colors you can also use it for a command, like:
F1=CommandOrEquip Row_FunctionKeys 1 | kick cc spec

YOU can also use other keybinds for example when you click on R (Reload):
R=Reload | TeamSay [C=FF0000]Reloading, please cover me!
Now when you press R, a message will go to your teammates and will say the following message:
Reloading, please cover me!

YOU can also make a key-bind message that will be send to admins only.
Semicolon=KICK AC AS [color=#FF0000]Watch the newcomer, probably Radar!
So now it sends a message to all Online Admins: Watch the newcomer, probably radar!

Make sure that KICK AC AS is uppercase!


Message formatting:
Say - Send a message to everyone
TeamSay - Send a message to your team
OnRelease - Execute a command once the specified key is released
%command 1% | %command 2% - The letter | splits commands in case you need to use more than one command at single key.
KICK AC AS - Sends a message to admins only
['B'] - Bolds the text (without the ' ' )
['U'] - Underlines the text (without the ' ' )
[C=######] - Colors the message. Replace ###### with the HTML color value (RGB syntax). You can get some of color values Here.

NOTE: Make sure it is under [Engine.Input] and NOT under [SwatGui.SwatInputReset].
So it should be the first F1 you see.


You can see here more examples if you want:
- Download


Last edited by WhiteStone on 15/02/15, 03:06 pm; edited 6 times in total
WhiteStone
WhiteStone
LEADER
LEADER

Age : 37
Location : Netherlands

https://ao1clan.forumotion.com https://www.youtube.com/channel/UC0EkwasLL50jvupAbDJc-tw

Back to top Go down

Applying text formatting to keybinded messages Empty Re: Applying text formatting to keybinded messages

Post by Polar 13/02/15, 06:26 pm

WhiteStone wrote:Make sure you type the 'S' in Say with a uppercase and also the 'T' and 'S' in Teamsay with a uppercase.

Uppercase doesn't matter, it works in lower case, you can remove this

Also as well as a bind to send a message, you can also set it for a command, for example:
F1=CommandOrEquip Row_FunctionKeys 1 | kick cc spec

I haven't tried it for admin commands but that probably works too
Polar
Polar
Ao1|SuperAdmin
Ao1|SuperAdmin

Age : 29
Location : UK

Back to top Go down

Applying text formatting to keybinded messages Empty Re: Applying text formatting to keybinded messages

Post by WhiteStone 13/02/15, 06:33 pm

I didn't know that you can use for it commands, nice.

I have edited the post. Thx Pola
WhiteStone
WhiteStone
LEADER
LEADER

Age : 37
Location : Netherlands

https://ao1clan.forumotion.com https://www.youtube.com/channel/UC0EkwasLL50jvupAbDJc-tw

Back to top Go down

Applying text formatting to keybinded messages Empty Re: Applying text formatting to keybinded messages

Post by Sponsored content


Sponsored content


Back to top Go down

Back to top


 
Permissions in this forum:
You cannot reply to topics in this forum