Fixes not being able to fall onto tables (#19011)

Allows players to drop from above onto tables. People typically expect to be able to fall onto tables from above (often for the purposes of landing on them specifically or onto people on said table). It looks and feels like a bug when you can't because there's no reason you should hover in the air 6ft above a table.

It will also be funny when people fall onto tables expecting to magically fly over them for the first few days.

Also includes a check for mobs hiding under tables when you land on them, to protect them from being squished/eaten.
This commit is contained in:
SatinIsle
2026-01-13 05:07:35 +00:00
committed by GitHub
parent 4607375e2b
commit 3fa903d57b
2 changed files with 7 additions and 0 deletions
+2
View File
@@ -1,6 +1,8 @@
/obj/structure/table/CanPass(atom/movable/mover, turf/target)
if(istype(mover,/obj/item/projectile))
return (check_cover(mover,target))
if(mover.z > z)
return TRUE //This allows mobs to drop down onto tables from above
if(flipped == 1)
if(get_dir(mover, target) == GLOB.reverse_dir[dir]) // From elsewhere to here, can't move against our dir
return !density