Thread: Don't Shout
View Single Post
Author Message
Brainstorm
Member
Join Date: Aug 2007
Old 08-26-2007 , 06:18   Don't Shout
Reply With Quote #1

Current Version:

1.0


Description:

Some players are unfortunate enough to have bought a keyboard where both shift keys are permanently stuck, causing all their chat to be in UPPERCASE. This plugin is designed to help them out, and change their text to lowercase.


CVars:

bd_shout_enabled - Whether the anti-shout plugin is enabled (default: 1)
bd_shout_percent - Percent of alphanumeric characters that need to be uppercase before the plugin will kick in (default: 0.7)
bd_shout_mincharcount - Minimum amount of alphanumeric characters before the sentence will be altered (default: 5).


Features:

Plugin will work on say, say_team and say2. Upon filtering a message, the plugin will disregard numeric and special characters. When converting the text to lowercase, the first character will be skipped (causing it to stay uppercase).


Features to come:

None. Suggestions welcome


Examples:

"HI I AM CAPS" -> "Hi i am caps"
"Hi I am caps" -> "Hi I am caps" (not enough caps)
"LOL" -> "LOL" (no change, < 5 chars)
"12345ABCDE" -> "12345abcde" (numeric values are disregarded"


Changelog:

1.0: Initial Release
Attached Files
File Type: smx dontshout.smx (3.1 KB, 988 views)
File Type: sp Get Plugin or Get Source (dontshout.sp - 2635 views - 5.3 KB)
Brainstorm is offline