@adatechnology/game-vfx 0.2.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 +6 -0
- package/dist/index.d.ts +1 -1
- package/dist/index.global.js +99 -53
- package/dist/index.global.js.map +1 -1
- package/dist/index.js +99 -53
- package/dist/index.js.map +1 -1
- package/package.json +2 -2
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
|
package/dist/index.d.ts
CHANGED
|
@@ -1685,7 +1685,7 @@ declare function patchExplosions(base: Readonly<Record<string, ExplosionDef>>, c
|
|
|
1685
1685
|
|
|
1686
1686
|
/** Every effect of the Workshop by id. A game adds, changes or removes entries with `patchEffects`. */
|
|
1687
1687
|
declare const WORKSHOP_EFFECTS: Readonly<Record<string, EffectDef>>;
|
|
1688
|
-
/** The Workshop's recipes plus the one-shot effects the destruction events play (`event-effects.json`) and the ones of the weapon in the player's hands: what a world plays by default. */
|
|
1688
|
+
/** The Workshop's recipes plus the one-shot effects the destruction events play (`event-effects.json`) and the ones of the weapon in the player's hands and the vehicle ones (`vehicle_fire`, `vehicle_exhaust`, `vehicle_leak`, written around a car): what a world plays by default. */
|
|
1689
1689
|
declare const GAME_EFFECTS: Readonly<Record<string, EffectDef>>;
|
|
1690
1690
|
/** A copy of the recipes with some changed (a partial replaces the fields it names), added or removed (`null`); a game tunes the Workshop's effects without touching the core. */
|
|
1691
1691
|
declare function patchEffects(base: Readonly<Record<string, EffectDef>>, changes: Readonly<Record<string, Partial<EffectDef> | EffectDef | null>>): Record<string, EffectDef>;
|
package/dist/index.global.js
CHANGED
|
@@ -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:
|
|
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:
|
|
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
|
-
|
|
3687
|
-
|
|
3688
|
-
|
|
3689
|
-
|
|
3690
|
-
|
|
3691
|
-
|
|
3692
|
-
|
|
3693
|
-
|
|
3694
|
-
|
|
3695
|
-
|
|
3696
|
-
|
|
3697
|
-
|
|
3698
|
-
|
|
3699
|
-
|
|
3700
|
-
|
|
3701
|
-
|
|
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
|
-
|
|
3735
|
+
variable("puffs"),
|
|
3704
3736
|
puff2(
|
|
3705
3737
|
ORIGIN2,
|
|
3706
|
-
[add(
|
|
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(
|
|
3709
|
-
add(
|
|
3710
|
-
|
|
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
|
]
|
|
@@ -3756,10 +3789,23 @@ var GameVfx = (() => {
|
|
|
3756
3789
|
};
|
|
3757
3790
|
var VIEWMODEL_EFFECTS = [MUZZLE_FLASH2, SMOKE_PUFF, BACKBLAST, FLAME_JET];
|
|
3758
3791
|
|
|
3792
|
+
// src/effects/vehicles/game-effects.ts
|
|
3793
|
+
var aliasOf = (base, id, changes) => ({ ...base, id, pageId: `vehicle:${id}`, anchor: CAR_ORIGIN2, ...changes });
|
|
3794
|
+
var VEHICLE_EFFECTS = [
|
|
3795
|
+
/** The engine on fire: `engine_smoke` at its worst condition (black smoke, flames in the hood, a light). */
|
|
3796
|
+
aliasOf(ENGINE_SMOKE, "vehicle_fire", { params: { id: "condition", options: ["100", "60", "30", "10"], default: 3 }, loop: 12 }),
|
|
3797
|
+
/** The exhaust of a car under way: `engine_smoke` in the best condition, for half a second so a moving car asks again. */
|
|
3798
|
+
aliasOf(ENGINE_SMOKE, "vehicle_exhaust", { params: { id: "condition", options: ["100", "60", "30", "10"], default: 0 }, loop: 0.5 }),
|
|
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", {})
|
|
3803
|
+
];
|
|
3804
|
+
|
|
3759
3805
|
// src/effects/catalog.ts
|
|
3760
3806
|
var ALL_EFFECTS = [BLOOD_HIT, HEADSHOT, DISMEMBER, BLOATER_CLOUD, SCREAMER_SHRIEK, CORPSE_DECAY, REANIMATION, EYES_IN_FOG, MUZZLE_FLASH, IMPACT_BY_MATERIAL, PENETRATION, CASINGS_AND_MAGAZINE, MOLOTOV, GRENADE, EXPLOSIVE_BARREL, SHOPFRONT_GLASS, DOOR_STAGES, BUILDING_COLLAPSE, BLOCK_WALL, METAL_DOOR_EFFECT, IRON_RAILING, WOODEN_FENCE, HIT_POINT_BREAKAGE, PRESSURE_CYLINDERS, BUILDING_FIRE, RAIN_AND_PUDDLES, FOG_AND_ASH, SCRAPING_SPARKS, ENGINE_SMOKE, FUEL_LEAK, CAR_EXPLOSION, WINDSHIELD, HEADLIGHTS_IN_RAIN, DAMAGE_AND_BITE, INFECTION_PHASES, PANIC, BLOATER_BLINDNESS, CAMPFIRE, COUGH_AND_BREATH];
|
|
3761
3807
|
var WORKSHOP_EFFECTS = Object.fromEntries(ALL_EFFECTS.map((effect) => [effect.id, effect]));
|
|
3762
|
-
var GAME_EFFECTS = { ...WORKSHOP_EFFECTS, ...Object.fromEntries([...EVENT_EFFECTS, ...VIEWMODEL_EFFECTS].map((effect) => [effect.id, effect])) };
|
|
3808
|
+
var GAME_EFFECTS = { ...WORKSHOP_EFFECTS, ...Object.fromEntries([...EVENT_EFFECTS, ...VIEWMODEL_EFFECTS, ...VEHICLE_EFFECTS].map((effect) => [effect.id, effect])) };
|
|
3763
3809
|
function patchEffects(base, changes) {
|
|
3764
3810
|
const result = { ...base };
|
|
3765
3811
|
for (const [id, change] of Object.entries(changes)) {
|
|
@@ -7557,7 +7603,7 @@ var GameVfx = (() => {
|
|
|
7557
7603
|
blood_hit: {
|
|
7558
7604
|
name: "Blood by infection age",
|
|
7559
7605
|
short: "A mist on the way in, a jet on the way out, a pool that grows. Age changes colour and amount.",
|
|
7560
|
-
cost: "\u2264 70
|
|
7606
|
+
cost: "\u2264 70 particles",
|
|
7561
7607
|
costNote: "1 pool \xB7 6 splashes",
|
|
7562
7608
|
paramLabel: "Age",
|
|
7563
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.",
|
|
@@ -7568,7 +7614,7 @@ var GameVfx = (() => {
|
|
|
7568
7614
|
headshot: {
|
|
7569
7615
|
name: "Headshot",
|
|
7570
7616
|
short: "The head bursts, the eyes go out on the same frame and the body drops.",
|
|
7571
|
-
cost: "\u2264 70
|
|
7617
|
+
cost: "\u2264 70 particles",
|
|
7572
7618
|
costNote: "8 debris \xB7 1 pool",
|
|
7573
7619
|
when: "A head hit that kills (bestiary rule: a head kills at once).",
|
|
7574
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.",
|
|
@@ -7578,7 +7624,7 @@ var GameVfx = (() => {
|
|
|
7578
7624
|
dismember: {
|
|
7579
7625
|
name: "Dismemberment",
|
|
7580
7626
|
short: "The arm comes off whole with physics and the shoulder gushes for half a second.",
|
|
7581
|
-
cost: "\u2264 60
|
|
7627
|
+
cost: "\u2264 60 particles",
|
|
7582
7628
|
costNote: "1 limb \xB7 4 splashes",
|
|
7583
7629
|
when: "Damage to a limb above the threshold (multipliers by region from the bestiary) or an axe blow.",
|
|
7584
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.",
|
|
@@ -7588,7 +7634,7 @@ var GameVfx = (() => {
|
|
|
7588
7634
|
bloater_cloud: {
|
|
7589
7635
|
name: "Bloater cloud",
|
|
7590
7636
|
short: "The belly pulses for 0.5 s, bursts and leaves 4 m of gas for 8 s.",
|
|
7591
|
-
cost: "\u2264 180
|
|
7637
|
+
cost: "\u2264 180 particles",
|
|
7592
7638
|
costNote: "server entity",
|
|
7593
7639
|
when: "Death of the Bloater, by any cause.",
|
|
7594
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.",
|
|
@@ -7598,7 +7644,7 @@ var GameVfx = (() => {
|
|
|
7598
7644
|
screamer_shriek: {
|
|
7599
7645
|
name: "Screamer shriek",
|
|
7600
7646
|
short: "A 1.5 s wind-up with steam, a wave on the ground and the horde's eyes light up.",
|
|
7601
|
-
cost: "\u2264 150
|
|
7647
|
+
cost: "\u2264 150 particles",
|
|
7602
7648
|
costNote: "3 rings \xB7 aberration",
|
|
7603
7649
|
when: "The Screamer spots the player and starts the shriek (1.5 s wind-up, calls everyone within 150 m).",
|
|
7604
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.",
|
|
@@ -7618,7 +7664,7 @@ var GameVfx = (() => {
|
|
|
7618
7664
|
corpse_decay: {
|
|
7619
7665
|
name: "Corpse: darken and dissolve",
|
|
7620
7666
|
short: "15 minutes in 8 seconds: fall, darken, flies and turn to dust.",
|
|
7621
|
-
cost: "\u2264 40
|
|
7667
|
+
cost: "\u2264 40 particles",
|
|
7622
7668
|
costNote: "pool of 400 bodies",
|
|
7623
7669
|
when: "Zombie death. Bestiary timeline: ragdoll 3 s, frozen mesh, darken, dissolve between 14 and 15 min.",
|
|
7624
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.",
|
|
@@ -7628,7 +7674,7 @@ var GameVfx = (() => {
|
|
|
7628
7674
|
reanimation: {
|
|
7629
7675
|
name: "Reanimation",
|
|
7630
7676
|
short: "Veins light up, spasms, the eyes switch on and the body gets up.",
|
|
7631
|
-
cost: "\u2264 30
|
|
7677
|
+
cost: "\u2264 30 particles",
|
|
7632
7678
|
costNote: "emissive in the shader",
|
|
7633
7679
|
when: "End of infection of a player or NPC: reanimates in 2 to 6 min as Fresh (70% Slow, 30% Runner).",
|
|
7634
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.",
|
|
@@ -7638,7 +7684,7 @@ var GameVfx = (() => {
|
|
|
7638
7684
|
muzzle_flash: {
|
|
7639
7685
|
name: "Muzzle flash",
|
|
7640
7686
|
short: "Core, petals and smoke scaled by weapon. The Barrett raises dust.",
|
|
7641
|
-
cost: "\u2264 60
|
|
7687
|
+
cost: "\u2264 60 particles",
|
|
7642
7688
|
costNote: "1 light \xB7 50 ms",
|
|
7643
7689
|
paramLabel: "Weapon",
|
|
7644
7690
|
when: "Every shot. In first person it uses the weapon model; from afar it is only the core sprite.",
|
|
@@ -7649,7 +7695,7 @@ var GameVfx = (() => {
|
|
|
7649
7695
|
impact: {
|
|
7650
7696
|
name: "Impact by material",
|
|
7651
7697
|
short: "Concrete, metal, wood, glass, flesh and water: each with its own response.",
|
|
7652
|
-
cost: "\u2264 40
|
|
7698
|
+
cost: "\u2264 40 particles",
|
|
7653
7699
|
costNote: "1 hole",
|
|
7654
7700
|
paramLabel: "Material",
|
|
7655
7701
|
when: "Every bullet that hits something. The material comes from the mesh surface tag.",
|
|
@@ -7660,7 +7706,7 @@ var GameVfx = (() => {
|
|
|
7660
7706
|
penetration: {
|
|
7661
7707
|
name: "Bullet through the horde",
|
|
7662
7708
|
short: "Barrett tracer passing through 5 zombies, in 10x slow motion.",
|
|
7663
|
-
cost: "\u2264 250
|
|
7709
|
+
cost: "\u2264 250 particles",
|
|
7664
7710
|
costNote: "aggregate event",
|
|
7665
7711
|
when: "Weapon with penetration: the AK goes through 2, the Remington 700 through 3, the Barrett through 6 and cars.",
|
|
7666
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.",
|
|
@@ -7680,7 +7726,7 @@ var GameVfx = (() => {
|
|
|
7680
7726
|
molotov: {
|
|
7681
7727
|
name: "Molotov cocktail",
|
|
7682
7728
|
short: "A lit wick in the arc, glass breaking and a pool of fire that spreads.",
|
|
7683
|
-
cost: "\u2264 300
|
|
7729
|
+
cost: "\u2264 300 particles",
|
|
7684
7730
|
costNote: "2 lights \xB7 entity",
|
|
7685
7731
|
when: "A molotov hitting the ground or a zombie.",
|
|
7686
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.",
|
|
@@ -7690,7 +7736,7 @@ var GameVfx = (() => {
|
|
|
7690
7736
|
grenade: {
|
|
7691
7737
|
name: "Fragmentation grenade",
|
|
7692
7738
|
short: "A bounce on the asphalt, flash, shock wave, shrapnel and a ring of dust.",
|
|
7693
|
-
cost: "\u2264 400
|
|
7739
|
+
cost: "\u2264 400 particles",
|
|
7694
7740
|
costNote: "aggregate event",
|
|
7695
7741
|
when: "A grenade exploding (1.8 s fuse after the throw).",
|
|
7696
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.",
|
|
@@ -7700,7 +7746,7 @@ var GameVfx = (() => {
|
|
|
7700
7746
|
explosive_barrel: {
|
|
7701
7747
|
name: "Explosive barrel",
|
|
7702
7748
|
short: "A mushroom of fire, the lid flying, petrol burning on the ground and a column of smoke.",
|
|
7703
|
-
cost: "\u2264 450
|
|
7749
|
+
cost: "\u2264 450 particles",
|
|
7704
7750
|
costNote: "2 lights \xB7 fire entity",
|
|
7705
7751
|
when: "A red barrel with damage above the threshold, a shot or fire touching it.",
|
|
7706
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.",
|
|
@@ -7720,7 +7766,7 @@ var GameVfx = (() => {
|
|
|
7720
7766
|
door_stages: {
|
|
7721
7767
|
name: "Door giving way in 3 stages",
|
|
7722
7768
|
short: "Blows shake dust from the frame, a plank cracks and the door falls.",
|
|
7723
|
-
cost: "\u2264 120
|
|
7769
|
+
cost: "\u2264 120 particles",
|
|
7724
7770
|
costNote: "3 stages",
|
|
7725
7771
|
when: "The horde hitting a door or barricade (the Brute does 3x damage). Stages: 66%, 33%, 0% health.",
|
|
7726
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.",
|
|
@@ -7730,7 +7776,7 @@ var GameVfx = (() => {
|
|
|
7730
7776
|
building_collapse: {
|
|
7731
7777
|
name: "Collapse",
|
|
7732
7778
|
short: "Dust trickling from the awning, blocks falling and a cloud of dust rolling down the street.",
|
|
7733
|
-
cost: "\u2264 350
|
|
7779
|
+
cost: "\u2264 350 particles",
|
|
7734
7780
|
costNote: "26 debris",
|
|
7735
7781
|
when: "A structure that loses its health: explosion, vehicle impact, a big horde pushing (destruction of the map buildings).",
|
|
7736
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.",
|
|
@@ -7740,7 +7786,7 @@ var GameVfx = (() => {
|
|
|
7740
7786
|
block_wall: {
|
|
7741
7787
|
name: "Wall brought down with holes",
|
|
7742
7788
|
short: "A burst leaves holes and chips; the wall falls in blocks and the holes stay on them.",
|
|
7743
|
-
cost: "\u2264 300
|
|
7789
|
+
cost: "\u2264 300 particles",
|
|
7744
7790
|
costNote: "30 blocks \xB7 attached holes",
|
|
7745
7791
|
when: "A concrete wall, low wall or barricade that loses health from shots, explosion, the Brute or a car (map and arsenal destruction).",
|
|
7746
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.",
|
|
@@ -7750,7 +7796,7 @@ var GameVfx = (() => {
|
|
|
7750
7796
|
metal_door: {
|
|
7751
7797
|
name: "Metal door denting",
|
|
7752
7798
|
short: "Each blow sinks the plate, flakes the paint and throws sparks; the hinge bursts.",
|
|
7753
|
-
cost: "\u2264 160
|
|
7799
|
+
cost: "\u2264 160 particles",
|
|
7754
7800
|
costNote: "deformable mesh",
|
|
7755
7801
|
when: "A door, gate or steel plate taking a zombie blow (Brute 3x), a 12-gauge shot or a car hit.",
|
|
7756
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.",
|
|
@@ -7760,7 +7806,7 @@ var GameVfx = (() => {
|
|
|
7760
7806
|
iron_railing: {
|
|
7761
7807
|
name: "Iron railing bending",
|
|
7762
7808
|
short: "The horde pushes, the bars bow, the weld pops in a spark and the railing falls.",
|
|
7763
|
-
cost: "\u2264 200
|
|
7809
|
+
cost: "\u2264 200 particles",
|
|
7764
7810
|
costNote: "3 deformable bars",
|
|
7765
7811
|
when: "A railing, iron gate, handrail or chain-link fence with zombies pushing (horde pressure) or a car hitting it.",
|
|
7766
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.",
|
|
@@ -7770,7 +7816,7 @@ var GameVfx = (() => {
|
|
|
7770
7816
|
wooden_fence: {
|
|
7771
7817
|
name: "Wooden fence breaking",
|
|
7772
7818
|
short: "Planks snap one by one, chips and dust, and the section topples as the horde passes.",
|
|
7773
|
-
cost: "\u2264 150
|
|
7819
|
+
cost: "\u2264 150 particles",
|
|
7774
7820
|
costNote: "12 planks",
|
|
7775
7821
|
when: "A fence, yard gate or plank barricade taking a shot, blow or horde pressure.",
|
|
7776
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.",
|
|
@@ -7780,7 +7826,7 @@ var GameVfx = (() => {
|
|
|
7780
7826
|
hit_point_breakage: {
|
|
7781
7827
|
name: "Breakage by the point hit",
|
|
7782
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.",
|
|
7783
|
-
cost: "\u2264 120
|
|
7829
|
+
cost: "\u2264 120 particles",
|
|
7784
7830
|
costNote: "parts with their own health",
|
|
7785
7831
|
when: "Any destructible item. The damage goes to the part that was hit, not to the whole item.",
|
|
7786
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.",
|
|
@@ -7790,7 +7836,7 @@ var GameVfx = (() => {
|
|
|
7790
7836
|
pressure_cylinders: {
|
|
7791
7837
|
name: "Extinguisher and oxygen cylinder",
|
|
7792
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.",
|
|
7793
|
-
cost: "\u2264 250
|
|
7839
|
+
cost: "\u2264 250 particles",
|
|
7794
7840
|
costNote: "cloud entity",
|
|
7795
7841
|
paramLabel: "Cylinder",
|
|
7796
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).",
|
|
@@ -7801,7 +7847,7 @@ var GameVfx = (() => {
|
|
|
7801
7847
|
building_fire: {
|
|
7802
7848
|
name: "Building on fire",
|
|
7803
7849
|
short: "Fire coming out of the windows, licking the facade, embers and smoke with the wind.",
|
|
7804
|
-
cost: "\u2264 600
|
|
7850
|
+
cost: "\u2264 600 particles",
|
|
7805
7851
|
costNote: "2 lights \xB7 reference",
|
|
7806
7852
|
when: "A building fire (molotov, explosion, vehicle). It lasts minutes and spreads to the neighbour.",
|
|
7807
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.",
|
|
@@ -7842,7 +7888,7 @@ var GameVfx = (() => {
|
|
|
7842
7888
|
engine_smoke: {
|
|
7843
7889
|
name: "Engine smoke",
|
|
7844
7890
|
short: "White steam, grey smoke, then black with fire, depending on condition.",
|
|
7845
|
-
cost: "\u2264 120
|
|
7891
|
+
cost: "\u2264 120 particles",
|
|
7846
7892
|
costNote: "continuous",
|
|
7847
7893
|
paramLabel: "Condition",
|
|
7848
7894
|
when: "Whenever the engine is on or hot, from the part condition (0 to 100) in the fleet brief.",
|
|
@@ -7853,7 +7899,7 @@ var GameVfx = (() => {
|
|
|
7853
7899
|
fuel_leak: {
|
|
7854
7900
|
name: "Tank leak and fire",
|
|
7855
7901
|
short: "Dripping petrol, a pool, a spark and the fire running to the tank.",
|
|
7856
|
-
cost: "\u2264 400
|
|
7902
|
+
cost: "\u2264 400 particles",
|
|
7857
7903
|
costNote: "fire entity",
|
|
7858
7904
|
when: "A tank punctured by a shot or a crash. A spark, a shot or nearby fire lights the pool.",
|
|
7859
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.",
|
|
@@ -7863,7 +7909,7 @@ var GameVfx = (() => {
|
|
|
7863
7909
|
car_explosion: {
|
|
7864
7910
|
name: "Car explosion",
|
|
7865
7911
|
short: "A fireball, the car jumping, the bonnet and doors flying, the shell burning.",
|
|
7866
|
-
cost: "\u2264 600
|
|
7912
|
+
cost: "\u2264 600 particles",
|
|
7867
7913
|
costNote: "rare event",
|
|
7868
7914
|
when: "A tank on fire for more than 4 s, or damage above the threshold on a car with fuel.",
|
|
7869
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.",
|
|
@@ -7924,7 +7970,7 @@ var GameVfx = (() => {
|
|
|
7924
7970
|
bloater_blindness: {
|
|
7925
7971
|
name: "Bloater blindness",
|
|
7926
7972
|
short: "Green gas in the face: a blurred screen for 5 s and mucus on the lens.",
|
|
7927
|
-
cost: "post + 30
|
|
7973
|
+
cost: "post + 30 particles",
|
|
7928
7974
|
costNote: "server entity",
|
|
7929
7975
|
when: "A player inside the Bloater cloud (radius 4 m) when it spawns.",
|
|
7930
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.",
|
|
@@ -7934,7 +7980,7 @@ var GameVfx = (() => {
|
|
|
7934
7980
|
campfire: {
|
|
7935
7981
|
name: "Campsite fire",
|
|
7936
7982
|
short: "A low flame, embers spiralling up and a flickering warm light.",
|
|
7937
|
-
cost: "\u2264 120
|
|
7983
|
+
cost: "\u2264 120 particles",
|
|
7938
7984
|
costNote: "1 fire light",
|
|
7939
7985
|
when: "A campfire lit by the group or by NPCs. It warms, lights and draws zombies from afar (light).",
|
|
7940
7986
|
look: "Small low flames, embers that rise turning and fade, thin smoke and a warm light that flickers and paints the survivor.",
|
|
@@ -7944,7 +7990,7 @@ var GameVfx = (() => {
|
|
|
7944
7990
|
cough_and_breath: {
|
|
7945
7991
|
name: "Cough, breath and flashlight",
|
|
7946
7992
|
short: "Breath vapour in the cold, the fever cough visible to others and the flashlight beam.",
|
|
7947
|
-
cost: "\u2264 40
|
|
7993
|
+
cost: "\u2264 40 particles",
|
|
7948
7994
|
costNote: "1 spot with shadow",
|
|
7949
7995
|
when: "A cold night: breath always. Infection fever: a cough every few seconds, audible at 10 m.",
|
|
7950
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.",
|