Adds a special suicide action to air tanks (#18575)

* Add /tg/ tank suicide_act

* Review
This commit is contained in:
Luc
2022-08-03 18:06:20 -05:00
committed by GitHub
parent 964eeea4e9
commit 2daa76e6fc
2 changed files with 20 additions and 0 deletions
+6
View File
@@ -101,3 +101,9 @@
Weaken(30 SECONDS)
do_jitter_animation(1000, -1) // jitter until they are gibbed
addtimer(CALLBACK(src, .proc/gib), rand(2 SECONDS, 10 SECONDS))
/mob/living/carbon/proc/inflate_gib() // Plays an animation that makes mobs appear to inflate before finally gibbing
addtimer(CALLBACK(src, .proc/gib, null, null, TRUE, TRUE), 25)
var/matrix/M = matrix()
M.Scale(1.8, 1.2)
animate(src, time = 40, transform = M, easing = SINE_EASING)