burnedram / csgo-plugin-color-say

CSGO server plugin for displaying colored text
MIT License
3 stars 2 forks source link

colorsay

A CSGO plugin for displaying colored text.
Tested on Ubuntu 16.04.2 LTS (4.4.0-59-generic, x86_64), but should work any debian based distro.

I have no intention of creating a Windows version of this, but it should just be a matter of compiling.
This plugin uses the AlliedModders CSGO SDK mirror.

License: MIT

Table of Contents

Releases

Download either the .zip or .tar.gz and unpack it to ${CSGO_DS_DIR}/csgo/addons.

Features

Server commands

These can be used through the server console, or through rcon

How to add color to your messages

All chat related commands are colorized by formatting the message with color tags.
A good way of familiarizing yourself with useage of color tags is to set up a test server with this plugin installed. Type colorsay_allow_client 1 in the server console, join the server, and play around with the colorsay command in your client console.

Color tags

A color tag starts with {# and ends with }. The text inside the tag defines what color to use.
To define a color you can either use their integer value, or their name.

Value Name Color
1 White #ffffff
2 Red #ee0202
3 Lavender #b981ef
4 Green #40fe40
5 Pale green #befe8f
6 Green yellow #a1fe47
7 Coral red #fe4040
8 Light grey #c4c9cf
9 Light Goldenrod #ece37a
10 Echo blue #aec1d7
11 Picton blue #5e97d8
12 Royal blue #4b69fe
13 Purple #8847fe
14 Neon purple #d22ce5
15 Vermilion #ea4b4b
16 Orange gold #e1ac39

Examples

Compilation

You need

protoc

A copy of the protobuf 2.5.0 source code is provided with the AlliedModders mirror, located in
hl2sdk-csgo/common/protobuf-2.5.0/src
But it seems to be missing some key compilation components (autogen.sh, configure),
so download it from source instead

You can follow the official installation guide, unless you're using a 64-bit distro, and want to run this 32-bit plugin on it. By default it will compile it as a 64-bit program and library, which can't be loaded into srcds_linux

To fix this run:

./configure --build=i686-pc-linux-gnu \
            --host=x86_64-pc-linux-gnu \
            "CFLAGS=-m32" "CXXFLAGS=-m32" "LDFLAGS=-m32"

instead of just ./configure.
Also, it will probably help to add --prefix=/usr as mentioned in the guide

Actually compiling the plugin

make

Installation