mirror of
https://github.com/Bubberstation/Bubberstation.git
synced 2026-08-24 21:48:39 +01:00
@@ -979,8 +979,14 @@
|
||||
return TRUE
|
||||
|
||||
/obj/mecha/container_resist(mob/living/user)
|
||||
go_out()
|
||||
|
||||
is_currently_ejecting = TRUE
|
||||
to_chat(occupant, "<span class='notice'>You begin the ejection procedure. Equipment is disabled during this process. Hold still to finish ejecting.<span>")
|
||||
if(do_after(occupant,exit_delay, target = src))
|
||||
to_chat(occupant, "<span class='notice'>You exit the mech.<span>")
|
||||
go_out()
|
||||
else
|
||||
to_chat(occupant, "<span class='notice'>You stop exiting the mech. Weapons are enabled again.<span>")
|
||||
is_currently_ejecting = FALSE
|
||||
|
||||
/obj/mecha/Exited(atom/movable/M, atom/newloc)
|
||||
if(occupant && occupant == M) // The occupant exited the mech without calling go_out()
|
||||
|
||||
@@ -44,15 +44,7 @@
|
||||
return
|
||||
if(!chassis || chassis.occupant != owner)
|
||||
return
|
||||
chassis.is_currently_ejecting = TRUE
|
||||
to_chat(owner, "<span class='notice'>You begin the ejection procedure. Equipment is disabled during this process. Hold still to finish ejecting.<span>")
|
||||
if(do_after(chassis.occupant,chassis.exit_delay, target = chassis))
|
||||
to_chat(owner, "<span class='notice'>You exit the mech.<span>")
|
||||
chassis.go_out()
|
||||
else
|
||||
to_chat(owner, "<span class='notice'>You stop exiting the mech. Weapons are enabled again.<span>")
|
||||
chassis.is_currently_ejecting = FALSE
|
||||
|
||||
chassis.container_resist(chassis.occupant)
|
||||
|
||||
/datum/action/innate/mecha/mech_toggle_internals
|
||||
name = "Toggle Internal Airtank Usage"
|
||||
|
||||
Reference in New Issue
Block a user