Adds sounds to conveyor belt switch (#86158)

## About The Pull Request
Adds sounds to conveyor belt switches



https://github.com/user-attachments/assets/1d399bea-262e-4ef1-8ee5-d10abad09ddd
## Why It's Good For The Game
Helps with the immersion, especially in cargo where where the techs are
often switching it on and off

## Changelog
🆑 Hardly
sound: Added sounds for conveyor belt switches
/🆑
This commit is contained in:
Hardly3D
2024-09-03 17:40:50 +02:00
committed by GitHub
parent 9a247b7133
commit 9ef086b16e
4 changed files with 8 additions and 1 deletions
+3
View File
@@ -434,6 +434,8 @@ GLOBAL_LIST_EMPTY(conveyors_by_id)
/// Updates the switch's `position` and `last_pos` variable. Useful so that the switch can properly cycle between the forwards, backwards and neutral positions.
/obj/machinery/conveyor_switch/proc/update_position(direction)
if(position == CONVEYOR_OFF)
playsound(src, 'sound/machines/lever_start.ogg', 40, TRUE)
if(oneway) //is it a oneway switch
position = oneway
else
@@ -442,6 +444,7 @@ GLOBAL_LIST_EMPTY(conveyors_by_id)
else
position = CONVEYOR_BACKWARDS
else
playsound(src, 'sound/machines/lever_stop.ogg', 40, TRUE)
position = CONVEYOR_OFF
/obj/machinery/conveyor_switch/proc/on_user_activation(mob/user, direction)
Binary file not shown.
Binary file not shown.
+5 -1
View File
@@ -7,4 +7,8 @@ coffeemaker_brew.ogg originally made by Adriana Lopez (Acekat13X31), edited to r
This is licensed under CC-BY 4.0, found at https://creativecommons.org/licenses/by/4.0/
shutter.ogg adapted from Joseph Sardin on BigSoundBank
https://bigsoundbank.com/detail-2475-manual-roller-shutter-closing-out-2.html
https://bigsoundbank.com/detail-2475-manual-roller-shutter-closing-out-2.html
lever_start.ogg and lever_stop.ogg are made by A_Kuha on FreeSound
https://freesound.org/people/A_Kuha/sounds/676412
This is licensed under CC-0, found at https://creativecommons.org/publicdomain/zero/1.0/