mirror of
https://github.com/minetest-mods/digtron.git
synced 2024-08-19 20:34:04 +02:00
add a distinct rotation sound
This commit is contained in:
parent
c35104e8c3
commit
df4c7f7f38
@ -653,6 +653,7 @@ digtron.rotate = function(digtron_id, axis, player_name)
|
|||||||
if permitted then
|
if permitted then
|
||||||
local removed = digtron.remove_from_world(digtron_id, player_name)
|
local removed = digtron.remove_from_world(digtron_id, player_name)
|
||||||
digtron.build_to_world(digtron_id, rotated_layout, root_pos, player_name)
|
digtron.build_to_world(digtron_id, rotated_layout, root_pos, player_name)
|
||||||
|
minetest.sound_play("digtron_hydraulic", {gain = 0.5, pos=dest_pos})
|
||||||
persist_layout(digtron_id, rotated_layout)
|
persist_layout(digtron_id, rotated_layout)
|
||||||
-- Don't need to do fancy callback checking for digtron nodes since I made all those
|
-- Don't need to do fancy callback checking for digtron nodes since I made all those
|
||||||
-- nodes and I know they don't have anything that needs to be done for them.
|
-- nodes and I know they don't have anything that needs to be done for them.
|
||||||
|
BIN
sounds/digtron_hydraulic.ogg
Normal file
BIN
sounds/digtron_hydraulic.ogg
Normal file
Binary file not shown.
@ -11,7 +11,7 @@ digtron_truck.ogg - https://www.freesound.org/people/jberkuta14/sounds/134898/ p
|
|||||||
digtron_whirr.ogg - https://www.freesound.org/people/daveincamas/sounds/25034/ - under the CC BY 3.0 license by daveincamas
|
digtron_whirr.ogg - https://www.freesound.org/people/daveincamas/sounds/25034/ - under the CC BY 3.0 license by daveincamas
|
||||||
digtron_woopwoopwoop.ogg - https://www.freesound.org/people/gregconquest/sounds/188012/ public domain via CC 1.0 by gregconquest
|
digtron_woopwoopwoop.ogg - https://www.freesound.org/people/gregconquest/sounds/188012/ public domain via CC 1.0 by gregconquest
|
||||||
digtron_steam_puff.ogg - https://freesound.org/people/Aiwha/sounds/250703/ under the CC BY 3.0 license by Aiwha
|
digtron_steam_puff.ogg - https://freesound.org/people/Aiwha/sounds/250703/ under the CC BY 3.0 license by Aiwha
|
||||||
|
digtron_hydraulic.ogg - https://freesound.org/people/jesabat/sounds/119745/ under the CC BY 3.0 license by jesabat
|
||||||
|
|
||||||
Creative Commons Attribution 3.0 license:
|
Creative Commons Attribution 3.0 license:
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user