Добавить максимальную дистанцию проигрывания звуков дверей от позиции установки
This commit is contained in:
parent
a6bb728c5c
commit
d3aab548e5
17
porta.lua
17
porta.lua
@ -51,10 +51,11 @@ for i in ipairs(Porta_list) do
|
||||
minetest.set_node(pos, node)
|
||||
|
||||
minetest.sound_play("summer_porta_ch", {
|
||||
to_player = "",
|
||||
gain = 0.1,
|
||||
})
|
||||
|
||||
to_player = "",
|
||||
gain = 0.1,
|
||||
pos = pos,
|
||||
max_hear_distance = 16,
|
||||
})
|
||||
end,
|
||||
})
|
||||
|
||||
@ -88,9 +89,11 @@ minetest.register_node("summer:porta_"..colour.."_ch", {
|
||||
node.name = "summer:porta_"..colour..""
|
||||
minetest.set_node(pos, node)
|
||||
minetest.sound_play("summer_porta_op", {
|
||||
to_player = "",
|
||||
gain = 0.1,
|
||||
})
|
||||
to_player = "",
|
||||
gain = 0.1,
|
||||
pos = pos,
|
||||
max_hear_distance = 16,
|
||||
})
|
||||
end,
|
||||
})
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user