# Effects: how a gun's shot and its hit are drawn (crates/sim/src/effects.rs). # A weapon module names its row with `effect = "tracer"`; one without takes # its damage type's default: kinetic `slug`, thermal `laser`. Packs add rows # under their prefix (`union:flak`) and name them from their modules. # # kind beam a line from gun to target, fading over `life` # bolt a bright `length` (world units) flying gun to target in `life` # projectile a dot of `width`, flying in `life`, trailed by `count` bodies # burst `count` small dots, spread a little, flying in `life` # color the body, #rrggbb; core a brighter centre (optional) # width screen pixels at zoom 1 for a small gun (a line's width, a dot's # radius); [effect.size] scales it by hardpoint size (default # s 1, m 1.5, l 2.2, xl 3.2) # life seconds on screen; a flying shot's hit lands when it arrives # impact sparks (streaks glancing off) | scorch (embers) | shock (a big # flash and a ring) | none # [[effect.band]] from `from_tier` up, what a better gun draws with (only # what the band names changes; tiers ascending) # The kinetic default: a pale slug and its trail. [[effect]] id = "slug" kind = "projectile" color = "#ffe39a" width = 1.7 life = 0.28 count = 2 impact = "sparks" [[effect.band]] from_tier = 5 color = "#fff0c0" core = "#ffffff" [[effect.band]] from_tier = 10 width = 2.2 # The thermal default: an orange beam with a hot core. [[effect]] id = "laser" kind = "beam" color = "#ff8a5c" core = "#fff0e0" width = 3.2 life = 0.22 impact = "scorch" [[effect.band]] from_tier = 5 core = "#ffffff" [[effect.band]] from_tier = 10 width = 4.0 # Ferrum's autocannons: a quick bright streak of three. [[effect]] id = "tracer" kind = "projectile" color = "#fff7d6" core = "#ffffff" width = 1.4 life = 0.2 count = 3 impact = "sparks" # The Endless' mass drivers: a slow heavy round that lands hard. [[effect]] id = "heavy_slug" kind = "projectile" color = "#cfe6ff" core = "#ffffff" width = 2.8 life = 0.36 count = 2 impact = "shock" # Helion's pulse lasers: a short hot pulse in flight. [[effect]] id = "bolt" kind = "bolt" color = "#ffa060" core = "#fff4e0" width = 2.4 length = 50 life = 0.24 impact = "scorch" # The Infinite's lances: a white-gold beam. [[effect]] id = "lance" kind = "beam" color = "#ffe9b0" core = "#ffffff" width = 2.6 life = 0.3 impact = "scorch" # The Empire's beams: crimson, in the Imperial paint. [[effect]] id = "imperial_beam" kind = "beam" color = "#c43a4a" core = "#ffd6d6" width = 3.0 life = 0.26 impact = "scorch" # The Empire's cannons: a red-hot round. [[effect]] id = "imperial_cannon" kind = "projectile" color = "#ff6a5c" core = "#ffe0d6" width = 2.4 life = 0.3 count = 2 impact = "shock"