Use TRUE emphemeral sounds

master
Wuzzy 2020-04-06 00:43:25 +02:00
parent 5dd6dc0993
commit d10efa7dc4
1 changed files with 5 additions and 5 deletions

View File

@ -60,7 +60,7 @@ function teletool.teleport(player, pointed_thing)
maxsize=1.25,
texture = "teletool_particle_departure.png",
})
minetest.sound_play( {name="teletool_teleport1", gain=1}, {pos=src, max_hear_distance=12}, false)
minetest.sound_play( {name="teletool_teleport1", gain=1}, {pos=src, max_hear_distance=12}, true)
player:setpos(dest)
minetest.add_particlespawner({
@ -76,7 +76,7 @@ function teletool.teleport(player, pointed_thing)
maxsize=1.25,
texture = "teletool_particle_arrival.png",
})
minetest.after(0.5, function(dest) minetest.sound_play( {name="teletool_teleport2", gain=1}, {pos=dest, max_hear_distance=12}, false) end, dest)
minetest.after(0.5, function(dest) minetest.sound_play( {name="teletool_teleport2", gain=1}, {pos=dest, max_hear_distance=12}, true) end, dest)
return true
end
@ -104,7 +104,7 @@ minetest.register_tool("teletool:teletool_infinite", {
failure = true
end
if failure then
minetest.sound_play( {name="teletool_fail", gain=0.5}, {pos=user:getpos(), max_hear_distance=4}, false)
minetest.sound_play( {name="teletool_fail", gain=0.5}, {pos=user:getpos(), max_hear_distance=4}, true)
end
return itemstack
end,
@ -148,7 +148,7 @@ if(minetest.get_modpath("technic")) then
failure = true
end
if failure then
minetest.sound_play( {name="teletool_fail", gain=0.5}, {pos=user:getpos(), max_hear_distance=4}, false)
minetest.sound_play( {name="teletool_fail", gain=0.5}, {pos=user:getpos(), max_hear_distance=4}, true)
end
return itemstack
end,
@ -189,7 +189,7 @@ if(minetest.get_modpath("mana") ~= nil) then
failure = true
end
if failure then
minetest.sound_play( {name="teletool_fail", gain=0.5}, {pos=user:getpos(), max_hear_distance=4}, false)
minetest.sound_play( {name="teletool_fail", gain=0.5}, {pos=user:getpos(), max_hear_distance=4}, true)
end
return itemstack
end,