@adatechnology/game-vfx-three 0.7.2 → 0.7.4
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/dist/index.global.js +4 -2
- package/dist/index.global.js.map +1 -1
- package/package.json +3 -3
package/dist/index.global.js
CHANGED
|
@@ -147,7 +147,8 @@ var GameVfxThree = (() => {
|
|
|
147
147
|
}
|
|
148
148
|
var explosion_aliases_default = {
|
|
149
149
|
carl_gustaf_84mm: "at4_84mm",
|
|
150
|
-
vog_25: "m79_40mm"
|
|
150
|
+
vog_25: "m79_40mm",
|
|
151
|
+
semtex: "c4"
|
|
151
152
|
};
|
|
152
153
|
var explosions_default = {
|
|
153
154
|
m67: {
|
|
@@ -5671,7 +5672,7 @@ var GameVfxThree = (() => {
|
|
|
5671
5672
|
const { core, def, random, x, y, z } = context;
|
|
5672
5673
|
const mark = def.mark;
|
|
5673
5674
|
const keepsMarks = !core.marklessAt?.(x, z);
|
|
5674
|
-
if (keepsMarks && mark.crater && mark.dent && y < 1.2) {
|
|
5675
|
+
if (keepsMarks && mark.crater && mark.dent && y < 1.2 && (core.cratersAt?.(x, z) ?? true)) {
|
|
5675
5676
|
core.emit({ type: "crater", x, z, radius: mark.crater, depth: mark.dent });
|
|
5676
5677
|
core.trace?.crater?.(x, z, mark.crater, mark.dent);
|
|
5677
5678
|
addCrater(core.marks, core.ground, random, { x, z, radius: mark.crater, depth: mark.dent, marks: core.layers.mark });
|
|
@@ -7429,6 +7430,7 @@ var GameVfxThree = (() => {
|
|
|
7429
7430
|
clock: { time: 0, lastBlast: -1, lod: 1, forcedLod: null },
|
|
7430
7431
|
groundAt,
|
|
7431
7432
|
...options.marklessAt ? { marklessAt: options.marklessAt } : {},
|
|
7433
|
+
...options.cratersAt ? { cratersAt: options.cratersAt } : {},
|
|
7432
7434
|
emit: (request) => options.onRequest?.(request)
|
|
7433
7435
|
};
|
|
7434
7436
|
function definitionOf(id) {
|