Barrier setting
This commit is contained in:
parent
787d8df43e
commit
32bd91b597
3 changed files with 2 additions and 3 deletions
|
@ -3,6 +3,7 @@ enable_pvp = true
|
|||
fixed_map_seed = 14703851313754985906
|
||||
map_generation_limit = 160
|
||||
vote.kick_vote = false
|
||||
barrier = 90
|
||||
|
||||
#
|
||||
# CTF_PVP_ENGINE
|
||||
|
|
|
@ -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_stone = minetest.get_content_id("ctf_flag:ind_base")
|
||||
local c_air = minetest.get_content_id("air")
|
||||
local r = tonumber(minetest.setting_get("barrier"))
|
||||
minetest.register_on_generated(function(minp, maxp, seed)
|
||||
local r = lim - 4
|
||||
|
||||
if not ((minp.x < -r and maxp.x > -r)
|
||||
or (minp.x < r and maxp.x > r)
|
||||
or (minp.y < -r and maxp.x > -r)
|
||||
|
|
|
@ -23,4 +23,3 @@ end
|
|||
if SHOOTER_ENABLE_TURRETS == true then
|
||||
dofile(modpath.."/turret.lua")
|
||||
end
|
||||
|
||||
|
|
Loading…
Reference in a new issue