@adatechnology/game-destruction-three 0.19.0 → 0.20.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/dist/index.d.ts CHANGED
@@ -368,6 +368,8 @@ declare const BLAST_SOUNDS: readonly SoundRecipe[];
368
368
  declare const FIRE_SOUNDS: readonly SoundRecipe[];
369
369
  /** The roar of the fires: low, soft noise; `createDestructionSound` raises it with every part that burns and sprinkles crackles on it. */
370
370
  declare const FIRE_LOOP: LoopRecipe;
371
+ /** A rocket in flight (RPG-7, AT4, M72): the motor's steady roar behind it, dull and wide; the fallback of the recorded loop of the same id. */
372
+ declare const ROCKET_MOTOR_LOOP: LoopRecipe;
371
373
  /** A smoke canister burning (an M18 and the like): a steady hiss of gas through the vents, bright and without crackles; the fallback of the recorded loop of the same id. */
372
374
  declare const SMOKE_HISS_LOOP: LoopRecipe;
373
375
  /** The pin of a hand grenade pulled and the lever let go: two small metal clicks, heard only near. */
@@ -513,4 +515,4 @@ declare function blastFireSampleBank(manifest: SfxManifest, options?: BlastFireS
513
515
  /** Every particle kind the renderer can emit (the game's sprite kinds, see `@adatechnology/game-vfx`). */
514
516
  type ParticleKind = SpriteKind;
515
517
 
516
- export { BIG_BLAST_RADIUS, BLAST_FALLOFF, BLAST_FAR_DISTANCE, BLAST_FAR_FALLOFF, BLAST_FIRE_SAMPLES, BLAST_KINDS, BLAST_KIND_OF, BLAST_SOUNDS, BLAST_SOUND_OF, BURN_LOOP, type BindOptions, type BlastFireSampleBankOptions, type BlastFireSampleDefaults, type BlastKind, DEFAULT_CRACKLES, DEFAULT_FIRE, DEFAULT_INDOOR_CONFINEMENT, DESTRUCTION_SOUND_BANK, DESTRUCTION_SOUND_KEYS, DRAG_SOUNDS, type DestructionRenderer, type DestructionSound, type DestructionSoundOptions, type DestructionSoundStyle, EXPLOSION_BOOM, type ExplodeOptions, FIRE_FALLOFF, FIRE_LOOP, FIRE_SOUNDS, type FragmentLifeRule, GRENADE_PIN_PULL, IMPACT_FAMILY_TAGS, IMPACT_SOUNDS, IMPACT_SOUND_KEYS, type ImpactFamily, type ImpactKeys, type LooseBody, type Mesh, type MeshRange, type Object3D, type PartHint, type ParticleKind, type Piece, type Quality, type RendererOptions, SCENE_SOUNDS, SMOKE_HISS_LOOP, type SolidBox, type SoundDetail, type SoundKeyRule, type SpecFromObjectOptions, type SpecFromObjectResult, type ThreeNamespace, blastFireSampleBank, breakSoundKeys, createDestructionRenderer, createDestructionSound, dragSoundKey, heatColor, impactFamily, impactKey, impactSoundIds, impactSoundKeys, ricochetSoundKeys, shotKey, specFromObject3D };
518
+ export { BIG_BLAST_RADIUS, BLAST_FALLOFF, BLAST_FAR_DISTANCE, BLAST_FAR_FALLOFF, BLAST_FIRE_SAMPLES, BLAST_KINDS, BLAST_KIND_OF, BLAST_SOUNDS, BLAST_SOUND_OF, BURN_LOOP, type BindOptions, type BlastFireSampleBankOptions, type BlastFireSampleDefaults, type BlastKind, DEFAULT_CRACKLES, DEFAULT_FIRE, DEFAULT_INDOOR_CONFINEMENT, DESTRUCTION_SOUND_BANK, DESTRUCTION_SOUND_KEYS, DRAG_SOUNDS, type DestructionRenderer, type DestructionSound, type DestructionSoundOptions, type DestructionSoundStyle, EXPLOSION_BOOM, type ExplodeOptions, FIRE_FALLOFF, FIRE_LOOP, FIRE_SOUNDS, type FragmentLifeRule, GRENADE_PIN_PULL, IMPACT_FAMILY_TAGS, IMPACT_SOUNDS, IMPACT_SOUND_KEYS, type ImpactFamily, type ImpactKeys, type LooseBody, type Mesh, type MeshRange, type Object3D, type PartHint, type ParticleKind, type Piece, type Quality, ROCKET_MOTOR_LOOP, type RendererOptions, SCENE_SOUNDS, SMOKE_HISS_LOOP, type SolidBox, type SoundDetail, type SoundKeyRule, type SpecFromObjectOptions, type SpecFromObjectResult, type ThreeNamespace, blastFireSampleBank, breakSoundKeys, createDestructionRenderer, createDestructionSound, dragSoundKey, heatColor, impactFamily, impactKey, impactSoundIds, impactSoundKeys, ricochetSoundKeys, shotKey, specFromObject3D };
@@ -47,6 +47,7 @@ var GameDestructionThree = (() => {
47
47
  IMPACT_FAMILY_TAGS: () => IMPACT_FAMILY_TAGS,
48
48
  IMPACT_SOUNDS: () => IMPACT_SOUNDS,
49
49
  IMPACT_SOUND_KEYS: () => IMPACT_SOUND_KEYS,
50
+ ROCKET_MOTOR_LOOP: () => ROCKET_MOTOR_LOOP,
50
51
  SCENE_SOUNDS: () => SCENE_SOUNDS,
51
52
  SMOKE_HISS_LOOP: () => SMOKE_HISS_LOOP,
52
53
  blastFireSampleBank: () => blastFireSampleBank,
@@ -15386,7 +15387,7 @@ void main(){vec2 d=gl_PointCoord-.5;float r=length(d)*2.;if(r>1.)discard;float a
15386
15387
  return { id: options.id, samples };
15387
15388
  }
15388
15389
 
15389
- // ../game-audio/dist/chunk-BUYBYP4L.js
15390
+ // ../game-audio/dist/chunk-S6WJVZGX.js
15390
15391
  var DISTANCE_CURVES = {
15391
15392
  /** The game's `sfx`: `vol / (1 + d² × 0.004)`, cutoff `/ (1 + d × 0.01)`, silent below 0.01 (jogo L62091–62092, L62101). */
15392
15393
  game_sfx: { model: "inverse_square", k: 4e-3, cutoffK: 0.01, minGain: 0.01 },
@@ -15613,7 +15614,12 @@ void main(){vec2 d=gl_PointCoord-.5;float r=length(d)*2.;if(r>1.)discard;float a
15613
15614
  ["mg_cover_open", 3],
15614
15615
  ["mg_cover_close", 3],
15615
15616
  ["weapon_holster", 3],
15616
- ["scope_zoom", 3]
15617
+ ["scope_zoom", 3],
15618
+ ["breech_open", 2],
15619
+ ["breech_close", 2],
15620
+ ["grenade_load", 2],
15621
+ ["rocket_load", 2],
15622
+ ["rocket_seat", 2]
15617
15623
  ]),
15618
15624
  ...entries("impactos", [
15619
15625
  ["knife_hit_wall", 3],
@@ -15642,6 +15648,8 @@ void main(){vec2 d=gl_PointCoord-.5;float r=length(d)*2.;if(r>1.)discard;float a
15642
15648
  ["c4_disarming_loop", 3],
15643
15649
  ["c4_remote_detonate", 3],
15644
15650
  ["smoke_grenade_hiss", 3],
15651
+ ["explosion_rocket", 2, "boom"],
15652
+ ["rocket_motor_loop", 2],
15645
15653
  ["grenade_pin_pull", 3],
15646
15654
  ["electric_shock", 3],
15647
15655
  ["electric_spark", 3]
@@ -17031,6 +17039,15 @@ void main(){vec2 d=gl_PointCoord-.5;float r=length(d)*2.;if(r>1.)discard;float a
17031
17039
  volume: 0,
17032
17040
  sources: ["sdk: the roar under the crackles of a fire"]
17033
17041
  };
17042
+ var ROCKET_MOTOR_LOOP = {
17043
+ id: "rocket_motor_loop",
17044
+ bus: "world",
17045
+ order: "chain_loop",
17046
+ source: { kind: "noise", loop: true },
17047
+ filters: { mode: "serial", bank: [{ type: "highpass", frequency: { set: 250 }, q: 0.6 }, { type: "lowpass", frequency: { set: 5200 }, q: 0.5 }] },
17048
+ volume: 0,
17049
+ sources: ["sdk: the motor of a rocket in flight (a wide hiss with a low body, steady until the warhead goes off)"]
17050
+ };
17034
17051
  var SMOKE_HISS_LOOP = {
17035
17052
  id: "smoke_grenade_hiss",
17036
17053
  bus: "world",
@@ -17238,7 +17255,7 @@ void main(){vec2 d=gl_PointCoord-.5;float r=length(d)*2.;if(r>1.)discard;float a
17238
17255
  impact2("plastic_crack", [sceneNoise({ type: "bandpass", f: 1800, q: 2, d: 0.06, vol: 0.75 }), sceneTone({ f: [450, 550], f2: 250, d: 0.05, vol: 0.22 })]),
17239
17256
  impact2("mdf_crumble", [sceneNoise({ type: "lowpass", f: 700, d: 0.25, vol: 0.75, wet: 0.2 }), ...sceneMany(4, () => sceneNoise({ type: "lowpass", f: 500, d: 0.05, vol: 0.32, delay: [0.05, 0.3] }))])
17240
17257
  ];
17241
- var DESTRUCTION_SOUND_BANK = { id: "destruction_three", sounds: [...SCENE_SOUNDS, ...DRAG_SOUNDS, ...LEAF_SOUNDS, ...IMPACT_SOUNDS, EXPLOSION_BOOM, ...BLAST_SOUNDS, ...FIRE_SOUNDS, GRENADE_PIN_PULL], loops: [BURN_LOOP, FIRE_LOOP, ...FIRE_FUEL_LOOPS, SMOKE_HISS_LOOP] };
17258
+ var DESTRUCTION_SOUND_BANK = { id: "destruction_three", sounds: [...SCENE_SOUNDS, ...DRAG_SOUNDS, ...LEAF_SOUNDS, ...IMPACT_SOUNDS, EXPLOSION_BOOM, ...BLAST_SOUNDS, ...FIRE_SOUNDS, GRENADE_PIN_PULL], loops: [BURN_LOOP, FIRE_LOOP, ...FIRE_FUEL_LOOPS, SMOKE_HISS_LOOP, ROCKET_MOTOR_LOOP] };
17242
17259
 
17243
17260
  // src/audio/sound.ts
17244
17261
  var IMPACT_SOUND_KEYS = {
@@ -17533,6 +17550,7 @@ void main(){vec2 d=gl_PointCoord-.5;float r=length(d)*2.;if(r>1.)discard;float a
17533
17550
  explosion_big: blast2(1),
17534
17551
  explosion_car: blast2(1),
17535
17552
  explosion_flashbang: blast2(1),
17553
+ explosion_rocket: blast2(1),
17536
17554
  molotov_break_ignite: blast2(0.8),
17537
17555
  // the far takes are already muffled: no extra distance lowpass
17538
17556
  explosion_far: { bus: "world", gain: 1, falloff: BLAST_FAR_FALLOFF, cutoffK: 0, priority: 2 },
@@ -17549,6 +17567,8 @@ void main(){vec2 d=gl_PointCoord-.5;float r=length(d)*2.;if(r>1.)discard;float a
17549
17567
  fire_loop_plastic: { bus: "world", gain: 1, loop: { crossfade: 0.6 } },
17550
17568
  // a smoke canister venting: a gas hiss chained like the fire roar (the level comes from the room, by how near the burning canisters are)
17551
17569
  smoke_grenade_hiss: { bus: "world", gain: 1, loop: { crossfade: 0.8 } },
17570
+ // the motor of a rocket in flight, chained like the roar of a fire (the room sets the level by how near the rocket is)
17571
+ rocket_motor_loop: { bus: "world", gain: 1, loop: { crossfade: 0.5 } },
17552
17572
  // the ring and the spoon of a hand grenade: a small metal latch
17553
17573
  grenade_pin_pull: fire(0.5)
17554
17574
  };