@adatechnology/game-vfx 0.3.0 → 0.4.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/README.md CHANGED
@@ -71,6 +71,12 @@ about the vertical axis `direction` gives) and named numbers (`values`, read wit
71
71
  `breach_dust` and `collapse_dust`, `expose` `rebar_expose`, a fracture of glass `glass_burst`; `muzzle_*` and `casing_*` are the weapon slices. `GAME_EFFECTS`
72
72
  is the recipes plus these, what a world plays by default. Texts of every recipe (name, cost, when, look, budget, network) are in `locales` (`en`, `pt-BR`).
73
73
 
74
+ ## Vehicle effects
75
+
76
+ `VEHICLE_EFFECTS` write the Garagem's recipes around a car: `vehicle_fire` and `vehicle_exhaust` (`engine_smoke`), `vehicle_leak` and `vehicle_leak_ignited` (`fuel_leak`). A normal bullet through a tank only leaks, so
77
+ `vehicle_leak` is the page's pool and drips without the fire and the explosion (`FUEL_LEAK_ONLY`: the same `decal` and `emit` steps); `vehicle_leak_ignited` is the whole sequence (the spark, the fire running along
78
+ the pool to the tank and the blast at 7.2 s), played when the leak catches fire.
79
+
74
80
  ## Install
75
81
 
