mirror of
https://github.com/CHOMPStation2/CHOMPStation2.git
synced 2025-12-13 11:43:31 +00:00
[MIRROR] Allows resisting out of mech passenger compartments and sleepers (#9249)
Co-authored-by: Nadyr <41974248+Darlantanis@users.noreply.github.com> Co-authored-by: CHOMPStation2 <chompsation2@gmail.com>
This commit is contained in:
@@ -37,6 +37,10 @@
|
|||||||
else
|
else
|
||||||
to_chat(user, "You stop entering the exosuit.")
|
to_chat(user, "You stop entering the exosuit.")
|
||||||
|
|
||||||
|
/obj/item/mecha_parts/mecha_equipment/tool/passenger/container_resist(var/mob/living)
|
||||||
|
if(occupant == living)
|
||||||
|
eject()
|
||||||
|
|
||||||
/obj/item/mecha_parts/mecha_equipment/tool/passenger/verb/eject()
|
/obj/item/mecha_parts/mecha_equipment/tool/passenger/verb/eject()
|
||||||
set name = "Eject"
|
set name = "Eject"
|
||||||
set category = "Exosuit Interface"
|
set category = "Exosuit Interface"
|
||||||
@@ -45,6 +49,16 @@
|
|||||||
|
|
||||||
if(usr != occupant)
|
if(usr != occupant)
|
||||||
return
|
return
|
||||||
|
if(door_locked)
|
||||||
|
to_chat(occupant, "<span class='notice'>\The [src] is locked! You begin operating the emergency unlock mechanism. This will take one minute.</span>")
|
||||||
|
sleep(600)
|
||||||
|
if(!src || !usr || !occupant || (occupant != usr)) //Check if someone's released/replaced/bombed him already
|
||||||
|
return
|
||||||
|
if(door_locked)
|
||||||
|
door_locked = FALSE
|
||||||
|
occupant_message("Passenger compartment hatch unlocked.")
|
||||||
|
if (chassis)
|
||||||
|
chassis.visible_message("The hatch on \the [chassis] unlocks.", "You hear something latching.")
|
||||||
to_chat(occupant, "You climb out from \the [src].")
|
to_chat(occupant, "You climb out from \the [src].")
|
||||||
go_out()
|
go_out()
|
||||||
occupant_message("[occupant] disembarked.")
|
occupant_message("[occupant] disembarked.")
|
||||||
|
|||||||
@@ -197,6 +197,10 @@
|
|||||||
return 1
|
return 1
|
||||||
return
|
return
|
||||||
|
|
||||||
|
/obj/item/mecha_parts/mecha_equipment/tool/sleeper/container_resist(var/mob/living)
|
||||||
|
if(occupant == living)
|
||||||
|
eject()
|
||||||
|
|
||||||
/obj/item/mecha_parts/mecha_equipment/tool/sleeper/verb/eject()
|
/obj/item/mecha_parts/mecha_equipment/tool/sleeper/verb/eject()
|
||||||
set name = "Sleeper Eject"
|
set name = "Sleeper Eject"
|
||||||
set category = "Exosuit Interface"
|
set category = "Exosuit Interface"
|
||||||
|
|||||||
Reference in New Issue
Block a user