Skip to content

Commit

Permalink
Port blast door/shutter sfx from bay
Browse files Browse the repository at this point in the history
  • Loading branch information
Shadowtail117 committed Jun 20, 2023
1 parent b41f1ab commit 246dd85
Show file tree
Hide file tree
Showing 5 changed files with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions code/game/machinery/doors/blast_door.dm
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,8 @@

var/id = 1.0

var/open_sound = 'sound/machines/blastdoor_open.ogg'
var/close_sound = 'sound/machines/blastdoor_close.ogg'

/obj/machinery/door/blast/Initialize(mapload)
. = ..()
Expand Down Expand Up @@ -76,6 +78,7 @@
// Description: Opens the door. No checks are done inside this proc.
/obj/machinery/door/blast/proc/force_open()
src.operating = 1
playsound(src.loc, open_sound, 100, 1)
flick(icon_state_opening, src)
src.density = 0
update_nearby_tiles()
Expand All @@ -91,6 +94,7 @@
// Description: Closes the door. No checks are done inside this proc.
/obj/machinery/door/blast/proc/force_close()
src.operating = 1
playsound(src.loc, close_sound, 100, 1)
src.layer = closed_layer
flick(icon_state_closing, src)
src.density = 1
Expand Down Expand Up @@ -303,3 +307,5 @@
icon_state_closed = "shutter1"
icon_state_closing = "shutterc1"
icon_state = "shutter1"
open_sound = 'sound/machines/shutters_open.ogg'
close_sound = 'sound/machines/shutters_close.ogg'
Binary file added sound/machines/blastdoor_close.ogg
Binary file not shown.
Binary file added sound/machines/blastdoor_open.ogg
Binary file not shown.
Binary file added sound/machines/shutters_close.ogg
Binary file not shown.
Binary file added sound/machines/shutters_open.ogg
Binary file not shown.

0 comments on commit 246dd85

Please sign in to comment.