mirror of
https://github.com/ParadiseSS13/Paradise.git
synced 2026-08-23 03:57:13 +01:00
Revert "Prevent the delivery chute from spamming the chute sound when several objects are flushed simultaneously."
This reverts commit a356550d1b.
This commit is contained in:
Executable → Regular
+2
-8
@@ -316,7 +316,6 @@
|
||||
desc = "A chute for big and small packages alike!"
|
||||
density = 0
|
||||
icon_state = "intake"
|
||||
var/currentlyFlushing = 0
|
||||
|
||||
interact()
|
||||
return
|
||||
@@ -352,13 +351,8 @@
|
||||
|
||||
air_contents = new() // new empty gas resv.
|
||||
|
||||
sleep(10) // Prevent sound spam when several objects are flushed simultaneously.
|
||||
if(!currentlyFlushing)
|
||||
currentlyFlushing = 1
|
||||
playsound(src, 'disposalflush.ogg', 50, 0, 0)
|
||||
spawn(17) // Sound file is ~3 seconds long, adjust this if it becomes longer/shorter.
|
||||
currentlyFlushing = 0
|
||||
|
||||
sleep(10)
|
||||
playsound(src, 'disposalflush.ogg', 50, 0, 0)
|
||||
sleep(5) // wait for animation to finish
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user