Merge pull request #13994 from Citadel-Station-13/clowncar-safety

hugboxes admin twitchplays clown car to not explode on death to avoid killing people (by default)
This commit is contained in:
DeltaFire
2021-01-13 17:56:00 +01:00
committed by GitHub
2 changed files with 4 additions and 1 deletions
+1
View File
@@ -139,6 +139,7 @@
/obj/vehicle/sealed/car/clowncar/twitch_plays
key_type = null
explode_on_death = FALSE
/obj/vehicle/sealed/car/clowncar/twitch_plays/Initialize()
. = ..()
+3 -1
View File
@@ -1,6 +1,7 @@
/obj/vehicle/sealed
enclosed = TRUE // you're in a sealed vehicle dont get dinked idiot
var/enter_delay = 20
var/explode_on_death = TRUE
flags_1 = BLOCK_FACE_ATOM_1
/obj/vehicle/sealed/generate_actions()
@@ -87,7 +88,8 @@
/obj/vehicle/sealed/Destroy()
DumpMobs()
explosion(loc, 0, 1, 2, 3, 0)
if(explode_on_death)
explosion(loc, 0, 1, 2, 3, 0)
return ..()
/obj/vehicle/sealed/proc/DumpMobs(randomstep = TRUE)