mirror of
https://github.com/VOREStation/VOREStation.git
synced 2026-07-18 10:34:10 +01:00
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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user