From 0e095706013b7af4c6acd27ebb8fae174dcaa9e5 Mon Sep 17 00:00:00 2001 From: Kurfursten Date: Wed, 10 Jan 2024 23:12:55 -0600 Subject: [PATCH] Hallucinations Don't Fake Doorshock (#35745) --- code/game/machinery/doors/airlock.dm | 15 +++++++++++---- 1 file changed, 11 insertions(+), 4 deletions(-) diff --git a/code/game/machinery/doors/airlock.dm b/code/game/machinery/doors/airlock.dm index c72882399c11..7cc43d028a7b 100644 --- a/code/game/machinery/doors/airlock.dm +++ b/code/game/machinery/doors/airlock.dm @@ -384,10 +384,17 @@ About the new airlock wires panel: user.delayNextMove(10) spawn (10) src.justzap = 0 - else if(user.hallucination > 50 && prob(10) && src.operating == 0) - to_chat(user, "You feel a powerful shock course through your body!") - user.adjustHalLoss(10) - user.AdjustStunned(10) + else if(user.client && user.hallucination > 50 && prob(10) && !operating) + //access denied + user << 'sound/machines/denied.ogg' + var/image/haldoor = image(icon,loc,"door_deny",ABOVE_DOOR_LAYER) + haldoor.plane = relative_plane(OBJ_PLANE) + user.client.images += haldoor + user.delayNextMove(3) //Stop for 3 frames, same as the hallucination + user.ear_deaf += 1 //Deafen them just for one tick so they don't hear the door open for real + spawn(6) + user.client.images -= haldoor + QDEL_NULL(haldoor) ..(user) /obj/machinery/door/airlock/proc/isElectrified()