mirror of
https://github.com/Aurorastation/Aurora.3.git
synced 2025-12-23 08:31:57 +00:00
Adds a new process-based effects system with the goal of reducing insane lag from sparks. Currently only supports sparks, but should be easily extendable to other types of effects. Also fixes a bug with airlocks where the light from bolts wasn't updating. Refactors bears slightly to reduce duplicated code & pointless spark object creation and destruction. Lighting profiler will now log /turf locations & names correctly. Doors will no longer trigger way more visibility checks than they need to.
20 lines
811 B
Plaintext
20 lines
811 B
Plaintext
/*
|
|
|
|
/proc/spark(var/turf/loc, var/amount = 1, var/spread_dirs = cardinal)
|
|
Creates a spark system that is destroyed once the animation completes.
|
|
loc: The location this effect should be created at.
|
|
amount: How many spark-tiles should be created.
|
|
spread_dirs: The directions the sparks should spread in. 'cardinal' if not specified.
|
|
|
|
/proc/bind_spark(var/atom/movable/loc, var/amount = 1, var/spread_dirs = cardinal)
|
|
Creates a spark system that can be stored in a variable and reused multiple times with queue().
|
|
loc: The atom to bind this effect to.
|
|
amount: How many spark-tiles should be created.
|
|
spread_dirs: The directions the sparks should spread in. 'cardinal' if not specified.
|
|
|
|
/proc/single_spark(var/turf/loc)
|
|
Creates a single tile of sparks.
|
|
loc: The location the spark should be created at.
|
|
|
|
*/
|