Skip to content

Commit

Permalink
Revert "Nahh no anim till we get some sprites!!"
Browse files Browse the repository at this point in the history
This reverts commit 7d22db3.
  • Loading branch information
xDanilcusx committed Nov 9, 2023
1 parent 2b1bc59 commit 9fd5f57
Showing 1 changed file with 20 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand Down

0 comments on commit 9fd5f57

Please sign in to comment.