capturetheflag/mods/ctf/ctf_colors/init.lua

31 lines
691 B
Lua

-- Supported colors
ctf_colors = {}
ctf_colors.colors = {
red = "0xFF4444",
cyan = "0x00FFFF",
blue = "0x4466FF",
purple = "0x800080",
yellow = "0xFFFF00",
green = "0x00FF00",
pink = "0xFF00FF",
silver = "0xC0C0C0",
gray = "0x808080",
black = "0x000000",
orange = "0xFFA500",
gold = "0x808000"
}
ctf_colors.irc_colors = {
red = "4",
blue = "2",
}
ctf.flag_colors = ctf_colors.colors
ctf.register_on_init(function()
ctf.log("colors", "Initialising...")
ctf._set("colors.skins", false)
ctf._set("colors.hudtint", true)
ctf._set("hud.teamname", false)
end)
dofile(minetest.get_modpath("ctf_colors") .. "/hud.lua")