[CSM] Coloured chat [colour_chat]

Post Reply
User avatar
FiftySix
Member
Posts: 16
Joined: Sun Jan 14, 2018 10:58
GitHub: BenjieFiftysix
In-game: fiftysix or 56
Location: Scotland
Contact:

[CSM] Coloured chat [colour_chat]

by FiftySix » Post

colour_chat CSM
A CSM mod for changing the colour of text sent to the server.
Original version was made by red-001, more features were added by me. Pastel added by dhausmig.

chat commands:

Code: Select all

(note: all colours must be a 6 letter hex code with a "#" - eg: "#ffffff")
    .get_colour <name>                         -  get the hex value from a colour name
    .get_color <name>                          -  same as get_colour, but with different spelling
    .set_colour [<col1> [<col2> [<times>]]]    -  Set the default chat colour to either one solid colour, or a fade between two colours. 'times' is how many times to fade between them. Leave blank to reset to white.
    .set_color [<col1> [<col2> [<times>]]]     -  same as .set_colour, but with american spelling.
    .rainbow <message>                         -  send a message with rainbow colours.
    .pastel <message>                          -  similar to rainbow, but easier to read.
    .alternate [<col1> <col2>] <message>       -  alternate between two colours.
    .fade <col1> <col2> [<times>] <message>    -  fade message between two colours, fade multiple times  -  works with long messages!!
    .custom <message with colours>             -  send a message with custom colour changes. Use "#------" anywhere in the text to change colours.
    .msg <playername> <message>                -  send a private message, the same as "/msg", but with your colours applied to it
    .mw <message>                              -  send a message with a red "MODERATOR WARNING:  ".
    .say <message>                             -  send a plain, white message.

Download: https://github.com/BenjieFiftysix/colou ... master.zip
Github: https://github.com/BenjieFiftysix/colour_chat

changes:

Code: Select all

- messages can fade through colours multiple times
- short messages don't fade
- .alternate uses users colours instead of red and green if no parameters are given
- moderator warning now gives a warning before sending the message
- comments and code cleaned up a little

User avatar
HackerinPink
Member
Posts: 43
Joined: Tue Oct 29, 2019 19:36
Location: Somewhere in a 100% regular place.
Contact:

Re: [CSM] Coloured chat [colour_chat]

by HackerinPink » Post

Wow, Nice!! I'm replying because i feel like this CSM isn't getting enough attention that it's worth. (and also I think this CSM is cool) I used to use the original CSM, but now I use yours, mainly for the Colored PM's and the Moderator Warning.

Nice work, keep it up!
Also, could you clarify the faded colors?? I don't really understand the mechanics and what the 'times' do.
I really want an even blend between Green and Blue, preferably Blue on top. How can I achieve this??
A Dude with power and Intellect.

Post Reply

Who is online

Users browsing this forum: No registered users and 3 guests