AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Plugins (https://forums.alliedmods.net/forumdisplay.php?f=108)
-   -   Don't Shout (https://forums.alliedmods.net/showthread.php?t=60066)

Brainstorm 08-26-2007 06:18

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

Extreme_One 08-26-2007 15:49

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.

API 08-27-2007 02:18

Re: Don't Shout
 
LOL OMG APPROVED -> lol omg approved
;]

Extreme_One 09-04-2007 18:48

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:

Jérémie 02-19-2008 16:49

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.

Brainstorm 02-20-2008 13:25

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.

Extreme_One 02-20-2008 14:07

Re: Don't Shout
 
Quote:

Originally Posted by Brainstorm (Post 587473)
...Gives me some time to look at the bug report above :) ....


Cool. I hope you do find a way to eliminate the issue I described :up:

Jérémie 02-28-2008 04:05

Re: Don't Shout
 
Nope I'm fine, I just wanted to know where to set-up those plugin commands.

rodregis 08-15-2008 10:07

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.

DontWannaName 12-19-2008 05:14

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 12:31.

Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.