Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Emags can open firelocks #12152

Merged
merged 2 commits into from
Jan 21, 2025
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 9 additions & 1 deletion code/game/machinery/doors/firedoor.dm
Original file line number Diff line number Diff line change
Expand Up @@ -172,6 +172,12 @@
return
to_chat(user, "<span class='warning'>You try to pull the card reader. Nothing happens.</span>")

/obj/machinery/door/firedoor/on_emag(mob/user)
..()
playsound(src, 'sound/machines/terminal_error.ogg', 50, 1)
do_sparks(5, TRUE, src)
open()

/obj/machinery/door/firedoor/proc/log_opening(obj/item/card/id/I, mob/user, safe)
var/safestate = "UNK_STATE:"
switch(safe)
Expand Down Expand Up @@ -290,7 +296,7 @@


/obj/machinery/door/firedoor/close()
if(HAS_TRAIT(loc, TRAIT_FIREDOOR_STOP))
if(HAS_TRAIT(loc, TRAIT_FIREDOOR_STOP) || (obj_flags & EMAGGED))
return
if(!density && !operating) //This is hacky but gets the sound to play on time.
playsound(src, 'sound/machines/firedoor_close.ogg', 30, 1)
Expand Down Expand Up @@ -543,6 +549,8 @@
. += "<span class='notice'>The maintenance panel is missing <i>wires</i> and the circuit board is <b>loosely connected</b>.</span>"
if(CONSTRUCTION_NOCIRCUIT)
. += "<span class='notice'>There are no <i>firelock electronics</i> in the frame. The frame could be <b>cut</b> apart.</span>"
if(obj_flags & EMAGGED)
. += "<span class='warning'>Its access panel is smoking slightly.</span>"

/obj/structure/firelock_frame/update_icon()
..()
Expand Down
Loading