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