Remove minimap; closes #29

This commit is contained in:
KaadmY 2017-05-10 10:20:40 -07:00
parent d24cd2146e
commit 9c8abac706

View File

@ -15,7 +15,7 @@ local function step(dtime)
if player_pos.x < -30000 or player_pos.x > 30000
or player_pos.y < -30000 or player_pos.y > 30000
or player_pos.z < -30000 or player_pos.z > 30000 then
or player_pos.z < -30000 or player_pos.z > 30000 then
minetest.chat_send_player(name, "Don't go past 30000m in any direction!")
player:setpos(player_lastpos[name])
end
@ -28,7 +28,7 @@ local function step(dtime)
{
pos = player_pos,
max_hear_distance = 4,
})
})
end
player_health[name] = player:get_hp()
@ -51,16 +51,16 @@ local function step(dtime)
time = 0.1,
minpos = {x = head_pos.x - 0.2, y = head_pos.y - 0.3, z = head_pos.z - 0.3},
maxpos = {x = head_pos.x + 0.3, y = head_pos.y + 0.3, z = head_pos.z + 0.3},
minvel = {x = -0.5, y = 0, z = -0.5},
maxvel = {x = 0.5, y = 0, z = 0.5},
minacc = {x = -0.5, y = 4, z = -0.5},
maxacc = {x = 0.5, y = 1, z = 0.5},
minexptime = 0.3,
maxexptime = 0.8,
minsize = 0.7,
maxsize = 2.4,
texture = "bubble.png"
})
minvel = {x = -0.5, y = 0, z = -0.5},
maxvel = {x = 0.5, y = 0, z = 0.5},
minacc = {x = -0.5, y = 4, z = -0.5},
maxacc = {x = 0.5, y = 1, z = 0.5},
minexptime = 0.3,
maxexptime = 0.8,
minsize = 0.7,
maxsize = 2.4,
texture = "bubble.png"
})
minetest.after(0.15, function() minetest.delete_particlespawner(particlespawners[name]) end)
end
@ -72,7 +72,7 @@ local function step(dtime)
{
pos = player_pos,
max_hear_distance = 16,
})
})
player_lastsound[name] = 0
end
else
@ -100,12 +100,15 @@ local function on_joinplayer(player)
player_health[name] = player:get_hp()
-- uncomment to enable player-on-player collisions
-- player:set_properties({physical = true})
-- uncomment to enable player-on-player collisions
-- player:set_properties({physical = true})
-- uncomment to disable the sneak glitch
player:set_physics_override({sneak_glitch = false})
-- uncomment to disable the minimap
player:hud_set_flags({minimap = false})
player_lastpos[name] = player:getpos()
end