Check if mob is still horizontal after starting to crawl under airlock (#23261)

Co-authored-by: adrermail@gmail.com <adrermail@gmail.com>
This commit is contained in:
Adrer
2023-11-24 15:34:43 +00:00
committed by GitHub
co-authored by adrermail@gmail.com <adrermail@gmail.com>
parent bc7356b578
commit d1374cc1be
+2
View File
@@ -766,6 +766,8 @@ GLOBAL_LIST_EMPTY(airlock_emissive_underlays)
if((istype(living_mover) && HAS_TRAIT(living_mover, TRAIT_CONTORTED_BODY) && IS_HORIZONTAL(living_mover))) // We really dont want people to get shocked on a door they're passing through
if(density && !do_mob(living_mover, living_mover, 2 SECONDS, requires_upright = FALSE))
return FALSE
if(!IS_HORIZONTAL(living_mover) || locked) // Checking if the user has gotten up or the airlock was bolted after we tried to crawl underneath
return FALSE
living_mover.forceMove(get_turf(src))
return TRUE
if(isElectrified() && density && isitem(mover) && !on_spark_cooldown)