Skip to content

Commit

Permalink
no animation maybe if we get sprites
Browse files Browse the repository at this point in the history
  • Loading branch information
morrowwolf committed Nov 13, 2023
1 parent f58dd7a commit ed58df5
Showing 1 changed file with 0 additions and 20 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -115,12 +115,6 @@
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 @@ -166,20 +160,6 @@

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 ed58df5

Please sign in to comment.