Add cavern map

This commit is contained in:
rubenwardy 2017-12-28 12:22:19 +00:00
parent cef60ad247
commit 760b83e0ec
6 changed files with 25 additions and 1 deletions

View file

@ -0,0 +1,11 @@
name = Caverns
author = rubenwardy
rotation = z
r = 115
h = 230
team.1 = red
team.1.color = red
team.1.pos = -20,-2,65
team.2 = blue
team.2.color = blue
team.2.pos = -48,0,-83

Binary file not shown.

View file

@ -34,10 +34,17 @@ minetest.register_node("ctf_map:ind_stone", {
is_ground_content = false is_ground_content = false
}) })
minetest.register_node("ctf_map:ind_stone_red", {
description = "Cheater!",
groups = {immortal = 1},
tiles = {"ctf_map_stone_red.png"},
is_ground_content = false
})
minetest.register_node("ctf_map:ind_glass_red", { minetest.register_node("ctf_map:ind_glass_red", {
description = "You cheater you!", description = "You cheater you!",
drawtype = "glasslike", drawtype = "glasslike",
tiles = {"ctf_map_red.png"}, tiles = {"ctf_map_glass_red.png"},
inventory_image = minetest.inventorycube("default_glass.png"), inventory_image = minetest.inventorycube("default_glass.png"),
paramtype = "light", paramtype = "light",
sunlight_propagates = true, sunlight_propagates = true,

View file

@ -70,6 +70,12 @@ ctf_match.register_on_new_match(function()
local name = ctf_map.available_maps[math.random(#ctf_map.available_maps)] local name = ctf_map.available_maps[math.random(#ctf_map.available_maps)]
ctf_map.map = ctf_match.load_map_meta(name) ctf_map.map = ctf_match.load_map_meta(name)
ctf_map.place_map(ctf_map.map) ctf_map.place_map(ctf_map.map)
minetest.after(0.1, function()
for _, player in pairs(minetest.get_connected_players()) do
ctf.move_to_spawn(player:get_player_name())
end
end)
end) end)
function ctf_match.create_teams() function ctf_match.create_teams()

View file

Before

Width:  |  Height:  |  Size: 179 B

After

Width:  |  Height:  |  Size: 179 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 425 B