RSSy MYGO.pl Opublikowano Wrzesień 24, 2016 o 01:25 RSSy Udostępnij Opublikowano Wrzesień 24, 2016 o 01:25 Chat-Processor Tags About Chat-Processor Tags: I'll start off by apologizing for the delay. This plugin has been technically ready for release for a week or two now. It was, on my part a result of laziness caused by my ADHD, combined with some internal debate on whether or not to actually release this publicly yet or to keep it private for my server. I chose to release it. Backstory on how this plugin was created Chat-Processor Tags started life out as just a standard copy of Dr. McKay's wonderful Custom Chat Colors plugin. After a once-over to update the code to use new syntax, some minor modifications were made to the plugin to have it require Redwerewolf's Chat-Processor plugin as well as the ColorVariables.inc include file (specifically this new syntax version that was updated by Redwerewolf). The easiest part of those modifications was converting how the config file was read, and how the information from the file was being used in formatting the message and the player's name. I also started heavily screwing around with using CPrintToChat to send the chat message to the recipients and eventually after a lot of back and forth with Redwerewolf and Pelipoika and even here, I was able to modify the way chat messages were sent to clients, and I successfully bypassed the 64 character maximum name length restriction as well which allowed for longer and/or multicolored chat tags to be used without a majority of the player's name being cut off by the maxlength limit. So what's the difference between Chat-Processor Tags and Custom Chat Colors? Simple, longer chat tags, as well as the capability to use multiple color trie values from ColorVariables.inc within one tag (meaning multicolored chat tags!). Here's an example:[!] Requirements/Dependencies:To run this plugin: You'll need the Chat-Processor plugin.To compile your own build: You'll still need the Chat-Processor plugin, but you'll also need Redwerewolf's syntax-updated ColorVariables.inc file. Not only have I just linked to that .inc file, but I've also attached it to this post, and pushed it to my CPT Git. And of course, Redwerewolf does has a copy in his Chat-Processor Git.Commands: There's only one command in this plugin, sm_reloadtags. That'll reload your config file and allow your changes to show ingame. You can override access to the command via your "admin_overrides.cfg" file. Just add in "sm_reloadtags" "flag". Just replace the "flag" bit with whatever flag you want to restrict it to, i.e. "z" or "b".Convars: No real convars here aside from sm_cpt_version, the standard version convar.Installation Instructions: Download the plugin (available via Github) Extract the files to your server. They're already in the correct directories on Github rcon sm plugins load chat-processor-tags ??? Profit! Config File Usage Instructions: Chat-Processor Tags utilizes the same config file-based system that Custom Chat Colors used, and converting your Custom Chat Colors config over to work with Chat-Processor Tags is incredibly simple. All you have to do is edit custom-chatcolors.cfg and change "admin-colors" to "chat_processor_tags", and you're done! If you're still stumped, please check out the README file on the page for the Chat-Processor Tags github repo. I go indepth on how to use the config file there. It's pretty much the same as Custom Chat Colors. I even explain how to convert your Custom Chat Colors config over into a Chat-Processor-Tags config on the README.Known Bugs: Known Bugs Currently, the only known bug that I know about is that chat messages are not properly chatflag'd and prefix'd, meaning you most likely won't see chat prefixes like (TEAM), *SPEC*, *DEAD* or (Coach). I have a version of the plugin with the chat flags properly set up, but I discovered there was a minor bug with that version where every chat message was being flagged as TF_Chat_Coach and given the "(Coach)" prefix for some reason. Redwerewolf and I are working on figuring out what's causing that, so chatflags will be a later addition. Oh, also, this maaay not work in CS:GO properly. I'm not sure if CS:GO would be able to display any colors that are added into the "tag" line for an entry. I do know that there are engine codes that CS:GO has for various colors as well....perhaps using the actual colorvariables "{engine1}", "{engine2}", etc lines in the "tag" line would work for multicolors in CS:GO? Basically, I just haven't tested this out in CS:GO yet because I haven't started up my CS:GO SourceMod sandbox server yet. Once I do, I will look into the engine codes for CS:GO and see if I can set up an easy letter-based system for CS:GO kinda like the existing T/G/O codes for team-colored, green and olive. Version History: Version History 1.0 Initial release Credits: Credits! Dr. McKay - Created the Custom Chat Colors plugin. Chat-Processor Tags wouldn't exist without him. Redwerewolf - Helped me figure a lot of things out to make this work, and he created Chat-Processor which is why I decided to create this. Pelipoika - Helped me so much with many of the silly beginner questions I had. Everyone here who helped me - Too many names to list, I had help with various things from a lot of people here. Problems? Suggestions? There shouldn't be any errors or bugs in this plugin, but if you do happen to find any, please let me know on this thread and I'll try my best to correct the issues! And as well, if you have any suggestions for ways to rework my code, or suggestions of new things to add, let me know! Attached Files chat-processor-tags.cfg (5.8 KB) Get Plugin or Get Source (chat-processor-tags.sp - 19.9 KB) chat-processor-tags.inc (4.7 KB) colorvariables.inc (32.3 KB) chat-processor-tags.smx (24.2 KB) Wyświetl pełny artykuł Odnośnik do komentarza Udostępnij na innych stronach Więcej opcji udostępniania...
Rekomendowane odpowiedzi
Jeśli chcesz dodać odpowiedź, zaloguj się lub zarejestruj nowe konto
Jedynie zarejestrowani użytkownicy mogą komentować zawartość tej strony.
Zarejestruj nowe konto
Załóż nowe konto. To bardzo proste!
Zarejestruj sięZaloguj się
Posiadasz już konto? Zaloguj się poniżej.
Zaloguj się