Remote Mecha Die Fix (#9020)

Having your mech explode while you're remotely piloting it should no longer kill you. Probably.
This commit is contained in:
Geeves
2020-06-05 22:16:05 +03:00
committed by GitHub
parent 0874227e9a
commit 31aca584d1
2 changed files with 12 additions and 3 deletions
+6 -3
View File
@@ -75,7 +75,6 @@
visible_message("<span class='danger'>\The [src]'s hull bends and buckles under the intense heat!</span>")
/mob/living/heavy_vehicle/death(var/gibbed)
// Salvage moves into the wreck unless we're exploding violently.
var/obj/wreck = new wreckage_path(get_turf(src), src, gibbed)
wreck.name = "wreckage of \the [name]"
@@ -94,12 +93,16 @@
// Eject the pilot.
if(LAZYLEN(pilots))
hatch_locked = 0 // So they can get out.
for(var/pilot in pilots)
for(var/mob/pilot in pilots)
pilot.body_return()
eject(pilot, silent=1)
if(remote_network && istype(pilot, /mob/living/simple_animal/spiderbot))
gib(pilot)
// Handle the rest of things.
..(gibbed, (gibbed ? "explodes!" : "grinds to a halt before collapsing!"))
if(!gibbed) qdel(src)
if(!gibbed)
qdel(src)
/mob/living/heavy_vehicle/gib()
death(1)
+6
View File
@@ -0,0 +1,6 @@
author: Geeves
delete-after: True
changes:
- bugfix: "Having your mech explode while you're remotely piloting it should no longer kill you. Probably."