[MIRROR] pai zmovement for climbing ladders, space and scaffolding (#10796)

Co-authored-by: Will <7099514+Willburd@users.noreply.github.com>
Co-authored-by: Kashargul <144968721+Kashargul@users.noreply.github.com>
This commit is contained in:
CHOMPStation2StaffMirrorBot
2025-04-27 17:15:12 -07:00
committed by GitHub
parent da31fd3b5c
commit 5100427d8b
3 changed files with 20 additions and 0 deletions

View File

@@ -103,6 +103,10 @@
/mob/observer/dead/Initialize(mapload, aghost = FALSE) /mob/observer/dead/Initialize(mapload, aghost = FALSE)
appearance = loc appearance = loc
invisibility = initial(invisibility)
layer = initial(layer)
plane = initial(plane)
alpha = initial(alpha)
admin_ghosted = aghost admin_ghosted = aghost
see_in_dark = world.view //I mean. I don't even know if byond has occlusion culling... but... see_in_dark = world.view //I mean. I don't even know if byond has occlusion culling... but...

View File

@@ -287,6 +287,12 @@
/mob/living/silicon/pai/UnarmedAttack(atom/A, proximity_flag) /mob/living/silicon/pai/UnarmedAttack(atom/A, proximity_flag)
. = ..() . = ..()
if(istype(A,/obj/structure/ladder))
// Zmovement already allows these to be used with the verbs anyway
var/obj/structure/ladder/L = A
L.attack_hand(src)
return
if(!ismob(A) || A == src) if(!ismob(A) || A == src)
return return

View File

@@ -255,6 +255,16 @@
if(T.density) if(T.density)
return TRUE return TRUE
/mob/living/silicon/pai/can_ztravel()
if(incapacitated())
return FALSE
if(Process_Spacemove())
return TRUE
if(!restrained())
return TRUE
// TODO - Leshana Experimental // TODO - Leshana Experimental
//Execution by grand piano! //Execution by grand piano!