Add cavern map
This commit is contained in:
parent
cef60ad247
commit
760b83e0ec
6 changed files with 25 additions and 1 deletions
11
mods/ctf_map/maps/03_caverns.conf
Normal file
11
mods/ctf_map/maps/03_caverns.conf
Normal 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
|
BIN
mods/ctf_map/maps/03_caverns.mts
Normal file
BIN
mods/ctf_map/maps/03_caverns.mts
Normal file
Binary file not shown.
|
@ -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,
|
||||||
|
|
|
@ -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()
|
||||||
|
|
Before Width: | Height: | Size: 179 B After Width: | Height: | Size: 179 B |
BIN
mods/ctf_map/textures/ctf_map_stone_red.png
Normal file
BIN
mods/ctf_map/textures/ctf_map_stone_red.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 425 B |
Loading…
Reference in a new issue