AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Unapproved Plugins (https://forums.alliedmods.net/forumdisplay.php?f=109)
-   -   [Source 2009 Games] TOGs Chat Tags (https://forums.alliedmods.net/showthread.php?t=241345)

ThatOneGuy 06-02-2014 01:07

[Source 2009 Games] TOGs Chat Tags
 
7 Attachment(s)
Description
NOTES: THIS VERSION OF THIS PLUGIN IS NO LONGER SUPPORTED. AS THE NAME IMPLIES, IT IS MADE FOR SOURCE 2009 GAMES (I.E. NOT CS:GO OR INSURGENCY). THE METHODOLOGY USED IN THIS VERSION WAS MESSY (HENCE THE "CONTAINS" AND "EQUALS" CFG FILE FIXES FOR BUGS). CONTACT ME IF YOU HAVE QUESTIONS OR ARE INTERESTED TO KNOW MORE ABOUT THE CURRENT VERSION OF THE PLUGIN.

This is my complete remake of plugins like Simple Chat Colors and Custom Chat Colors, only I started from scratch and didnt use a bit of their code. I have added a LOT of features...namely that all players with the configurable flag can set thier own tags and colors for tags,name, and chat.

In addition, since player can set any kind of tag (within a set length), I have made a cfg file (togschattags_blocked.cfg), each line of which will add phrases that are blocked (e.g. "admin). Any tags involving with these phrases inside will be blocked. Additionally, for troublesome users, I have implemented the ability to have admins not only remove their tags, but restrict them. This ability is accessible to admins via a configurable admin flag. Additionally, the entire plugin can be unload for the current map for any admins with another configurable admin flag.

All in all, I made this plugin after getting tired of players CONSTANTLY asking to have their personal tags changed.

Notes:
  • This plugin has a built in chat logger that can be enabled/disabled. Enabling will require you to have a subfolder in logs for chat logs (see Installation notes). This will log everything entered through chat, including silent triggers and admin chat commands (even if the admin chat commands are through console).
  • This plugin is entirely compatible with SCC/CCC, and if no tags are set on a player, will use the SCC/CCC setups, else will override them.
  • If player sets a tag while they have access, the tag will disappear as soon as they no longer have access.
  • Plugin comes with a full list of colors (which I think I borrowed from Supporter Colors), in addition to supporting any custom hex code colors.
  • Fully capable of late-loading (i.e. you can load the plugin mid-map and it will function fine).
  • All pre-defined colors accessible via the tags menu can be configured via config file (togschattags_colors.cfg).
  • Includes a funny response for any players trying to use chat while gagged (try it to see, I made it for a few of my plugins).
  • Full admin menu incorporation.
  • Full menu incorporated into client prefs menu (accessible via typing !settings or !tags)
  • "Enable/Disable Tag" toggles the entire tag settings on/off. The just remove the tag itself, set a blank one (i.e. type "!settag", with nothing following)
  • If enabled, plugin will auto-convert uppercase commands to lowercase commands, so they work. To be exact, it checks if the text starts with ! or /, and if so, checks if the second character is uppercase. If it is, it blocks the command, then resends it as all lower case.
  • Admin see-all is incorporated into the plugin as well. If enabled, admins with the set flag will see chat that would normally be hidden from them.
  • There are two config files: togschattags_ignore_equal and togschattags_ignore_contains, each line of which are used for exceptions of when the plugin should not convert chat. Anything in "togschattags_ignore_equal" is looking for EXACT phrases (e.g. if you put "rtv" as a line in it, and someone types "rtv everyone!", it will NOT recognise that as a phrase to ignore, but if they simply type "rtv", it will process it as if the plugin wasnt running). The "togschattags_ignore_contains" is looking for text that CONTAINS the phrases (e.g. if you put "bet ct" as a line, and a player types "bet ct all", it WILL recognise that as a phrase to ignore, and will process it as if the plugin wasnt running).

CVars


Admin Commands


Player Commands


Changelog


Installation
  • Install all .cfg files in addons/sourcemod/configs
  • Install .smx file in addons/sourcemod/plugins
  • Install .sp file in addons/sourcemod/scripting
  • If you wish to use the chat logging function of the plugin, you need to create a subfolder labeled "chatlogger" in your addons/sourcemod/logs/ folder.
    • Not required, but this is the source code if you were needing to edit the code
    • autoexecconfig.inc is only needed if you wish to compile the plugin after editing the code.
  • After running the plugin once, it will generate a cfg file to edit all cvars in (located in cfg/sourcemod/togschattags.cfg)

To Do:
  • Nothing at the moment...

Servers using this plugin
>>> Click here to check out my approved plugins <<<

ThatOneGuy 06-02-2014 01:25

Re: [Source 2009 Games] TOGs Chat Tags
 
-reserved-

Sreaper 06-02-2014 04:44

Re: [Source 2009 Games] TOGs Chat Tags
 
Very cool, thanks for sharing! I'll probably replace my plugin with the one you wrote.

Edit: Please upload the rest of the sourcecode by attaching autoexecconfig.inc as you can't compile the plugin without it.

ThatOneGuy 06-02-2014 12:35

Re: [Source 2009 Games] TOGs Chat Tags
 
Quote:

Originally Posted by Sreaper (Post 2145656)
Very cool, thanks for sharing! I'll probably replace my plugin with the one you wrote.

Edit: Please upload the rest of the sourcecode by attaching autoexecconfig.inc as you can't compile the plugin without it.

Oops...I usually have a comment for the download for it right next to the include.

Code:

#include <autoexecconfig>        //https://github.com/Impact123/AutoExecConfig
But I'll upload it as well.

Sreaper 06-02-2014 18:13

Re: [Source 2009 Games] TOGs Chat Tags
 
Quote:

Originally Posted by ThatOneGuy (Post 2145830)
Oops...I usually have a comment for the download for it right next to the include.

Code:

#include <autoexecconfig>    //https://github.com/Impact123/AutoExecConfig
But I'll upload it as well.

Your plugin seems to suppress all chat messages from appearing in HLSW. Everything that's not "say, say_team" is printed fine.
After removing your plugin all worked normally.

ThatOneGuy 06-02-2014 18:24

Re: [Source 2009 Games] TOGs Chat Tags
 
Quote:

Originally Posted by Sreaper (Post 2145984)
Your plugin seems to suppress all chat messages from appearing in HLSW. Everything that's not "say, say_team" is printed fine.
After removing your plugin all worked normally.

Hmmm...it was logging it before....ill add that in.

ThatOneGuy 06-02-2014 19:01

Re: [Source 2009 Games] TOGs Chat Tags
 
Ok, so here is what I came up with:

http://snag.gy/BcW9Y.jpg

It is exactly what it would be in HLSW if you werent using the plugin, except that the team info isnt passed to HLSW, so I added it in parenthesis. (i.e. normally, the last <> would contain the team, and the line in HLSW would be colored according to team...instead, team is in parenthesis, and line is uncolored).

Uploading now.

Sreaper 06-02-2014 20:47

Re: [Source 2009 Games] TOGs Chat Tags
 
CCC never had an issue keeping the team info colored. Can't you just use the same method?

Edit: The chat tab of HLSW is still broken with your plugin.

ThatOneGuy 06-03-2014 00:04

Re: [Source 2009 Games] TOGs Chat Tags
 
Quote:

Originally Posted by Sreaper (Post 2146016)
CCC never had an issue keeping the team info colored. Can't you just use the same method?

Edit: The chat tab of HLSW is still broken with your plugin.

I have no intentions of recoding it to use their method, tbh (not even sure what it is, but either way). And I thought you meant the regular console tab in HLSW, not chat tab. You can see all convo in the regular console tab. You're welcome to recode it to use their method though, else, you might just stick with CCC if it is that big of an issue for you.

zipcore 06-03-2014 05:50

Re: [Source 2009 Games] TOGs Chat Tags
 
looks good :D


All times are GMT -4. The time now is 13:56.

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