Barrier setting

This commit is contained in:
rubenwardy 2015-11-24 16:26:18 +00:00
parent 787d8df43e
commit 32bd91b597
3 changed files with 2 additions and 3 deletions

View file

@ -3,6 +3,7 @@ enable_pvp = true
fixed_map_seed = 14703851313754985906 fixed_map_seed = 14703851313754985906
map_generation_limit = 160 map_generation_limit = 160
vote.kick_vote = false vote.kick_vote = false
barrier = 90
# #
# CTF_PVP_ENGINE # CTF_PVP_ENGINE

View file

@ -14,9 +14,8 @@ local lim = ctf.setting("match.map_reset_limit")
local c_glass = minetest.get_content_id("ctf_barrier:ind_glass") local c_glass = minetest.get_content_id("ctf_barrier:ind_glass")
local c_stone = minetest.get_content_id("ctf_flag:ind_base") local c_stone = minetest.get_content_id("ctf_flag:ind_base")
local c_air = minetest.get_content_id("air") local c_air = minetest.get_content_id("air")
local r = tonumber(minetest.setting_get("barrier"))
minetest.register_on_generated(function(minp, maxp, seed) minetest.register_on_generated(function(minp, maxp, seed)
local r = lim - 4
if not ((minp.x < -r and maxp.x > -r) if not ((minp.x < -r and maxp.x > -r)
or (minp.x < r and maxp.x > r) or (minp.x < r and maxp.x > r)
or (minp.y < -r and maxp.x > -r) or (minp.y < -r and maxp.x > -r)

View file

@ -23,4 +23,3 @@ end
if SHOOTER_ENABLE_TURRETS == true then if SHOOTER_ENABLE_TURRETS == true then
dofile(modpath.."/turret.lua") dofile(modpath.."/turret.lua")
end end