Re-add door forcing sound

This commit is contained in:
Markolie
2015-03-04 14:30:33 +01:00
parent e23c10f0e4
commit 3a196c1812
+10 -2
View File
@@ -873,7 +873,9 @@ About the new airlock wires panel:
if( !arePowerSystemsOn() || isWireCut(AIRLOCK_WIRE_OPEN_DOOR) )
return 0
use_power(360) //360 W seems much more appropriate for an actuator moving an industrial door capable of crushing people
if(istype(src, /obj/machinery/door/airlock/glass))
if(forced)
playsound(src.loc, 'sound/machines/airlockforced.ogg', 30, 1)
else if(istype(src, /obj/machinery/door/airlock/glass))
playsound(src.loc, 'sound/machines/windowdoor.ogg', 100, 1)
else if(istype(src, /obj/machinery/door/airlock/clown))
playsound(src.loc, 'sound/items/bikehorn.ogg', 30, 1)
@@ -902,8 +904,14 @@ About the new airlock wires panel:
return
use_power(360) //360 W seems much more appropriate for an actuator moving an industrial door capable of crushing people
if(istype(src, /obj/machinery/door/airlock/glass))
if(forced)
playsound(src.loc, 'sound/machines/airlockforced.ogg', 30, 1)
else if(istype(src, /obj/machinery/door/airlock/glass))
playsound(src.loc, 'sound/machines/windowdoor.ogg', 30, 1)
else if(istype(src, /obj/machinery/door/airlock/clown))
playsound(src.loc, 'sound/items/bikehorn.ogg', 30, 1)
else if(istype(src, /obj/machinery/door/airlock/mime))
// Do nothing
else
playsound(src.loc, 'sound/machines/airlock.ogg', 30, 1)
for(var/turf/turf in locs)