@adatechnology/game-weapons-three 0.14.1 → 0.14.2
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/{chunk-PRC75VKC.js → chunk-XMVSA7UT.js} +2 -1
- package/dist/chunk-XMVSA7UT.js.map +1 -0
- package/dist/index.global.js +69 -7
- package/dist/index.global.js.map +1 -1
- package/dist/index.js +1 -1
- package/dist/testing.js +1 -1
- package/package.json +5 -5
- package/dist/chunk-PRC75VKC.js.map +0 -1
package/dist/index.global.js
CHANGED
|
@@ -36745,6 +36745,7 @@ uniform mat4 uNodes[${nodes.length}]; attribute float aNodeIndex; attribute vec3
|
|
|
36745
36745
|
camera2.updateProjectionMatrix();
|
|
36746
36746
|
};
|
|
36747
36747
|
const onKeyDown = (event) => {
|
|
36748
|
+
if (host.playerHeld?.()) return;
|
|
36748
36749
|
if (event.repeat || event.ctrlKey || event.metaKey || event.altKey || TEXT_FIELDS.has(event.target?.tagName ?? "")) return;
|
|
36749
36750
|
const handled2 = event.code === ACCESSORY_KEYS.light ? act(ACTION_IDS.light) : event.code === ACCESSORY_KEYS.laser ? act(ACTION_IDS.laser) : event.code === ACCESSORY_KEYS.underbarrel ? act(ACTION_IDS.underbarrel) : event.code === ACCESSORY_KEYS.stock && toggleStock();
|
|
36750
36751
|
if (!handled2) return;
|
|
@@ -36929,7 +36930,7 @@ uniform mat4 uNodes[${nodes.length}]; attribute float aNodeIndex; attribute vec3
|
|
|
36929
36930
|
};
|
|
36930
36931
|
var accessoryTextOf = (locale) => ACCESSORY_TEXT[locale] ?? ACCESSORY_TEXT.en;
|
|
36931
36932
|
|
|
36932
|
-
// ../game-audio/dist/chunk-
|
|
36933
|
+
// ../game-audio/dist/chunk-BXUGSOPY.js
|
|
36933
36934
|
var DISTANCE_CURVES = {
|
|
36934
36935
|
/** The game's `sfx`: `vol / (1 + d² × 0.004)`, cutoff `/ (1 + d × 0.01)`, silent below 0.01 (jogo L62091–62092, L62101). */
|
|
36935
36936
|
game_sfx: { model: "inverse_square", k: 4e-3, cutoffK: 0.01, minGain: 0.01 },
|
|
@@ -39234,7 +39235,22 @@ uniform mat4 uNodes[${nodes.length}]; attribute float aNodeIndex; attribute vec3
|
|
|
39234
39235
|
["smg_45_auto", 2, "sfx_pistol"],
|
|
39235
39236
|
["weapon_draw", 2],
|
|
39236
39237
|
["suppressor_attach", 3],
|
|
39237
|
-
["suppressor_detach", 3]
|
|
39238
|
+
["suppressor_detach", 3],
|
|
39239
|
+
["minigun_loop", 3],
|
|
39240
|
+
["smg_5_7x28", 3],
|
|
39241
|
+
["mg_belt_adjust", 3],
|
|
39242
|
+
["mg_belt_box_attach", 3],
|
|
39243
|
+
["mg_cover_open", 3],
|
|
39244
|
+
["mg_cover_close", 3],
|
|
39245
|
+
["weapon_holster", 3],
|
|
39246
|
+
["scope_zoom", 3]
|
|
39247
|
+
]),
|
|
39248
|
+
...entries("impactos", [
|
|
39249
|
+
["knife_hit_wall", 3],
|
|
39250
|
+
["helmet_hit", 3],
|
|
39251
|
+
["vest_hit", 3],
|
|
39252
|
+
["headshot", 3],
|
|
39253
|
+
["blood_squirt", 3]
|
|
39238
39254
|
]),
|
|
39239
39255
|
...entries("explosoes-fogo", [
|
|
39240
39256
|
["explosion_grenade", 1, "boom"],
|
|
@@ -39252,7 +39268,13 @@ uniform mat4 uNodes[${nodes.length}]; attribute float aNodeIndex; attribute vec3
|
|
|
39252
39268
|
["grenade_bounce", 1],
|
|
39253
39269
|
["c4_plant", 2],
|
|
39254
39270
|
["c4_beep", 2],
|
|
39255
|
-
["c4_disarm", 2]
|
|
39271
|
+
["c4_disarm", 2],
|
|
39272
|
+
["c4_disarming_loop", 3],
|
|
39273
|
+
["c4_remote_detonate", 3],
|
|
39274
|
+
["smoke_grenade_hiss", 3],
|
|
39275
|
+
["grenade_pin_pull", 3],
|
|
39276
|
+
["electric_shock", 3],
|
|
39277
|
+
["electric_spark", 3]
|
|
39256
39278
|
]),
|
|
39257
39279
|
...entries("personagem", [
|
|
39258
39280
|
["footstep_concrete_walk", 1, "sfx_step"],
|
|
@@ -39280,7 +39302,13 @@ uniform mat4 uNodes[${nodes.length}]; attribute float aNodeIndex; attribute vec3
|
|
|
39280
39302
|
["zombie_attack", 1],
|
|
39281
39303
|
["zombie_pain", 1],
|
|
39282
39304
|
["zombie_claw_hit", 1, "sfx_flesh"],
|
|
39283
|
-
["zombie_claw_miss", 2]
|
|
39305
|
+
["zombie_claw_miss", 2],
|
|
39306
|
+
["swing_whoosh", 3],
|
|
39307
|
+
["heartbeat_critical", 3],
|
|
39308
|
+
["fall_water", 3],
|
|
39309
|
+
["fall_damage", 3],
|
|
39310
|
+
["fall_scream", 3],
|
|
39311
|
+
["footstep_glass_walk", 3]
|
|
39284
39312
|
]),
|
|
39285
39313
|
...entries("veiculos", [
|
|
39286
39314
|
["engine_loop_car", 1],
|
|
@@ -39290,7 +39318,12 @@ uniform mat4 uNodes[${nodes.length}]; attribute float aNodeIndex; attribute vec3
|
|
|
39290
39318
|
["car_door_open", 1, "latch"],
|
|
39291
39319
|
["car_door_close", 1, "shut_metal"],
|
|
39292
39320
|
["horn_car", 2, "horn"],
|
|
39293
|
-
["tire_skid_asphalt", 2]
|
|
39321
|
+
["tire_skid_asphalt", 2],
|
|
39322
|
+
["jet_flyby", 3],
|
|
39323
|
+
["helicopter_turbine", 3],
|
|
39324
|
+
["tire_burnout", 3],
|
|
39325
|
+
["handbrake_turn", 3],
|
|
39326
|
+
["siren_police", 3]
|
|
39294
39327
|
]),
|
|
39295
39328
|
...entries("itens-portas", [
|
|
39296
39329
|
["item_pickup_metal", 1],
|
|
@@ -39301,7 +39334,27 @@ uniform mat4 uNodes[${nodes.length}]; attribute float aNodeIndex; attribute vec3
|
|
|
39301
39334
|
["door_creak", 1, "creak_wood"],
|
|
39302
39335
|
["door_locked_rattle", 1, "rattle"],
|
|
39303
39336
|
["drawer_open", 2, "slide"],
|
|
39304
|
-
["fridge_close", 2, "shut_metal"]
|
|
39337
|
+
["fridge_close", 2, "shut_metal"],
|
|
39338
|
+
["inventory_open", 3],
|
|
39339
|
+
["inventory_close", 3],
|
|
39340
|
+
["inventory_select", 3],
|
|
39341
|
+
["inventory_place", 3],
|
|
39342
|
+
["pickup_chime", 3],
|
|
39343
|
+
["item_pickup_coins", 3],
|
|
39344
|
+
["bandage_use", 3],
|
|
39345
|
+
["bandage_refuse", 3],
|
|
39346
|
+
["flashlight_toggle", 3],
|
|
39347
|
+
["gear_draw", 3],
|
|
39348
|
+
["gear_holster", 3],
|
|
39349
|
+
["button_press", 3],
|
|
39350
|
+
["lock_desk_open", 3],
|
|
39351
|
+
["elevator_move_loop", 3],
|
|
39352
|
+
["elevator_stop", 3],
|
|
39353
|
+
["door_sliding", 3],
|
|
39354
|
+
["door_kick", 3],
|
|
39355
|
+
["door_wood_break", 3],
|
|
39356
|
+
["gate_iron_open", 3],
|
|
39357
|
+
["gate_iron_close", 3]
|
|
39305
39358
|
]),
|
|
39306
39359
|
...entries("ambiente", [
|
|
39307
39360
|
["rain_loop", 2],
|
|
@@ -39309,7 +39362,16 @@ uniform mat4 uNodes[${nodes.length}]; attribute float aNodeIndex; attribute vec3
|
|
|
39309
39362
|
["thunder_near", 2],
|
|
39310
39363
|
["thunder_far", 2],
|
|
39311
39364
|
["water_splash", 2],
|
|
39312
|
-
["helicopter_loop", 3]
|
|
39365
|
+
["helicopter_loop", 3],
|
|
39366
|
+
["bird_flush", 3],
|
|
39367
|
+
["dog_growl", 3],
|
|
39368
|
+
["dog_whimper", 3],
|
|
39369
|
+
["dog_howl", 3],
|
|
39370
|
+
["zombie_dog_bark", 3],
|
|
39371
|
+
["zombie_dog_howl_far", 3],
|
|
39372
|
+
["insect_squash", 3],
|
|
39373
|
+
["insect_crawl", 3],
|
|
39374
|
+
["fan_loop", 3]
|
|
39313
39375
|
])
|
|
39314
39376
|
];
|
|
39315
39377
|
var SFX_MATERIALS = [
|