Files
Yogstation/code/modules/shuttle/ripple.dm
Cyberboss a91c7ee507 Fixes that sparkle animation always playing (#25051)
When viewing ripples for the first time
2017-03-14 19:36:20 +01:00

23 lines
700 B
Plaintext

/obj/effect/overlay/temp/ripple
name = "hyperspace ripple"
desc = "Something is coming through hyperspace, you can see the \
visual disturbances. It's probably best not to be on top of these \
when whatever is tunneling comes through."
icon = 'icons/effects/effects.dmi'
icon_state = "medi_holo"
anchored = TRUE
density = FALSE
layer = RIPPLE_LAYER
mouse_opacity = 1
alpha = 0
duration = 3 * SHUTTLE_RIPPLE_TIME
/obj/effect/overlay/temp/ripple/Initialize(mapload, time_left)
. = ..()
animate(src, alpha=255, time=time_left)
addtimer(CALLBACK(src, .proc/stop_animation), 8, TIMER_CLIENT_TIME)
/obj/effect/overlay/temp/ripple/proc/stop_animation()
icon_state = "medi_holo_no_anim"