25 lines
480 B
Plaintext
25 lines
480 B
Plaintext
/atom
|
|
var/pseudo_z_axis
|
|
|
|
/atom/proc/get_fake_z()
|
|
return pseudo_z_axis
|
|
|
|
/obj/structure/table
|
|
pseudo_z_axis = 8
|
|
|
|
/turf/open/get_fake_z()
|
|
var/objschecked
|
|
for(var/obj/structure/structurestocheck in contents)
|
|
objschecked++
|
|
if(structurestocheck.pseudo_z_axis)
|
|
return structurestocheck.pseudo_z_axis
|
|
if(objschecked >= 25)
|
|
break
|
|
return pseudo_z_axis
|
|
|
|
/mob/living/Move(atom/newloc, direct)
|
|
. = ..()
|
|
if(.)
|
|
pseudo_z_axis = newloc.get_fake_z()
|
|
pixel_z = pseudo_z_axis
|