projectiles can pass

This commit is contained in:
S34NW
2021-09-10 19:07:02 +01:00
parent 6e0e36f9c1
commit 0c4dcd1b62
11 changed files with 21 additions and 8 deletions
+7 -2
View File
@@ -26,12 +26,10 @@
/obj/structure/fence/Initialize()
. = ..()
update_cut_status()
/obj/structure/fence/examine(mob/user)
. = ..()
switch(hole_size)
if(MEDIUM_HOLE)
. += "There is a large hole in \the [src]."
@@ -58,6 +56,13 @@
icon_state = "straight_cut3"
hole_size = LARGE_HOLE
/obj/structure/fence/CanPass(atom/movable/mover, turf/target)
if(istype(mover) && mover.checkpass(PASSFENCE))
return TRUE
if(!density)
return TRUE
return FALSE
// shock user with probability prb (if all connections & power are working)
// returns 1 if shocked, 0 otherwise
// Totally not stolen from code\game\objects\structures\grille.dm
+5 -1
View File
@@ -5,6 +5,7 @@
icon_state = "railing"
density = TRUE
anchored = TRUE
pass_flags = LETPASSTHROW
climbable = TRUE
layer = ABOVE_MOB_LAYER
var/currently_climbed = FALSE
@@ -64,6 +65,8 @@
return TRUE
/obj/structure/railing/CanPass(atom/movable/mover, turf/target)
if(istype(mover) && mover.checkpass(PASSFENCE))
return TRUE
..()
var/mob/living/M = mover
if(M.flying || M.floating || mover.throwing)
@@ -73,10 +76,11 @@
return TRUE
/obj/structure/railing/corner/CanPass()
..()
return TRUE
/obj/structure/railing/CheckExit(atom/movable/O, target)
if(istype(O) && O.checkpass(PASSFENCE))
return TRUE
var/mob/living/M = O
if(M.flying | M.floating)
return TRUE