Skip to content

Commit

Permalink
[MIRROR] Holobarrier toggle removal [MDB IGNORE] (#390)
Browse files Browse the repository at this point in the history
* Holobarrier toggle removal (#79293)

---------

Co-authored-by: SkyratBot <[email protected]>
Co-authored-by: deathrobotpunch <[email protected]>
  • Loading branch information
3 people authored Nov 1, 2023
1 parent cfebcb0 commit bdcb675
Showing 1 changed file with 0 additions and 14 deletions.
14 changes: 0 additions & 14 deletions code/game/objects/structures/holosign.dm
Original file line number Diff line number Diff line change
Expand Up @@ -153,17 +153,10 @@
icon_state = "holo_medical"
alpha = 125 //lazy :)
max_integrity = 1
var/force_allaccess = FALSE
var/buzzcd = 0

/obj/structure/holosign/barrier/medical/examine(mob/user)
. = ..()
. += span_notice("The biometric scanners are <b>[force_allaccess ? "off" : "on"]</b>.")

/obj/structure/holosign/barrier/medical/CanAllowThrough(atom/movable/mover, border_dir)
. = ..()
if(force_allaccess)
return TRUE
if(istype(mover, /obj/vehicle/ridden))
for(var/M in mover.buckled_mobs)
if(ishuman(M))
Expand All @@ -188,13 +181,6 @@
return FALSE
return TRUE

/obj/structure/holosign/barrier/medical/attack_hand(mob/living/user, list/modifiers)
if(!user.combat_mode && CanPass(user, get_dir(src, user)))
force_allaccess = !force_allaccess
to_chat(user, span_warning("You [force_allaccess ? "deactivate" : "activate"] the biometric scanners.")) //warning spans because you can make the station sick!
else
return ..()

/obj/structure/holosign/barrier/cyborg/hacked
name = "Charged Energy Field"
desc = "A powerful energy field that blocks movement. Energy arcs off it."
Expand Down

0 comments on commit bdcb675

Please sign in to comment.