AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Plugins (https://forums.alliedmods.net/forumdisplay.php?f=108)
-   -   Tidy Chat (https://forums.alliedmods.net/showthread.php?t=101340)

pheadxdll 08-22-2009 23:43

Tidy Chat
 
2 Attachment(s)
Tidy Chat
Significantly improve the readability of your chat window.

Description:
This plugin simply filters out extraneous chat messages in TF2 (works for other mods). Those include:
Quote:

  • [TF2] (Voice): (Voice) xxx: MEDIC! (Spy!, Incoming, Help!)
  • [TF2] Change class: *You will respawn as Medic or *You will spawn as Medic
  • [TF2] Arena max streak: Team BLU reached 3 wins! Teams are now being scrambled.
  • [TF2] Arena team resize: Team size is increasing/decreasing to 3 to accommodate the current player count.
  • Server cvar change: Server cvar 'sv_tags' changed to alltalk,increased_maxplayers,payload
  • Connect: Player xxx has joined the game
  • Disconnect: Player xxx has left the game
  • Team change: Player xxx has joined team RED

ConVars:
There's a cvar for every message type, so you may choose to not block one. They are all on by default.

Quote:

  • sm_tidychat_on 1 // 0/1 - On/off
  • sm_tidychat_voice 1 // 0/1 - Tidy (Voice) messages
  • sm_tidychat_connect 0 // 0/1 - Tidy connect messages
  • sm_tidychat_disconnect 0 //0/1 - Tidy disconnect messages
  • sm_tidychat_class 1 // 0/1 - Tidy class change messages
  • sm_tidychat_team 1 // 0/1 - Tidy team join messages
  • sm_tidychat_arena_resize 1 // 0/1 - Tidy arena resize messages
  • sm_tidychat_arena_maxstreak 1 // 0/1 - Tidy arena team scramble
  • sm_tidychat_cvar 1 // 0/1 - Tidy cvar messages

There's a special cvar: sm_tidychat_alltext that is off by default. Turning it on will block most text from third-party plugins.

Note: This will not block [SM] messages! There is a perfectly good cvar to do that already! sm_show_activity You can edit its value in cfg/sourcemod/sourcemod.cfg.

Credits:
Gachl - For the name 'Tidy Chat'. I stole it! :crab:

Changelog:
Quote:

0.5
  • Fixed messages that weren't being blocked in TF2.
  • Updated to new syntax.
0.4
  • Uses SetEventBroadcast to suppress events
0.3
  • Finished release!


Sexual Harassment Panda 08-23-2009 04:24

Re: [TF2] Tidy Chat
 
oh wow. This is a great addition, I have been waiting for such a plugin for a long, long time.

noodleboy347 08-23-2009 05:49

Re: [TF2] Tidy Chat
 
This is great! Now if someone's banned and is trying to spam my server with "has joined the game", they'll fail.

DontWannaName 08-23-2009 06:01

Re: [TF2] Tidy Chat
 
Similar to this but a little more.

http://forums.alliedmods.net/showthread.php?p=716436

Sexual Harassment Panda 08-23-2009 13:04

Re: [TF2] Tidy Chat
 
Quote:

Originally Posted by DontWannaName (Post 910009)
Similar to this but a little more.

http://forums.alliedmods.net/showthread.php?p=716436

I had been looking at that, but like you said, this goes a little farther.

pheadxdll 08-23-2009 13:22

Re: [TF2] Tidy Chat
 
Quote:

Originally Posted by DontWannaName (Post 910009)
Similar to this but a little more.

http://forums.alliedmods.net/showthread.php?p=716436

This plugin won't cause problems with your other plugins, too!

In the future I might add the ability to block achievement notification messages, or weapon pickups. It's always annoying to get flooded by a player getting 20 weapons at once, because they idled for the past 3 days. :)

DontWannaName 08-23-2009 15:54

Re: [TF2] Tidy Chat
 
The best thing about that plugin was blocking player moved to spectator for admins.

FoxMulder 08-23-2009 16:03

Re: [TF2] Tidy Chat
 
Awesome! :)

BrutalGoerge 08-23-2009 16:15

Re: [TF2] Tidy Chat
 
good idea, especially with the people connecting. Ban someone, and they change their name to ADMINS ARE {BADWORDS} and connect spam over 9000 times.

I think i might have a kewl trick for you. I don't think you have to return Plugin_Handled and fire a non-broadcasted copy of the event.

If you change dontBroadcast to true, then return Plugin_Changed, it should have the same effect.

:D

pheadxdll 08-23-2009 16:46

Re: [TF2] Tidy Chat
 
Neat trick, indeed. I never tried that. Less code is better, updated!


All times are GMT -4. The time now is 14:15.

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