Don't Shout
2 Attachment(s)
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 |
Re: Don't Shout
Nice idea.
I use the caps lock key (due to it's proximity to WASD)as a push-to-talk for Teamspeak so this will be a godsend. Thank you. |
Re: Don't Shout
LOL OMG APPROVED -> lol omg approved
;] |
Re: Don't Shout
When using base-chat commands this is displaying the message twice, once in it's original form WITH caps and also without the caps.
Like this: I type @ TESTING we see somthing like: Extreme_One: TESTING Extreme_One: Testing Not sure if you can fix this (minor) issue. :wink: |
Re: Don't Shout
Is this plugin use a separate config file, like many other plugins? If so, what's its name, and where should I put it?
Thanks. |
Re: Don't Shout
No it doesn't, I think that when I wrote this little plugin there might not even have been a config file for most plugins. If you want I can add it though, shouldn't be too hard. Gives me some time to look at the bug report above :) I never visited this thread after it got posted.
|
Re: Don't Shout
Quote:
Cool. I hope you do find a way to eliminate the issue I described :up: |
Re: Don't Shout
Nope I'm fine, I just wanted to know where to set-up those plugin commands.
|
Re: Don't Shout
Would it be possible to make admins with the slay flag able to bypass this?
It's so helpful and I must say saves me having to see caps spam from a user before I have to kick/ban. |
Re: Don't Shout
L 12/17/2008 - 20:58:01: [SM] Native "strlen" reported:
L 12/17/2008 - 20:58:01: [SM] Displaying call stack trace for plugin "dontshout.smx": L 12/17/2008 - 20:58:01: [SM] [0] Line 75, /home/groups/alliedmodders/forums/files/3/0/0/0/8/19567.attach::Command_HandleSay() L 12/17/2008 - 20:58:49: [SM] Plugin encountered error 8: Not enough space on the stack |
All times are GMT -4. The time now is 15:58. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.