|
|
|
|
@@ -7,26 +7,21 @@
|
|
|
|
|
/proc/animate_fade_grayscale(var/atom/A, var/time = 5)
|
|
|
|
|
if(!istype(A) && !istype(A, /client))
|
|
|
|
|
return
|
|
|
|
|
A.color = list(1,0,0,0, 0,1,0,0, 0,0,1,0, 0,0,0,1)
|
|
|
|
|
animate(A, color=list(0.33, 0.33, 0.33, 0, 0.33, 0.33, 0.33, 0, 0.33, 0.33, 0.33, 0, 0, 0, 0, 1), time=time, easing=SINE_EASING)
|
|
|
|
|
return
|
|
|
|
|
A.color = MATRIX_DEFAULT
|
|
|
|
|
animate(A, color = MATRIX_GREYSCALE, time = time, easing = SINE_EASING)
|
|
|
|
|
|
|
|
|
|
/proc/animate_melt_pixel(var/atom/A)
|
|
|
|
|
if(!istype(A))
|
|
|
|
|
return
|
|
|
|
|
//A.alpha = 200
|
|
|
|
|
animate(A, pixel_y = 0, time = 50 - A.pixel_y, alpha = 175, easing = BOUNCE_EASING)
|
|
|
|
|
animate(alpha = 0, easing = LINEAR_EASING)
|
|
|
|
|
return
|
|
|
|
|
|
|
|
|
|
/proc/animate_explode_pixel(var/atom/A)
|
|
|
|
|
if(!istype(A))
|
|
|
|
|
return
|
|
|
|
|
var/floatdegrees = rand(5, 20)
|
|
|
|
|
var/side = 1
|
|
|
|
|
side = pick(-1, 1)
|
|
|
|
|
var/side = pick(-1, 1)
|
|
|
|
|
animate(A, pixel_x = rand(-64, 64), pixel_y = rand(-64, 64), transform = matrix(floatdegrees * (side == 1 ? 1:-1), MATRIX_ROTATE), time = 10, alpha = 0, easing = SINE_EASING)
|
|
|
|
|
return
|
|
|
|
|
|
|
|
|
|
/proc/animate_float(var/atom/A, var/loopnum = -1, floatspeed = 20, random_side = 1)
|
|
|
|
|
if(!istype(A))
|
|
|
|
|
@@ -39,7 +34,6 @@
|
|
|
|
|
spawn(rand(1,10))
|
|
|
|
|
animate(A, pixel_y = 32, transform = matrix(floatdegrees * (side == 1 ? 1:-1), MATRIX_ROTATE), time = floatspeed, loop = loopnum, easing = SINE_EASING)
|
|
|
|
|
animate(pixel_y = 0, transform = matrix(floatdegrees * (side == 1 ? -1:1), MATRIX_ROTATE), time = floatspeed, loop = loopnum, easing = SINE_EASING)
|
|
|
|
|
return
|
|
|
|
|
|
|
|
|
|
/proc/animate_levitate(var/atom/A, var/loopnum = -1, floatspeed = 20, random_side = 1)
|
|
|
|
|
if(!istype(A))
|
|
|
|
|
@@ -52,7 +46,6 @@
|
|
|
|
|
spawn(rand(1,10))
|
|
|
|
|
animate(A, pixel_y = 8, transform = matrix(floatdegrees * (side == 1 ? 1:-1), MATRIX_ROTATE), time = floatspeed, loop = loopnum, easing = SINE_EASING)
|
|
|
|
|
animate(pixel_y = 0, transform = null, time = floatspeed, loop = loopnum, easing = SINE_EASING)
|
|
|
|
|
return
|
|
|
|
|
|
|
|
|
|
/proc/animate_ghostly_presence(var/atom/A, var/loopnum = -1, floatspeed = 20, random_side = 1)
|
|
|
|
|
if(!istype(A))
|
|
|
|
|
@@ -65,7 +58,6 @@
|
|
|
|
|
spawn(rand(1,10))
|
|
|
|
|
animate(A, pixel_y = 8, transform = matrix(floatdegrees * (side == 1 ? 1:-1), MATRIX_ROTATE), time = floatspeed, loop = loopnum, easing = SINE_EASING)
|
|
|
|
|
animate(pixel_y = 0, transform = matrix(floatdegrees * (side == 1 ? -1:1), MATRIX_ROTATE), time = floatspeed, loop = loopnum, easing = SINE_EASING)
|
|
|
|
|
return
|
|
|
|
|
|
|
|
|
|
/proc/animate_fading_leap_up(var/atom/A)
|
|
|
|
|
if(!istype(A))
|
|
|
|
|
@@ -108,7 +100,6 @@
|
|
|
|
|
animate(A, transform = null, pixel_y = rand(y_severity_inverse,y_severity), pixel_x = rand(x_severity_inverse,x_severity),time = 1,loop = amount, easing = ELASTIC_EASING)
|
|
|
|
|
spawn(amount)
|
|
|
|
|
animate(A, transform = null, pixel_y = 0, pixel_x = 0,time = 1,loop = 1, easing = LINEAR_EASING)
|
|
|
|
|
return
|
|
|
|
|
|
|
|
|
|
/proc/animate_teleport(var/atom/A)
|
|
|
|
|
if(!istype(A))
|
|
|
|
|
@@ -118,7 +109,6 @@
|
|
|
|
|
M.Scale(0,4)
|
|
|
|
|
animate(transform = M, time = 5, color = "#1111ff", alpha = 0, easing = CIRCULAR_EASING)
|
|
|
|
|
animate(transform = null, time = 5, color = "#ffffff", alpha = 255, pixel_y = 0, easing = ELASTIC_EASING)
|
|
|
|
|
return
|
|
|
|
|
|
|
|
|
|
/proc/animate_teleport_wiz(var/atom/A)
|
|
|
|
|
if(!istype(A))
|
|
|
|
|
@@ -128,7 +118,6 @@
|
|
|
|
|
animate(transform = M, pixel_y = 32, time = 20, color = "#2222ff", alpha = 0, easing = CIRCULAR_EASING)
|
|
|
|
|
animate(time = 8, transform = M, alpha = 5) //Do nothing, essentially
|
|
|
|
|
animate(transform = null, time = 5, color = "#ffffff", alpha = 255, pixel_y = 0, easing = ELASTIC_EASING)
|
|
|
|
|
return
|
|
|
|
|
|
|
|
|
|
/proc/animate_rainbow_glow_old(var/atom/A)
|
|
|
|
|
if(!istype(A))
|
|
|
|
|
@@ -136,7 +125,6 @@
|
|
|
|
|
animate(A, color = "#FF0000", time = rand(5,10), loop = -1, easing = LINEAR_EASING)
|
|
|
|
|
animate(color = "#00FF00", time = rand(5,10), loop = -1, easing = LINEAR_EASING)
|
|
|
|
|
animate(color = "#0000FF", time = rand(5,10), loop = -1, easing = LINEAR_EASING)
|
|
|
|
|
return
|
|
|
|
|
|
|
|
|
|
/proc/animate_rainbow_glow(var/atom/A)
|
|
|
|
|
if(!istype(A))
|
|
|
|
|
@@ -147,7 +135,6 @@
|
|
|
|
|
animate(color = "#00FFFF", time = rand(5,10), loop = -1, easing = LINEAR_EASING)
|
|
|
|
|
animate(color = "#0000FF", time = rand(5,10), loop = -1, easing = LINEAR_EASING)
|
|
|
|
|
animate(color = "#FF00FF", time = rand(5,10), loop = -1, easing = LINEAR_EASING)
|
|
|
|
|
return
|
|
|
|
|
|
|
|
|
|
/proc/animate_fade_to_color_fill(var/atom/A, var/the_color, var/time)
|
|
|
|
|
if(!istype(A) || !the_color || !time)
|
|
|
|
|
@@ -172,7 +159,6 @@
|
|
|
|
|
return
|
|
|
|
|
animate(A, transform = matrix(1.3, MATRIX_SCALE), time = 5, color = "#00ff00", easing = BACK_EASING)
|
|
|
|
|
animate(transform = null, time = 5, color = "#ffffff", easing = ELASTIC_EASING)
|
|
|
|
|
return
|
|
|
|
|
|
|
|
|
|
/proc/animate_wiggle_then_reset(var/atom/A, var/loops = 5, var/speed = 5, var/x_var = 3, var/y_var = 3)
|
|
|
|
|
if(!istype(A) || !loops || !speed)
|
|
|
|
|
@@ -193,7 +179,6 @@
|
|
|
|
|
animate(transform = matrix(M, turn, MATRIX_ROTATE | MATRIX_MODIFY), time = T, loop = looping)
|
|
|
|
|
animate(transform = matrix(M, turn, MATRIX_ROTATE | MATRIX_MODIFY), time = T, loop = looping)
|
|
|
|
|
animate(transform = matrix(M, turn, MATRIX_ROTATE | MATRIX_MODIFY), time = T, loop = looping)
|
|
|
|
|
return
|
|
|
|
|
|
|
|
|
|
/proc/animate_shockwave(var/atom/A)
|
|
|
|
|
if(!istype(A))
|
|
|
|
|
@@ -203,4 +188,3 @@
|
|
|
|
|
animate(A, transform = matrix(punchstr, MATRIX_ROTATE), pixel_y = 16, time = 2, color = "#eeeeee", easing = BOUNCE_EASING)
|
|
|
|
|
animate(transform = matrix(-punchstr, MATRIX_ROTATE), pixel_y = original_y, time = 2, color = "#ffffff", easing = BOUNCE_EASING)
|
|
|
|
|
animate(transform = null, time = 3, easing = BOUNCE_EASING)
|
|
|
|
|
return
|