animation refresh - huge unatomized bundle of fixes and tweaks to numerous animations in the game
This commit is contained in:
@@ -60,7 +60,7 @@
|
||||
if(client && hud_used)
|
||||
hud_used.reorganize_alerts()
|
||||
thealert.transform = matrix(32, 6, MATRIX_TRANSLATE)
|
||||
animate(thealert, transform = matrix(), time = 2.5, easing = CUBIC_EASING)
|
||||
animate(thealert, transform = matrix(), time = 2.5, easing = BACK_EASING)
|
||||
|
||||
if(thealert.timeout)
|
||||
addtimer(CALLBACK(src, .proc/alert_timeout, thealert, category), thealert.timeout)
|
||||
|
||||
@@ -178,7 +178,7 @@ GLOBAL_LIST_EMPTY(radial_menus)
|
||||
starting.Scale(0.1,0.1)
|
||||
E.transform = starting
|
||||
var/matrix/TM = matrix()
|
||||
animate(E,pixel_x = px,pixel_y = py, transform = TM, time = timing)
|
||||
animate(E,pixel_x = px,pixel_y = py, transform = TM, time = timing, easing = SINE_EASING | EASE_OUT)
|
||||
else
|
||||
E.pixel_y = py
|
||||
E.pixel_x = px
|
||||
|
||||
@@ -126,6 +126,8 @@
|
||||
return DISCARD_LAST_ACTION
|
||||
user.do_attack_animation(O)
|
||||
O.attacked_by(src, user)
|
||||
if(force >= 20)
|
||||
shake_camera(user, ((force - 15) * 0.01 + 1), ((force - 15) * 0.01))
|
||||
|
||||
/atom/movable/proc/attacked_by()
|
||||
return
|
||||
|
||||
Reference in New Issue
Block a user