mirror of
https://github.com/Bubberstation/Bubberstation.git
synced 2026-01-30 02:52:30 +00:00
* Particle editor (#71110) ## About The Pull Request Demo: https://streamable.com/wnj3mf Features: - Full support for most gradients/vectors/numbers/generators/transforms ( I might have forgotten some of the more esoteric ones) - A "tutorial" section that explains the different rand/generation types and how physics works with pictures - Button for viewing what each var does - Selecting a particle type to set immediately - The generator types use defines now Not included: Color matrix support for color generators (I'm sorry but hell no) Special thanks to @ jlsnow301 for explaining js things to me ## Why It's Good For The Game Making cool stuf ## Changelog 🆑 refactor: Added a particle editor to VV dropdown which can be used by coders and admins to edit particle values on the fly easily. /🆑 Co-authored-by: TiviPlus <572233640+TiviPlus@ users.noreply.com> * Particle editor Co-authored-by: TiviPlus <57223640+TiviPlus@users.noreply.github.com> Co-authored-by: TiviPlus <572233640+TiviPlus@ users.noreply.com>
35 lines
939 B
Plaintext
35 lines
939 B
Plaintext
/particles/smoke
|
|
icon = 'icons/effects/particles/smoke.dmi'
|
|
icon_state = list("smoke_1" = 1, "smoke_2" = 1, "smoke_3" = 2)
|
|
width = 100
|
|
height = 100
|
|
count = 1000
|
|
spawning = 4
|
|
lifespan = 1.5 SECONDS
|
|
fade = 1 SECONDS
|
|
velocity = list(0, 0.4, 0)
|
|
position = list(6, 0, 0)
|
|
drift = generator(GEN_SPHERE, 0, 2, NORMAL_RAND)
|
|
friction = 0.2
|
|
gravity = list(0, 0.95)
|
|
grow = 0.05
|
|
|
|
/particles/smoke/steam
|
|
icon_state = list("steam_1" = 1, "steam_2" = 1, "steam_3" = 2)
|
|
fade = 1.5 SECONDS
|
|
|
|
/particles/smoke/steam/mild
|
|
spawning = 1
|
|
velocity = list(0, 0.3, 0)
|
|
friction = 0.25
|
|
|
|
/particles/smoke/ash
|
|
icon_state = list("ash_1" = 2, "ash_2" = 2, "ash_3" = 1, "smoke_1" = 3, "smoke_2" = 2)
|
|
count = 500
|
|
spawning = 1
|
|
lifespan = 1 SECONDS
|
|
fade = 0.2 SECONDS
|
|
fadein = 0.7 SECONDS
|
|
position = generator("vector", list(-3, 5, 0), list(3, 6.5, 0), NORMAL_RAND)
|
|
velocity = generator("vector", list(-0.1, 0.4, 0), list(0.1, 0.5, 0), NORMAL_RAND)
|