76
82
  ```sh
@@ -3248,6 +3248,17 @@ var GameVfx = (() => {
3248
3248
  ])
3249
3249
  ]
3250
3250
  };
3251
+ var FUEL_LEAK_ONLY = {
3252
+ id: "fuel_leak_only",
3253
+ pageId: "vazamento",
3254
+ team: "vehicles",
3255
+ budget: { particles: 200, lights: 0 },
3256
+ loop: 11,
3257
+ view: FUEL_LEAK.view,
3258
+ setup: FUEL_LEAK.setup,
3259
+ timeline: [decal(POOL[0], 0, POOL[2], 2.2, 2040368, { grow: 3, life: 60, ar: 0.6, fluid: "oil" })],
3260
+ tick: [emit("drip", "normal", 12, { p: TANK, box: [0.05, 0, 0.05], sp: 0, life: 1, size: 0.03, c0: 5921402, a: 0.9, g: 9.8, fi: 0, gnd: 1 })]
3261
+ };
3251
3262
 
3252
3263
  // src/effects/vehicles/car-explosion.ts
3253
3264
  var CAR_EXPLOSION = {
@@ -3621,6 +3632,8 @@ var GameVfx = (() => {
3621
3632
  // src/effects/weapons/viewmodel.ts
3622
3633
  var PI = Math.PI;
3623
3634
  var SMOKE = { color: 9079430, width: 10, height: 8, gravity: -0.08, drag: 2.2, growth: 2.1 };
3635
+ var DEFAULT_SMOKE = { puffs: 2, radius: 0.01, opacity: 0.14, life: 0.7, drift: 0.2, rise: 0.06, growth: 2.1, flash: 1 };
3636
+ var DEFAULT_SPREAD = { drift: 0.1, rise: 0.04, side: 0.06 };
3624
3637
  var FLASH_SECONDS = 0.055;
3625
3638
  var FLASH_RAMP = [0.6, 0.9];
3626
3639
  var FLASH_OPACITY = 0.95;
@@ -3628,8 +3641,10 @@ var GameVfx = (() => {
3628
3641
  var FLAME_ADDITIVE = 3;
3629
3642
  var ORIGIN2 = [0, 0, 0];
3630
3643
  var SIZE = variable("size");
3644
+ var FLASH_SCALE = variable("flash");
3645
+ var fallback = (name, defaultValue) => ite(ne(variable(name), void 0), variable(name), defaultValue);
3631
3646
  var wide = (width) => mul(sub(rand(), 0.5), width);
3632
- var puff2 = (point, velocity, world, radius, life, opacity) => mesh({
3647
+ var puff2 = (point, velocity, world, radius, life, opacity, growth = SMOKE.growth) => mesh({
3633
3648
  shape: "sphere",
3634
3649
  p: point,
3635
3650
  v: velocity,
@@ -3644,7 +3659,7 @@ var GameVfx = (() => {
3644
3659
  lit: true,
3645
3660
  g: SMOKE.gravity,
3646
3661
  drag: SMOKE.drag,
3647
- grow: SMOKE.growth
3662
+ grow: growth
3648
3663
  });
3649
3664
  var flameBit = (point, velocity, world, radius, life) => [
3650
3665
  set("bitPoint", point),
@@ -3677,37 +3692,55 @@ var GameVfx = (() => {
3677
3692
  id: "viewmodel_muzzle_flash",
3678
3693
  pageId: "event:viewmodel_muzzle_flash",
3679
3694
  team: "weapons",
3680
- budget: { particles: 12, lights: 1 },
3695
+ budget: { particles: 14, lights: 1 },
3681
3696
  loop: 0.1,
3697
+ setup: [
3698
+ set("size", fallback("size", 1)),
3699
+ set("puffs", fallback("puffs", DEFAULT_SMOKE.puffs)),
3700
+ set("radius", fallback("radius", DEFAULT_SMOKE.radius)),
3701
+ set("opacity", fallback("opacity", DEFAULT_SMOKE.opacity)),
3702
+ set("life", fallback("life", DEFAULT_SMOKE.life)),
3703
+ set("drift", fallback("drift", DEFAULT_SMOKE.drift)),
3704
+ set("rise", fallback("rise", DEFAULT_SMOKE.rise)),
3705
+ set("growth", fallback("growth", DEFAULT_SMOKE.growth)),
3706
+ set("flash", fallback("flash", DEFAULT_SMOKE.flash)),
3707
+ set("driftSpread", fallback("driftSpread", DEFAULT_SPREAD.drift)),
3708
+ set("riseSpread", fallback("riseSpread", DEFAULT_SPREAD.rise)),
3709
+ set("sideSpread", fallback("sideSpread", DEFAULT_SPREAD.side)),
3710
+ set("lifeSpread", ite(ne(variable("lifeSpread"), void 0), variable("lifeSpread"), mul(variable("life"), 0.3)))
3711
+ ],
3682
3712
  timeline: [
3683
3713
  set("angles", []),
3684
3714
  repeat(4, append("angles", add(div(mul(INDEX, PI), 2), mul(rand(), 0.6)))),
3685
3715
  set("roll", mul(rand(), PI)),
3686
- flash(ORIGIN2, 16756832, mul(4, SIZE), FLASH_SECONDS, mul(2, SIZE), true, true),
3687
- flashPiece("cone_open", mul(0.013, SIZE), mul(0.085, SIZE), 10, [mul(0.042, SIZE), 0, 0], [0, 0, -PI / 2], 16757575),
3688
- repeat(
3689
- 4,
3690
- set("angle", pick(variable("angles"), INDEX)),
3691
- flashPiece(
3692
- "cone",
3693
- mul(5e-3, SIZE),
3694
- mul(0.04, SIZE),
3695
- 6,
3696
- [mul(0.012, SIZE), mul(cos(variable("angle")), 0.016, SIZE), mul(sin(variable("angle")), 0.016, SIZE)],
3697
- [variable("angle"), 0, -PI / 2],
3698
- 16757575
3699
- )
3700
- ),
3701
- flashPiece("sphere", mul(0.016, SIZE), void 0, 12, [mul(8e-3, SIZE), 0, 0], [0, 0, 0], 16773568),
3716
+ when(gt(FLASH_SCALE, 0), [
3717
+ flash(ORIGIN2, 16756832, mul(4, SIZE, FLASH_SCALE), FLASH_SECONDS, mul(2, SIZE, FLASH_SCALE), true, true),
3718
+ flashPiece("cone_open", mul(0.013, SIZE, FLASH_SCALE), mul(0.085, SIZE, FLASH_SCALE), 10, [mul(0.042, SIZE, FLASH_SCALE), 0, 0], [0, 0, -PI / 2], 16757575),
3719
+ repeat(
3720
+ 4,
3721
+ set("angle", pick(variable("angles"), INDEX)),
3722
+ flashPiece(
3723
+ "cone",
3724
+ mul(5e-3, SIZE, FLASH_SCALE),
3725
+ mul(0.04, SIZE, FLASH_SCALE),
3726
+ 6,
3727
+ [mul(0.012, SIZE, FLASH_SCALE), mul(cos(variable("angle")), 0.016, SIZE, FLASH_SCALE), mul(sin(variable("angle")), 0.016, SIZE, FLASH_SCALE)],
3728
+ [variable("angle"), 0, -PI / 2],
3729
+ 16757575
3730
+ )
3731
+ ),
3732
+ flashPiece("sphere", mul(0.016, SIZE, FLASH_SCALE), void 0, 12, [mul(8e-3, SIZE, FLASH_SCALE), 0, 0], [0, 0, 0], 16773568)
3733
+ ]),
3702
3734
  repeat(
3703
- 6,
3735
+ variable("puffs"),
3704
3736
  puff2(
3705
3737
  ORIGIN2,
3706
- [add(0.15, mul(rand(), 0.35)), add(0.03, mul(rand(), 0.12)), mul(sub(rand(), 0.5), 0.14)],
3738
+ [add(variable("drift"), mul(rand(), variable("driftSpread"))), add(variable("rise"), mul(rand(), variable("riseSpread"))), mul(sub(rand(), 0.5), variable("sideSpread"))],
3707
3739
  [0, 0, 0],
3708
- mul(0.013, SIZE),
3709
- add(1.3, mul(rand(), 0.6)),
3710
- 0.45
3740
+ mul(variable("radius"), SIZE),
3741
+ add(variable("life"), mul(rand(), variable("lifeSpread"))),
3742
+ variable("opacity"),
3743
+ variable("growth")
3711
3744
  )
3712
3745
  )
3713
3746
  ]
@@ -3763,8 +3796,10 @@ var GameVfx = (() => {
3763
3796
  aliasOf(ENGINE_SMOKE, "vehicle_fire", { params: { id: "condition", options: ["100", "60", "30", "10"], default: 3 }, loop: 12 }),
3764
3797
  /** The exhaust of a car under way: `engine_smoke` in the best condition, for half a second so a moving car asks again. */
3765
3798
  aliasOf(ENGINE_SMOKE, "vehicle_exhaust", { params: { id: "condition", options: ["100", "60", "30", "10"], default: 0 }, loop: 0.5 }),
3766
- /** A hole in the tank: the page's own petrol leak (drips, pool, sparks, fire running to the tank). */
3767
- aliasOf(FUEL_LEAK, "vehicle_leak", {})
3799
+ /** A hole in the tank: the page's petrol leak without the fire and the blast (the pool and the drips). A normal bullet does only this. */
3800
+ aliasOf(FUEL_LEAK_ONLY, "vehicle_leak", {}),
3801
+ /** The leak caught fire (an incendiary or tracer round, a spark, a fire near): the page's whole sequence, the fire running along the pool to the tank and the blast. */
3802
+ aliasOf(FUEL_LEAK, "vehicle_leak_ignited", {})
3768
3803
  ];
3769
3804
 
3770
3805
  // src/effects/catalog.ts
@@ -7568,7 +7603,7 @@ var GameVfx = (() => {
7568
7603
  blood_hit: {
7569
7604
  name: "Blood by infection age",
7570
7605
  short: "A mist on the way in, a jet on the way out, a pool that grows. Age changes colour and amount.",
7571
- cost: "\u2264 70 part.",
7606
+ cost: "\u2264 70 particles",
7572
7607
  costNote: "1 pool \xB7 6 splashes",
7573
7608
  paramLabel: "Age",
7574
7609
  when: "Every bullet or blow that hits a zombie. The blood value comes from the bestiary age: 1.0 \xB7 0.7 \xB7 0.35 \xB7 0.1.",
@@ -7579,7 +7614,7 @@ var GameVfx = (() => {
7579
7614
  headshot: {
7580
7615
  name: "Headshot",
7581
7616
  short: "The head bursts, the eyes go out on the same frame and the body drops.",
7582
- cost: "\u2264 70 part.",
7617
+ cost: "\u2264 70 particles",
7583
7618
  costNote: "8 debris \xB7 1 pool",
7584
7619
  when: "A head hit that kills (bestiary rule: a head kills at once).",
7585
7620
  look: "A red mist around the head, a jet of drops backwards, 6 to 8 pieces of bone and skin, a swap to the burst-neck mesh. The eye glow goes out on the same frame, which is the most readable signal from afar.",
@@ -7589,7 +7624,7 @@ var GameVfx = (() => {
7589
7624
  dismember: {
7590
7625
  name: "Dismemberment",
7591
7626
  short: "The arm comes off whole with physics and the shoulder gushes for half a second.",
7592
- cost: "\u2264 60 part.",
7627
+ cost: "\u2264 60 particles",
7593
7628
  costNote: "1 limb \xB7 4 splashes",
7594
7629
  when: "Damage to a limb above the threshold (multipliers by region from the bestiary) or an axe blow.",
7595
7630
  look: "The limb becomes a loose piece with physics and bounces. A short pulsing jet from the shoulder, drops that form a trail to the pool. The zombie staggers but keeps walking.",
@@ -7599,7 +7634,7 @@ var GameVfx = (() => {
7599
7634
  bloater_cloud: {
7600
7635
  name: "Bloater cloud",
7601
7636
  short: "The belly pulses for 0.5 s, bursts and leaves 4 m of gas for 8 s.",
7602
- cost: "\u2264 180 part.",
7637
+ cost: "\u2264 180 particles",
7603
7638
  costNote: "server entity",
7604
7639
  when: "Death of the Bloater, by any cause.",
7605
7640
  look: "A 0.5 s warning with the belly swelling, a burst with pieces and a greenish jet, and a low moss-green cloud that undulates on the ground for 8 s. Loose green glows inside the cloud mark the area.",
@@ -7609,7 +7644,7 @@ var GameVfx = (() => {
7609
7644
  screamer_shriek: {
7610
7645
  name: "Screamer shriek",
7611
7646
  short: "A 1.5 s wind-up with steam, a wave on the ground and the horde's eyes light up.",
7612
- cost: "\u2264 150 part.",
7647
+ cost: "\u2264 150 particles",
7613
7648
  costNote: "3 rings \xB7 aberration",
7614
7649
  when: "The Screamer spots the player and starts the shriek (1.5 s wind-up, calls everyone within 150 m).",
7615
7650
  look: "Head back and steam from the mouth during the wind-up. On the shriek, three pressure rings on the ground, dust raised in the radius, a short chromatic aberration on the screen of whoever is near, and the eyes of nearby zombies flare when they hear.",
@@ -7629,7 +7664,7 @@ var GameVfx = (() => {
7629
7664
  corpse_decay: {
7630
7665
  name: "Corpse: darken and dissolve",
7631
7666
  short: "15 minutes in 8 seconds: fall, darken, flies and turn to dust.",
7632
- cost: "\u2264 40 part.",
7667
+ cost: "\u2264 40 particles",
7633
7668
  costNote: "pool of 400 bodies",
7634
7669
  when: "Zombie death. Bestiary timeline: ragdoll 3 s, frozen mesh, darken, dissolve between 14 and 15 min.",
7635
7670
  look: "The skin loses colour until almost black, the pool dries to brown, flies appear from minute 5 and in the last minute the body sinks and gives off dark dust.",
@@ -7639,7 +7674,7 @@ var GameVfx = (() => {
7639
7674
  reanimation: {
7640
7675
  name: "Reanimation",
7641
7676
  short: "Veins light up, spasms, the eyes switch on and the body gets up.",
7642
- cost: "\u2264 30 part.",
7677
+ cost: "\u2264 30 particles",
7643
7678
  costNote: "emissive in the shader",
7644
7679
  when: "End of infection of a player or NPC: reanimates in 2 to 6 min as Fresh (70% Slow, 30% Runner).",
7645
7680
  look: "Green pulses through the skin (emissive in the shader, not particles), spasms in the arms and head, the eyes light up from the inside out and the body stands. Breath as steam on the first shriek.",
@@ -7649,7 +7684,7 @@ var GameVfx = (() => {
7649
7684
  muzzle_flash: {
7650
7685
  name: "Muzzle flash",
7651
7686
  short: "Core, petals and smoke scaled by weapon. The Barrett raises dust.",
7652
- cost: "\u2264 60 part.",
7687
+ cost: "\u2264 60 particles",
7653
7688
  costNote: "1 light \xB7 50 ms",
7654
7689
  paramLabel: "Weapon",
7655
7690
  when: "Every shot. In first person it uses the weapon model; from afar it is only the core sprite.",
@@ -7660,7 +7695,7 @@ var GameVfx = (() => {
7660
7695
  impact: {
7661
7696
  name: "Impact by material",
7662
7697
  short: "Concrete, metal, wood, glass, flesh and water: each with its own response.",
7663
- cost: "\u2264 40 part.",
7698
+ cost: "\u2264 40 particles",
7664
7699
  costNote: "1 hole",
7665
7700
  paramLabel: "Material",
7666
7701
  when: "Every bullet that hits something. The material comes from the mesh surface tag.",
@@ -7671,7 +7706,7 @@ var GameVfx = (() => {
7671
7706
  penetration: {
7672
7707
  name: "Bullet through the horde",
7673
7708
  short: "Barrett tracer passing through 5 zombies, in 10x slow motion.",
7674
- cost: "\u2264 250 part.",
7709
+ cost: "\u2264 250 particles",
7675
7710
  costNote: "aggregate event",
7676
7711
  when: "Weapon with penetration: the AK goes through 2, the Remington 700 through 3, the Barrett through 6 and cars.",
7677
7712
  look: "A tracer with a hot-air trail, blood exiting each body in the order the bullet passes (each in the colour of its age), bodies falling one after another and a final impact on the concrete.",
@@ -7691,7 +7726,7 @@ var GameVfx = (() => {
7691
7726
  molotov: {
7692
7727
  name: "Molotov cocktail",
7693
7728
  short: "A lit wick in the arc, glass breaking and a pool of fire that spreads.",
7694
- cost: "\u2264 300 part.",
7729
+ cost: "\u2264 300 particles",
7695
7730
  costNote: "2 lights \xB7 entity",
7696
7731
  when: "A molotov hitting the ground or a zombie.",
7697
7732
  look: "A bottle in an arc with the wick giving off flame and smoke. On impact, green shards and a splash of fire that opens from 0.5 m to 2.2 m in 0.8 s. Low flames, embers, dark smoke and a flickering light for 6 s, then embers and a burn mark.",
@@ -7701,7 +7736,7 @@ var GameVfx = (() => {
7701
7736
  grenade: {
7702
7737
  name: "Fragmentation grenade",
7703
7738
  short: "A bounce on the asphalt, flash, shock wave, shrapnel and a ring of dust.",
7704
- cost: "\u2264 400 part.",
7739
+ cost: "\u2264 400 particles",
7705
7740
  costNote: "aggregate event",
7706
7741
  when: "A grenade exploding (1.8 s fuse after the throw).",
7707
7742
  look: "The grenade bounces twice. A layered explosion: a white flash that paints the screen, a short fireball, a shock ring on the ground and another facing the camera, bright shrapnel that bounces, a ring of low dust, grey smoke that rises and a burn mark. Zombies in the radius fall outwards.",
@@ -7711,7 +7746,7 @@ var GameVfx = (() => {
7711
7746
  explosive_barrel: {
7712
7747
  name: "Explosive barrel",
7713
7748
  short: "A mushroom of fire, the lid flying, petrol burning on the ground and a column of smoke.",
7714
- cost: "\u2264 450 part.",
7749
+ cost: "\u2264 450 particles",
7715
7750
  costNote: "2 lights \xB7 fire entity",
7716
7751
  when: "A red barrel with damage above the threshold, a shot or fire touching it.",
7717
7752
  look: "Everything the grenade does, plus: a fireball that rises into a mushroom, the lid and red pieces flying high, three pools of petrol burning for 5 s and a black smoke column that serves as a landmark from afar.",
@@ -7731,7 +7766,7 @@ var GameVfx = (() => {
7731
7766
  door_stages: {
7732
7767
  name: "Door giving way in 3 stages",
7733
7768
  short: "Blows shake dust from the frame, a plank cracks and the door falls.",
7734
- cost: "\u2264 120 part.",
7769
+ cost: "\u2264 120 particles",
7735
7770
  costNote: "3 stages",
7736
7771
  when: "The horde hitting a door or barricade (the Brute does 3x damage). Stages: 66%, 33%, 0% health.",
7737
7772
  look: "Each blow shakes the door and loosens dust from the frame and splinters. At stage 2 the middle plank cracks and falls. At 3 the door topples and raises a cloud of low dust, and the zombie comes out of the dark.",
@@ -7741,7 +7776,7 @@ var GameVfx = (() => {
7741
7776
  building_collapse: {
7742
7777
  name: "Collapse",
7743
7778
  short: "Dust trickling from the awning, blocks falling and a cloud of dust rolling down the street.",
7744
- cost: "\u2264 350 part.",
7779
+ cost: "\u2264 350 particles",
7745
7780
  costNote: "26 debris",
7746
7781
  when: "A structure that loses its health: explosion, vehicle impact, a big horde pushing (destruction of the map buildings).",
7747
7782
  look: "Before: fine dust trickling and pebbles falling for 1 s, as a warning. Then: large and small blocks fall, the camera shakes and a cloud of grey-beige dust rolls along the ground and hangs in the air for 5 s, hiding zombies.",
@@ -7751,7 +7786,7 @@ var GameVfx = (() => {
7751
7786
  block_wall: {
7752
7787
  name: "Wall brought down with holes",
7753
7788
  short: "A burst leaves holes and chips; the wall falls in blocks and the holes stay on them.",
7754
- cost: "\u2264 300 part.",
7789
+ cost: "\u2264 300 particles",
7755
7790
  costNote: "30 blocks \xB7 attached holes",
7756
7791
  when: "A concrete wall, low wall or barricade that loses health from shots, explosion, the Brute or a car (map and arsenal destruction).",
7757
7792
  look: "Each bullet opens a dark hole with a chipped rim, giving off dust and pebbles. When the wall gives way it splits into blocks that topple with physics and a cloud of dust rolls along the ground. The bullet holes are attached to the blocks: they stay on the fallen pieces, turned with them, and do not vanish when the wall breaks.",
@@ -7761,7 +7796,7 @@ var GameVfx = (() => {
7761
7796
  metal_door: {
7762
7797
  name: "Metal door denting",
7763
7798
  short: "Each blow sinks the plate, flakes the paint and throws sparks; the hinge bursts.",
7764
- cost: "\u2264 160 part.",
7799
+ cost: "\u2264 160 particles",
7765
7800
  costNote: "deformable mesh",
7766
7801
  when: "A door, gate or steel plate taking a zombie blow (Brute 3x), a 12-gauge shot or a car hit.",
7767
7802
  look: "The plate sinks where it is hit (a deformed mesh, not a model swap), with 3 visible levels. Each blow gives off sparks, flakes of green paint and rust dust. When the health runs out the top hinge bursts in sparks, the door topples and scrapes on the ground giving off more sparks.",
@@ -7771,7 +7806,7 @@ var GameVfx = (() => {
7771
7806
  iron_railing: {
7772
7807
  name: "Iron railing bending",
7773
7808
  short: "The horde pushes, the bars bow, the weld pops in a spark and the railing falls.",
7774
- cost: "\u2264 200 part.",
7809
+ cost: "\u2264 200 particles",
7775
7810
  costNote: "3 deformable bars",
7776
7811
  when: "A railing, iron gate, handrail or chain-link fence with zombies pushing (horde pressure) or a car hitting it.",
7777
7812
  look: "The bars bow gradually at the point of pressure and the vertical ones tilt with them. Rust falls in a thread during the strain. At two moments the weld pops with a crackle of sparks. At the end the middle post gives and the railing topples, leaving the bent iron on the ground.",
@@ -7781,7 +7816,7 @@ var GameVfx = (() => {
7781
7816
  wooden_fence: {
7782
7817
  name: "Wooden fence breaking",
7783
7818
  short: "Planks snap one by one, chips and dust, and the section topples as the horde passes.",
7784
- cost: "\u2264 150 part.",
7819
+ cost: "\u2264 150 particles",
7785
7820
  costNote: "12 planks",
7786
7821
  when: "A fence, yard gate or plank barricade taking a shot, blow or horde pressure.",
7787
7822
  look: "Each plank snaps at a random point: the stump stays on the rail and the top piece flies off with chips and wood dust. The zombie appears through the gap. At the end the rail cracks and the whole section topples forward.",
@@ -7791,7 +7826,7 @@ var GameVfx = (() => {
7791
7826
  hit_point_breakage: {
7792
7827
  name: "Breakage by the point hit",
7793
7828
  short: "A shot to the leg, a machete on the corner, a bat on the top and a 12-gauge up close: each weapon breaks the part it hit.",
7794
- cost: "\u2264 120 part.",
7829
+ cost: "\u2264 120 particles",
7795
7830
  costNote: "parts with their own health",
7796
7831
  when: "Any destructible item. The damage goes to the part that was hit, not to the whole item.",
7797
7832
  look: "A 9 mm shot to the front leg: the lower part of the leg breaks off and the table tips toward that corner. A machete on the corner of the top: the corner comes off whole in a straight cut, with chips in a line. A bat on the other corner: the top cracks and falls apart in pieces with dust. A 12-gauge up close on what is left: 9 grouped holes that stay in the wood.",
@@ -7801,7 +7836,7 @@ var GameVfx = (() => {
7801
7836
  pressure_cylinders: {
7802
7837
  name: "Extinguisher and oxygen cylinder",
7803
7838
  short: "A shot to the extinguisher makes a white cloud and a spin; on oxygen the valve breaks and the cylinder becomes a rocket.",
7804
- cost: "\u2264 250 part.",
7839
+ cost: "\u2264 250 particles",
7805
7840
  costNote: "cloud entity",
7806
7841
  paramLabel: "Cylinder",
7807
7842
  when: "A shot, a strong blow or fire on an extinguisher, oxygen cylinder or welding cylinder (extinguisher and oxygen_cylinder keys of the map catalogue).",
@@ -7812,7 +7847,7 @@ var GameVfx = (() => {
7812
7847
  building_fire: {
7813
7848
  name: "Building on fire",
7814
7849
  short: "Fire coming out of the windows, licking the facade, embers and smoke with the wind.",
7815
- cost: "\u2264 600 part.",
7850
+ cost: "\u2264 600 particles",
7816
7851
  costNote: "2 lights \xB7 reference",
7817
7852
  when: "A building fire (molotov, explosion, vehicle). It lasts minutes and spreads to the neighbour.",
7818
7853
  look: "Windows lit orange that flicker, tongues of fire coming out of the top of each window and climbing the facade, embers carried by the wind and a thick slanted column of smoke. The light paints the street.",
@@ -7853,7 +7888,7 @@ var GameVfx = (() => {
7853
7888
  engine_smoke: {
7854
7889
  name: "Engine smoke",
7855
7890
  short: "White steam, grey smoke, then black with fire, depending on condition.",
7856
- cost: "\u2264 120 part.",
7891
+ cost: "\u2264 120 particles",
7857
7892
  costNote: "continuous",
7858
7893
  paramLabel: "Condition",
7859
7894
  when: "Whenever the engine is on or hot, from the part condition (0 to 100) in the fleet brief.",
@@ -7864,7 +7899,7 @@ var GameVfx = (() => {
7864
7899
  fuel_leak: {
7865
7900
  name: "Tank leak and fire",
7866
7901
  short: "Dripping petrol, a pool, a spark and the fire running to the tank.",
7867
- cost: "\u2264 400 part.",
7902
+ cost: "\u2264 400 particles",
7868
7903
  costNote: "fire entity",
7869
7904
  when: "A tank punctured by a shot or a crash. A spark, a shot or nearby fire lights the pool.",
7870
7905
  look: "Drops of petrol with an oily sheen forming a growing pool. A shot on the metal throws a spark, the fire lights on the pool, runs to the car and, if nobody puts it out, the car explodes.",
@@ -7874,7 +7909,7 @@ var GameVfx = (() => {
7874
7909
  car_explosion: {
7875
7910
  name: "Car explosion",
7876
7911
  short: "A fireball, the car jumping, the bonnet and doors flying, the shell burning.",
7877
- cost: "\u2264 600 part.",
7912
+ cost: "\u2264 600 particles",
7878
7913
  costNote: "rare event",
7879
7914
  when: "A tank on fire for more than 4 s, or damage above the threshold on a car with fuel.",
7880
7915
  look: "A large explosion (grenade scale 1.8), the car jumps and lands crooked, the bonnet, doors and a wheel fly off, the glass bursts into shards. The bodywork goes black and the shell burns with black smoke for minutes.",
@@ -7935,7 +7970,7 @@ var GameVfx = (() => {
7935
7970
  bloater_blindness: {
7936
7971
  name: "Bloater blindness",
7937
7972
  short: "Green gas in the face: a blurred screen for 5 s and mucus on the lens.",
7938
- cost: "post + 30 part.",
7973
+ cost: "post + 30 particles",
7939
7974
  costNote: "server entity",
7940
7975
  when: "A player inside the Bloater cloud (radius 4 m) when it spawns.",
7941
7976
  look: "A green cloud bursts between the zombie and the camera, the screen goes green and blurred and clears in 5 s, with drops of green mucus on the lens that run down. A cough shakes the camera twice.",
@@ -7945,7 +7980,7 @@ var GameVfx = (() => {
7945
7980
  campfire: {
7946
7981
  name: "Campsite fire",
7947
7982
  short: "A low flame, embers spiralling up and a flickering warm light.",
7948
- cost: "\u2264 120 part.",
7983
+ cost: "\u2264 120 particles",
7949
7984
  costNote: "1 fire light",
7950
7985
  when: "A campfire lit by the group or by NPCs. It warms, lights and draws zombies from afar (light).",
7951
7986
  look: "Small low flames, embers that rise turning and fade, thin smoke and a warm light that flickers and paints the survivor.",
@@ -7955,7 +7990,7 @@ var GameVfx = (() => {
7955
7990
  cough_and_breath: {
7956
7991
  name: "Cough, breath and flashlight",
7957
7992
  short: "Breath vapour in the cold, the fever cough visible to others and the flashlight beam.",
7958
- cost: "\u2264 40 part.",
7993
+ cost: "\u2264 40 particles",
7959
7994
  costNote: "1 spot with shadow",
7960
7995
  when: "A cold night: breath always. Infection fever: a cough every few seconds, audible at 10 m.",
7961
7996
  look: "A short puff of vapour every 2.4 s. On a cough, three quick bigger puffs and the body jolts. The flashlight shows the beam in the fog and is the only light with a shadow.",