AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Plugins (https://forums.alliedmods.net/forumdisplay.php?f=108)
-   -   [Source 2013] Custom Chat Colors (https://forums.alliedmods.net/showthread.php?t=186695)

Dr. McKay 06-02-2012 15:20

[Source 2013] Custom Chat Colors
 
[Source 2013] Custom Chat Colors

v3.1.0

Description:
Give particular Steam IDs and admin flags custom chat colors and name tags. Supports any color you can imagine, or team color, green, and olive. This is a rewrite of Simple Chat Colors (Redux). Requires Simple Chat Processor (Redux). Complete documentation is in the config file.

Only works in Source 2013 games, which include:
  • Team Fortress 2
  • Counter-Strike: Source
  • Half-Life 2: Deathmatch
  • Day of Defeat: Source

This also works on CS:GO, but only "T", "G", and "O" codes can be used.

Update: I'm getting reports that colors don't work on CS:GO when alive. This is a shame, but this plugin doesn't officially support CS:GO. Don't expect it to be fixed.


This plugin will never support any CS:GO colors beyond those mentioned above, so stop asking.

Commands:
sm_reloadccc - reloads the config file

Cvars:
custom_chat_colors_version - plugin version
custom_chat_colors_auto_update (default 1) - enables automatic updating (has no effect if Updater is not installed)

Requirements:
Requires the Simple Chat Processor (Redux) plugin.

Developers:
This plugin provides several forwards and natives. See the include file for documentation.

Installation:
Install Simple Chat Processor (Redux), extract chatcolors.zip, upload its contents to your /addons/sourcemod directory, and reboot your server or type "sm plugins load custom-chatcolors" into your console or rcon.

Auto Update:
Install Updater. The plugin will be auto-updated according to your Updater settings. It'll work without Updater.

Changelog:
  • v3.1.0 (8/30/14)
    • Added support for Steam3 IDs
  • v3.0.0 (7/8/13)
    • Removed deprecated natives
    • Added CCC_OnColor and CCC_OnChatMessage forwards
    • Deprecated CCC_OnTagApplied, CCC_OnNameColor, and CCC_OnChatColor forwards
    • Improved Updater integration
  • v2.4.0 (2/11/13)
    • Added CCC_OnConfigReloaded forward
  • v2.3.0 (1/27/13)
    • Added support for CS:GO
  • v2.2.0 (1/16/13)
    • Added CCC_OnUserConfigPreLoaded forward so other plugins can block the config file from being loaded
  • v2.1.0 (12/8/12)
    • Added library registration so that other plugins can verify that Custom Chat Colors is running
  • v2.0.0 (11/25/12)
    • Improved and revised natives
  • v1.8.0 (9/27/12)
    • Changed update URL to SVN repository
    • Plugin now properly fails to load when Simple Chat Processor is not installed
  • v1.7.0 (9/16/12)
    • Fixed a bug that caused people to improperly receive colors and tags
  • v1.6.0 (9/16/12)
    • Renamed forwards to add CCC_ prefix
    • Added CCC_OnUserConfigLoaded forward
    • Added CCC_SetNameColor, CCC_SetChatColor, CCC_SetTagColor, and CCC_SetTag natives
  • v1.5.0 (8/25/12)
    • Plugin now warns on load if simple-chatprocessor.smx is not loaded
  • v1.4.0 (7/12/12)
    • Added ability to disable automatic updating
  • v1.3.0 (7/3/12)
    • Fixed a problem with the OnNameColor forward
  • v1.2.0 (6/14/12)
    • Made the natives actually work
  • v1.1.0 (6/14/12)
    • Added OnTagApplied forward
    • Added CCC_GetNameColor, CCC_GetChatColor, CCC_GetTagColor, and CCC_GetTag natives
  • v1.0.0 (6/2/12)
    • Initial release

Download Plugin (chatcolors.zip)

.zip file includes compiled binary, config file, source, and .inc file

Official Modules


.

11530 06-02-2012 15:35

Re: [TF2] Simple Chat Colors (Redux) (Redux)
 
I think I prefer the term "Dual Redux" or something :D

Thanks for rewriting this. Given that I often get entity errors with Anti's one, I think I'll check this this as soon as I can.

ReFlexPoison 06-02-2012 16:03

Re: [TF2] Simple Chat Colors (Redux) (Redux)
 
Sweet, thanks for the release, but like 11530, change the name ;)

Dr. McKay 06-02-2012 16:34

Re: [TF2] Custom Chat Colors
 
Fine... :(

Horsedick 06-02-2012 16:49

Re: [TF2] Custom Chat Colors
 
I liked the name as it was :)

Thanks for the re-write - lookin at it now.

ReFlexPoison 06-02-2012 18:04

Re: [TF2] Custom Chat Colors
 
Maybe someone can answer this for me, any particular reason this feature is only for TF2? I know this has question has been raised before, but I've never actually arrived at the correct answer.

minimoney1 06-02-2012 18:26

Re: [TF2] Custom Chat Colors
 
Quote:

Originally Posted by ReFlexPoison (Post 1721697)
Maybe someone can answer this for me, any particular reason this feature is only for TF2? I know this has question has been raised before, but I've never actually arrived at the correct answer.

A recent update in TF2 allowed developers to create chat messages with any custom color. This feature doesn't exist in any other game (From what I know), but if we could get it into CSS (Also with the HUD capabilities), it'd be great!

ReFlexPoison 06-02-2012 18:39

Re: [TF2] Custom Chat Colors
 
Quote:

Originally Posted by minimoney1 (Post 1721715)
A recent update in TF2 allowed developers to create chat messages with any custom color. This feature doesn't exist in any other game (From what I know), but if we could get it into CSS (Also with the HUD capabilities), it'd be great!

I understand the update, but my point is, is valve debating on adding the feature in any other game? I've heard they don't "like" the CS:S community.

AeroAcrobat 06-02-2012 20:11

Re: [TF2] Custom Chat Colors
 
holy shmoly!
this is what I've been waiting for, you are the best! :D
will try it out. Thank you very much!

edit:
would be a gradient color possible ?
not now but maybe in future.

Mr. Man 06-02-2012 21:25

Re: [TF2] Custom Chat Colors
 
Encountering this issue:

Code:

L 06/03/2012 - 05:17:28: [SM] Plugin encountered error 25: Call was aborted
L 06/03/2012 - 05:17:28: [SM] Native "SetFailState" reported: Config file missing
L 06/03/2012 - 05:17:28: [SM] Displaying call stack trace for plugin "TF2_customchatcolors.smx":
L 06/03/2012 - 05:17:28: [SM]  [0]  Line 51, D:\Libraries\Documents\Dropbox\SourceMod Plugins\Released\custom-chatcolors.sp::LoadConfig()
L 06/03/2012 - 05:17:28: [SM]  [1]  Line 39, D:\Libraries\Documents\Dropbox\SourceMod Plugins\Released\custom-chatcolors.sp::OnPluginStart()

I have the config file in the correct folder. Not sure what's causing the issue.


All times are GMT -4. The time now is 17:57.

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