Page 1 of 1

ZCC chat prefix/suffix in detail

Posted: Tue Aug 09, 2016 12:21 am
by WickedlyVile
Hey, I couldn't help but noticed how vague the chat prefix/suffix section was. I've been having a hard time trying to understand how it works. It would be nice if someone who is experienced in ZCC code to explain it in further detail. Like how does one clear the zcc_chatsuffix.

Also here is the link to the original post and the part I was referring to:
[spoiler]https://zandronum.com/forum/viewtopic.php?t=6050

Chat
Made a proper cursor for the chat that actually blinks.
Fixed the maximum chat length to be actually 128 instead of 126.
Made the chat support raw color codes which will be useful for the feature below:
Added a tab auto-completion feature to the chat that works just like in the console. TAB to go forward and SHIFT+TAB to go backwards. It will cycle through every player's name it finds just like on IRC.
zcc_chatprefix/suffix: Allows you to add text before/after your message. for example, doing zcc_chatprefix "\\cf" will change all your text to the color yellow. This also works with using the /me command.
[/spoiler]
Regards-

Re: ZCC chat prefix/suffix in detail

Posted: Tue Aug 09, 2016 1:35 am
by Catastrophe
I coded it, what specifically are you confused about?

Re: ZCC chat prefix/suffix in detail

Posted: Tue Aug 09, 2016 8:25 am
by ZZYZX
WickedlyVile wrote:Like how does one clear the zcc_chatsuffix.
set to "" maybe?

Re: ZCC chat prefix/suffix in detail

Posted: Tue Aug 09, 2016 10:52 am
by Fused
There's nothing to understand about it really. The command is really simple and you only have to include the line of text you want appearing before/after your line of text.
Say you want an arrow appearing before the line you spoke, you simply open console and type: ZCC_ChatPrefix "-->".
Say you want the same after your line, you type: ZCC_ChatSuffix "<--".

And in case you want either one in another color, say cyan for example, you type: ZCC_ChatPrefix "\\cn-->\\c-"
But I'm pretty sure your whole line of text will turn blue, so add \\c- after it to return it to default color.

Re: ZCC chat prefix/suffix in detail

Posted: Sun Aug 21, 2016 10:31 pm
by WickedlyVile
Catastrophe wrote:I coded it, what specifically are you confused about?
ZZYZX is on par of what i'm asking, but any info on ZCC is good info. That stuff is frustrating, what I'm asking is how do you clear the ZCC chatprefix. also sorry for the late reply.

Re: ZCC chat prefix/suffix in detail

Posted: Sun Aug 21, 2016 11:38 pm
by -Jes-
This is hardly specific to ZCC, as the same method for clearing cvars goes for all zdoom ports.

Code: Select all

zcc_chatprefix ""
zcc_chatsuffix ""
There, both cleared.