Raised This Month: $12 Target: $400
 3% 

[Any] Chat-Processor (Replacement for Simple Chat Processor)


Post New Thread Reply   
 
Thread Tools Display Modes
Author
Drixevel
AlliedModders Donor
Join Date: Sep 2009
Location: Somewhere headbangin'
Plugin ID:
5330
Plugin Version:
2.3.2
Plugin Category:
Technical/Development
Plugin Game:
Any
Plugin Dependencies:
    Servers with this Plugin:
    758 
    Plugin Description:
    A plugin with available API to hook and change clients name and message strings.
    Old 08-27-2016 , 12:34   [Any] Chat-Processor (Replacement for Simple Chat Processor)
    Reply With Quote #1


    Description:
    This plugin and its API is meant to be a replacement for the old Simple Chat Processor (redux version) by fixing some bugs and adding new features to it. This plugin also uses the ColorVariables include to add additional features to the forwards for the plugin in order to automatically replace colors, remove colors, etc. This plugin uses a configuration file instead of a translation file for the format strings which allows for less translation files.

    :: WARNING ::
    This plugin is NOT meant to be ran alongside Simple Chat Processor(SCP) therefore you should either pick that SayText2 plugin or this one.

    :: NOTE ::
    This plugin is NOT a plugin which handles chat related changes, it's just an API plugin. Use HexTags which relies on this plugin to make those necessary changes.

    ConVars:
    • sm_chatprocessor_status - 1 - Status of the plugin.
    • sm_chatprocessor_config - configs/chat_processor.cfg - Name of the message formats config.
    • sm_chatprocessor_process_colors_default - 1 - Default setting to give forwards to process colors.
    • sm_chatprocessor_remove_colors_default - 0 - Default setting to give forwards to remove colors.
    • sm_chatprocessor_strip_colors - 1 - Remove color tags from the name and the message before processing the output.
    • sm_chatprocessor_colors_flag - b - Flags required to use the color name and message. Needs sm_chatprocessor_strip_colors 1
    • sm_chatprocessor_deadchat - 1 - Controls how dead communicate.\n(0 = off, 1 = on)
    • sm_chatprocessor_allchat - 0 - Allows both teams to communicate with each other through team chat.\n(0 = off, 1 = on)
    • sm_chatprocessor_specchat - 1 - Allow spectators to chat to the teams or just to each other.\n(0 = off, 1 = on)
    • sm_chatprocessor_restrictdeadchat - 0 - Restricts all chat for the dead entirely.\n(0 = off, 1 = on)
    • sm_chatprocessor_addgotv - 1 - Add GOTV client to recipients list. (Only effects games with GOTV or SourceTV)
    Special Thanks:
    • abrandnewday - recommendation and idea
    • Peace-Maker - format recommendations
    • SM9() - push requests and fixes for CSGO

    Available 2013 Colors By Dr.McKay(TF2, CSS, ETC)

    Available CSGO Colors:


    Download | Repository | Download | Plugin Updates | Report Bugs | Donate

    Last edited by Drixevel; 01-22-2023 at 11:16.
    Drixevel is offline
    Drixevel
    AlliedModders Donor
    Join Date: Sep 2009
    Location: Somewhere headbangin'
    Old 08-27-2016 , 12:35   Re: [Any] Chat-Processor (Replacement for Simple Chat Processor)
    Reply With Quote #2

    Example from the test plugin:

    Code:
    public Action CP_OnChatMessage(int& author, ArrayList recipients, char[] flagstring, char[] name, char[] message, bool& processcolors, bool& removecolors)
    {
    	Format(name, MAXLENGTH_NAME, "{red}%s", name);
    	Format(message, MAXLENGTH_MESSAGE, "{blue}%s", message);
    	return Plugin_Changed;
    }
    
    public void CP_OnChatMessagePost(int author, ArrayList recipients, const char[] flagstring, const char[] formatstring, const char[] name, const char[] message, bool processcolors, bool removecolors)
    {
    	PrintToServer("[TEST] %s: %s [%b/%b]", name, message, bProcessColors, bRemoveColors);
    }

    Last edited by Drixevel; 01-27-2017 at 09:50.
    Drixevel is offline
    sneaK
    SourceMod Moderator
    Join Date: Feb 2015
    Location: USA
    Old 08-27-2016 , 12:49   Re: [Any] Chat-Processor (Replacement for Simple Chat Processor)
    Reply With Quote #3

    Nice release!

    Is there a straightforward way to convert an existing plugin to use this instead of SCP?
    sneaK is offline
    Drixevel
    AlliedModders Donor
    Join Date: Sep 2009
    Location: Somewhere headbangin'
    Old 08-27-2016 , 12:56   Re: [Any] Chat-Processor (Replacement for Simple Chat Processor)
    Reply With Quote #4

    Quote:
    Originally Posted by blackhawk74 View Post
    Nice release!

    Is there a straightforward way to convert an existing plugin to use this instead of SCP?
    Just edit the forwards parameters, I kept the names the same. (That plus the include name)

    Last edited by Drixevel; 08-27-2016 at 12:57.
    Drixevel is offline
    Maxximou5
    AlliedModders Donor
    Join Date: Feb 2013
    Old 08-27-2016 , 12:56   Re: [Any] Chat-Processor (Replacement for Simple Chat Processor)
    Reply With Quote #5

    Great work man, looks like it will be super useful. Have some bacon, on me, free of charge.
    Maxximou5 is offline
    HawkXD
    Member
    Join Date: Aug 2015
    Location: Norway
    Old 08-27-2016 , 12:56   Re: [Any] Chat-Processor (Replacement for Simple Chat Processor)
    Reply With Quote #6

    Nice
    HawkXD is offline
    Xzan
    Junior Member
    Join Date: Aug 2016
    Old 08-27-2016 , 13:11   Re: [Any] Chat-Processor (Replacement for Simple Chat Processor)
    Reply With Quote #7

    Nice work! Does it work for Sourcemod 1.7 ?
    Xzan is offline
    Drixevel
    AlliedModders Donor
    Join Date: Sep 2009
    Location: Somewhere headbangin'
    Old 08-27-2016 , 13:11   Re: [Any] Chat-Processor (Replacement for Simple Chat Processor)
    Reply With Quote #8

    Quote:
    Originally Posted by Xzan View Post
    Nice work! Does it work for Sourcemod 1.7 ?
    Maybe, It's compiled and tested on 1.8 though.
    Drixevel is offline
    shavit
    AlliedModders Donor
    Join Date: Dec 2011
    Location: Israel
    Old 08-27-2016 , 14:19   Re: [Any] Chat-Processor (Replacement for Simple Chat Processor)
    Reply With Quote #9

    Pretty cool! Does the 'recipients' array actually work? Can I manipulate it and remove/add client indexes without having duplicates?
    __________________
    retired
    shavit is offline
    nhnkl159
    Senior Member
    Join Date: Jul 2012
    Location: Israel 3>
    Old 08-27-2016 , 14:22   Re: [Any] Chat-Processor (Replacement for Simple Chat Processor)
    Reply With Quote #10

    i fucking love you..

    great job ;)
    __________________
    nhnkl159 is offline
    Send a message via Skype™ to nhnkl159
    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 16:14.


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