From 2a8d68aa28714df2fcd68e8d970e1f79e75eb0fe Mon Sep 17 00:00:00 2001 From: cheapie Date: Wed, 24 Apr 2024 18:05:51 -0500 Subject: Include metal cabinet open/close sounds instead of relying on MTG steel door sounds --- controller.lua | 4 ++-- dispatcher.lua | 4 ++-- sounds/celevator_cabinet_close.ogg | Bin 0 -> 41854 bytes sounds/celevator_cabinet_open.ogg | Bin 0 -> 22732 bytes 4 files changed, 4 insertions(+), 4 deletions(-) create mode 100644 sounds/celevator_cabinet_close.ogg create mode 100644 sounds/celevator_cabinet_open.ogg diff --git a/controller.lua b/controller.lua index 6e5cd78..7001a91 100644 --- a/controller.lua +++ b/controller.lua @@ -182,7 +182,7 @@ minetest.register_node("celevator:controller",{ node.name = "celevator:controller_top_open" end minetest.swap_node(pos,node) - minetest.sound_play("doors_steel_door_open",{ + minetest.sound_play("celevator_cabinet_open",{ pos = pos, gain = 0.5, max_hear_distance = 10 @@ -242,7 +242,7 @@ minetest.register_node("celevator:controller_open",{ node.name = "celevator:controller_top" end minetest.swap_node(pos,node) - minetest.sound_play("doors_steel_door_close",{ + minetest.sound_play("celevator_cabinet_close",{ pos = pos, gain = 0.5, max_hear_distance = 10 diff --git a/dispatcher.lua b/dispatcher.lua index ae70c35..6a8a77a 100644 --- a/dispatcher.lua +++ b/dispatcher.lua @@ -151,7 +151,7 @@ minetest.register_node("celevator:dispatcher",{ node = minetest.get_node(pos) node.name = "celevator:dispatcher_top_open" minetest.swap_node(pos,node) - minetest.sound_play("doors_steel_door_open",{ + minetest.sound_play("celevator_cabinet_open",{ pos = pos, gain = 0.5, max_hear_distance = 10 @@ -210,7 +210,7 @@ minetest.register_node("celevator:dispatcher_open",{ node = minetest.get_node(pos) node.name = "celevator:dispatcher_top" minetest.swap_node(pos,node) - minetest.sound_play("doors_steel_door_close",{ + minetest.sound_play("celevator_cabinet_close",{ pos = pos, gain = 0.5, max_hear_distance = 10 diff --git a/sounds/celevator_cabinet_close.ogg b/sounds/celevator_cabinet_close.ogg new file mode 100644 index 0000000..741885b Binary files /dev/null and b/sounds/celevator_cabinet_close.ogg differ diff --git a/sounds/celevator_cabinet_open.ogg b/sounds/celevator_cabinet_open.ogg new file mode 100644 index 0000000..f275246 Binary files /dev/null and b/sounds/celevator_cabinet_open.ogg differ -- cgit v1.2.3