Chat Message Sounds v1.2 ======================== ©Copyright 2013, Rich „Weeds„ Nagel - Some Rights Reserved Description ----------- This simple Lua script for Counter-Strike 2D will play a relatively unobtrusive sound effect when a player sends a chat message to all players within the game (using the game's built-in "say" command), as well as a slightly different sound effect when a player sends a team chat message (using the game's built-in "sayteam" command). These two tiny sound effect files will be be heard by all players within the game (or all players on the same team), and are edited versions of the message notification sound effect used by Valve's Steam Client ("Steam\Friends\Message.wav"). This sound effect used by the Steam Client is a fairly unobtrusive (but yet still audible) sound effect, hence the two edited versions of the sound effect should not be a deterrence within the game in the least. This Lua script will also print a message in the server's console any time that a player sends a chat message (or a team chat message) within the game. This is handy for browsing and searching though your server log files for any chat messages that any of the players may have sent during the game. Note that you can use Windows Notepad to search through your server log files for the "All Chat Message" and "Team Chat Message" entries to find the players' chat messages. Lastly, note that this Lua script (and sound effects) could be slightly annoying when used on a server where many of the players are nonsensically babbling away. But, on a server where the players are not complete chattermouths (i.e. NOT using the game as a "social media alternative", but rather ACTUALLY playing the game), the script will prove handy so that a player does not miss an important message from another player (or another team member). Installation ------------ Unzip the files and folders contained in the "Chat_Message_Sounds_v1.2.zip" archive to the "Counter-Strike 2D\Sys" folder on your hard drive in verbatim, and then add the following line to the "Server.lua" (located in the "Counter-Strike 2D\Sys\Lua" folder) file using Windows Notepad: dofile("Sys/Lua/ChatMessageSounds.lua") Alternatively, unzip the files and folders as detailed above, and then copy the "ChatMessageSounds.lua" file to the "Counter-Strike 2D\Sys\Lua\Autorun" folder on your hard drive. Note that this method does NOT require editing of the "Server.lua" file (as the game will automatically run any Lua script files that are located in the "Autorun" folder). Server File Transfer -------------------- Add the following lines to the "ServerTransfer.lst" file (located in the "Counter-Strike 2D\Sys" folder) using Windows Notepad: // Chat Message Sounds v1.2 Sfx/AllChatMessageSound.wav Sfx/TeamChatMessageSound.wav Note that this allows the sound effect files to be uploaded to each of the players when they initally connect to the server. Version History --------------- v1.0 - First Release. (January 18, 2013) v1.1 - Added a second sound effect used for team chat messages (January 19, 2013) for the spectator team, terrorist team, and counter-terrorist team. v1.2 - Added printing the messages "All Chat Message" and (January 22, 2013) "Team Chat Message" to the server's console any time that a player sends a chat message (or a team chat message) within the game. ENJOY! ------ Rich „Weeds„ Nagel January 22, 2013 richnagel@centurylink.net http://www.richnagel.net http://www.unrealsoftware.de/profile.php?userid=110755 http://steamcommunity.com/id/RichNagel