mirror of
https://github.com/PolarisSS13/Polaris.git
synced 2025-12-26 10:03:45 +00:00
* Yes, all of them. * Also did a few corrections to redundant New() and broken Destroy() along the way * Renamed the turf_initializer.initialize() proc to InitializeTurf to avoid confusion. * Subsumed /area/proc/initialize into /atom/proc/initialize() - Made /area's LateInitialize to get same behavior as before.
48 lines
1.4 KiB
Plaintext
48 lines
1.4 KiB
Plaintext
//The effect when you wrap a dead body in gift wrap
|
|
/obj/effect/spresent
|
|
name = "strange present"
|
|
desc = "It's a ... present?"
|
|
icon = 'icons/obj/items.dmi'
|
|
icon_state = "strangepresent"
|
|
density = 1
|
|
anchored = 0
|
|
|
|
/obj/effect/temporary_effect
|
|
name = "self deleting effect"
|
|
desc = "How are you examining what which cannot be seen?"
|
|
icon = 'icons/effects/effects.dmi'
|
|
invisibility = 0
|
|
var/time_to_die = 10 SECONDS // Afer which, it will delete itself.
|
|
|
|
/obj/effect/temporary_effect/New()
|
|
..()
|
|
if(time_to_die)
|
|
spawn(time_to_die)
|
|
qdel(src)
|
|
|
|
// Shown really briefly when attacking with axes.
|
|
/obj/effect/temporary_effect/cleave_attack
|
|
name = "cleaving attack"
|
|
desc = "Something swinging really wide."
|
|
icon = 'icons/effects/96x96.dmi'
|
|
icon_state = "cleave"
|
|
layer = 6
|
|
time_to_die = 6
|
|
alpha = 140
|
|
mouse_opacity = 0
|
|
pixel_x = -32
|
|
pixel_y = -32
|
|
|
|
/obj/effect/temporary_effect/cleave_attack/initialize() // Makes the slash fade smoothly. When completely transparent it should qdel itself.
|
|
. = ..()
|
|
animate(src, alpha = 0, time = time_to_die - 1)
|
|
|
|
/obj/effect/temporary_effect/shuttle_landing
|
|
name = "shuttle landing"
|
|
desc = "You better move if you don't want to go splat!"
|
|
icon_state = "shuttle_warning_still"
|
|
time_to_die = 4.9 SECONDS
|
|
|
|
/obj/effect/temporary_effect/shuttle_landing/initialize()
|
|
flick("shuttle_warning", src) // flick() forces the animation to always begin at the start.
|
|
. = ..() |