From 9fd5f57ce24a5345ae8a5c278cffcb94c0b85198 Mon Sep 17 00:00:00 2001 From: xDanilcusx Date: Thu, 9 Nov 2023 15:48:03 +0300 Subject: [PATCH] Revert "Nahh no anim till we get some sprites!!" This reverts commit 7d22db31d79d46fa5ef0139f4668ea34f79c6cd1. --- .../abilities/crusher/crusher_powers.dm | 20 +++++++++++++++++++ 1 file changed, 20 insertions(+) diff --git a/code/modules/mob/living/carbon/xenomorph/abilities/crusher/crusher_powers.dm b/code/modules/mob/living/carbon/xenomorph/abilities/crusher/crusher_powers.dm index 4e13e6f0a7..3046913a1c 100644 --- a/code/modules/mob/living/carbon/xenomorph/abilities/crusher/crusher_powers.dm +++ b/code/modules/mob/living/carbon/xenomorph/abilities/crusher/crusher_powers.dm @@ -115,6 +115,12 @@ X.anchored = TRUE X.update_canmove() + if(X.dir == WEST) + animate_stomp(windup_duration, 30) + + if(X.dir == EAST) + animate_stomp(windup_duration, -30) + if (!do_after(X, windup_duration, INTERRUPT_NO_NEEDHAND, BUSY_ICON_HOSTILE)) X.frozen = FALSE X.anchored = FALSE @@ -158,6 +164,20 @@ return ..() +/datum/action/xeno_action/onclick/crusher_stomp/proc/animate_stomp(windup_duration, angle) + set waitfor = FALSE + var/duration = windup_duration / 3 + + animate(owner, transform = turn(matrix(), angle / -3.75), time = duration, easing = SINE_EASING|EASE_OUT) + + sleep(duration) + + animate(owner, pixel_y = 3, transform = turn(matrix(), angle), time = duration, easing = SINE_EASING|EASE_OUT) + + sleep(duration) + + animate(owner, pixel_y = 0, transform = matrix(), time = duration, easing = QUAD_EASING|EASE_IN) + /datum/action/xeno_action/onclick/crusher_stomp/charger/use_ability() var/mob/living/carbon/xenomorph/Xeno = owner var/mob/living/carbon/Targeted