mirror of
https://github.com/Bubberstation/Bubberstation.git
synced 2026-08-28 15:47:15 +01:00
Fixes a bunch of harddels and weirdness. (#44012)
* grabbag of random things * followup * deleet
This commit is contained in:
committed by
AnturK
parent
14d3460150
commit
7bb73bcfb8
@@ -20,6 +20,9 @@ would spawn and follow the beaker, even if it is carried or thrown.
|
||||
GLOB.cameranet.updateVisibility(src)
|
||||
return ..()
|
||||
|
||||
/obj/effect/particle_effect/newtonian_move() // Prevents effects from getting registered for SSspacedrift
|
||||
return TRUE
|
||||
|
||||
/datum/effect_system
|
||||
var/number = 3
|
||||
var/cardinals = FALSE
|
||||
|
||||
@@ -5,19 +5,23 @@
|
||||
anchored = TRUE
|
||||
|
||||
/obj/effect/particle_effect/expl_particles/Initialize()
|
||||
. = ..()
|
||||
QDEL_IN(src, 15)
|
||||
..()
|
||||
return INITIALIZE_HINT_LATELOAD
|
||||
|
||||
/obj/effect/particle_effect/expl_particles/LateInitialize()
|
||||
var/direct = pick(GLOB.alldirs)
|
||||
var/steps_amt = pick(1;25,2;50,3,4;200)
|
||||
for(var/j in 1 to steps_amt)
|
||||
step(src, direct)
|
||||
sleep(1)
|
||||
qdel(src)
|
||||
|
||||
/datum/effect_system/expl_particles
|
||||
number = 10
|
||||
|
||||
/datum/effect_system/expl_particles/start()
|
||||
for(var/i in 1 to number)
|
||||
var/obj/effect/particle_effect/expl_particles/expl = new /obj/effect/particle_effect/expl_particles(location)
|
||||
var/direct = pick(GLOB.alldirs)
|
||||
var/steps_amt = pick(1;25,2;50,3,4;200)
|
||||
for(var/j in 1 to steps_amt)
|
||||
addtimer(CALLBACK(GLOBAL_PROC, .proc/_step, expl, direct), j)
|
||||
new /obj/effect/particle_effect/expl_particles(location)
|
||||
|
||||
/obj/effect/explosion
|
||||
name = "fire"
|
||||
|
||||
@@ -25,13 +25,17 @@
|
||||
light_color = LIGHT_COLOR_FIRE
|
||||
|
||||
/obj/effect/particle_effect/sparks/Initialize()
|
||||
. = ..()
|
||||
..()
|
||||
return INITIALIZE_HINT_LATELOAD
|
||||
|
||||
/obj/effect/particle_effect/sparks/LateInitialize()
|
||||
flick("sparks", src) // replay the animation
|
||||
playsound(src, "sparks", 100, TRUE)
|
||||
var/turf/T = loc
|
||||
if(isturf(T))
|
||||
T.hotspot_expose(1000,100)
|
||||
QDEL_IN(src, 20)
|
||||
sleep(20)
|
||||
qdel(src)
|
||||
|
||||
/obj/effect/particle_effect/sparks/Destroy()
|
||||
var/turf/T = loc
|
||||
|
||||
Reference in New Issue
Block a user