Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #69 from shavitush/chat
Implement chat handler
- Loading branch information
Showing
16 changed files
with
1,502 additions
and
75 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,106 @@ | ||
// Use SteamID3 for a value if you want a per-client setting. | ||
// "Custom" is for per-client settings. | ||
// "Ranks" is for rank range settings. It is limited to 64 entries and the way you sort this file will be also sorted in-game when a player uses /ranks. | ||
// | ||
// Available settings: | ||
// "rank_from" - rank range to start with | ||
// "rank_to" - rank range to end with; you can use "infinity" if it's for every player below "rank_from". | ||
// | ||
// "prefix" - prefix before the name (don't add a space after it) | ||
// "name" - custom name appearance (color from prefix will be applied here too) | ||
// "message" - the message itself | ||
// | ||
// Global variables: | ||
// {default} - default color | ||
// {team} - team color | ||
// {green} - green color | ||
// {name} - player name | ||
// {clan} - clan tag | ||
// {message} - message text | ||
// | ||
// If you use variables that aren't compatible with the game, it might break some stuff. | ||
// The default config will work with both CS:S and CS:GO, you can modify it for your needs. | ||
// Use `sm_reloadchat` in your server to reload this config. | ||
// | ||
// For CS:S, you have the following variables available: (NOTE: The format for colors is like HTML. RRGGBBAA) | ||
// {RGB} - like \x07, usage: "{RGB}FF0000" for red | ||
// {RGBA} - like \x08, usage: "{RGBA}FF0000FE" for 254 alpha red | ||
// | ||
// CS:GO colors: | ||
// {team} will become purple for spectators | ||
// {blue} | ||
// {bluegrey} | ||
// {darkblue} | ||
// {darkred} | ||
// {gold} | ||
// {grey} | ||
// {grey2} | ||
// {lightgreen} | ||
// {lightred} | ||
// {lime} | ||
// {orchid} | ||
// {yellow} | ||
// | ||
"Chat" | ||
{ | ||
"[U:1:204506329]" // my steamid for example, use steamid3 | ||
{ | ||
"prefix" "{green}/dev{green}/" | ||
"name" "{default}{team}{clan}{name}" | ||
} | ||
|
||
"-1" // lookup is due, shouldn't happen unless there's some error! | ||
{ | ||
"rank_from" "-1" | ||
"rank_to" "-1" | ||
|
||
"prefix" "" | ||
"name" "{team}{name}" | ||
"message" "{message}" | ||
} | ||
|
||
"0" // unranked | ||
{ | ||
"rank_from" "0" | ||
"rank_to" "0" | ||
|
||
"prefix" "[Unranked]" | ||
"name" "{team}{name}" | ||
"message" "{message}" | ||
} | ||
|
||
"1" | ||
{ | ||
"rank_from" "1" | ||
"rank_to" "1" | ||
|
||
"prefix" "{green}ONE TRUE GOD" | ||
"name" "{clan}{team}{name}" | ||
} | ||
|
||
"2" | ||
{ | ||
"rank_from" "2" | ||
"rank_to" "2" | ||
|
||
"prefix" "LEGENDARY" | ||
"name" "{name}" | ||
} | ||
|
||
"3" | ||
{ | ||
"rank_from" "3" | ||
"rank_to" "3" | ||
|
||
"prefix" "HERO" | ||
"name" "{team}{name}" | ||
} | ||
|
||
"4" | ||
{ | ||
"rank_from" "4" | ||
"rank_to" "infinity" | ||
|
||
"prefix" "scrub!" | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.