Merge pull request #8996 from PsiOmegaDelta/SecureBuzzing

Now only secure airlocks buzz if access is restricted.
This commit is contained in:
Chinsky
2015-04-28 06:26:49 +03:00
2 changed files with 11 additions and 1 deletions

View File

@@ -490,7 +490,8 @@ About the new airlock wires panel:
if("deny")
if(density && src.arePowerSystemsOn())
flick("door_deny", src)
playsound(src.loc, 'sound/machines/buzz-two.ogg', 50, 0)
if(secured_wires)
playsound(src.loc, 'sound/machines/buzz-two.ogg', 50, 0)
return
/obj/machinery/door/airlock/attack_ai(mob/user as mob)
@@ -956,6 +957,11 @@ About the new airlock wires panel:
update_icon()
return 1
/obj/machinery/door/airlock/allowed(mob/M)
if(locked)
return 0
return ..(M)
/obj/machinery/door/airlock/New(var/newloc, var/obj/structure/door_assembly/assembly=null)
..()

View File

@@ -0,0 +1,4 @@
author: PsiOmegaDelta
delete-after: True
changes:
- tweak: "Secure airlocks now buzz when access is denied."