From 6fb3c0dfdd2d59094020cd0437b16a2d68fdf558 Mon Sep 17 00:00:00 2001 From: Names Are Hard Date: Sun, 26 Jan 2020 21:26:18 -0800 Subject: [PATCH 1/2] Adds check to allow silicons through med barriers --- code/game/objects/structures/holosign.dm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/code/game/objects/structures/holosign.dm b/code/game/objects/structures/holosign.dm index cbf114337db..299b077b42b 100644 --- a/code/game/objects/structures/holosign.dm +++ b/code/game/objects/structures/holosign.dm @@ -133,7 +133,7 @@ /obj/structure/holosign/barrier/medical/CanAllowThrough(atom/movable/mover, turf/target) . = ..() - if(force_allaccess) + if(force_allaccess || issilicon(mover)) return TRUE if(ishuman(mover)) return CheckHuman(mover) From 4da544562046d14fe680483996d50cd98a8a1da4 Mon Sep 17 00:00:00 2001 From: Names Are Hard Date: Mon, 27 Jan 2020 12:13:49 -0800 Subject: [PATCH 2/2] Nonhuman things can now move through the barrier --- code/game/objects/structures/holosign.dm | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/code/game/objects/structures/holosign.dm b/code/game/objects/structures/holosign.dm index 299b077b42b..3606d7215e0 100644 --- a/code/game/objects/structures/holosign.dm +++ b/code/game/objects/structures/holosign.dm @@ -133,10 +133,16 @@ /obj/structure/holosign/barrier/medical/CanAllowThrough(atom/movable/mover, turf/target) . = ..() - if(force_allaccess || issilicon(mover)) + if(force_allaccess) return TRUE + if(istype(mover, /obj/vehicle/ridden)) + for(var/M in mover.buckled_mobs) + if(ishuman(M)) + if(!CheckHuman(M)) + return FALSE if(ishuman(mover)) return CheckHuman(mover) + return TRUE /obj/structure/holosign/barrier/medical/Bumped(atom/movable/AM) . = ..()