mirror of
https://github.com/ParadiseSS13/Paradise.git
synced 2026-08-27 05:57:24 +01:00
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:
co-authored by
adrermail@gmail.com <adrermail@gmail.com>
parent
bc7356b578
commit
d1374cc1be
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user