mirror of
https://github.com/PolarisSS13/Polaris.git
synced 2026-01-15 20:02:47 +00:00
37 lines
707 B
Plaintext
37 lines
707 B
Plaintext
//temporary visual effects
|
|
/obj/effect/temp_visual
|
|
icon = 'icons/effects/effects.dmi'
|
|
icon_state = "nothing"
|
|
anchored = TRUE
|
|
layer = ABOVE_MOB_LAYER
|
|
mouse_opacity = 0
|
|
var/duration = 10 //in deciseconds
|
|
var/randomdir = TRUE
|
|
|
|
/obj/effect/temp_visual/initialize()
|
|
. = ..()
|
|
if(randomdir)
|
|
set_dir(pick(cardinal))
|
|
|
|
spawn(duration)
|
|
qdel(src)
|
|
|
|
/obj/effect/temp_visual/singularity_act()
|
|
return
|
|
|
|
/obj/effect/temp_visual/singularity_pull()
|
|
return
|
|
|
|
/obj/effect/temp_visual/ex_act()
|
|
return
|
|
|
|
/*
|
|
/obj/effect/temp_visual/dir_setting
|
|
randomdir = FALSE
|
|
|
|
/obj/effect/temp_visual/dir_setting/Initialize(mapload, set_dir)
|
|
if(set_dir)
|
|
setDir(set_dir)
|
|
. = ..()
|
|
*/ //More tg stuff that might be useful later
|