Merge pull request #15032 from silicons/wallflowering

Adds the ability to move through people who are intentionally pixel shifted
This commit is contained in:
Heroman3003
2023-06-18 18:45:55 +10:00
committed by GitHub
@@ -3,6 +3,9 @@
var/mob/moving_mob = mover
if ((other_mobs && moving_mob.other_mobs))
return TRUE
if(is_shifted && (abs(pixel_x) >= 8 || abs(pixel_y) >= 8))
// they're wallflowering, let 'em through
return TRUE
if(istype(mover, /obj/item/projectile))
var/obj/item/projectile/P = mover
return !P.can_hit_target(src, P.permutated, src == P.original, TRUE)