Monthly Target: $400 Donations: $348
 87% 

Tidy Chat


Post New Thread Reply   
 
Thread Tools Display Modes
Author
pheadxdll
SourceMod Donor
Join Date: Jun 2008
Plugin ID:
1116
Plugin Version:
0.5
Plugin Category:
General Purpose
Plugin Game:
Any
Plugin Dependencies:
    Approver:
    Plugin Description:
    Filters extraneous chat messages in TF2 & other mods.
    Servers with this Plugin:
    944 
    Old 08-22-2009 , 23:43   Tidy Chat
    Reply With Quote #1

    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!

    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!
    Attached Files
    File Type: sp Get Plugin or Get Source (tidychat.sp - 52 views - 4.4 KB)

    Last edited by pheadxdll; 07-19-2015 at 19:24.
    pheadxdll is offline
    Sexual Harassment Panda
    Veteran Member
    Join Date: Dec 2008
    Location: San Diego, CA
    Old 08-23-2009 , 04:24   Re: [TF2] Tidy Chat
    Reply With Quote #2

    oh wow. This is a great addition, I have been waiting for such a plugin for a long, long time.
    __________________
    Sexual Harassment Panda is offline
    noodleboy347
    SourceMod Donor
    Join Date: Mar 2009
    Old 08-23-2009 , 05:49   Re: [TF2] Tidy Chat
    Reply With Quote #3

    This is great! Now if someone's banned and is trying to spam my server with "has joined the game", they'll fail.
    noodleboy347 is offline
    DontWannaName
    Veteran Member
    Join Date: Jun 2007
    Location: VALVe Land, WA
    Old 08-23-2009 , 06:01   Re: [TF2] Tidy Chat
    Reply With Quote #4

    Similar to this but a little more.

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

    DontWannaName is offline
    Sexual Harassment Panda
    Veteran Member
    Join Date: Dec 2008
    Location: San Diego, CA
    Old 08-23-2009 , 13:04   Re: [TF2] Tidy Chat
    Reply With Quote #5

    Quote:
    Originally Posted by DontWannaName View Post
    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.
    __________________
    Sexual Harassment Panda is offline
    pheadxdll
    SourceMod Donor
    Join Date: Jun 2008
    Old 08-23-2009 , 13:22   Re: [TF2] Tidy Chat
    Reply With Quote #6

    Quote:
    Originally Posted by DontWannaName View Post
    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.
    pheadxdll is offline
    DontWannaName
    Veteran Member
    Join Date: Jun 2007
    Location: VALVe Land, WA
    Old 08-23-2009 , 15:54   Re: [TF2] Tidy Chat
    Reply With Quote #7

    The best thing about that plugin was blocking player moved to spectator for admins.
    __________________

    DontWannaName is offline
    FoxMulder
    Senior Member
    Join Date: Jan 2009
    Location: Orlando, FL
    Old 08-23-2009 , 16:03   Re: [TF2] Tidy Chat
    Reply With Quote #8

    Awesome!
    __________________
    FoxMulder is offline
    BrutalGoerge
    SourceMod Donor
    Join Date: Jul 2007
    Old 08-23-2009 , 16:15   Re: [TF2] Tidy Chat
    Reply With Quote #9

    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.

    __________________
    My Pluggies If you like, consider to me.
    BrutalGoerge is offline
    pheadxdll
    SourceMod Donor
    Join Date: Jun 2008
    Old 08-23-2009 , 16:46   Re: [TF2] Tidy Chat
    Reply With Quote #10

    Neat trick, indeed. I never tried that. Less code is better, updated!
    pheadxdll is offline
    Reply


    Thread Tools
    Display Modes

    Posting Rules
    You may not post new threads
    You may not post replies
    You may not post attachments
    You may not edit your posts

    BB code is On
    Smilies are On
    [IMG] code is On
    HTML code is Off

    Forum Jump


    All times are GMT -4. The time now is 20:04.


    Powered by vBulletin®
    Copyright ©2000 - 2015, vBulletin Solutions, Inc.
    Theme made by Freecode