Add more flag colors
@ -248,7 +248,15 @@ minetest.register_on_player_receive_fields(function(player, formname, fields)
|
||||
ctf.team(ctf.players[name].team).data.color = fields.color
|
||||
ctf.save()
|
||||
else
|
||||
minetest.chat_send_player(name,"Color "..fields.color.." does not exist!")
|
||||
local colors = ""
|
||||
for color, code in pairs(ctf.flag_colors) do
|
||||
if color ~= "" then
|
||||
color ..= ", "
|
||||
end
|
||||
color ..= color
|
||||
end
|
||||
minetest.chat_send_player(name,"Color "..fields.color..
|
||||
" does not exist! Available: " .. colors)
|
||||
end
|
||||
end
|
||||
return true
|
||||
|
@ -23,9 +23,18 @@ minetest.register_privilege("ctf_admin", {
|
||||
|
||||
-- Colors
|
||||
ctf.flag_colors = {
|
||||
red = "0xFF0000",
|
||||
red = "0xFF0000",
|
||||
cyan = "0x00FFFF",
|
||||
blue = "0x0000FF",
|
||||
purple = "0x800080",
|
||||
yellow = "0xFFFF00",
|
||||
green = "0x00FF00",
|
||||
blue = "0x0000FF"
|
||||
pink = "0xFF00FF",
|
||||
silver = "0xC0C0C0",
|
||||
gray = "0x808080",
|
||||
black = "0x000000",
|
||||
orange = "0xFFA500",
|
||||
gold = "0x808000"
|
||||
}
|
||||
|
||||
-- Modules
|
||||
|
BIN
mods/capturetheflag/ctf_flag/textures/flag_black.png
Normal file
After Width: | Height: | Size: 601 B |
BIN
mods/capturetheflag/ctf_flag/textures/flag_black2.png
Normal file
After Width: | Height: | Size: 598 B |
Before Width: | Height: | Size: 776 B After Width: | Height: | Size: 776 B |
Before Width: | Height: | Size: 732 B After Width: | Height: | Size: 732 B |
BIN
mods/capturetheflag/ctf_flag/textures/flag_cyan.png
Normal file
After Width: | Height: | Size: 666 B |
BIN
mods/capturetheflag/ctf_flag/textures/flag_cyan2.png
Normal file
After Width: | Height: | Size: 676 B |
BIN
mods/capturetheflag/ctf_flag/textures/flag_gold.png
Normal file
After Width: | Height: | Size: 618 B |
BIN
mods/capturetheflag/ctf_flag/textures/flag_gold2.png
Normal file
After Width: | Height: | Size: 625 B |
BIN
mods/capturetheflag/ctf_flag/textures/flag_gray.png
Normal file
After Width: | Height: | Size: 549 B |
BIN
mods/capturetheflag/ctf_flag/textures/flag_gray2.png
Normal file
After Width: | Height: | Size: 571 B |
Before Width: | Height: | Size: 826 B After Width: | Height: | Size: 826 B |
Before Width: | Height: | Size: 775 B After Width: | Height: | Size: 775 B |
BIN
mods/capturetheflag/ctf_flag/textures/flag_orange.png
Normal file
After Width: | Height: | Size: 632 B |
BIN
mods/capturetheflag/ctf_flag/textures/flag_orange2.png
Normal file
After Width: | Height: | Size: 635 B |
BIN
mods/capturetheflag/ctf_flag/textures/flag_pink.png
Normal file
After Width: | Height: | Size: 690 B |
BIN
mods/capturetheflag/ctf_flag/textures/flag_pink2.png
Normal file
After Width: | Height: | Size: 688 B |
BIN
mods/capturetheflag/ctf_flag/textures/flag_purple.png
Normal file
After Width: | Height: | Size: 622 B |
BIN
mods/capturetheflag/ctf_flag/textures/flag_purple2.png
Normal file
After Width: | Height: | Size: 616 B |
Before Width: | Height: | Size: 812 B After Width: | Height: | Size: 812 B |
Before Width: | Height: | Size: 874 B After Width: | Height: | Size: 874 B |
BIN
mods/capturetheflag/ctf_flag/textures/flag_silver.png
Normal file
After Width: | Height: | Size: 544 B |
BIN
mods/capturetheflag/ctf_flag/textures/flag_silver2.png
Normal file
After Width: | Height: | Size: 567 B |
BIN
mods/capturetheflag/ctf_flag/textures/flag_yellow.png
Normal file
After Width: | Height: | Size: 657 B |
BIN
mods/capturetheflag/ctf_flag/textures/flag_yellow2.png
Normal file
After Width: | Height: | Size: 671 B |