mirror of
https://github.com/Bubberstation/Bubberstation.git
synced 2026-08-25 06:00:16 +01:00
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:
@@ -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.
@@ -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/
|
||||
|
||||
Reference in New Issue
Block a user