mirror of
https://github.com/ParadiseSS13/Paradise.git
synced 2026-08-29 15:08:02 +01:00
Move buckling to /atom/movable, can now buckle to mobs if adminbooze
Also changed: - Comment clarifying what buckle_lying = -1 means - Changes direction of lying on operating tables, somehow missed it
This commit is contained in:
@@ -1,16 +1,19 @@
|
||||
/mob/CanPass(atom/movable/mover, turf/target, height=0, air_group=0)
|
||||
if(air_group || (height==0)) return 1
|
||||
|
||||
if(istype(mover) && mover.checkpass(PASSMOB))
|
||||
/mob/CanPass(atom/movable/mover, turf/target, height=0)
|
||||
if(height==0)
|
||||
return 1
|
||||
if(istype(mover, /obj/item/projectile) || mover.throwing)
|
||||
return (!density || lying)
|
||||
if(mover.checkpass(PASSMOB))
|
||||
return 1
|
||||
if(buckled == mover)
|
||||
return 1
|
||||
if(ismob(mover))
|
||||
var/mob/moving_mob = mover
|
||||
if ((other_mobs && moving_mob.other_mobs))
|
||||
return 1
|
||||
return (!mover.density || !density || lying)
|
||||
else
|
||||
return (!mover.density || !density || lying)
|
||||
return
|
||||
if (mover == buckled_mob)
|
||||
return 1
|
||||
return (!mover.density || !density || lying)
|
||||
|
||||
|
||||
/client/North()
|
||||
|
||||
Reference in New Issue
Block a user