Jump to content

Home

Question about chatcolors :|


Nayru

Recommended Posts

I've been wondering for some time, if there's a way to make a clientside plugin that allows you to type with colors without actually doing "^1" or something before each sentence you say ingame.

 

Like lets say I wanna say "Hello" in purple..ingame, I'd have to type "^6Hello!"

So I was thinking all I need is to somehow put "^ + colorcode" infront of this textstring. And make the plugin a .pk3 file that goes in base or something. Then I could try to make some console commands to make it work for the user. Like they have to open console and type /chatcolor red or something.

 

I wanna do this becouse I know alot of people will be interested in a mod/plugin like this. I also wanna release it on jk3files.com and other sites. I'll give credit to anyone who's willing to help.

 

Another things...if possible, it would be cool to add more colors for names and chatting like orange or something. And maaaybe change the fonts =P

 

MAYBE something like this allready excists, if you know more about it then please tell me where I can get it.

 

Help will be much appreciated!

 

~Nayru~

Link to comment
Share on other sites

What do you want different? You want to like, type something like "/chatcolor green" and your chat text would all be green for example until you changed it again instead of having to type ^# every time?

 

Yea, that's right =) But I'm clueless at the moment ='(

Link to comment
Share on other sites

It's possible but I don't think clientside only. I think reading, interpreting and acting on the command you give it to change colors would have to be coded into the part of the game the server runs too, as well as the client part. So you'd have more like a mod you could play just with other people who ran it too rather than a clientside plugin. You'd be better off asking the maker(s) of your favorite mod(s) if they'd put this feature into their mod(s).

 

That's just my semi-semi-educated guess. I could be wrong.

Link to comment
Share on other sites

Thanks for the reply =) Even though I hope you're wrong...you could be right =þ A clientside plugin would be so awesome =( And I thought it was possible becouse everyone has those colors..so maybe an application that runs on the background that can read the console and put "^#" infront of every chatmessage??? Hope to get some more good replies, thanks in advance =)

Link to comment
Share on other sites

You can do that in server side.

The client only needs to do: set chatcolor 1 for example

and you in G_Say read that clientcvar and apply that to what the client writes

 

About the orange color, I dont think, yet, that you can do that only in serverside but shouldnt be hard to add that color.

Link to comment
Share on other sites

you cannot add colors because the color table is shared with the engine. if you add colors they will not appear in the console or the upper notify box. only cgame-stuff and you would need the client to see the effects plus the color checking commands are not looking for this extra character.

Link to comment
Share on other sites

  • 2 weeks later...

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...