@adatechnology/game-weapons 0.12.0 → 0.12.1
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.map +1 -1
- package/package.json +2 -2
package/dist/index.global.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../src/index.ts","../src/rng.ts","../src/data/ammo.json","../src/ammo.ts","../src/data/attachments.json","../../game-contracts/src/blast-shove.ts","../../game-contracts/src/blast-impulse.ts","../../game-contracts/src/blast-knock.ts","../../game-contracts/src/impact-cost.ts","../../game-contracts/src/impact.ts","../../game-contracts/src/body.ts","../../game-contracts/src/spec.ts","../../game-contracts/src/weapons.ts","../../game-contracts/src/ignition.ts","../../game-contracts/src/seal.ts","../../game-contracts/src/hands.ts","../../game-contracts/src/twist.ts","../../game-contracts/src/animation.ts","../../game-contracts/src/tool-animation.ts","../../game-contracts/src/frame.ts","../../game-contracts/src/warn.ts","../../game-contracts/src/registry.ts","../../game-contracts/src/bench.ts","../../game-contracts/src/environment.ts","../../game-contracts/src/categories.ts","../../game-contracts/src/origin.ts","../../game-contracts/src/footprint.ts","../../game-contracts/src/foley.ts","../../game-contracts/src/index.ts","../src/data/archetypes.json","../src/data/calibers.json","../src/data/explosives.json","../src/data/explosive-weapons.json","../src/data/firearms.json","../src/data/launchers.json","../src/attachments.ts","../src/data/melee-weapons.json","../src/check-arsenal.ts","../src/locale.ts","../src/fuse.ts","../src/registry.ts","../src/rules.ts","../src/vec.ts","../src/explosive-body.ts","../src/explosive-use.ts","../src/fire.ts","../src/heat.ts","../src/reload-stages.ts","../src/reload.ts","../src/faults.ts","../src/attachment-effects.ts","../src/weapon-shared.ts","../src/weapon-core.ts","../src/weapon-commands.ts","../src/weapon-attachments.ts","../src/weapon-firearm.ts","../src/weapon.ts","../src/arsenal.ts","../src/ground-sweep.ts","../src/explosive-effect.ts","../src/data/muzzle-smoke.json","../src/muzzle-smoke.ts","../src/aim-zoom.ts","../src/dual-wield.ts","../src/generics.ts","../src/menu.ts"],"sourcesContent":["export { createRng } from './rng'\nexport { AMMO, ammoId, ammoIgnition, resolveLoad } from './ammo'\nexport { createArsenal, CALIBERS, WEAPONS, EXPLOSIVES, ATTACHMENTS, ARCHETYPE_IDS, DEFAULT_LOADOUT, muzzleEnergy, checkArsenal } from './arsenal'\nexport { DEFAULT_RULES, GALLERY_HEAT } from './rules'\nexport { barrelMassOf, coolingTimeConstant, decayHeat, roundsToWarning, roundsToWarningOf } from './heat'\nexport type { RoundsToWarningParams } from './heat'\nexport { canFit, canInstallWith } from './attachments'\nexport type { CanFit, CanFitContext, FitRefusal, IsCompatible } from './attachments'\nexport { resolveLoadout } from './attachment-effects'\nexport type { Loadout, LoadoutContext } from './attachment-effects'\nexport { ExplosiveBody, createExplosiveBody } from './explosive-body'\nexport type { Detonation, ExplosiveBodyInit, ExplosiveEvent, SurfaceProbe } from './explosive-body'\nexport { sweepGround } from './ground-sweep'\nexport type { GroundHeight, GroundSweepHit, GroundSweepOptions } from './ground-sweep'\nexport { backblastEffect, blastEffect, tripwireSegment } from './explosive-effect'\nexport type { BlastEffect, TripwireSegment } from './explosive-effect'\nexport { nominalFuse, sampleFuse } from './fuse'\nexport { RELOAD_STAGES } from './reload-stages'\nexport { resolveStrings, locales } from './locale'\nexport type { WeaponsLocale, WeaponsStrings } from './locale'\nexport { MUZZLE_SMOKE, muzzleSmokeOf } from './muzzle-smoke'\nexport type { MuzzleSmokeProfile, MuzzleSmokeProfileId, MuzzleSmokeParams } from './muzzle-smoke'\nexport type * from './types'\nexport { aimZoomOf } from './aim-zoom'\nexport { canDualWield } from './dual-wield'\nexport { weaponMenu, WEAPON_MENU_GROUPS } from './menu'\nexport { genericWeapons, realLoadout } from './generics'\nexport type { WeaponMenuEntry, WeaponMenuGroup, WeaponMenuGroupDef, WeaponMenuOptions, WeaponMenuSection } from './menu'\n","import type { Vec3 } from './types'\n\n/** Deterministic mulberry32 generator; returns floats in [0, 1). */\nexport const createRng = (seed: number): (() => number) => {\n let a = seed >>> 0\n return () => {\n a = (a + 0x6d2b79f5) >>> 0\n let t = a\n t = Math.imul(t ^ (t >>> 15), t | 1)\n t ^= t + Math.imul(t ^ (t >>> 7), t | 61)\n return ((t ^ (t >>> 14)) >>> 0) / 4294967296\n }\n}\n\nexport const normalize = (v: Vec3): Vec3 => {\n const l = Math.hypot(v[0], v[1], v[2])\n return l > 1e-12 ? [v[0] / l, v[1] / l, v[2] / l] : [0, 0, -1]\n}\n\nconst cross = (a: Vec3, b: Vec3): Vec3 => [a[1] * b[2] - a[2] * b[1], a[2] * b[0] - a[0] * b[2], a[0] * b[1] - a[1] * b[0]]\n\n/** Uniform direction inside a cone of half-angle `deg` around the unit vector `dir` (uniform over the solid angle). */\nexport const sampleCone = (dir: Vec3, deg: number, rng: () => number): Vec3 => {\n if (deg <= 0) return dir\n const cosMax = Math.cos((deg * Math.PI) / 180)\n const cosT = 1 - rng() * (1 - cosMax)\n const sinT = Math.sqrt(Math.max(0, 1 - cosT * cosT))\n const phi = rng() * Math.PI * 2\n const helper: Vec3 = Math.abs(dir[1]) < 0.9 ? [0, 1, 0] : [1, 0, 0]\n const u = normalize(cross(helper, dir))\n const v = cross(dir, u)\n const cx = Math.cos(phi) * sinT\n const cy = Math.sin(phi) * sinT\n return normalize([\n u[0] * cx + v[0] * cy + dir[0] * cosT,\n u[1] * cx + v[1] * cy + dir[1] * cosT,\n u[2] * cx + v[2] * cy + dir[2] * cosT,\n ])\n}\n","{\n \"_notes\": [\n \"Penetration of a projectile at close range (muzzle to about 100 m), at normal incidence, in millimetres of: steel = RHA-equivalent (about 300 HB); concrete = unreinforced structural concrete; brick = fired clay brick masonry; wood = dry hardwood (oak). A game scales it by the energy left at the hit (shotToHit does).\",\n \"basis 'published' = taken from a manufacturer figure quoted in sources. basis 'estimated' = our estimate from published orders of magnitude (ball ammunition defeats 4 to 6 mm of RHA, steel-core 6 to 8 mm, AP 10 to 22 mm, .50 BMG ball about 14 mm), muzzle energy and bullet construction; the concrete, brick and wood columns scale with penetrator energy and hardness the way test firings against masonry and timber do. They are meant to be refined with datasheets: override any entry with ArsenalOptions.ammo / patch.ammo.\",\n \"Anchors: Nammo 7.62 mm x 51 Armor Piercing 8 (M993): 18 mm RHA at 100 m, 7 mm at 500 m (https://www.nammo.com/products/ammunition/small-caliber-ammunition/7-62mm-series/7-62-mm-x-51-armor-piercing-8-m993/). Constructions (M80 lead core with gilding-metal jacket, M43 and 7N6 steel cores, M995 and M993 tungsten carbide, M33 lead with steel insert, M2 hardened steel, BZ and B-32 steel core API) follow the usual military ammunition references (TM 43-0001-27, Army small-arms ammunition tables).\",\n \"core: lead, lead_steel (lead with a steel tip or insert), steel, hardened_steel, tungsten_carbide, copper, none. jacket: gilding_metal, copper, brass, steel (copper-washed or lacquered steel), none. They only feed the ignition rules (rules.ignition.spark).\",\n \"bulletGrams and muzzleSpeed, when present, replace those of the calibre for this load; absent they are the calibre's.\"\n ],\n \"loads\": [\n {\n \"id\": \"22lr:rimfire\",\n \"caliber\": \"22lr\",\n \"kind\": \"rimfire\",\n \"label\": \".22 LR lead round nose\",\n \"core\": \"lead\",\n \"jacket\": \"none\",\n \"penetration\": {\n \"steel\": 1.4,\n \"concrete\": 12,\n \"brick\": 25,\n \"wood\": 60\n },\n \"basis\": \"estimated\",\n \"sources\": [\n \"Estimated from muzzle energy, bullet construction and the published anchors of this file (see _notes); refine with a datasheet.\"\n ]\n },\n {\n \"id\": \"380acp:fmj\",\n \"caliber\": \"380acp\",\n \"kind\": \"fmj\",\n \"label\": \".380 ACP FMJ\",\n \"core\": \"lead\",\n \"jacket\": \"gilding_metal\",\n \"penetration\": {\n \"steel\": 2.2,\n \"concrete\": 20,\n \"brick\": 40,\n \"wood\": 80\n },\n \"basis\": \"estimated\",\n \"sources\": [\n \"Estimated from muzzle energy, bullet construction and the published anchors of this file (see _notes); refine with a datasheet.\"\n ]\n },\n {\n \"id\": \"9x18:fmj\",\n \"caliber\": \"9x18\",\n \"kind\": \"fmj\",\n \"label\": \"9x18 Makarov FMJ\",\n \"core\": \"lead\",\n \"jacket\": \"steel\",\n \"penetration\": {\n \"steel\": 2.6,\n \"concrete\": 22,\n \"brick\": 45,\n \"wood\": 85\n },\n \"basis\": \"estimated\",\n \"sources\": [\n \"Estimated from muzzle energy, bullet construction and the published anchors of this file (see _notes); refine with a datasheet.\"\n ]\n },\n {\n \"id\": \"9x19:fmj\",\n \"caliber\": \"9x19\",\n \"kind\": \"fmj\",\n \"label\": \"9x19 FMJ 124 gr\",\n \"core\": \"lead\",\n \"jacket\": \"gilding_metal\",\n \"penetration\": {\n \"steel\": 3.0,\n \"concrete\": 25,\n \"brick\": 50,\n \"wood\": 80\n },\n \"basis\": \"estimated\",\n \"sources\": [\n \"Estimated from muzzle energy, bullet construction and the published anchors of this file (see _notes); refine with a datasheet.\"\n ]\n },\n {\n \"id\": \"9x19:hp\",\n \"caliber\": \"9x19\",\n \"kind\": \"hp\",\n \"label\": \"9x19 JHP\",\n \"core\": \"lead\",\n \"jacket\": \"gilding_metal\",\n \"penetration\": {\n \"steel\": 2.0,\n \"concrete\": 15,\n \"brick\": 35,\n \"wood\": 55\n },\n \"basis\": \"estimated\",\n \"sources\": [\n \"Estimated from muzzle energy, bullet construction and the published anchors of this file (see _notes); refine with a datasheet.\"\n ]\n },\n {\n \"id\": \"40sw:fmj\",\n \"caliber\": \"40sw\",\n \"kind\": \"fmj\",\n \"label\": \".40 S&W FMJ\",\n \"core\": \"lead\",\n \"jacket\": \"gilding_metal\",\n \"penetration\": {\n \"steel\": 3.0,\n \"concrete\": 28,\n \"brick\": 55,\n \"wood\": 85\n },\n \"basis\": \"estimated\",\n \"sources\": [\n \"Estimated from muzzle energy, bullet construction and the published anchors of this file (see _notes); refine with a datasheet.\"\n ]\n },\n {\n \"id\": \"45acp:fmj\",\n \"caliber\": \"45acp\",\n \"kind\": \"fmj\",\n \"label\": \".45 ACP FMJ 230 gr\",\n \"core\": \"lead\",\n \"jacket\": \"gilding_metal\",\n \"penetration\": {\n \"steel\": 2.8,\n \"concrete\": 28,\n \"brick\": 55,\n \"wood\": 85\n },\n \"basis\": \"estimated\",\n \"sources\": [\n \"Estimated from muzzle energy, bullet construction and the published anchors of this file (see _notes); refine with a datasheet.\"\n ]\n },\n {\n \"id\": \"45acp:hp\",\n \"caliber\": \"45acp\",\n \"kind\": \"hp\",\n \"label\": \".45 ACP JHP\",\n \"core\": \"lead\",\n \"jacket\": \"gilding_metal\",\n \"penetration\": {\n \"steel\": 1.8,\n \"concrete\": 18,\n \"brick\": 40,\n \"wood\": 60\n },\n \"basis\": \"estimated\",\n \"sources\": [\n \"Estimated from muzzle energy, bullet construction and the published anchors of this file (see _notes); refine with a datasheet.\"\n ]\n },\n {\n \"id\": \"5_7x28:fmj\",\n \"caliber\": \"5_7x28\",\n \"kind\": \"fmj\",\n \"label\": \"5.7x28 SS190\",\n \"core\": \"lead_steel\",\n \"jacket\": \"gilding_metal\",\n \"penetration\": {\n \"steel\": 4.0,\n \"concrete\": 25,\n \"brick\": 50,\n \"wood\": 100\n },\n \"basis\": \"estimated\",\n \"sources\": [\n \"Estimated from muzzle energy, bullet construction and the published anchors of this file (see _notes); refine with a datasheet.\"\n ]\n },\n {\n \"id\": \"38spl:fmj\",\n \"caliber\": \"38spl\",\n \"kind\": \"fmj\",\n \"label\": \".38 Special lead round nose\",\n \"core\": \"lead\",\n \"jacket\": \"none\",\n \"penetration\": {\n \"steel\": 2.0,\n \"concrete\": 20,\n \"brick\": 40,\n \"wood\": 70\n },\n \"basis\": \"estimated\",\n \"sources\": [\n \"Estimated from muzzle energy, bullet construction and the published anchors of this file (see _notes); refine with a datasheet.\"\n ]\n },\n {\n \"id\": \"357mag:hp\",\n \"caliber\": \"357mag\",\n \"kind\": \"hp\",\n \"label\": \".357 Magnum JHP\",\n \"core\": \"lead\",\n \"jacket\": \"gilding_metal\",\n \"penetration\": {\n \"steel\": 3.0,\n \"concrete\": 25,\n \"brick\": 45,\n \"wood\": 90\n },\n \"basis\": \"estimated\",\n \"sources\": [\n \"Estimated from muzzle energy, bullet construction and the published anchors of this file (see _notes); refine with a datasheet.\"\n ]\n },\n {\n \"id\": \"44mag:fmj\",\n \"caliber\": \"44mag\",\n \"kind\": \"fmj\",\n \"label\": \".44 Magnum FMJ\",\n \"core\": \"lead\",\n \"jacket\": \"gilding_metal\",\n \"penetration\": {\n \"steel\": 4.0,\n \"concrete\": 40,\n \"brick\": 70,\n \"wood\": 150\n },\n \"basis\": \"estimated\",\n \"sources\": [\n \"Estimated from muzzle energy, bullet construction and the published anchors of this file (see _notes); refine with a datasheet.\"\n ]\n },\n {\n \"id\": \"50ae:fmj\",\n \"caliber\": \"50ae\",\n \"kind\": \"fmj\",\n \"label\": \".50 AE FMJ\",\n \"core\": \"lead\",\n \"jacket\": \"gilding_metal\",\n \"penetration\": {\n \"steel\": 4.0,\n \"concrete\": 38,\n \"brick\": 65,\n \"wood\": 130\n },\n \"basis\": \"estimated\",\n \"sources\": [\n \"Estimated from muzzle energy, bullet construction and the published anchors of this file (see _notes); refine with a datasheet.\"\n ]\n },\n {\n \"id\": \"12ga_00buck:buck\",\n \"caliber\": \"12ga_00buck\",\n \"kind\": \"buck\",\n \"label\": \"12 ga 00 buck (one pellet)\",\n \"core\": \"lead\",\n \"jacket\": \"none\",\n \"penetration\": {\n \"steel\": 0.8,\n \"concrete\": 10,\n \"brick\": 25,\n \"wood\": 60\n },\n \"basis\": \"estimated\",\n \"sources\": [\n \"Estimated from muzzle energy, bullet construction and the published anchors of this file (see _notes); refine with a datasheet.\"\n ]\n },\n {\n \"id\": \"12ga_slug:slug\",\n \"caliber\": \"12ga_slug\",\n \"kind\": \"slug\",\n \"label\": \"12 ga rifled slug\",\n \"core\": \"lead\",\n \"jacket\": \"none\",\n \"penetration\": {\n \"steel\": 4.0,\n \"concrete\": 60,\n \"brick\": 100,\n \"wood\": 250\n },\n \"basis\": \"estimated\",\n \"sources\": [\n \"Estimated from muzzle energy, bullet construction and the published anchors of this file (see _notes); refine with a datasheet.\"\n ]\n },\n {\n \"id\": \"12ga_birdshot:birdshot\",\n \"caliber\": \"12ga_birdshot\",\n \"kind\": \"birdshot\",\n \"label\": \"12 ga birdshot (one pellet)\",\n \"core\": \"lead\",\n \"jacket\": \"none\",\n \"penetration\": {\n \"steel\": 0.2,\n \"concrete\": 3,\n \"brick\": 8,\n \"wood\": 20\n },\n \"basis\": \"estimated\",\n \"sources\": [\n \"Estimated from muzzle energy, bullet construction and the published anchors of this file (see _notes); refine with a datasheet.\"\n ]\n },\n {\n \"id\": \"20ga_buck:buck\",\n \"caliber\": \"20ga_buck\",\n \"kind\": \"buck\",\n \"label\": \"20 ga buck (one pellet)\",\n \"core\": \"lead\",\n \"jacket\": \"none\",\n \"penetration\": {\n \"steel\": 0.6,\n \"concrete\": 8,\n \"brick\": 20,\n \"wood\": 50\n },\n \"basis\": \"estimated\",\n \"sources\": [\n \"Estimated from muzzle energy, bullet construction and the published anchors of this file (see _notes); refine with a datasheet.\"\n ]\n },\n {\n \"id\": \"5_56x45:fmj\",\n \"caliber\": \"5_56x45\",\n \"kind\": \"fmj\",\n \"label\": \"5.56x45 M855 (steel tip, lead core)\",\n \"core\": \"lead_steel\",\n \"jacket\": \"gilding_metal\",\n \"penetration\": {\n \"steel\": 4.5,\n \"concrete\": 90,\n \"brick\": 180,\n \"wood\": 280\n },\n \"basis\": \"estimated\",\n \"sources\": [\n \"Estimated from muzzle energy, bullet construction and the published anchors of this file (see _notes); refine with a datasheet.\"\n ]\n },\n {\n \"id\": \"5_45x39:fmj\",\n \"caliber\": \"5_45x39\",\n \"kind\": \"fmj\",\n \"label\": \"5.45x39 7N6 (steel core)\",\n \"core\": \"steel\",\n \"jacket\": \"steel\",\n \"penetration\": {\n \"steel\": 5.5,\n \"concrete\": 90,\n \"brick\": 180,\n \"wood\": 280\n },\n \"basis\": \"estimated\",\n \"sources\": [\n \"Estimated from muzzle energy, bullet construction and the published anchors of this file (see _notes); refine with a datasheet.\"\n ]\n },\n {\n \"id\": \"7_62x39:fmj\",\n \"caliber\": \"7_62x39\",\n \"kind\": \"fmj\",\n \"label\": \"7.62x39 M43 (steel core)\",\n \"core\": \"steel\",\n \"jacket\": \"steel\",\n \"penetration\": {\n \"steel\": 6.5,\n \"concrete\": 110,\n \"brick\": 220,\n \"wood\": 300\n },\n \"basis\": \"estimated\",\n \"sources\": [\n \"Estimated from muzzle energy, bullet construction and the published anchors of this file (see _notes); refine with a datasheet.\"\n ]\n },\n {\n \"id\": \"30_30:fmj\",\n \"caliber\": \"30_30\",\n \"kind\": \"fmj\",\n \"label\": \".30-30 Winchester flat nose\",\n \"core\": \"lead\",\n \"jacket\": \"gilding_metal\",\n \"penetration\": {\n \"steel\": 3.0,\n \"concrete\": 80,\n \"brick\": 160,\n \"wood\": 250\n },\n \"basis\": \"estimated\",\n \"sources\": [\n \"Estimated from muzzle energy, bullet construction and the published anchors of this file (see _notes); refine with a datasheet.\"\n ]\n },\n {\n \"id\": \"7_62x51:fmj\",\n \"caliber\": \"7_62x51\",\n \"kind\": \"fmj\",\n \"label\": \"7.62x51 M80 ball\",\n \"core\": \"lead\",\n \"jacket\": \"gilding_metal\",\n \"penetration\": {\n \"steel\": 5.0,\n \"concrete\": 120,\n \"brick\": 250,\n \"wood\": 330\n },\n \"basis\": \"estimated\",\n \"sources\": [\n \"Estimated from muzzle energy, bullet construction and the published anchors of this file (see _notes); refine with a datasheet.\"\n ]\n },\n {\n \"id\": \"7_62x54r:fmj\",\n \"caliber\": \"7_62x54r\",\n \"kind\": \"fmj\",\n \"label\": \"7.62x54R LPS (steel core)\",\n \"core\": \"steel\",\n \"jacket\": \"steel\",\n \"penetration\": {\n \"steel\": 6.5,\n \"concrete\": 130,\n \"brick\": 260,\n \"wood\": 330\n },\n \"basis\": \"estimated\",\n \"sources\": [\n \"Estimated from muzzle energy, bullet construction and the published anchors of this file (see _notes); refine with a datasheet.\"\n ]\n },\n {\n \"id\": \"30_06:fmj\",\n \"caliber\": \"30_06\",\n \"kind\": \"fmj\",\n \"label\": \".30-06 M1 ball\",\n \"core\": \"lead\",\n \"jacket\": \"gilding_metal\",\n \"penetration\": {\n \"steel\": 5.5,\n \"concrete\": 130,\n \"brick\": 260,\n \"wood\": 340\n },\n \"basis\": \"estimated\",\n \"sources\": [\n \"Estimated from muzzle energy, bullet construction and the published anchors of this file (see _notes); refine with a datasheet.\"\n ]\n },\n {\n \"id\": \"300wm:fmj\",\n \"caliber\": \"300wm\",\n \"kind\": \"fmj\",\n \"label\": \".300 Win Mag FMJ\",\n \"core\": \"lead\",\n \"jacket\": \"gilding_metal\",\n \"penetration\": {\n \"steel\": 6.5,\n \"concrete\": 150,\n \"brick\": 290,\n \"wood\": 360\n },\n \"basis\": \"estimated\",\n \"sources\": [\n \"Estimated from muzzle energy, bullet construction and the published anchors of this file (see _notes); refine with a datasheet.\"\n ]\n },\n {\n \"id\": \"338lapua:fmj\",\n \"caliber\": \"338lapua\",\n \"kind\": \"fmj\",\n \"label\": \".338 Lapua Magnum FMJ\",\n \"core\": \"lead\",\n \"jacket\": \"gilding_metal\",\n \"penetration\": {\n \"steel\": 8.0,\n \"concrete\": 190,\n \"brick\": 360,\n \"wood\": 450\n },\n \"basis\": \"estimated\",\n \"sources\": [\n \"Estimated from muzzle energy, bullet construction and the published anchors of this file (see _notes); refine with a datasheet.\"\n ]\n },\n {\n \"id\": \"408cheytac:fmj\",\n \"caliber\": \"408cheytac\",\n \"kind\": \"fmj\",\n \"label\": \".408 CheyTac solid\",\n \"core\": \"copper\",\n \"jacket\": \"none\",\n \"penetration\": {\n \"steel\": 12.0,\n \"concrete\": 250,\n \"brick\": 450,\n \"wood\": 550\n },\n \"basis\": \"estimated\",\n \"sources\": [\n \"Estimated from muzzle energy, bullet construction and the published anchors of this file (see _notes); refine with a datasheet.\"\n ]\n },\n {\n \"id\": \"arrow:arrow\",\n \"caliber\": \"arrow\",\n \"kind\": \"arrow\",\n \"label\": \"Arrow (steel broadhead)\",\n \"core\": \"steel\",\n \"jacket\": \"none\",\n \"penetration\": {\n \"steel\": 0.5,\n \"concrete\": 5,\n \"brick\": 15,\n \"wood\": 100\n },\n \"basis\": \"estimated\",\n \"sources\": [\n \"Estimated from muzzle energy, bullet construction and the published anchors of this file (see _notes); refine with a datasheet.\"\n ]\n },\n {\n \"id\": \"crossbow_bolt:bolt\",\n \"caliber\": \"crossbow_bolt\",\n \"kind\": \"bolt\",\n \"label\": \"Crossbow bolt\",\n \"core\": \"steel\",\n \"jacket\": \"none\",\n \"penetration\": {\n \"steel\": 0.8,\n \"concrete\": 8,\n \"brick\": 20,\n \"wood\": 120\n },\n \"basis\": \"estimated\",\n \"sources\": [\n \"Estimated from muzzle energy, bullet construction and the published anchors of this file (see _notes); refine with a datasheet.\"\n ]\n },\n {\n \"id\": \"4_6x30:fmj\",\n \"caliber\": \"4_6x30\",\n \"kind\": \"fmj\",\n \"label\": \"4.6x30 DM11\",\n \"core\": \"steel\",\n \"jacket\": \"gilding_metal\",\n \"penetration\": {\n \"steel\": 3.5,\n \"concrete\": 25,\n \"brick\": 50,\n \"wood\": 100\n },\n \"basis\": \"estimated\",\n \"sources\": [\n \"Estimated from muzzle energy, bullet construction and the published anchors of this file (see _notes); refine with a datasheet.\"\n ]\n },\n {\n \"id\": \"32acp:fmj\",\n \"caliber\": \"32acp\",\n \"kind\": \"fmj\",\n \"label\": \".32 ACP FMJ\",\n \"core\": \"lead\",\n \"jacket\": \"gilding_metal\",\n \"penetration\": {\n \"steel\": 1.8,\n \"concrete\": 15,\n \"brick\": 30,\n \"wood\": 60\n },\n \"basis\": \"estimated\",\n \"sources\": [\n \"Estimated from muzzle energy, bullet construction and the published anchors of this file (see _notes); refine with a datasheet.\"\n ]\n },\n {\n \"id\": \"9x19:tracer\",\n \"caliber\": \"9x19\",\n \"kind\": \"tracer\",\n \"label\": \"9x19 tracer\",\n \"core\": \"lead\",\n \"jacket\": \"gilding_metal\",\n \"tracer\": true,\n \"penetration\": {\n \"steel\": 2.8,\n \"concrete\": 22,\n \"brick\": 45,\n \"wood\": 75\n },\n \"basis\": \"estimated\",\n \"sources\": [\n \"Estimated from muzzle energy, bullet construction and the published anchors of this file (see _notes); refine with a datasheet.\"\n ]\n },\n {\n \"id\": \"5_56x45:ap\",\n \"caliber\": \"5_56x45\",\n \"kind\": \"ap\",\n \"label\": \"5.56x45 M995 AP (tungsten carbide)\",\n \"bulletGrams\": 3.6,\n \"muzzleSpeed\": 1013,\n \"core\": \"tungsten_carbide\",\n \"jacket\": \"gilding_metal\",\n \"penetration\": {\n \"steel\": 10.0,\n \"concrete\": 110,\n \"brick\": 210,\n \"wood\": 300\n },\n \"basis\": \"estimated\",\n \"sources\": [\n \"Estimated from muzzle energy, bullet construction and the published anchors of this file (see _notes); refine with a datasheet.\"\n ]\n },\n {\n \"id\": \"5_56x45:tracer\",\n \"caliber\": \"5_56x45\",\n \"kind\": \"tracer\",\n \"label\": \"5.56x45 M856 tracer\",\n \"bulletGrams\": 3.95,\n \"muzzleSpeed\": 914,\n \"core\": \"lead\",\n \"jacket\": \"gilding_metal\",\n \"tracer\": true,\n \"penetration\": {\n \"steel\": 3.5,\n \"concrete\": 80,\n \"brick\": 160,\n \"wood\": 260\n },\n \"basis\": \"estimated\",\n \"sources\": [\n \"Estimated from muzzle energy, bullet construction and the published anchors of this file (see _notes); refine with a datasheet.\"\n ]\n },\n {\n \"id\": \"5_45x39:tracer\",\n \"caliber\": \"5_45x39\",\n \"kind\": \"tracer\",\n \"label\": \"5.45x39 7T3M tracer\",\n \"core\": \"lead\",\n \"jacket\": \"steel\",\n \"tracer\": true,\n \"penetration\": {\n \"steel\": 4.0,\n \"concrete\": 80,\n \"brick\": 160,\n \"wood\": 260\n },\n \"basis\": \"estimated\",\n \"sources\": [\n \"Estimated from muzzle energy, bullet construction and the published anchors of this file (see _notes); refine with a datasheet.\"\n ]\n },\n {\n \"id\": \"7_62x39:incendiary\",\n \"caliber\": \"7_62x39\",\n \"kind\": \"incendiary\",\n \"label\": \"7.62x39 BZ API\",\n \"bulletGrams\": 7.7,\n \"muzzleSpeed\": 720,\n \"core\": \"hardened_steel\",\n \"jacket\": \"steel\",\n \"incendiary\": true,\n \"penetration\": {\n \"steel\": 8.0,\n \"concrete\": 110,\n \"brick\": 220,\n \"wood\": 300\n },\n \"basis\": \"estimated\",\n \"sources\": [\n \"Estimated from muzzle energy, bullet construction and the published anchors of this file (see _notes); refine with a datasheet.\"\n ]\n },\n {\n \"id\": \"7_62x39:tracer\",\n \"caliber\": \"7_62x39\",\n \"kind\": \"tracer\",\n \"label\": \"7.62x39 T-45 tracer\",\n \"core\": \"lead\",\n \"jacket\": \"steel\",\n \"tracer\": true,\n \"penetration\": {\n \"steel\": 4.5,\n \"concrete\": 100,\n \"brick\": 200,\n \"wood\": 280\n },\n \"basis\": \"estimated\",\n \"sources\": [\n \"Estimated from muzzle energy, bullet construction and the published anchors of this file (see _notes); refine with a datasheet.\"\n ]\n },\n {\n \"id\": \"7_62x51:ap\",\n \"caliber\": \"7_62x51\",\n \"kind\": \"ap\",\n \"label\": \"7.62x51 M993 AP (tungsten carbide)\",\n \"bulletGrams\": 8.2,\n \"muzzleSpeed\": 930,\n \"core\": \"tungsten_carbide\",\n \"jacket\": \"gilding_metal\",\n \"penetration\": {\n \"steel\": 18.0,\n \"concrete\": 160,\n \"brick\": 300,\n \"wood\": 360\n },\n \"basis\": \"published\",\n \"sources\": [\n \"Nammo, 7.62 mm x 51 Armor Piercing 8 (M993) product page: 18 mm RHA (300 HB) at 100 m, 7 mm at 500 m.\"\n ]\n },\n {\n \"id\": \"7_62x51:tracer\",\n \"caliber\": \"7_62x51\",\n \"kind\": \"tracer\",\n \"label\": \"7.62x51 M62 tracer\",\n \"core\": \"lead\",\n \"jacket\": \"gilding_metal\",\n \"tracer\": true,\n \"penetration\": {\n \"steel\": 4.0,\n \"concrete\": 110,\n \"brick\": 230,\n \"wood\": 320\n },\n \"basis\": \"estimated\",\n \"sources\": [\n \"Estimated from muzzle energy, bullet construction and the published anchors of this file (see _notes); refine with a datasheet.\"\n ]\n },\n {\n \"id\": \"7_62x54r:ap\",\n \"caliber\": \"7_62x54r\",\n \"kind\": \"ap\",\n \"label\": \"7.62x54R 7N37 AP\",\n \"core\": \"hardened_steel\",\n \"jacket\": \"steel\",\n \"penetration\": {\n \"steel\": 11.0,\n \"concrete\": 140,\n \"brick\": 270,\n \"wood\": 340\n },\n \"basis\": \"estimated\",\n \"sources\": [\n \"Estimated from muzzle energy, bullet construction and the published anchors of this file (see _notes); refine with a datasheet.\"\n ]\n },\n {\n \"id\": \"7_62x54r:incendiary\",\n \"caliber\": \"7_62x54r\",\n \"kind\": \"incendiary\",\n \"label\": \"7.62x54R B-32 API\",\n \"bulletGrams\": 10.0,\n \"muzzleSpeed\": 830,\n \"core\": \"hardened_steel\",\n \"jacket\": \"steel\",\n \"incendiary\": true,\n \"penetration\": {\n \"steel\": 10.0,\n \"concrete\": 130,\n \"brick\": 260,\n \"wood\": 330\n },\n \"basis\": \"estimated\",\n \"sources\": [\n \"Estimated from muzzle energy, bullet construction and the published anchors of this file (see _notes); refine with a datasheet.\"\n ]\n },\n {\n \"id\": \"7_62x54r:tracer\",\n \"caliber\": \"7_62x54r\",\n \"kind\": \"tracer\",\n \"label\": \"7.62x54R T-46 tracer\",\n \"core\": \"lead\",\n \"jacket\": \"steel\",\n \"tracer\": true,\n \"penetration\": {\n \"steel\": 4.5,\n \"concrete\": 110,\n \"brick\": 220,\n \"wood\": 300\n },\n \"basis\": \"estimated\",\n \"sources\": [\n \"Estimated from muzzle energy, bullet construction and the published anchors of this file (see _notes); refine with a datasheet.\"\n ]\n },\n {\n \"id\": \"30_06:ap\",\n \"caliber\": \"30_06\",\n \"kind\": \"ap\",\n \"label\": \".30-06 M2 AP (hardened steel)\",\n \"bulletGrams\": 10.8,\n \"muzzleSpeed\": 860,\n \"core\": \"hardened_steel\",\n \"jacket\": \"gilding_metal\",\n \"penetration\": {\n \"steel\": 10.0,\n \"concrete\": 140,\n \"brick\": 270,\n \"wood\": 340\n },\n \"basis\": \"estimated\",\n \"sources\": [\n \"Estimated from muzzle energy, bullet construction and the published anchors of this file (see _notes); refine with a datasheet.\"\n ]\n },\n {\n \"id\": \"30_06:tracer\",\n \"caliber\": \"30_06\",\n \"kind\": \"tracer\",\n \"label\": \".30-06 M25 tracer\",\n \"core\": \"lead\",\n \"jacket\": \"gilding_metal\",\n \"tracer\": true,\n \"penetration\": {\n \"steel\": 4.0,\n \"concrete\": 110,\n \"brick\": 230,\n \"wood\": 320\n },\n \"basis\": \"estimated\",\n \"sources\": [\n \"Estimated from muzzle energy, bullet construction and the published anchors of this file (see _notes); refine with a datasheet.\"\n ]\n },\n {\n \"id\": \"338lapua:ap\",\n \"caliber\": \"338lapua\",\n \"kind\": \"ap\",\n \"label\": \".338 Lapua AP (tungsten)\",\n \"core\": \"tungsten_carbide\",\n \"jacket\": \"gilding_metal\",\n \"penetration\": {\n \"steel\": 16.0,\n \"concrete\": 200,\n \"brick\": 380,\n \"wood\": 470\n },\n \"basis\": \"estimated\",\n \"sources\": [\n \"Estimated from muzzle energy, bullet construction and the published anchors of this file (see _notes); refine with a datasheet.\"\n ]\n },\n {\n \"id\": \"50bmg:fmj\",\n \"caliber\": \"50bmg\",\n \"kind\": \"fmj\",\n \"label\": \".50 BMG M33 ball\",\n \"core\": \"lead_steel\",\n \"jacket\": \"gilding_metal\",\n \"penetration\": {\n \"steel\": 14.0,\n \"concrete\": 330,\n \"brick\": 560,\n \"wood\": 600\n },\n \"basis\": \"estimated\",\n \"sources\": [\n \"Estimated from muzzle energy, bullet construction and the published anchors of this file (see _notes); refine with a datasheet.\"\n ]\n },\n {\n \"id\": \"50bmg:ap\",\n \"caliber\": \"50bmg\",\n \"kind\": \"ap\",\n \"label\": \".50 BMG M2 AP (hardened steel)\",\n \"core\": \"hardened_steel\",\n \"jacket\": \"gilding_metal\",\n \"penetration\": {\n \"steel\": 22.0,\n \"concrete\": 350,\n \"brick\": 580,\n \"wood\": 600\n },\n \"basis\": \"estimated\",\n \"sources\": [\n \"Estimated from muzzle energy, bullet construction and the published anchors of this file (see _notes); refine with a datasheet.\"\n ]\n },\n {\n \"id\": \"50bmg:incendiary\",\n \"caliber\": \"50bmg\",\n \"kind\": \"incendiary\",\n \"label\": \".50 BMG M8 API\",\n \"core\": \"hardened_steel\",\n \"jacket\": \"gilding_metal\",\n \"incendiary\": true,\n \"penetration\": {\n \"steel\": 18.0,\n \"concrete\": 340,\n \"brick\": 570,\n \"wood\": 600\n },\n \"basis\": \"estimated\",\n \"sources\": [\n \"Estimated from muzzle energy, bullet construction and the published anchors of this file (see _notes); refine with a datasheet.\"\n ]\n },\n {\n \"id\": \"50bmg:tracer\",\n \"caliber\": \"50bmg\",\n \"kind\": \"tracer\",\n \"label\": \".50 BMG M17 tracer\",\n \"core\": \"lead\",\n \"jacket\": \"gilding_metal\",\n \"tracer\": true,\n \"penetration\": {\n \"steel\": 9.0,\n \"concrete\": 300,\n \"brick\": 520,\n \"wood\": 580\n },\n \"basis\": \"estimated\",\n \"sources\": [\n \"Estimated from muzzle energy, bullet construction and the published anchors of this file (see _notes); refine with a datasheet.\"\n ]\n },\n {\n \"id\": \"12ga_00buck:incendiary\",\n \"caliber\": \"12ga_00buck\",\n \"kind\": \"incendiary\",\n \"label\": \"12 ga incendiary shell (one pellet, magnesium)\",\n \"core\": \"none\",\n \"jacket\": \"none\",\n \"incendiary\": true,\n \"penetration\": {\n \"steel\": 0.1,\n \"concrete\": 3,\n \"brick\": 8,\n \"wood\": 15\n },\n \"basis\": \"estimated\",\n \"sources\": [\n \"Estimated from muzzle energy, bullet construction and the published anchors of this file (see _notes); refine with a datasheet.\"\n ]\n },\n {\n \"id\": \"45_70_bp:fmj\",\n \"caliber\": \"45_70_bp\",\n \"kind\": \"fmj\",\n \"label\": \".45-70 Government 405 gr lead\",\n \"core\": \"lead\",\n \"jacket\": \"none\",\n \"penetration\": {\n \"steel\": 2.5,\n \"concrete\": 75,\n \"brick\": 150,\n \"wood\": 240\n },\n \"basis\": \"estimated\",\n \"sources\": [\n \"Estimated from muzzle energy, bullet construction and the published anchors of this file (see _notes); refine with a datasheet.\"\n ]\n },\n {\n \"id\": \"7_62x25:fmj\",\n \"caliber\": \"7_62x25\",\n \"kind\": \"fmj\",\n \"label\": \"7.62x25 Tokarev FMJ\",\n \"core\": \"lead\",\n \"jacket\": \"steel\",\n \"penetration\": {\n \"steel\": 3.5,\n \"concrete\": 30,\n \"brick\": 60,\n \"wood\": 100\n },\n \"basis\": \"estimated\",\n \"sources\": [\n \"Estimated from muzzle energy, bullet construction and the published anchors of this file (see _notes); refine with a datasheet.\"\n ]\n },\n {\n \"id\": \"7_92x57:fmj\",\n \"caliber\": \"7_92x57\",\n \"kind\": \"fmj\",\n \"label\": \"7.92x57 s.S. ball\",\n \"core\": \"lead\",\n \"jacket\": \"gilding_metal\",\n \"penetration\": {\n \"steel\": 5.5,\n \"concrete\": 125,\n \"brick\": 250,\n \"wood\": 330\n },\n \"basis\": \"estimated\",\n \"sources\": [\n \"Estimated from muzzle energy, bullet construction and the published anchors of this file (see _notes); refine with a datasheet.\"\n ]\n },\n {\n \"id\": \"9x39:fmj\",\n \"caliber\": \"9x39\",\n \"kind\": \"fmj\",\n \"label\": \"9x39 SP-5\",\n \"core\": \"lead\",\n \"jacket\": \"gilding_metal\",\n \"penetration\": {\n \"steel\": 3.0,\n \"concrete\": 30,\n \"brick\": 70,\n \"wood\": 130\n },\n \"basis\": \"estimated\",\n \"sources\": [\n \"Estimated from muzzle energy, bullet construction and the published anchors of this file (see _notes); refine with a datasheet.\"\n ]\n }\n ]\n}","import type { HitIgnition } from '@adatechnology/game-contracts'\nimport ammoJson from './data/ammo.json'\nimport type { WeaponRules } from './rule-types'\nimport type { AmmoDef, AmmoKind, AmmoLoad, CaliberDef } from './types'\n\n/**\n * The ammo table: per calibre and kind of round, the construction (core, jacket, tracer, incendiary) and how far it goes through steel, concrete,\n * brick and wood. The notes of `data/ammo.json` say where the numbers come from (one is published, the rest are estimates to be refined).\n */\nexport const AMMO = ammoJson.loads as unknown as AmmoDef[]\n\n/** Id of a load in the table. */\nexport const ammoId = (caliber: string, kind: string): string => `${caliber}:${kind}`\n\n/** Resolves a load of `caliber` (its own kind when `kind` is left out) against the table, or null when the table has none. */\nexport const resolveLoad = (caliber: CaliberDef, ammo: ReadonlyMap<string, AmmoDef>, kind?: AmmoKind): AmmoLoad | null => {\n const k = kind ?? caliber.kind\n if (k === undefined) return null\n const def = ammo.get(ammoId(caliber.id, k))\n if (!def) return null\n const grams = def.bulletGrams ?? caliber.bulletGrams\n const speed = def.muzzleSpeed ?? caliber.muzzleSpeed\n return { def, kind: k, grams, speed, energy: 0.5 * (grams / 1000) * speed * speed, penetration: def.penetration }\n}\n\n/**\n * Chances that a round lights flammable fluid, from its construction and `rules.ignition`: the spark of the hard core and jacket on steel (they are\n * independent, 1 - (1 - core) x (1 - jacket)) and the flame of an incendiary or tracer. A lead round with a copper jacket gives about 1 percent.\n */\nexport const ammoIgnition = (def: AmmoDef, rules: WeaponRules['ignition']): HitIgnition => {\n const core = rules.core[def.core] ?? 0\n const jacket = rules.jacket[def.jacket] ?? 0\n const flame = Math.max(def.incendiary ? rules.flame.incendiary : 0, def.tracer ? rules.flame.tracer : 0)\n return { spark: 1 - (1 - core) * (1 - jacket), flame }\n}\n","[\n {\n \"id\": \"suppressor\",\n \"name\": \"Suppressor\",\n \"kind\": \"suppressor\",\n \"mounts\": [\n \"muzzle\"\n ],\n \"interfaces\": [\n \"thread_1/2x28\",\n \"thread_5/8x24\",\n \"thread_14x1lh\",\n \"thread_24x1.5\",\n \"hk_3lug\"\n ],\n \"mass\": 0.45,\n \"install\": \"tool\",\n \"model\": \"suppressor\",\n \"sources\": [\n \"arsenal\",\n \"derived\"\n ],\n \"calibers\": {\n \"maxDiameter\": 12.7,\n \"maxEnergy\": 6500\n },\n \"dims\": {\n \"length\": 0.2,\n \"diameter\": 0.045\n },\n \"removable\": true,\n \"effects\": [\n {\n \"stat\": \"noise\",\n \"mul\": 0.4\n },\n {\n \"stat\": \"noise\",\n \"mul\": 0.625,\n \"when\": \"subsonic\"\n },\n {\n \"stat\": \"muzzleSpeed\",\n \"mul\": 0.97468\n },\n {\n \"stat\": \"heatPerShot\",\n \"mul\": 1.5\n }\n ]\n },\n {\n \"id\": \"oil_filter_suppressor\",\n \"name\": \"Improvised oil filter suppressor\",\n \"kind\": \"suppressor\",\n \"mounts\": [\n \"muzzle\"\n ],\n \"interfaces\": [\n \"thread_1/2x28\",\n \"thread_5/8x24\",\n \"thread_14x1lh\",\n \"thread_24x1.5\",\n \"hk_3lug\"\n ],\n \"mass\": 0.35,\n \"install\": \"tool\",\n \"model\": \"oil_filter_suppressor\",\n \"sources\": [\n \"arsenal\",\n \"derived\"\n ],\n \"calibers\": {\n \"maxDiameter\": 9,\n \"maxEnergy\": 2500\n },\n \"dims\": {\n \"length\": 0.17,\n \"diameter\": 0.07\n },\n \"durability\": {\n \"shots\": [\n 30,\n 60\n ]\n },\n \"effects\": [\n {\n \"stat\": \"noise\",\n \"mul\": 0.6\n },\n {\n \"stat\": \"heatPerShot\",\n \"mul\": 1.5\n }\n ]\n },\n {\n \"id\": \"muzzle_brake\",\n \"name\": \"Muzzle brake\",\n \"kind\": \"muzzle_device\",\n \"mounts\": [\n \"muzzle\"\n ],\n \"interfaces\": [\n \"thread_1/2x28\",\n \"thread_5/8x24\",\n \"thread_14x1lh\",\n \"thread_24x1.5\",\n \"hk_3lug\",\n \"fixed_muzzle_device\"\n ],\n \"mass\": 0.15,\n \"install\": \"tool\",\n \"model\": \"muzzle_brake\",\n \"sources\": [\n \"arsenal\",\n \"derived\"\n ],\n \"effects\": [\n {\n \"stat\": \"recoilVertical\",\n \"mul\": 0.75\n },\n {\n \"stat\": \"recoilHorizontal\",\n \"mul\": 0.75\n },\n {\n \"stat\": \"noise\",\n \"mul\": 1.1\n }\n ]\n },\n {\n \"id\": \"muzzle_brake_heavy\",\n \"name\": \"Heavy muzzle brake\",\n \"kind\": \"muzzle_device\",\n \"mounts\": [\n \"muzzle\"\n ],\n \"interfaces\": [\n \"thread_1/2x28\",\n \"thread_5/8x24\",\n \"thread_14x1lh\",\n \"thread_24x1.5\",\n \"hk_3lug\",\n \"fixed_muzzle_device\"\n ],\n \"mass\": 0.35,\n \"install\": \"tool\",\n \"model\": \"muzzle_brake_heavy\",\n \"sources\": [\n \"arsenal\",\n \"derived\"\n ],\n \"effects\": [\n {\n \"stat\": \"recoilVertical\",\n \"mul\": 0.75\n },\n {\n \"stat\": \"recoilHorizontal\",\n \"mul\": 0.75\n },\n {\n \"stat\": \"noise\",\n \"mul\": 1.1\n }\n ]\n },\n {\n \"id\": \"compensator\",\n \"name\": \"Compensator\",\n \"kind\": \"muzzle_device\",\n \"mounts\": [\n \"muzzle\"\n ],\n \"interfaces\": [\n \"thread_1/2x28\",\n \"thread_5/8x24\",\n \"thread_14x1lh\",\n \"thread_24x1.5\",\n \"hk_3lug\",\n \"fixed_muzzle_device\"\n ],\n \"mass\": 0.1,\n \"install\": \"tool\",\n \"model\": \"compensator\",\n \"sources\": [\n \"arsenal\",\n \"derived\"\n ],\n \"effects\": [\n {\n \"stat\": \"recoilVertical\",\n \"mul\": 0.75\n },\n {\n \"stat\": \"recoilHorizontal\",\n \"mul\": 0.75\n },\n {\n \"stat\": \"noise\",\n \"mul\": 1.1\n }\n ]\n },\n {\n \"id\": \"red_dot\",\n \"name\": \"Red dot sight\",\n \"kind\": \"optic\",\n \"mounts\": [\n \"rail_top\",\n \"rail_left\"\n ],\n \"interfaces\": [\n \"picatinny\",\n \"ak_side\"\n ],\n \"mass\": 0.15,\n \"install\": \"tool\",\n \"model\": \"red_dot\",\n \"sources\": [\n \"arsenal\",\n \"derived\"\n ],\n \"optic\": {\n \"zoom\": [\n 1,\n 1\n ],\n \"reticle\": \"dot\"\n },\n \"effects\": [\n {\n \"stat\": \"aim\",\n \"mul\": 0.8\n }\n ]\n },\n {\n \"id\": \"holographic_sight\",\n \"name\": \"Holographic sight\",\n \"kind\": \"optic\",\n \"mounts\": [\n \"rail_top\",\n \"rail_left\"\n ],\n \"interfaces\": [\n \"picatinny\",\n \"ak_side\"\n ],\n \"mass\": 0.3,\n \"install\": \"tool\",\n \"model\": \"holographic_sight\",\n \"sources\": [\n \"arsenal\",\n \"derived\"\n ],\n \"optic\": {\n \"zoom\": [\n 1,\n 1\n ],\n \"reticle\": \"holo\"\n },\n \"effects\": [\n {\n \"stat\": \"aim\",\n \"mul\": 0.8\n }\n ]\n },\n {\n \"id\": \"acog_4x\",\n \"name\": \"ACOG 4x\",\n \"kind\": \"optic\",\n \"mounts\": [\n \"rail_top\",\n \"rail_left\"\n ],\n \"interfaces\": [\n \"picatinny\",\n \"ak_side\"\n ],\n \"mass\": 0.4,\n \"install\": \"tool\",\n \"model\": \"acog_4x\",\n \"sources\": [\n \"arsenal\",\n \"derived\"\n ],\n \"optic\": {\n \"zoom\": [\n 4,\n 4\n ],\n \"reticle\": \"chevron\"\n },\n \"effects\": [\n {\n \"stat\": \"aim\",\n \"mul\": 1.1\n }\n ]\n },\n {\n \"id\": \"scope_3_9x\",\n \"name\": \"Rifle scope 3-9x\",\n \"kind\": \"optic\",\n \"mounts\": [\n \"rail_top\",\n \"rail_left\"\n ],\n \"interfaces\": [\n \"picatinny\",\n \"ak_side\",\n \"dovetail\"\n ],\n \"mass\": 0.6,\n \"install\": \"tool\",\n \"model\": \"scope_3_9x\",\n \"sources\": [\n \"arsenal\",\n \"derived\"\n ],\n \"optic\": {\n \"zoom\": [\n 3,\n 9\n ],\n \"reticle\": \"duplex\"\n },\n \"effects\": [\n {\n \"stat\": \"aim\",\n \"mul\": 1.15\n }\n ]\n },\n {\n \"id\": \"scope_6_24x\",\n \"name\": \"Rifle scope 6-24x\",\n \"kind\": \"optic\",\n \"mounts\": [\n \"rail_top\",\n \"rail_left\"\n ],\n \"interfaces\": [\n \"picatinny\",\n \"ak_side\",\n \"dovetail\"\n ],\n \"mass\": 1.1,\n \"install\": \"tool\",\n \"model\": \"scope_6_24x\",\n \"sources\": [\n \"arsenal\",\n \"derived\"\n ],\n \"optic\": {\n \"zoom\": [\n 6,\n 24\n ],\n \"reticle\": \"mildot\"\n },\n \"effects\": [\n {\n \"stat\": \"aim\",\n \"mul\": 1.25\n }\n ]\n },\n {\n \"id\": \"night_vision_scope\",\n \"name\": \"Night vision scope\",\n \"kind\": \"optic\",\n \"mounts\": [\n \"rail_top\",\n \"rail_left\"\n ],\n \"interfaces\": [\n \"picatinny\",\n \"ak_side\",\n \"dovetail\"\n ],\n \"mass\": 0.9,\n \"install\": \"tool\",\n \"model\": \"night_vision_scope\",\n \"sources\": [\n \"arsenal\",\n \"derived\"\n ],\n \"optic\": {\n \"zoom\": [\n 1,\n 4\n ],\n \"reticle\": \"duplex\",\n \"vision\": \"night\",\n \"batteryHours\": 40\n },\n \"effects\": [\n {\n \"stat\": \"aim\",\n \"mul\": 1.2\n }\n ]\n },\n {\n \"id\": \"thermal_scope\",\n \"name\": \"Thermal scope\",\n \"kind\": \"optic\",\n \"mounts\": [\n \"rail_top\",\n \"rail_left\"\n ],\n \"interfaces\": [\n \"picatinny\",\n \"ak_side\",\n \"dovetail\"\n ],\n \"mass\": 1.2,\n \"install\": \"tool\",\n \"model\": \"thermal_scope\",\n \"sources\": [\n \"arsenal\",\n \"derived\"\n ],\n \"optic\": {\n \"zoom\": [\n 1,\n 4\n ],\n \"reticle\": \"duplex\",\n \"vision\": \"thermal\",\n \"batteryHours\": 8\n },\n \"effects\": [\n {\n \"stat\": \"aim\",\n \"mul\": 1.2\n }\n ]\n },\n {\n \"id\": \"integral_optic_1_5x\",\n \"name\": \"Integral 1.5x optic of the AUG\",\n \"kind\": \"optic\",\n \"mounts\": [\n \"rail_top\"\n ],\n \"interfaces\": [\n \"integral\",\n \"pso_1_side\"\n ],\n \"mass\": 0.2,\n \"install\": \"bench\",\n \"model\": \"integral_optic_1_5x\",\n \"sources\": [\n \"gallery\",\n \"reference\"\n ],\n \"optic\": {\n \"zoom\": [\n 1.5,\n 1.5\n ],\n \"reticle\": \"duplex\"\n },\n \"removable\": false,\n \"effects\": []\n },\n {\n \"id\": \"pso_1\",\n \"name\": \"PSO-1 scope\",\n \"kind\": \"optic\",\n \"mounts\": [\n \"rail_top\"\n ],\n \"interfaces\": [\n \"integral\",\n \"pso_1_side\"\n ],\n \"mass\": 0.6,\n \"install\": \"bench\",\n \"model\": \"pso_1\",\n \"sources\": [\n \"gallery\",\n \"reference\"\n ],\n \"optic\": {\n \"zoom\": [\n 4,\n 4\n ],\n \"reticle\": \"chevron\"\n },\n \"removable\": false,\n \"effects\": []\n },\n {\n \"id\": \"fixed_scope_10x\",\n \"name\": \"Fixed 10x scope of the M24\",\n \"kind\": \"optic\",\n \"mounts\": [\n \"rail_top\"\n ],\n \"interfaces\": [\n \"integral\",\n \"pso_1_side\"\n ],\n \"mass\": 0.8,\n \"install\": \"bench\",\n \"model\": \"fixed_scope_10x\",\n \"sources\": [\n \"gallery\",\n \"reference\"\n ],\n \"optic\": {\n \"zoom\": [\n 10,\n 10\n ],\n \"reticle\": \"mildot\"\n },\n \"removable\": false,\n \"effects\": []\n },\n {\n \"id\": \"vertical_grip\",\n \"name\": \"Vertical foregrip\",\n \"kind\": \"grip\",\n \"mounts\": [\n \"rail_bottom\"\n ],\n \"interfaces\": [\n \"picatinny\",\n \"mlok\"\n ],\n \"mass\": 0.15,\n \"install\": \"field\",\n \"model\": \"vertical_grip\",\n \"sources\": [\n \"arsenal\",\n \"derived\"\n ],\n \"dims\": {\n \"length\": 0.1\n },\n \"effects\": [\n {\n \"stat\": \"recoilVertical\",\n \"mul\": 0.85\n }\n ]\n },\n {\n \"id\": \"bipod\",\n \"name\": \"Bipod\",\n \"kind\": \"bipod\",\n \"mounts\": [\n \"rail_bottom\"\n ],\n \"interfaces\": [\n \"picatinny\",\n \"bipod_stud\"\n ],\n \"mass\": 0.4,\n \"install\": \"field\",\n \"model\": \"bipod\",\n \"sources\": [\n \"gallery\",\n \"arsenal\",\n \"derived\"\n ],\n \"effects\": [\n {\n \"stat\": \"recoilVertical\",\n \"mul\": 0.4,\n \"when\": \"supported\"\n },\n {\n \"stat\": \"recoilHorizontal\",\n \"mul\": 0.4,\n \"when\": \"supported\"\n }\n ]\n },\n {\n \"id\": \"m203\",\n \"name\": \"M203 grenade launcher\",\n \"kind\": \"underbarrel\",\n \"mounts\": [\n \"underbarrel\"\n ],\n \"interfaces\": [\n \"m203\"\n ],\n \"mass\": 1.36,\n \"install\": \"bench\",\n \"model\": \"m203\",\n \"sources\": [\n \"arsenal\",\n \"reference\"\n ],\n \"blocks\": [\n \"rail_bottom\"\n ],\n \"categories\": [\n \"rifle\",\n \"carbine\",\n \"dmr\"\n ],\n \"launcher\": \"m203\",\n \"dims\": {\n \"length\": 0.38\n },\n \"effects\": []\n },\n {\n \"id\": \"gp_25\",\n \"name\": \"GP-25 grenade launcher\",\n \"kind\": \"underbarrel\",\n \"mounts\": [\n \"underbarrel\"\n ],\n \"interfaces\": [\n \"gp25\"\n ],\n \"mass\": 1.5,\n \"install\": \"bench\",\n \"model\": \"gp_25\",\n \"sources\": [\n \"reference\"\n ],\n \"blocks\": [\n \"rail_bottom\"\n ],\n \"categories\": [\n \"rifle\",\n \"carbine\",\n \"dmr\"\n ],\n \"launcher\": \"gp_25\",\n \"dims\": {\n \"length\": 0.323\n },\n \"effects\": []\n },\n {\n \"id\": \"ag36\",\n \"name\": \"AG36 grenade launcher\",\n \"kind\": \"underbarrel\",\n \"mounts\": [\n \"underbarrel\"\n ],\n \"interfaces\": [\n \"ag36\"\n ],\n \"mass\": 1.5,\n \"install\": \"bench\",\n \"model\": \"ag36\",\n \"sources\": [\n \"reference\"\n ],\n \"blocks\": [\n \"rail_bottom\"\n ],\n \"categories\": [\n \"rifle\",\n \"carbine\",\n \"dmr\"\n ],\n \"launcher\": \"ag36\",\n \"dims\": {\n \"length\": 0.35\n },\n \"effects\": []\n },\n {\n \"id\": \"weapon_light\",\n \"name\": \"Weapon light\",\n \"kind\": \"light\",\n \"mounts\": [\n \"rail_left\",\n \"rail_right\",\n \"rail_bottom\"\n ],\n \"interfaces\": [\n \"picatinny\",\n \"mlok\"\n ],\n \"mass\": 0.12,\n \"install\": \"field\",\n \"model\": \"weapon_light\",\n \"sources\": [\n \"arsenal\",\n \"derived\"\n ],\n \"light\": {\n \"coneDeg\": 30,\n \"range\": 60,\n \"visibleFrom\": 40,\n \"batteryHours\": 20\n },\n \"dims\": {\n \"length\": 0.1,\n \"diameter\": 0.03\n },\n \"effects\": []\n },\n {\n \"id\": \"laser_sight\",\n \"name\": \"Laser sight\",\n \"kind\": \"laser\",\n \"mounts\": [\n \"rail_left\",\n \"rail_right\",\n \"rail_bottom\"\n ],\n \"interfaces\": [\n \"picatinny\",\n \"mlok\"\n ],\n \"mass\": 0.1,\n \"install\": \"field\",\n \"model\": \"laser_sight\",\n \"sources\": [\n \"arsenal\",\n \"derived\"\n ],\n \"laser\": {\n \"color\": 16711680,\n \"range\": 120,\n \"visibleFrom\": 30\n },\n \"dims\": {\n \"length\": 0.08,\n \"diameter\": 0.025\n },\n \"effects\": [\n {\n \"stat\": \"hipSpreadExcess\",\n \"mul\": 0.5,\n \"when\": \"hip\"\n }\n ]\n },\n {\n \"id\": \"extended_magazine\",\n \"name\": \"Extended magazine\",\n \"kind\": \"magazine\",\n \"mounts\": [\n \"magazine\"\n ],\n \"interfaces\": [\n \"mag_box\",\n \"mag_curved\",\n \"mag_pistol\"\n ],\n \"mass\": 0.15,\n \"install\": \"field\",\n \"model\": \"extended_magazine\",\n \"sources\": [\n \"arsenal\",\n \"derived\"\n ],\n \"categories\": [\n \"pistol\",\n \"smg\",\n \"rifle\",\n \"carbine\",\n \"dmr\",\n \"machine_gun\"\n ],\n \"effects\": [\n {\n \"stat\": \"capacity\",\n \"mul\": 1.5\n },\n {\n \"stat\": \"reload\",\n \"mul\": 1.15\n }\n ]\n },\n {\n \"id\": \"drum_magazine\",\n \"name\": \"Drum magazine\",\n \"kind\": \"magazine\",\n \"mounts\": [\n \"magazine\"\n ],\n \"interfaces\": [\n \"mag_box\",\n \"mag_curved\"\n ],\n \"mass\": 1.2,\n \"install\": \"field\",\n \"model\": \"drum_magazine\",\n \"sources\": [\n \"arsenal\",\n \"derived\"\n ],\n \"categories\": [\n \"smg\",\n \"rifle\",\n \"carbine\",\n \"dmr\",\n \"machine_gun\"\n ],\n \"effects\": [\n {\n \"stat\": \"capacity\",\n \"set\": 75\n },\n {\n \"stat\": \"faultChance\",\n \"mul\": 1.5\n },\n {\n \"stat\": \"reload\",\n \"mul\": 1.3\n }\n ]\n },\n {\n \"id\": \"dual_coupler\",\n \"name\": \"Dual magazine coupler\",\n \"kind\": \"magazine\",\n \"mounts\": [\n \"magazine\"\n ],\n \"interfaces\": [\n \"mag_box\",\n \"mag_curved\"\n ],\n \"mass\": 0.1,\n \"install\": \"field\",\n \"model\": \"dual_coupler\",\n \"sources\": [\n \"arsenal\",\n \"derived\"\n ],\n \"secondReload\": true,\n \"categories\": [\n \"smg\",\n \"rifle\",\n \"carbine\",\n \"dmr\",\n \"machine_gun\"\n ],\n \"effects\": [\n {\n \"stat\": \"reload\",\n \"mul\": 0.5\n }\n ]\n },\n {\n \"id\": \"sawn_off_barrel\",\n \"name\": \"Sawn-off barrel\",\n \"kind\": \"barrel\",\n \"mounts\": [\n \"barrel\"\n ],\n \"interfaces\": [\n \"barrel_swap\"\n ],\n \"mass\": -0.4,\n \"install\": \"bench\",\n \"model\": \"sawn_off_barrel\",\n \"sources\": [\n \"arsenal\",\n \"derived\"\n ],\n \"categories\": [\n \"shotgun\"\n ],\n \"effects\": [\n {\n \"stat\": \"spread\",\n \"mul\": 1.6\n },\n {\n \"stat\": \"range\",\n \"mul\": 0.6\n },\n {\n \"stat\": \"draw\",\n \"mul\": 0.8\n }\n ]\n },\n {\n \"id\": \"long_barrel\",\n \"name\": \"Long barrel\",\n \"kind\": \"barrel\",\n \"mounts\": [\n \"barrel\"\n ],\n \"interfaces\": [\n \"barrel_swap\"\n ],\n \"mass\": 0.4,\n \"install\": \"bench\",\n \"model\": \"long_barrel\",\n \"sources\": [\n \"arsenal\",\n \"derived\"\n ],\n \"categories\": [\n \"shotgun\"\n ],\n \"effects\": [\n {\n \"stat\": \"range\",\n \"mul\": 1.2\n },\n {\n \"stat\": \"muzzleSpeed\",\n \"mul\": 1.03\n }\n ]\n },\n {\n \"id\": \"sling\",\n \"name\": \"Sling\",\n \"kind\": \"sling\",\n \"mounts\": [\n \"sling\"\n ],\n \"interfaces\": [\n \"swivel\"\n ],\n \"mass\": 0.15,\n \"install\": \"field\",\n \"model\": \"sling\",\n \"sources\": [\n \"derived\"\n ],\n \"stowable\": true,\n \"categories\": [\n \"smg\",\n \"rifle\",\n \"carbine\",\n \"sniper\",\n \"dmr\",\n \"hunting\",\n \"machine_gun\",\n \"shotgun\"\n ],\n \"effects\": [\n {\n \"stat\": \"draw\",\n \"mul\": 0.85\n }\n ]\n },\n {\n \"id\": \"ammo_backpack\",\n \"name\": \"Ammunition backpack\",\n \"kind\": \"feed\",\n \"mounts\": [\n \"feed\"\n ],\n \"interfaces\": [\n \"belt\"\n ],\n \"mass\": 1.5,\n \"install\": \"field\",\n \"model\": \"ammo_backpack\",\n \"sources\": [\n \"derived\"\n ],\n \"carry\": \"back\",\n \"categories\": [\n \"machine_gun\",\n \"rifle\"\n ],\n \"effects\": [\n {\n \"stat\": \"capacity\",\n \"set\": 500\n }\n ]\n },\n {\n \"id\": \"tripod\",\n \"name\": \"Tripod mount\",\n \"kind\": \"mount\",\n \"mounts\": [\n \"underbarrel\"\n ],\n \"interfaces\": [\n \"tripod\"\n ],\n \"mass\": 6,\n \"install\": \"bench\",\n \"model\": \"tripod\",\n \"sources\": [\n \"derived\"\n ],\n \"categories\": [\n \"machine_gun\"\n ],\n \"effects\": [\n {\n \"stat\": \"recoilVertical\",\n \"mul\": 0.4\n },\n {\n \"stat\": \"recoilHorizontal\",\n \"mul\": 0.4\n },\n {\n \"stat\": \"spread\",\n \"mul\": 0.7\n }\n ]\n },\n {\n \"id\": \"integral_suppressor\",\n \"name\": \"Integral suppressor\",\n \"kind\": \"suppressor\",\n \"mounts\": [\n \"muzzle\"\n ],\n \"interfaces\": [\n \"integral\"\n ],\n \"mass\": 0.45,\n \"install\": \"bench\",\n \"model\": \"integral_suppressor\",\n \"sources\": [\n \"reference\",\n \"derived\"\n ],\n \"dims\": {\n \"length\": 0.2,\n \"diameter\": 0.045\n },\n \"removable\": false,\n \"effects\": [\n {\n \"stat\": \"noise\",\n \"mul\": 0.4\n },\n {\n \"stat\": \"noise\",\n \"mul\": 0.625,\n \"when\": \"subsonic\"\n },\n {\n \"stat\": \"muzzleSpeed\",\n \"mul\": 0.97468\n },\n {\n \"stat\": \"heatPerShot\",\n \"mul\": 1.5\n }\n ]\n },\n {\n \"id\": \"integral_optic_3x\",\n \"name\": \"Integral 3x optic of the G36\",\n \"kind\": \"optic\",\n \"mounts\": [\n \"rail_top\"\n ],\n \"interfaces\": [\n \"integral\"\n ],\n \"mass\": 0.3,\n \"install\": \"bench\",\n \"model\": \"integral_optic_3x\",\n \"sources\": [\n \"reference\",\n \"derived\"\n ],\n \"optic\": {\n \"zoom\": [\n 3,\n 3\n ],\n \"reticle\": \"duplex\"\n },\n \"removable\": false,\n \"effects\": []\n }\n]\n","import type { Vec3 } from './destruction'\n\n/**\n * The numbers of the shove a blast gives to a body that moves (a loose item, a piece of furniture, a person): all of them a game value, with a default that reads well in a room,\n * not a physical table. A host reads them once and lends them to the modules that move their own bodies (`ModuleHost.blastShove`).\n */\nexport interface BlastShoveOptions {\n /**\n * The share of the blast energy that reaches a body as motion: the speed at the centre is `sqrt(2 * energy * coupling / mass)`, before the falloff (default 0.02).\n */\n readonly coupling?: number\n /** Fastest a body is thrown, in m/s, at the centre of the blast (default 20). */\n readonly maxSpeed?: number\n /** How much of the push goes up: the direction is `(away, lift)` normalised from the horizontal outward direction (default 0.3). */\n readonly lift?: number\n /** Below this speed (m/s) nothing moves: a heavy thing far from a small blast stays where it is (default 0.3). */\n readonly minSpeed?: number\n /** Exponent of the falloff `(1 - distance / radius) ^ power`, the same as the damage of the destruction world (default 2). */\n readonly falloffPower?: number\n}\n\n/** The defaults of `BlastShoveOptions`. */\nexport const DEFAULT_BLAST_SHOVE: Readonly<Required<BlastShoveOptions>> = { coupling: 0.02, maxSpeed: 20, lift: 0.3, minSpeed: 0.3, falloffPower: 2 }\n\n/** A blast as the shove reads it: where, how much energy (J) and how far it reaches (m). `reach` (0..1) is the share that got through what stood in the way. */\nexport interface BlastSource {\n readonly point: Vec3\n readonly energy: number\n readonly radius: number\n readonly reach?: number\n /**\n * Kilograms of TNT equivalent of the charge. With it a body is pushed by the blast wave itself (`blast-impulse`), and the shove of loose items keeps this module's rule; without it the body\n * takes the charge from `energy` by `BlastImpulseOptions.tntPerJoule`.\n */\n readonly tnt?: number\n /** Inside this radius (metres) the blast is lethal: a body there that the blast reaches (not behind cover) goes down, wounded, wherever the wave pushed it. */\n readonly lethalRadius?: number\n}\n\n/** What a blast does to one body: how fast it leaves (m/s), the unit direction it leaves in, and how far from the centre it was. */\nexport interface BlastShove {\n readonly speed: number\n readonly direction: Vec3\n readonly distance: number\n /** The falloff applied, 0..1. */\n readonly falloff: number\n}\n\nconst clampShare = (share: number): number => Math.min(1, Math.max(0, share))\n\n/**\n * The shove a blast gives to a body of `mass` kg whose centre is at `position`: away from the centre, lifted a little, with the speed\n * `sqrt(reach) * min(maxSpeed, sqrt(2 * energy * coupling / mass)) * (1 - distance / radius) ^ 2`. Undefined when the body is outside the radius or the speed is under `minSpeed`.\n * The same rule moves the loose items and furniture of the test room and the people of the characters module, so a game that tunes the options tunes all of them.\n */\nexport function blastShove(blast: BlastSource, target: { readonly position: Vec3; readonly mass: number }, options: BlastShoveOptions = {}): BlastShove | undefined {\n const o = { ...DEFAULT_BLAST_SHOVE, ...options }\n const dx = target.position[0] - blast.point[0]\n const dy = target.position[1] - blast.point[1]\n const dz = target.position[2] - blast.point[2]\n const distance = Math.hypot(dx, dy, dz)\n if (!(blast.radius > 0) || distance > blast.radius) return undefined\n const falloff = (1 - distance / blast.radius) ** o.falloffPower\n const mass = Math.max(target.mass, 0.05)\n // cover takes its share off the push itself, past the cap too: a light thing behind a cupboard is not thrown as fast as one in the open\n const reach = clampShare(blast.reach ?? 1)\n const speed = Math.sqrt(reach) * Math.min(o.maxSpeed, Math.sqrt((2 * blast.energy * o.coupling) / mass)) * falloff\n if (!(speed >= o.minSpeed)) return undefined\n // straight above or below the centre there is no \"away\": the push goes up\n const direction: Vec3 = distance > 1e-4 ? [dx / distance, dy / distance + o.lift, dz / distance] : [0, 1, 0]\n const length = Math.hypot(direction[0], direction[1], direction[2])\n return { speed, direction: [direction[0] / length, direction[1] / length, direction[2] / length], distance, falloff }\n}\n","/**\n * The push a blast gives a standing body, from the physics of the blast wave and not from a game coupling: the impulse of the wave per square metre at a distance from a charge of\n * `tnt` kg of TNT equivalent (Kinney and Graham's fit of the side-on impulse, scaled by the cube root of the charge), reflected on the body, over the area the body shows the wave,\n * divided by its mass. A hand grenade at 3 m gives a person a few tenths of a metre per second; what floors that person is the fragments, not the wave. A big charge close throws.\n */\n\n/** The numbers of the body a blast wave pushes. All have a default for a standing adult. */\nexport interface BlastImpulseOptions {\n /** Square metres of the body the wave meets: about 1.75 m tall by 0.4 m wide (default 0.7). */\n readonly bodyArea?: number\n /** How much of the push goes up: the direction is `(away, lift)` normalised (default 0.15: the wave runs along the ground). */\n readonly lift?: number\n /** Below this speed (m/s) the body does not move (default 0.3). */\n readonly minSpeed?: number\n /**\n * Kilograms of TNT per joule of the blast `energy`, for a blast that does not say its charge (`BlastSource.tnt`). Default 0.24 / 200000: the arsenal's energy scale, where the M67 (180 g\n * of Composition B, 0.24 kg of TNT) is 200 kJ. It is a game equivalence for blasts without a charge, not a physical constant.\n */\n readonly tntPerJoule?: number\n}\n\nexport const DEFAULT_BLAST_IMPULSE: Readonly<Required<BlastImpulseOptions>> = { bodyArea: 0.7, lift: 0.15, minSpeed: 0.3, tntPerJoule: 0.24 / 200000 }\n\n/** Closest distance (m) the fit is read at: inside it the charge is in contact and the body is torn apart anyway. */\nconst NEAREST = 0.3\n\n/**\n * Side-on (incident) specific impulse of the wave, in Pa·s, at `distance` metres from `tnt` kg of TNT in free air: Kinney and Graham, \"Explosive Shocks in Air\" (1985),\n * `I/W^(1/3) = 0.067 sqrt(1 + (Z/0.23)^4) / (Z^2 (1 + (Z/1.55)^3)^(1/3))` bar·ms per kg^(1/3), with the scaled distance `Z = R / W^(1/3)`.\n */\nexport function sideOnImpulse(tnt: number, distance: number): number {\n if (!(tnt > 0)) return 0\n const w3 = Math.cbrt(tnt)\n const z = Math.max(distance, NEAREST) / w3\n const scaled = (0.067 * Math.sqrt(1 + (z / 0.23) ** 4)) / (z * z * Math.cbrt(1 + (z / 1.55) ** 3))\n return scaled * w3 * 100 // bar·ms to Pa·s\n}\n\n/** Sea-level atmospheric pressure, Pa. */\nconst ATMOSPHERE = 101325\n\n/**\n * Peak side-on (incident) overpressure of the wave, in Pa, at `distance` metres from `tnt` kg of TNT in free air: Kinney and Graham, \"Explosive Shocks in Air\" (1985),\n * `Ps/Pa = 808 (1 + (Z/4.5)^2) / (sqrt(1 + (Z/0.048)^2) sqrt(1 + (Z/0.32)^2) sqrt(1 + (Z/1.35)^2))`, with the scaled distance `Z = R / W^(1/3)` (m/kg^(1/3)).\n * What a wall takes from a blast is read against it: about 7 kPa cracks plaster and breaks windows, 14 to 20 kPa knocks parts of a brick wall out, 35 kPa and over brings an\n * unreinforced brick wall down (Glasstone and Dolan, \"The Effects of Nuclear Weapons\", 1977, table 5.139; UFC 3-340-02).\n */\nexport function sideOnOverpressure(tnt: number, distance: number): number {\n if (!(tnt > 0)) return 0\n const z = Math.max(distance, NEAREST) / Math.cbrt(tnt)\n const ratio = (808 * (1 + (z / 4.5) ** 2)) / (Math.sqrt(1 + (z / 0.048) ** 2) * Math.sqrt(1 + (z / 0.32) ** 2) * Math.sqrt(1 + (z / 1.35) ** 2))\n return ratio * ATMOSPHERE\n}\n\n/**\n * The impulse per square metre a body facing the wave takes, Pa·s: the side-on impulse reflected. The reflection doubles a weak wave and grows up to about six times close to the charge,\n * where the wave is strong (the ratio of reflected to side-on impulse of the Kingery-Bulmash charts, fitted as `2 + 4 / (1 + Z^2)`).\n */\nexport function bodyImpulse(tnt: number, distance: number): number {\n if (!(tnt > 0)) return 0\n const z = Math.max(distance, NEAREST) / Math.cbrt(tnt)\n return sideOnImpulse(tnt, distance) * (2 + 4 / (1 + z * z))\n}\n\n/** The speed (m/s) a blast wave gives a free body of `mass` kg at `distance` metres from `tnt` kg of TNT, `reach` (0..1) of it getting through what stands in the way. */\nexport function blastBodySpeed(tnt: number, distance: number, mass: number, reach = 1, options: BlastImpulseOptions = {}): number {\n const area = options.bodyArea ?? DEFAULT_BLAST_IMPULSE.bodyArea\n return (bodyImpulse(tnt, distance) * area * Math.max(0, reach)) / Math.max(mass, 1)\n}\n","import { blastBodySpeed, DEFAULT_BLAST_IMPULSE } from './blast-impulse'\nimport type { BlastImpulseOptions } from './blast-impulse'\nimport type { BlastShoveOptions, BlastSource } from './blast-shove'\nimport type { Vec3 } from './destruction'\n\n/** From this speed (m/s) a blast takes a standing body off its feet. Below it the body is only pushed. */\nexport const KNOCK_DOWN_SPEED = 2.5\n/** The angle of a body lying where it fell (the same tilt a dead body takes). */\nexport const KNOCKED_DOWN_ANGLE = 1.35\n/** Seconds the body lies after it lands: this plus the landing speed times `STAND_UP_PER_SPEED`. */\nconst LIE_SECONDS = 1.6\n/** Seconds a body floored by its wounds (inside the lethal radius) lies before it gets up, when it is not dead. */\nconst WOUNDED_LIE_SECONDS = 6\n/** The share of the blast that has to get through for its fragments to reach a body: behind cover that stops half of it the fragments stop too. */\nexport const FRAGMENT_COVER = 0.5\n/** Seconds a body is stunned at the edge of the lethal radius (the ringing ears, the dizziness); it falls with the square of the way to the edge of the blast. */\nconst STUN_SECONDS = 4\nconst STAND_UP_PER_SPEED = 0.25\nconst FALL_SECONDS = 0.25\nconst RISE_SECONDS = 0.6\n/** m/s squared that slows a body sliding on the ground. */\nconst GROUND_FRICTION = 7\nconst GRAVITY = 9.81\n/** Height of the chest above the feet: where the blast takes the body. */\nexport const KNOCK_CHEST = 1.1\nconst CHEST = KNOCK_CHEST\n\n/** What a blast is doing to one body: its velocity (m/s), whether it is in the air, and how far down it is (0 on its feet, 1 lying). */\nexport interface Knock {\n velocity: [number, number, number]\n airborne: boolean\n /** 0..1 */\n lying: number\n /** Seconds left to lie on the ground after it stopped. */\n lieLeft: number\n /** Knocked off its feet by this blast. */\n down: boolean\n /** Floored by its wounds: inside the lethal radius and not behind cover. It lies longer and falls where it stood. */\n wounded?: boolean\n /** Seconds of stun the blast gave the body: dizziness and ringing ears. */\n stunSeconds?: number\n /** The horizontal unit direction away from the blast, even when the push is too weak to move the body: the way it falls. */\n away?: Vec3\n}\n\n/** The mass of a body in kg from its height (m) and its build (1 = average): 70 kg at 1.75 m. */\nexport const bodyMass = (height: number, build = 1): number => 70 * (height / 1.75) ** 2 * build\n\n/**\n * What a blast does to a body standing at `feet`, of `mass` kg. Undefined when the blast does not reach it or does nothing to it.\n *\n * The body is pushed by the blast wave (`blastBodySpeed`, from the charge `blast.tnt`, or from `energy` by `tntPerJoule`), taken at the chest and cut by `reach`, the share that got through\n * cover. It is floored when that push is `KNOCK_DOWN_SPEED` or more, or when it stands inside `lethalRadius` with the blast reaching it (the fragments and the overpressure fell it where it\n * stands). It is stunned for a while inside the radius. `options` are the shove numbers of the host's loose items; only their `minSpeed` applies to a body.\n */\nexport function knockOf(blast: BlastSource, feet: Vec3, mass: number, options?: BlastShoveOptions, impulse: BlastImpulseOptions = {}): Knock | undefined {\n const o = { ...DEFAULT_BLAST_IMPULSE, ...impulse }\n const chest: Vec3 = [feet[0], feet[1] + CHEST, feet[2]]\n const dx = chest[0] - blast.point[0]\n const dy = chest[1] - blast.point[1]\n const dz = chest[2] - blast.point[2]\n const distance = Math.hypot(dx, dy, dz)\n if (!(blast.radius > 0) || distance > blast.radius) return undefined\n const reach = Math.max(0, Math.min(1, blast.reach ?? 1))\n const tnt = blast.tnt ?? blast.energy * o.tntPerJoule\n let speed = blastBodySpeed(tnt, distance, mass, reach, o)\n const minSpeed = impulse.minSpeed ?? options?.minSpeed ?? o.minSpeed\n if (speed < minSpeed) speed = 0\n const struck = reach >= FRAGMENT_COVER\n const wounded = struck && blast.lethalRadius !== undefined && distance <= blast.lethalRadius\n const edge = 1 - distance / blast.radius\n const stunSeconds = struck ? STUN_SECONDS * edge * edge * reach : 0\n if (speed === 0 && !wounded && stunSeconds < 0.25) return undefined\n // straight above or below the centre there is no \"away\": the push goes up\n const horizontal = Math.hypot(dx, dz)\n const away: Vec3 = horizontal > 1e-4 ? [dx / horizontal, o.lift, dz / horizontal] : [0, 1, 0]\n const length = Math.hypot(away[0], away[1], away[2])\n const velocity: [number, number, number] = [(away[0] / length) * speed, (away[1] / length) * speed, (away[2] / length) * speed]\n return {\n velocity,\n airborne: velocity[1] > 0.5,\n lying: 0,\n lieLeft: wounded ? WOUNDED_LIE_SECONDS : 0,\n away: horizontal > 1e-4 ? [dx / horizontal, 0, dz / horizontal] : [0, 0, 0],\n down: speed >= KNOCK_DOWN_SPEED || wounded,\n ...(wounded ? { wounded } : {}),\n ...(stunSeconds >= 0.25 ? { stunSeconds } : {}),\n }\n}\n\n/**\n * Moves a body one step: it slides on the ground and slows, falls when it was knocked down, lies a while and gets up (a dead body stays down). Moves `position` in place; returns true when the\n * body is on its feet and still, and the knock can be dropped.\n */\nexport function stepKnock(knock: Knock, position: { x: number; y: number; z: number }, dt: number, groundAt: (x: number, z: number) => number, alive: boolean): boolean {\n const v = knock.velocity\n position.x += v[0] * dt\n position.z += v[2] * dt\n const ground = groundAt(position.x, position.z)\n if (knock.airborne || position.y > ground + 1e-4) {\n v[1] -= GRAVITY * dt\n position.y += v[1] * dt\n if (position.y <= ground) {\n position.y = ground\n v[1] = 0\n knock.airborne = false\n }\n } else position.y = ground\n const horizontal = Math.hypot(v[0], v[2])\n if (!knock.airborne && horizontal > 0) {\n const slowed = Math.max(0, horizontal - GROUND_FRICTION * dt)\n v[0] *= slowed / horizontal\n v[2] *= slowed / horizontal\n }\n const moving = horizontal > 0.05 || knock.airborne\n if (knock.down) {\n // a body floored where it stands (its wounds, not the push) still takes the time of a fall to reach the ground\n if (moving || knock.lying < 1) knock.lying = Math.min(1, knock.lying + dt / FALL_SECONDS)\n else if (alive) {\n knock.lieLeft = knock.lieLeft > 0 ? knock.lieLeft : LIE_SECONDS + Math.hypot(v[0], v[2]) * STAND_UP_PER_SPEED\n knock.lieLeft -= dt\n if (knock.lieLeft <= 0) knock.down = false\n }\n } else if (knock.lying > 0) knock.lying = Math.max(0, knock.lying - dt / RISE_SECONDS)\n return !moving && !knock.down && knock.lying === 0\n}\n\n/** Where `launchBody` leaves the throw on the body's root until the module that animates it takes it. */\nconst LAUNCHED = 'launched'\n\n/**\n * Throws a body at `velocity` (m/s, world): an occupant leaving a car through the glass, a pedestrian run over. The module that animates the body\n * takes it on its next frame (`takeLaunch`) and moves it as it moves a body a blast knocked down: flying, landing, sliding, lying, getting up.\n */\nexport function launchBody(root: { userData: Record<string, unknown> }, velocity: Vec3): void {\n root.userData[LAUNCHED] = [velocity[0], velocity[1], velocity[2]]\n}\n\n/** The throw `launchBody` left on the root, as a knock (knocked down, in the air), once; undefined when nothing threw it. */\nexport function takeLaunch(root: { userData: Record<string, unknown> }): Knock | undefined {\n const velocity = root.userData[LAUNCHED] as Vec3 | undefined\n if (!velocity) return undefined\n delete root.userData[LAUNCHED]\n return { velocity: [velocity[0], velocity[1], velocity[2]], airborne: true, lying: 0, lieLeft: 0, down: true }\n}\n","export interface CostOptions {\n /** Reads of `state()` and of `describe()` to time. Default 10 000. */\n reads?: number\n /** Ceiling, in milliseconds, for all the reads of one method. Default 50 (5 microseconds per read). */\n ceilingMs?: number\n /** Ceiling of heap growth, in bytes, over all the reads of one method (only where `process.memoryUsage` exists). Default 1 MiB. */\n allocationBytes?: number\n}\n\nconst DEFAULT_COST_READS = 10_000\nconst DEFAULT_COST_CEILING_MS = 50\nconst DEFAULT_COST_ALLOCATION_BYTES = 1024 * 1024\n\nconst heapUsedBytes = (): number | undefined => {\n const nodeProcess = (globalThis as { process?: { memoryUsage?: () => { heapUsed: number } } }).process\n return nodeProcess?.memoryUsage?.().heapUsed\n}\n\ntype CheckReadCostParams = { readonly name: string; readonly read: () => unknown; readonly options: CostOptions; readonly problems: string[] }\n\nexport const checkReadCost = ({ name, read, options, problems }: CheckReadCostParams): void => {\n const reads = options.reads ?? DEFAULT_COST_READS\n const ceilingMs = options.ceilingMs ?? DEFAULT_COST_CEILING_MS\n const allocationBytes = options.allocationBytes ?? DEFAULT_COST_ALLOCATION_BYTES\n if (read() !== read()) problems.push(`${name}() returns a new object on each read: cache it between changes (cost contract)`)\n // a first pass lets the engine compile and optimise the loop: that code and its feedback are heap too, and would read as the method allocating\n for (let i = 0; i < reads; i++) read()\n const heapBefore = heapUsedBytes()\n const started = performance.now()\n for (let i = 0; i < reads; i++) read()\n const elapsedMs = performance.now() - started\n const heapAfter = heapUsedBytes()\n if (elapsedMs > ceilingMs) problems.push(`${name}() took ${elapsedMs.toFixed(1)} ms for ${reads} reads, over the ${ceilingMs} ms ceiling (cost contract)`)\n if (heapBefore !== undefined && heapAfter !== undefined && heapAfter - heapBefore > allocationBytes)\n problems.push(`${name}() grew the heap by ${heapAfter - heapBefore} bytes over ${reads} reads, over the ${allocationBytes} byte ceiling (cost contract)`)\n}\n","import { checkReadCost } from './impact-cost'\nimport type { CostOptions } from './impact-cost'\nimport type { DamageType, DestructibleSpec, DestructionEvent, Hit, JointSpec, ObjectState, ToolKind, Vec3 } from './destruction'\n\n/**\n * What a game module implements for an object whose behaviour it owns (a vehicle with its own panel deformation, a creature, a machine). The\n * world (`DestructionWorld.register`) hosts it next to its own objects: raycast, shoot, explode, hit, disassemble, extinguish, update, state,\n * reset and `on` all route to it.\n *\n * Space: the impl receives hits in WORLD space and returns events in WORLD space (it owns its transform; the transform given to `register` or\n * `setTransform` is only used by the world for raycasts and blast range). Every event must carry `object === id` and name parts listed by\n * `describe()`.\n */\n/** World-space ray for `DestructibleImpl.surfaceRay`. */\nexport interface SurfaceRay {\n readonly origin: Vec3\n readonly direction: Vec3\n readonly maxDistance: number\n ignored?(part: string): boolean\n}\n\nexport interface SurfaceRayHit {\n readonly part: string\n readonly point: Vec3\n readonly normal: Vec3\n readonly distance: number\n /** Thickness the ray crosses in this part, metres. */\n readonly pathLen: number\n}\n\nexport interface DestructibleImpl {\n readonly id: string\n readonly name?: string\n /**\n * Parts, joints and structure in the impl's local space, for raycast, inspector and log.\n * COST CONTRACT (D8): called per frame by the renderer, so it is O(1), allocation-free and cached between changes: the same object comes\n * back until a hit, tool, fire or pose change alters it. `checkDestructible(impl, { cost: true })` measures it.\n */\n describe(): DestructibleSpec\n /** Apply one hit (see `IMPACT_CONTRACT` for the fields per type) and return the events it caused. */\n hit(hit: Hit): DestructionEvent[]\n /**\n * The real surface a ray meets, for an impl whose drawn shape is not its boxes (a car body): the boxes of `describe()` only say where to look, and a shot that crosses\n * them without touching the drawn surface goes on. `ignored` answers for the parts the round already went through. Null when the ray meets nothing.\n */\n surfaceRay?(ray: SurfaceRay): SurfaceRayHit | null\n /** Advance fire, melting, collapse and other timed behaviour. */\n update?(dt: number): DestructionEvent[]\n /**\n * COST CONTRACT (D8): the host reads it per part per frame, so it is O(1), allocation-free and cached between changes (see `describe()`).\n * The cached object is shared with every reader: treat it as read-only, copy before changing it.\n */\n state(): Readonly<ObjectState>\n reset?(): void\n /** The world took the object out (`DestructionWorld.remove`): the impl lets go of what it joined (shared queues, listeners). */\n dispose?(): void\n /** Same contract as `DestructionWorld.disassemble`: progress 0..1, or -1 when the tool cannot undo the joint. */\n disassemble?(jointId: string, tool: ToolKind, dt: number): number\n extinguish?(partId?: string): void\n /** Optional: an animation moved a part; `position` / `rotation` (Euler XYZ, radians) are object-local. Keep raycast and hit shapes in sync. */\n setPartPose?(partId: string, position: Vec3, rotation?: Vec3): void\n /** Plain JSON of the impl's own state, stored in `DestructionSnapshot.impls`. */\n serialize?(): unknown\n load?(data: unknown): void\n}\n\n/** The fields a weapon or hazard must put in a `Hit`, per damage type. THE impact contract. */\nexport interface ImpactContract {\n required: string[]\n optional: string[]\n note: string\n}\n\nexport const IMPACT_CONTRACT: Record<DamageType, ImpactContract> = {\n ballistic: { required: ['type', 'point', 'direction', 'energy', 'caliber'], optional: ['space', 'source'], note: 'bullets and pellets: joules and diameter in millimetres' },\n blunt: { required: ['type', 'point', 'energy'], optional: ['direction', 'radius', 'space', 'source'], note: 'contact radius in metres (default 3 cm)' },\n slash: { required: ['type', 'point', 'energy'], optional: ['direction', 'radius', 'space', 'source'], note: 'axes, knives, machetes' },\n explosive: { required: ['type', 'point', 'energy', 'radius'], optional: ['lethalRadius', 'space', 'source'], note: 'point is the centre of the blast, radius the range in metres' },\n fire: { required: ['type', 'point', 'temperature', 'radius'], optional: ['duration', 'space', 'source'], note: 'flame temperature in °C; duration in seconds (call every frame with `dt`)' },\n heat: { required: ['type', 'point', 'temperature', 'radius'], optional: ['duration', 'space', 'source'], note: 'heat without flame (cutting torch, hot plate)' },\n}\n\n/** Problems with a hit according to the impact contract (empty when it is valid). */\nexport const checkHit = (hit: Hit): string[] => {\n const c = IMPACT_CONTRACT[hit.type]\n if (!c) return [`unknown damage type \"${String(hit.type)}\"`]\n const out: string[] = []\n for (const f of c.required) {\n const v = (hit as unknown as Record<string, unknown>)[f]\n if (v === undefined || (Array.isArray(v) ? v.some((n) => !Number.isFinite(n)) : typeof v === 'number' && !Number.isFinite(v))) out.push(`${hit.type} hit needs \"${f}\"`)\n }\n return out\n}\n\nexport interface CheckOptions {\n /**\n * Ids of every material the impl may use (the contracts package does not know the materials of your world: pass the ids of\n * `world.materials`, or the built-in plus your own). When omitted, the material check is skipped.\n */\n materials?: Iterable<string>\n /** Opt-in cost measurement (D8): `true` for the defaults, or the limits to use. */\n cost?: boolean | CostOptions\n}\n\nconst finiteJson = (v: unknown, path: string, out: string[]) => {\n if (typeof v === 'number') {\n if (!Number.isFinite(v)) out.push(`${path} is not a finite number`)\n } else if (Array.isArray(v)) v.forEach((x, i) => finiteJson(x, `${path}[${i}]`, out))\n else if (v && typeof v === 'object') for (const [k, x] of Object.entries(v)) finiteJson(x, `${path}.${k}`, out)\n else if (typeof v === 'function' || typeof v === 'symbol' || typeof v === 'bigint') out.push(`${path} is not JSON`)\n}\n\n/**\n * Contract checker for the test room (it needs no world): `describe()` is valid, a 500 J ballistic hit at a part centre returns well-formed events of this impl, `state()`\n * matches `describe()`, hit points never go negative, `update(0.016)` returns an array and every event is JSON-serializable. It hits the impl\n * (and calls `reset()` afterwards when there is one). With `options.cost` it also times `state()` and `describe()` (the cost contract of D8).\n */\nexport const checkDestructible = (impl: DestructibleImpl, options: CheckOptions = {}): { ok: boolean; problems: string[] } => {\n const problems: string[] = []\n const known = options.materials ? new Set(options.materials) : null\n let spec: DestructibleSpec | undefined\n try {\n spec = impl.describe()\n } catch (e) {\n return { ok: false, problems: [`describe() threw: ${String(e)}`] }\n }\n if (!spec || !Array.isArray(spec.parts) || spec.parts.length === 0) return { ok: false, problems: ['describe() must return at least one part'] }\n const ids = new Set<string>()\n for (const p of spec.parts) {\n if (ids.has(p.id)) problems.push(`duplicate part id \"${p.id}\"`)\n ids.add(p.id)\n if (known && !known.has(p.material)) problems.push(`part \"${p.id}\" has unknown material \"${p.material}\"`)\n if (!p.shape || !['box', 'cylinder', 'sphere'].includes(p.shape.kind)) problems.push(`part \"${p.id}\" has no valid shape`)\n if (!Array.isArray(p.position) || p.position.length !== 3) problems.push(`part \"${p.id}\" has no position`)\n }\n const jointIds = new Set<string>()\n for (const j of (spec.joints ?? []) as JointSpec[]) {\n if (!ids.has(j.a) || !ids.has(j.b)) problems.push(`joint \"${j.id ?? `${j.a}~${j.b}`}\" references an unknown part`)\n const jid = j.id ?? `${j.a}~${j.b}`\n if (jointIds.has(jid)) problems.push(`duplicate joint id \"${jid}\"`)\n jointIds.add(jid)\n }\n const checkState = (label: string) => {\n let st: ObjectState\n try {\n st = impl.state()\n } catch (e) {\n problems.push(`state() threw ${label}: ${String(e)}`)\n return\n }\n const sids = st.parts.map((p) => p.id).sort().join(',')\n if (sids !== [...ids].sort().join(',')) problems.push(`state() part ids do not match describe() ${label}`)\n for (const p of st.parts) if (!(p.hp >= 0)) problems.push(`part \"${p.id}\" has negative or invalid hp ${label}`)\n }\n const checkEvents = (events: unknown, label: string) => {\n if (!Array.isArray(events)) {\n problems.push(`${label} must return an array`)\n return\n }\n const evs = events as DestructionEvent[]\n evs.forEach((e, i) => {\n if (e.object !== impl.id) problems.push(`${label} event ${i} (${e.type}) has object \"${String(e.object)}\", expected \"${impl.id}\"`)\n const part = (e as { part?: string }).part\n if (part !== undefined && !ids.has(part)) problems.push(`${label} event ${i} (${e.type}) names unknown part \"${part}\"`)\n })\n const bad: string[] = []\n finiteJson(evs, 'events', bad)\n problems.push(...bad.map((b) => `${label}: ${b}`))\n try {\n const s = JSON.stringify(evs)\n if (JSON.stringify(JSON.parse(s)) !== s) problems.push(`${label} events do not survive a JSON round trip`)\n } catch (e) {\n problems.push(`${label} events are not JSON-serializable: ${String(e)}`)\n }\n }\n checkState('before the hit')\n const target = spec.parts[0]\n try {\n const hit: Hit = { type: 'ballistic', point: [target.position[0], target.position[1], target.position[2]], direction: [0, 0, -1], energy: 500, caliber: 9 }\n checkEvents(impl.hit(hit), 'hit()')\n } catch (e) {\n problems.push(`hit() threw: ${String(e)}`)\n }\n checkState('after the hit')\n if (impl.update) {\n try {\n checkEvents(impl.update(0.016), 'update()')\n } catch (e) {\n problems.push(`update() threw: ${String(e)}`)\n }\n checkState('after update')\n }\n try {\n impl.reset?.()\n } catch (e) {\n problems.push(`reset() threw: ${String(e)}`)\n }\n if (options.cost) {\n const cost = options.cost === true ? {} : options.cost\n try {\n checkReadCost({ name: 'state', read: () => impl.state(), options: cost, problems })\n checkReadCost({ name: 'describe', read: () => impl.describe(), options: cost, problems })\n } catch (e) {\n problems.push(`cost measurement threw: ${String(e)}`)\n }\n }\n return { ok: problems.length === 0, problems }\n}\n","/** The slots of a body an item can cover (the item slot vocabulary: game-items imports it from here). */\nexport type BodySlot = 'head' | 'eyes' | 'torso' | 'arms' | 'hands' | 'legs' | 'feet' | 'over'\n\n/** The 11 segments of the detailed body model (the Arsenal ids). */\nexport type SegmentKind = 'head' | 'jaw' | 'neck' | 'torso' | 'pelvis' | 'upperArm' | 'forearm' | 'hand' | 'thigh' | 'shin' | 'foot'\n\n/** The 6 regions of the crowd model (the game regions 0..5). */\nexport type BodyRegion = 'head' | 'torso' | 'armL' | 'armR' | 'legL' | 'legR'\n\n/** Bits of the `missing` mask of a body. The instanced body shader reads them, so the values are part of the contract. */\nexport const MISSING_BITS = {\n head: 1,\n armL: 2,\n armR: 4,\n legL: 8,\n legR: 16,\n armLBroken: 32,\n armRBroken: 64,\n legLBroken: 128,\n legRBroken: 256,\n jaw: 512,\n} as const\n","import type { DestructibleSpec, PartSpec } from './destruction'\n\nexport interface CheckSpecOptions {\n /** Known material ids. When given, every part's material must be one of them. */\n materials?: Iterable<string>\n}\n\nexport interface SpecReport {\n /** False when there is at least one problem (warnings do not count). */\n ok: boolean\n problems: string[]\n /** Things that are legal but probably wrong, e.g. structural parts that cannot reach an anchored part. */\n warnings: string[]\n}\n\nconst STRUCTURE_ROLES = ['foundation', 'column', 'beam', 'slab', 'wall', 'partition', 'roof', 'stair', 'none']\nconst BEARS = [true, false, 'a_on_b', 'b_on_a']\n\nconst finite = (n: unknown): n is number => typeof n === 'number' && Number.isFinite(n)\nconst positive = (n: unknown): boolean => finite(n) && n > 0\nconst vec3 = (v: unknown): boolean => Array.isArray(v) && v.length === 3 && v.every(finite)\nconst nonNegative = (n: unknown): boolean => n === undefined || (finite(n) && n >= 0)\n\nconst FACES = ['both', '+', '-']\nconst BONDS = ['running', 'stack']\n\n/** Layers, reinforcement, units and breach: known materials, finite positive sizes. */\nconst checkStagedFields = (p: PartSpec | undefined, label: string, materials: Set<string> | null, problems: string[]): void => {\n const known = (m: unknown, what: string): void => {\n if (materials && !materials.has(m as string)) problems.push(`${label} ${what} has unknown material \"${String(m)}\"`)\n }\n ;(p?.layers ?? []).forEach((l, i) => {\n known(l?.material, `layer ${i}`)\n if (!positive(l?.thickness)) problems.push(`${label} layer ${i} thickness must be finite and positive`)\n if (!FACES.includes(l?.faces)) problems.push(`${label} layer ${i} has an invalid faces \"${String(l?.faces)}\"`)\n })\n const r = p?.reinforcement\n if (r) {\n known(r.material, 'reinforcement')\n if (!positive(r.spacing) || !positive(r.diameter)) problems.push(`${label} reinforcement spacing and diameter must be finite and positive`)\n if (r.residualCapacity !== undefined && !(finite(r.residualCapacity) && r.residualCapacity >= 0 && r.residualCapacity <= 1)) problems.push(`${label} reinforcement residualCapacity must be between 0 and 1`)\n }\n const u = p?.units\n if (u) {\n known(u.mortar, 'units mortar')\n if (!vec3(u.size) || !u.size.every(positive)) problems.push(`${label} units size must be three finite positive numbers`)\n if (!BONDS.includes(u.bond)) problems.push(`${label} units has an invalid bond \"${String(u.bond)}\"`)\n }\n if (p?.breach && p.breach.area !== undefined && !positive(p.breach.area)) problems.push(`${label} breach area must be finite and positive`)\n}\n\n/**\n * Static checks on a `DestructibleSpec` (no world needed), for items that give a `spec` instead of an `impl`: unique part ids, known materials\n * (when `options.materials` is given), joints that reference existing, different parts, finite positive sizes, non-negative mass / hp / capacity,\n * valid structure roles and `bears` directions. A structural part with no path of joints to an anchored part is a warning, not a problem: it\n * is allowed, it just falls.\n */\nexport const checkSpec = (spec: DestructibleSpec, options: CheckSpecOptions = {}): SpecReport => {\n const problems: string[] = []\n const warnings: string[] = []\n const materials = options.materials ? new Set(options.materials) : null\n const parts = Array.isArray(spec?.parts) ? spec.parts : []\n if (!Array.isArray(spec?.parts) || parts.length === 0) problems.push('the spec needs at least one part')\n const ids = new Set<string>()\n for (const p of parts) {\n const id = String(p?.id ?? '')\n const label = `part \"${id}\"`\n if (id === '') problems.push('a part has no id')\n else if (ids.has(id)) problems.push(`duplicate part id \"${id}\"`)\n ids.add(id)\n if (materials && !materials.has(p?.material)) problems.push(`${label} has unknown material \"${String(p?.material)}\"`)\n else if (typeof p?.material !== 'string' || p.material === '') problems.push(`${label} needs a material`)\n const s = p?.shape\n if (s?.kind === 'box') {\n if (!Array.isArray(s.size) || s.size.length !== 3 || !s.size.every(positive)) problems.push(`${label} box size must be three finite positive numbers`)\n } else if (s?.kind === 'cylinder') {\n if (!positive(s.radius) || !positive(s.height)) problems.push(`${label} cylinder radius and height must be finite and positive`)\n } else if (s?.kind === 'sphere') {\n if (!positive(s.radius)) problems.push(`${label} sphere radius must be finite and positive`)\n } else problems.push(`${label} has an unknown shape`)\n if (!vec3(p?.position)) problems.push(`${label} needs a finite position [x, y, z]`)\n if (p?.rotation !== undefined && !vec3(p.rotation)) problems.push(`${label} has an invalid rotation`)\n for (const f of ['mass', 'hp', 'thickness'] as const) if (!nonNegative(p?.[f])) problems.push(`${label} ${f} must be a finite number >= 0`)\n if (p?.fill !== undefined && !(finite(p.fill) && p.fill >= 0 && p.fill <= 1)) problems.push(`${label} fill must be between 0 and 1`)\n if (p?.structure) {\n if (!STRUCTURE_ROLES.includes(p.structure.role)) problems.push(`${label} has an invalid structure role \"${String(p.structure.role)}\"`)\n if (!nonNegative(p.structure.capacity)) problems.push(`${label} structure capacity must be a finite number >= 0`)\n }\n if (p?.contains && !nonNegative(p.contains.liters)) problems.push(`${label} contains.liters must be a finite number >= 0`)\n checkStagedFields(p, label, materials, problems)\n }\n\n const jointIds = new Set<string>()\n const edges: Array<[string, string]> = []\n for (const j of spec?.joints ?? []) {\n const id = j.id ?? `${j.a}~${j.b}`\n const label = `joint \"${id}\"`\n if (jointIds.has(id)) problems.push(`duplicate joint id \"${id}\"`)\n jointIds.add(id)\n if (!ids.has(j.a)) problems.push(`${label} references unknown part \"${String(j.a)}\"`)\n if (!ids.has(j.b)) problems.push(`${label} references unknown part \"${String(j.b)}\"`)\n if (j.a === j.b) problems.push(`${label} joins part \"${String(j.a)}\" to itself`)\n if (j.bears !== undefined && !BEARS.includes(j.bears)) problems.push(`${label} has an invalid bears \"${String(j.bears)}\"`)\n if (!nonNegative(j.strength)) problems.push(`${label} strength must be a finite number >= 0`)\n if (!nonNegative(j.seconds)) problems.push(`${label} seconds must be a finite number >= 0`)\n if (j.bears !== false && ids.has(j.a) && ids.has(j.b) && j.a !== j.b) edges.push([j.a, j.b])\n }\n\n // structural parts must reach an anchored part over the joints (only when the spec lists its joints: otherwise they are inferred later)\n const structural = parts.filter((p) => p?.structure && p.structure.role !== 'none')\n if (structural.length && spec.joints) {\n const anchored = parts.filter((p) => p.anchored || p.structure?.role === 'foundation').map((p) => p.id)\n const adj = new Map<string, string[]>()\n for (const [a, b] of edges) {\n adj.set(a, [...(adj.get(a) ?? []), b])\n adj.set(b, [...(adj.get(b) ?? []), a])\n }\n const seen = new Set(anchored)\n const queue = [...anchored]\n while (queue.length) {\n for (const n of adj.get(queue.pop()!) ?? []) {\n if (seen.has(n)) continue\n seen.add(n)\n queue.push(n)\n }\n }\n const lost = structural.filter((p) => !seen.has(p.id)).map((p) => p.id)\n if (lost.length) warnings.push(`structural part(s) ${lost.map((i) => `\"${i}\"`).join(', ')} cannot reach an anchored part, so they will fall`)\n }\n return { ok: problems.length === 0, problems, warnings }\n}\n","import type { BallisticExtras, Hit, HitIgnition, Vec3 } from './destruction'\n\n/**\n * A ballistic shot (one per pellet) as a weapon module produces it. Plain data: any damage model can consume it (`shotToHit` makes the `Hit`).\n */\nexport interface Shot {\n origin: Vec3\n /** Unit vector. */\n direction: Vec3\n /** Muzzle energy in joules. */\n energy: number\n /** Bullet diameter in millimetres. */\n caliber: number\n /** snake_case calibre id, e.g. `9x19`. */\n caliberId: string\n /** Muzzle speed in m/s. */\n speed: number\n /** Projectile mass in grams (one pellet for a shotgun load). */\n mass?: number\n /** Energy at a distance in metres, with the calibre's drag. */\n energyAt(distance: number): number\n pellet: number\n /** snake_case weapon id. */\n weapon: string\n source?: string\n /** Kind of the round that was loaded (`fmj`, `hp`, `ap`, `buck`, `slug`, `incendiary`, `tracer`...). */\n ammo?: string\n /** Millimetres of steel, concrete, brick and wood the round goes through at the muzzle (the ammo table of the weapons module). `shotToHit` scales it by the energy left. */\n penetration?: Readonly<Record<string, number>>\n incendiary?: boolean\n tracer?: boolean\n /** Chances that the round lights flammable vapour or fuel. */\n ignition?: HitIgnition\n}\n\n/**\n * The fields of the round that a damage model takes besides the geometry: the penetration by material scaled by the energy that is left at `distance`\n * (linear in the energy: half the energy goes through half as much), the incendiary and tracer flags and the ignition chances. Pass it as the sixth\n * argument of `DestructionWorld.shoot` or spread it in a `Hit`.\n */\nexport const shotExtras = (shot: Shot, distance = 0): BallisticExtras => {\n const out: { -readonly [K in keyof BallisticExtras]: BallisticExtras[K] } = {}\n if (shot.penetration) {\n const k = shot.energy > 0 ? Math.min(1, Math.max(0, shot.energyAt(distance) / shot.energy)) : 1\n const scaled: Record<string, number> = {}\n for (const key of Object.keys(shot.penetration)) scaled[key] = shot.penetration[key]! * k\n out.penetration = scaled\n }\n if (shot.incendiary) out.incendiary = true\n if (shot.tracer) out.tracer = true\n if (shot.ignition) out.ignition = { spark: shot.ignition.spark, flame: shot.ignition.flame }\n return out\n}\n\n/** One use of a non-firearm (melee swing, flame tick, heat tick, throw, tool tick, extinguisher tick). */\nexport type Use =\n | { kind: 'melee'; damage: 'blunt' | 'slash'; energy: number; radius: number; reach: number; origin: Vec3; direction: Vec3 }\n | { kind: 'flame'; temperature: number; radius: number; range: number; cone: boolean; duration: number; origin: Vec3; direction: Vec3 }\n | { kind: 'heat'; temperature: number; radius: number; range: number; duration: number; origin: Vec3; direction: Vec3 }\n | {\n kind: 'throw'\n energy: number\n radius: number\n fuse: number\n velocity: Vec3\n origin: Vec3\n fire?: { temperature: number; radius: number; seconds: number }\n /** Explosive id (`m67`, `molotov`, `pg7v`...): the host looks the numbers up in the arsenal. Absent on a plain thrown object. */\n explosive?: string\n /** What sets it off: `timer` after `fuse` seconds, `impact` on the first hit once armed. */\n trigger?: 'timer' | 'impact'\n /** Metres the projectile must fly before an impact sets it off; closer, it hits without exploding (rocket launchers). */\n armDistance?: number\n /** Radius in metres of the wounding area (`radius` is the lethal one). */\n injuryRadius?: number\n /** Seconds the blast stuns whoever is inside the injury radius (flashbang). */\n stunSeconds?: number\n /** Seconds the thrower held it after pulling the pin: `fuse` is what was left of the full fuse when it left the hand. */\n cooked?: number\n /** Went off in the thrower's hand (held past the fuse): no velocity, `fuse` is 0 and the blast is at `origin`. */\n inHand?: boolean\n }\n /** An explosive set down where the trigger is pulled (mine, C4, charge): it waits for its trigger instead of flying. */\n | {\n kind: 'place'\n explosive: string\n /** `wire`: something trips it; `remote`: the player fires it; `timer`: after `fuse` seconds. */\n triggers: readonly ('timer' | 'wire' | 'remote')[]\n energy: number\n /** Lethal radius in metres. */\n radius: number\n injuryRadius: number\n /** Cone the blast goes through, in front of `direction` (mine); absent for a blast in every direction. */\n cone?: { halfAngleDeg: number; length: number }\n /** The wire a `wire` charge stretches from where it is set down: metres out, degrees from its facing (counter-clockwise from above) and metres above it. */\n tripwire?: { length: number; angleDeg: number; height: number }\n fuse?: number\n origin: Vec3\n direction: Vec3\n }\n /** The blast behind a rocket launcher: dangerous inside `radius` metres, in the cone around `direction` (pointing away from the target). */\n | { kind: 'backblast'; radius: number; halfAngleDeg: number; origin: Vec3; direction: Vec3 }\n | { kind: 'tool'; tool: string; reach: number; duration: number; origin: Vec3; direction: Vec3 }\n | { kind: 'extinguish'; range: number; coolC: number; duration: number; origin: Vec3; direction: Vec3 }\n | { kind: 'hand'; reach: number; origin: Vec3; direction: Vec3 }\n\n/**\n * The `Hit` a ballistic shot makes at `point` (world space): the energy is what is left of the shot at that distance from its origin\n * (`shot.energyAt`), the direction and calibre come from the shot. `normal` (the surface normal at the point, when the caller knows it) does not\n * change the hit; it is accepted so that callers can pass what their raycast returned and so that a stricter implementation could use it.\n */\nexport const shotToHit = (shot: Shot, point: Vec3, normal?: Vec3): Hit => {\n void normal\n const dx = point[0] - shot.origin[0]\n const dy = point[1] - shot.origin[1]\n const dz = point[2] - shot.origin[2]\n const distance = Math.hypot(dx, dy, dz)\n return {\n type: 'ballistic',\n point: [point[0], point[1], point[2]],\n direction: [shot.direction[0], shot.direction[1], shot.direction[2]],\n energy: shot.energyAt(distance),\n caliber: shot.caliber,\n ...(shot.mass === undefined ? {} : { mass: shot.mass }),\n ...shotExtras(shot, distance),\n source: shot.source ?? shot.weapon,\n }\n}\n\n/**\n * The `Hit` a non-firearm `Use` makes at `point` (world space), or `null` for uses that do not damage by themselves.\n *\n * - `melee` -> `blunt` / `slash` with the swing's `energy`, contact `radius` and `direction`;\n * - `flame` -> `fire` and `heat` -> `heat`, with `temperature`, `duration` and a contact radius of at most 0.3 m (one ray of the cone);\n * - `throw` -> the blast (`explosive`, `energy`, `radius`, centred on `point`, the place it detonates). A thrown item with no blast energy but\n * a `fire` patch (a molotov) gives that patch as a `fire` hit (`temperature`, `radius`, `seconds` as `duration`). No energy and no fire -> `null`;\n * - `tool`, `extinguish` and `hand` -> `null` (tools work on joints, the extinguisher cools, the hand only grabs).\n *\n * `normal` does not change the hit (same as `shotToHit`).\n */\nexport const useToHit = (use: Use, point: Vec3, normal?: Vec3): Hit | null => {\n void normal\n const p: Vec3 = [point[0], point[1], point[2]]\n switch (use.kind) {\n case 'melee':\n return { type: use.damage, point: p, direction: [use.direction[0], use.direction[1], use.direction[2]], energy: use.energy, radius: use.radius }\n case 'flame':\n case 'heat':\n return {\n type: use.kind === 'flame' ? 'fire' : 'heat',\n point: p,\n direction: [use.direction[0], use.direction[1], use.direction[2]],\n temperature: use.temperature,\n radius: Math.min(use.radius, 0.3),\n duration: use.duration,\n }\n case 'throw':\n if (use.energy > 0) return { type: 'explosive', point: p, energy: use.energy, radius: use.radius }\n if (use.fire) return { type: 'fire', point: p, temperature: use.fire.temperature, radius: use.fire.radius, duration: use.fire.seconds }\n return null\n default:\n return null\n }\n}\n","import type { Hit } from './destruction'\n\n/**\n * How a container of flammable fluid (a fuel tank, a jerrycan, a gas bottle) is set alight by what hits it. A normal bullet that goes through only\n * makes a leak; the leak lights when something supplies a flame: a spark of a hard round on metal, an incendiary or tracer round, a fire nearby\n * or a blast. These are the numbers of the target side; the numbers of the round (core, jacket, incendiary, tracer) are in the weapons module\n * (`rules.ignition` of `@adatechnology/game-weapons`) and reach the target in `Hit.ignition`. Every number is a default to be changed per game.\n */\nexport interface IgnitionRules {\n /**\n * How much of the spark and of the flame of a round reaches the vapour, by how full the container is: points `[filled, factor]`, `filled` 0..1\n * (litres over capacity), `factor` 0..1, linear between points. A full container holds a mixture too rich to burn (the vapour has no air) and\n * mostly leaks; a nearly empty one holds the vapour/air mixture of a flammable range and lights the easiest; a dry one has little vapour left.\n * Default: 0.6 empty, 1 at 10 percent, 0.6 at 35, 0.3 at 65, 0.15 at 90 and 0.12 full.\n */\n fillCurve: ReadonlyArray<readonly [number, number]>\n /** 0..1: how much of the fill factor also weighs on the flame of an incendiary or tracer (1: as much as on a spark; 0: not at all). Default 0.5. */\n flameFillInfluence: number\n /** Chance of the flame of a round that is flagged `incendiary` or `tracer` but carries no `ignition` numbers (a host that passes only the flags). */\n flameDefaults: { incendiary: number; tracer: number }\n /**\n * What a spark needs to strike: a factor 0..1 by material id of the struck part. A material that is not listed but is metal takes\n * `sparkMetalDefault`; a part that is not metal never sparks. Default: steel and iron 1, aluminium 0.25.\n */\n sparkTarget: Readonly<Record<string, number>>\n sparkMetalDefault: number\n /**\n * Factor 0..1 on the spark by fluid (default 1): diesel has a flash point of 52 degrees C and more, so a spark that lights petrol vapour does\n * not light it (a flame does). Default: diesel 0.15.\n */\n sparkFluid: Readonly<Record<string, number>>\n /** A leaking container of flammable fluid within `radius` metres of a burning part or a burning fuel stain lights at `chancePerSecond`. */\n fireNear: { radius: number; chancePerSecond: number }\n}\n\n/** Defaults of `IgnitionRules`. */\nexport const DEFAULT_IGNITION_RULES: IgnitionRules = {\n fillCurve: [\n [0, 0.6],\n [0.1, 1],\n [0.35, 0.6],\n [0.65, 0.3],\n [0.9, 0.15],\n [1, 0.12],\n ],\n flameFillInfluence: 0.5,\n flameDefaults: { incendiary: 0.7, tracer: 0.2 },\n sparkTarget: { steel: 1, iron: 1, aluminium: 0.25 },\n sparkMetalDefault: 0.5,\n sparkFluid: { diesel: 0.15 },\n fireNear: { radius: 1.5, chancePerSecond: 0.5 },\n}\n\n/** Merges a partial `IgnitionRules` over the defaults (an object is merged one level deep). */\nexport const resolveIgnitionRules = (rules?: Partial<IgnitionRules>): IgnitionRules => ({\n ...DEFAULT_IGNITION_RULES,\n ...rules,\n flameDefaults: { ...DEFAULT_IGNITION_RULES.flameDefaults, ...rules?.flameDefaults },\n sparkTarget: { ...DEFAULT_IGNITION_RULES.sparkTarget, ...rules?.sparkTarget },\n sparkFluid: { ...DEFAULT_IGNITION_RULES.sparkFluid, ...rules?.sparkFluid },\n fireNear: { ...DEFAULT_IGNITION_RULES.fireNear, ...rules?.fireNear },\n})\n\n/** Linear interpolation of the fill curve at `fill` (0..1); outside the points it keeps the first or the last. */\nexport const fillFactor = (fill: number, curve: IgnitionRules['fillCurve'] = DEFAULT_IGNITION_RULES.fillCurve): number => {\n if (curve.length === 0) return 1\n const f = Math.min(1, Math.max(0, fill))\n if (f <= curve[0]![0]) return curve[0]![1]\n for (let i = 1; i < curve.length; i++) {\n const [x1, y1] = curve[i]!\n const [x0, y0] = curve[i - 1]!\n if (f <= x1) return x1 === x0 ? y1 : y0 + ((y1 - y0) * (f - x0)) / (x1 - x0)\n }\n return curve[curve.length - 1]![1]\n}\n\n/** The factor of what a spark strikes: 0 when the struck part is not metal. */\nexport const sparkTargetFactor = (materialId: string, metal: boolean, rules: IgnitionRules = DEFAULT_IGNITION_RULES): number =>\n !metal ? 0 : rules.sparkTarget[materialId] ?? rules.sparkMetalDefault\n\n/**\n * Chance that one round that went through the wall of a container lights the fluid that leaks: the spark (only on metal) and the flame (any\n * wall), each weighed by the fill of the container; the two are independent. 0 when the round carries nothing (`Hit.ignition` absent and not\n * flagged `incendiary` or `tracer`): a plain bullet on a plain wall only leaks.\n */\nexport const ignitionChance = (hit: Pick<Hit, 'incendiary' | 'tracer' | 'ignition'>, target: { sparkTarget: number; fill: number; fluid?: string }, rules: IgnitionRules = DEFAULT_IGNITION_RULES): number => {\n const k = fillFactor(target.fill, rules.fillCurve)\n const spark = (hit.ignition?.spark ?? 0) * target.sparkTarget * (target.fluid === undefined ? 1 : rules.sparkFluid[target.fluid] ?? 1) * k\n const flameBase = hit.ignition?.flame ?? Math.max(hit.incendiary ? rules.flameDefaults.incendiary : 0, hit.tracer ? rules.flameDefaults.tracer : 0)\n const flame = flameBase * (1 - rules.flameFillInfluence * (1 - k))\n return 1 - (1 - Math.min(1, Math.max(0, spark))) * (1 - Math.min(1, Math.max(0, flame)))\n}\n","/**\n * The seal of a closed container (a food tin, a drink can, a jar, a bottle with a cap): what opens it and whether a breach spoils what is inside.\n * Plain data and one pure check, shared by the item rules (`resolveUse` of game-items) and any host that lets the player open and eat (the test room).\n */\nexport interface SealSpec {\n /** Ids of the tools that open it (items or weapons: `can_opener`, `knife`); any one of them is enough. */\n readonly openWith?: readonly string[]\n /** It opens by hand (a pull tab, a ring pull, a screw cap): no tool needed. */\n readonly byHand?: boolean\n /** A hole through the container or a leak spoils what is inside: it can no longer be eaten or drunk. */\n readonly spoilsWhenBreached?: boolean\n}\n\n/** The state of one container: opened, holed through (a shot, a blade) or leaking. */\nexport interface SealState {\n readonly opened?: boolean\n readonly breached?: boolean\n readonly leaked?: boolean\n}\n\n/** Why a sealed container cannot be eaten or drunk now. */\nexport type SealBlock = 'sealed' | 'breached' | 'leaked'\n\n/** Whether it can be opened with the tools at hand, and with which one (undefined when it opens by hand). */\nexport const sealOpener = (seal: SealSpec, tools: Iterable<string>): { readonly ok: boolean; readonly tool?: string } => {\n if (seal.byHand || !seal.openWith || seal.openWith.length === 0) return { ok: true }\n const have = new Set(tools)\n const tool = seal.openWith.find((id) => have.has(id))\n return tool === undefined ? { ok: false } : { ok: true, tool }\n}\n\n/** What stops eating or drinking it now, or undefined when nothing does. A spoiled container (breached, leaked) is blocked even once open. */\nexport const sealBlock = (seal: SealSpec, state: SealState): SealBlock | undefined => {\n if (seal.spoilsWhenBreached && state.breached) return 'breached'\n if (seal.spoilsWhenBreached && state.leaked) return 'leaked'\n if (!state.opened) return 'sealed'\n return undefined\n}\n","import type { Vec3 } from './destruction'\n\n/**\n * Where a hand should be, in world space. `position` is the middle of the palm; the orientation follows one convention for every hand: the hand-local +x runs from the wrist to the\n * knuckles (the way the fingers point when open), +y is the back of the hand and +z completes the frame (for a right hand the little finger side; the thumb is at -z). A left hand is the\n * mirror image of a right one, so the same numbers describe the same grip: its thumb is at +z.\n */\nexport interface HandPose {\n position: Vec3\n /** Unit quaternion `[x, y, z, w]`, hand-local to world. */\n quaternion: [number, number, number, number]\n}\n\n/**\n * What a tool in the hands asks of the hands that hold it (a weapon asks for a grip on its grip and handguard, a carried item for a hand under it). A side left out or null is not held:\n * the hand stays in its rest stance. Nothing here knows what the tool is.\n */\nexport interface HandTargets {\n R?: HandPose | null\n L?: HandPose | null\n /** How closed the fingers are, 0 open to 1 closed on a grip. Default 1. */\n grip?: number\n /** The same for the left hand, when it differs from `grip` (a hand laid on a forend is looser than the one on the trigger). */\n gripL?: number\n /** The size of the hands against life size (a tool drawn smaller than real takes smaller hands). Default 1. */\n scale?: number\n /** Fingers of the right hand that curl by themselves, 0 extended to 1 fully curled (the index finger of a trigger hand); the others follow `grip`. */\n fingers?: { index?: number }\n /** The same for the left hand (its index on the trigger of a tool of its own, with a tool in each hand); absent, the left hand's fingers all follow `gripL`. */\n fingersL?: { index?: number }\n /**\n * Where the elbows go: `view` puts them on screen beside the hand, out to the side, as a tool held out in front (default); `body` lets them hang down and back by the body, as an item\n * carried close (a can, a bottle), where an elbow out to the side would lift it above the shoulder.\n */\n elbows?: 'view' | 'body'\n}\n\n/** Read every frame by whoever draws the arms; answers null while nothing is held. */\nexport type HandTargetSource = () => HandTargets | null\n\n/** The muzzle of the tool in the hands as it is drawn now (world space): where a shot's flash and tracer leave, and which way the barrel points. */\nexport interface MuzzlePose {\n readonly position: Vec3\n /** Unit vector along the barrel, out of the muzzle. */\n readonly direction: Vec3\n /** The module draws the muzzle flash itself: the host draws none of its own. */\n readonly drawsFlash: boolean\n}\n\n/** A hand of the body: `R` the right, `L` the left. A tool in one hand alone is in the right; the left holds one of its own only with a tool in each hand (`HostTool.offHand`). */\nexport type ToolHand = 'R' | 'L'\n\n/**\n * Read by the host at each shot; null while the tool in the hands has no muzzle (a knife, a bare hand). `hand` is the hand that fired (absent: the right one); a source that draws\n * one tool only answers the same for both.\n */\nexport type MuzzleSource = (hand?: ToolHand) => MuzzlePose | null\n\n/**\n * The layer of what the first-person view draws over the world (three.js `Object3D.layers`): the tool in the hands and the arms that hold it. A host with a first-person view draws\n * the world without this layer, then this layer alone over it with the depth cleared and its own field of view (`ModuleHost.setViewmodelFov`), as shooters draw the weapon in the hands:\n * it never goes into a wall, and the gun and the arms are framed by the lens chosen for them. Seen from outside (third person) nothing is on it.\n */\nexport const FIRST_PERSON_LAYER = 9\n","/** How a hand turns something round in strokes (a screw cap, a tap handle, a knob): what `twistStroke` answers for one moment of the turning. */\nexport interface TwistStroke {\n /** Radians the wrist is turned from the middle of its stroke, positive the way the part turns. */\n readonly angle: number\n /** Radians the part has turned in all, from 0 to `strokes * reach`. */\n readonly turned: number\n /** How closed the fingers are, 0 open to 1 closed: closed on the part while it turns, open while the wrist turns back. */\n readonly grip: number\n /** 0..1, how far the hand rises off the part while the wrist turns back (1 is `TWIST_LIFT` metres). */\n readonly lift: number\n}\n\nexport interface TwistOptions {\n /** Strokes of the wrist. Default 3. */\n readonly strokes?: number\n /** Radians the part turns in one stroke (a wrist turns about a quarter round with its hold). Default 1.6. */\n readonly reach?: number\n}\n\n/** Metres a hand rises off the part between two strokes. */\nexport const TWIST_LIFT = 0.012\n/** Share of each stroke spent turning the part; the rest turns the wrist back open. */\nconst TURNING = 0.7\n\nconst smooth = (k: number): number => k * k * (3 - 2 * k)\n\n/**\n * The hand turning a part round at `share` (0..1) of the whole turning: in each stroke the wrist turns with the part, then lets go, rises a little and turns back.\n * Pure and the same for every host, so first and third person turn the same hand the same way.\n */\nexport const twistStroke = (share: number, options: TwistOptions = {}): TwistStroke => {\n const strokes = Math.max(1, Math.round(options.strokes ?? 3))\n const reach = options.reach ?? 1.6\n const along = Math.min(1, Math.max(0, share)) * strokes\n const index = Math.min(strokes - 1, Math.floor(along))\n const phase = along - index\n if (phase <= TURNING) {\n const k = smooth(phase / TURNING)\n return { angle: reach * (k - 0.5), turned: reach * (index + k), grip: 1, lift: 0 }\n }\n const k = (phase - TURNING) / (1 - TURNING)\n return { angle: reach * (0.5 - smooth(k)), turned: reach * (index + 1), grip: 0.35, lift: Math.sin(k * Math.PI) }\n}\n","import type { Vec3 } from './destruction'\n\n/** Pose of one part (or of the whole item) at a key: position offset in metres and Euler XYZ rotation in radians, both relative to the rest pose. */\nexport interface AnimationPose {\n position?: Vec3\n rotation?: Vec3\n}\n\nexport interface AnimationKey {\n /** Seconds from the start of the clip. */\n t: number\n /** Pose of the item's root. */\n position?: Vec3\n rotation?: Vec3\n /** Poses of named parts: the key is a destruction part id (a pistol `reload` moves `mag`; a car door `open` rotates `door_l`). */\n parts?: Record<string, AnimationPose>\n}\n\nexport interface AnimationEventSpec {\n /** Seconds from the start of the clip. */\n t: number\n /** snake_case type the host maps (`sound`, `eject_casing`, `door_latch`...). */\n type: string\n data?: Record<string, unknown>\n /**\n * Seconds of real time the event fires before `t`, not stretched with the clip: a recorded sound whose hit comes that long after its start\n * (the click of a magazine seating) starts early so the hit lands on `t`. The player passes the lead it could apply as `data.lead`.\n */\n lead?: number\n}\n\n/** A use animation a module brings with its item. Poses between keys are interpolated by the player (the test room does it linearly). */\nexport interface AnimationClipSpec {\n /** snake_case: `reload`, `open`, `drink`... Unique within the item. */\n id: string\n /** Seconds. */\n duration: number\n keys: AnimationKey[]\n events?: AnimationEventSpec[]\n}\n\n/** What an item exposes when it brings its own animations. */\nexport interface ItemAnimationContract {\n animations: AnimationClipSpec[]\n}\n\nconst finite3 = (v: unknown): boolean => Array.isArray(v) && v.length === 3 && v.every((n) => typeof n === 'number' && Number.isFinite(n))\n\n/**\n * Problems with a clip (empty when it is valid): a snake_case id, a positive finite duration, at least one key, key and event times inside\n * `[0, duration]` and not going backwards, finite vectors, every named part one of `partIds`, event types that are non-empty strings and\n * JSON-serializable event data.\n */\nexport const checkAnimation = (clip: AnimationClipSpec, partIds: Iterable<string>): { ok: boolean; problems: string[] } => {\n const problems: string[] = []\n const parts = new Set(partIds)\n const id = String(clip?.id ?? '')\n if (!/^[a-z][a-z0-9_]*$/.test(id)) problems.push(`clip id \"${id}\" must be snake_case`)\n const label = `clip \"${id}\"`\n if (!(typeof clip?.duration === 'number' && Number.isFinite(clip.duration) && clip.duration > 0)) problems.push(`${label} needs a positive finite duration`)\n const dur = typeof clip?.duration === 'number' && clip.duration > 0 ? clip.duration : Infinity\n if (!Array.isArray(clip?.keys) || clip.keys.length === 0) {\n problems.push(`${label} needs at least one key`)\n return { ok: false, problems }\n }\n let prev = -Infinity\n clip.keys.forEach((k, i) => {\n if (!(typeof k.t === 'number' && Number.isFinite(k.t)) || k.t < 0 || k.t > dur + 1e-9) problems.push(`${label} key ${i} has t=${String(k.t)} outside 0..${dur}`)\n else if (k.t < prev) problems.push(`${label} key ${i} goes back in time (${k.t} < ${prev})`)\n else prev = k.t\n for (const f of ['position', 'rotation'] as const) if (k[f] !== undefined && !finite3(k[f])) problems.push(`${label} key ${i} has an invalid ${f}`)\n for (const [pid, pose] of Object.entries(k.parts ?? {})) {\n if (!parts.has(pid)) problems.push(`${label} key ${i} moves unknown part \"${pid}\"`)\n for (const f of ['position', 'rotation'] as const) if (pose?.[f] !== undefined && !finite3(pose[f])) problems.push(`${label} key ${i} part \"${pid}\" has an invalid ${f}`)\n }\n })\n let prevEv = -Infinity\n ;(clip.events ?? []).forEach((e, i) => {\n if (!(typeof e.t === 'number' && Number.isFinite(e.t)) || e.t < 0 || e.t > dur + 1e-9) problems.push(`${label} event ${i} has t=${String(e.t)} outside 0..${dur}`)\n else if (e.t < prevEv) problems.push(`${label} event ${i} goes back in time`)\n else prevEv = e.t\n if (typeof e.type !== 'string' || e.type === '') problems.push(`${label} event ${i} needs a type`)\n try {\n JSON.stringify(e.data ?? {})\n } catch {\n problems.push(`${label} event ${i} data is not JSON`)\n }\n })\n return { ok: problems.length === 0, problems }\n}\n","import type { AnimationClipSpec, AnimationEventSpec, AnimationPose } from './animation'\nimport { checkAnimation } from './animation'\nimport type { HostEvent } from './module'\n\n/** Clips a tool can bring, one per move of its cycle. A tool brings the ones it has; a missing clip is simply not played. */\nexport const TOOL_CLIP = {\n DRAW: 'draw',\n SHOT: 'shot',\n MISFIRE: 'misfire',\n EMPTY: 'empty',\n CYCLE: 'cycle',\n RELOAD: 'reload',\n FEED: 'feed',\n FAULT: 'fault',\n CLEAR: 'clear',\n SAFETY_ON: 'safety_on',\n SAFETY_OFF: 'safety_off',\n MODE: 'mode',\n /** A throwable with the pin out, held until it is thrown. */\n COOK: 'cook',\n /** The stock folds, unfolds, slides in or out (variants `fold`, `unfold`, `collapse`, `extend`). */\n STOCK: 'stock',\n /** A light or a laser is switched (variants `on`, `off`). */\n TOGGLE: 'toggle',\n} as const\nexport type ToolClipId = (typeof TOOL_CLIP)[keyof typeof TOOL_CLIP]\n\n/** What a renderer does when a rule event arrives. `variant` picks `<clip>_<variant>` when the tool has it, else `<clip>`. */\nexport type ToolAnimationStep =\n | { readonly type: 'play'; readonly clip: ToolClipId; readonly variant?: string; readonly duration?: number; readonly repeat?: number }\n /** Move the clip that is playing to the marker (a clip event `stage` with `data.stage`) the rule just reached. */\n | { readonly type: 'sync'; readonly stage: string }\n /** The rule says the phase is over: the clip jumps to its end if it is still running. */\n | { readonly type: 'finish'; readonly clip: ToolClipId }\n\nconst stockVariant = (event: Extract<HostEvent, { type: 'stock' }>): string => {\n const isFolding = event.kind === undefined ? false : event.kind.includes('fold')\n if (event.state === 'collapsed') return isFolding ? 'fold' : 'collapse'\n return isFolding ? 'unfold' : 'extend'\n}\n\n/** The move a host event asks of the tool in hand, or null when it has no motion. */\nexport const toolAnimationStep = (event: HostEvent): ToolAnimationStep | null => {\n switch (event.type) {\n case 'tool':\n return { type: 'play', clip: TOOL_CLIP.DRAW, ...(event.duration === undefined ? {} : { duration: event.duration }) }\n case 'shot':\n return { type: 'play', clip: TOOL_CLIP.SHOT, repeat: Math.max(1, event.rounds ?? 1) }\n case 'misfire':\n return { type: 'play', clip: TOOL_CLIP.MISFIRE }\n case 'empty':\n return { type: 'play', clip: TOOL_CLIP.EMPTY }\n case 'mode':\n return { type: 'play', clip: TOOL_CLIP.MODE, variant: event.mode }\n case 'fault':\n return { type: 'play', clip: TOOL_CLIP.FAULT, variant: event.fault }\n case 'clear':\n if (event.phase === 'end') return { type: 'finish', clip: TOOL_CLIP.CLEAR }\n return { type: 'play', clip: TOOL_CLIP.CLEAR, variant: event.fault, ...(event.duration === undefined ? {} : { duration: event.duration }) }\n case 'safety':\n return { type: 'play', clip: event.on ? TOOL_CLIP.SAFETY_ON : TOOL_CLIP.SAFETY_OFF }\n case 'cycle':\n if (event.phase === 'end') return { type: 'finish', clip: TOOL_CLIP.CYCLE }\n return { type: 'play', clip: TOOL_CLIP.CYCLE, ...(event.duration === undefined ? {} : { duration: event.duration }) }\n case 'reload':\n if (event.phase === 'end') return { type: 'finish', clip: TOOL_CLIP.RELOAD }\n return { type: 'play', clip: TOOL_CLIP.RELOAD, ...(event.kind === undefined ? {} : { variant: event.kind }), ...(event.duration === undefined ? {} : { duration: event.duration }) }\n case 'stage':\n return { type: 'sync', stage: event.stage }\n case 'feed':\n return { type: 'play', clip: TOOL_CLIP.FEED }\n case 'cook':\n if (event.phase === 'start') return { type: 'play', clip: TOOL_CLIP.COOK, duration: event.fuse }\n return { type: 'finish', clip: TOOL_CLIP.COOK }\n case 'stock':\n return { type: 'play', clip: TOOL_CLIP.STOCK, variant: stockVariant(event), ...(event.duration === undefined ? {} : { duration: event.duration }) }\n case 'toggle':\n return { type: 'play', clip: TOOL_CLIP.TOGGLE, variant: event.on ? 'on' : 'off' }\n default:\n return null\n }\n}\n\n/** Where a renderer puts the poses: every part of the tool by id (the ids the clips move), and the whole tool. Poses are offsets from rest. */\nexport interface ToolRig {\n setPartPose(partId: string, pose: AnimationPose): void\n setRootPose?(pose: AnimationPose): void\n}\n\n/** Clips by id, with the variants as `<clip>_<variant>`. */\nexport type ToolClipSet = Readonly<Record<string, AnimationClipSpec>>\n\n/** A renderer's tool animator: feed it the host events and the frame time. */\nexport interface ToolAnimator {\n handle(event: HostEvent): void\n update(dt: number): void\n /** Ids of the clips playing now. */\n readonly playing: readonly string[]\n dispose(): void\n}\n\nexport const STAGE_EVENT = 'stage'\n\n/** The clip with its times (keys and events) scaled so that it lasts `duration` seconds. */\nexport const scaleClip = (clip: AnimationClipSpec, duration: number): AnimationClipSpec => {\n const factor = clip.duration > 0 ? duration / clip.duration : 1\n return {\n ...clip,\n duration,\n keys: clip.keys.map((key) => ({ ...key, t: key.t * factor })),\n ...(clip.events ? { events: clip.events.map((event) => ({ ...event, t: event.t * factor })) } : {}),\n }\n}\n\nconst ZERO: [number, number, number] = [0, 0, 0]\nconst mix = (from: readonly number[], to: readonly number[], fraction: number): [number, number, number] => [\n (from[0] ?? 0) + ((to[0] ?? 0) - (from[0] ?? 0)) * fraction,\n (from[1] ?? 0) + ((to[1] ?? 0) - (from[1] ?? 0)) * fraction,\n (from[2] ?? 0) + ((to[2] ?? 0) - (from[2] ?? 0)) * fraction,\n]\n\n/** Pose of the whole tool (`partId` undefined) or of one part at `time`, linear between keys; a key that does not name it means rest. */\nexport const sampleClip = (clip: AnimationClipSpec, partId: string | undefined, time: number): { position: [number, number, number]; rotation: [number, number, number] } => {\n const points = clip.keys.map((key) => {\n const pose = partId === undefined ? key : key.parts?.[partId]\n return { t: key.t, position: pose?.position ?? ZERO, rotation: pose?.rotation ?? ZERO }\n })\n const first = points[0]\n if (!first || first.t > 0) points.unshift({ t: 0, position: ZERO, rotation: ZERO })\n const last = points[points.length - 1]\n if (!last) return { position: ZERO, rotation: ZERO }\n if (time >= last.t) return { position: mix(last.position, last.position, 0), rotation: mix(last.rotation, last.rotation, 0) }\n const index = Math.max(0, points.findIndex((point, i) => time >= point.t && time < (points[i + 1]?.t ?? Infinity)))\n const from = points[index]\n const to = points[index + 1]\n if (!from || !to) return { position: ZERO, rotation: ZERO }\n const fraction = to.t > from.t ? (time - from.t) / (to.t - from.t) : 0\n return { position: mix(from.position, to.position, fraction), rotation: mix(from.rotation, to.rotation, fraction) }\n}\n\n/** Problems with a clip set (empty when valid): each key is the clip id (or `<clip>_<variant>`), every clip passes `checkAnimation`, and a `stage` event names its stage. */\nexport const checkToolClips = (clips: ToolClipSet, partIds: Iterable<string>): { ok: boolean; problems: string[] } => {\n const parts = [...partIds]\n const problems: string[] = []\n for (const [key, clip] of Object.entries(clips)) {\n if (clip.id !== key) problems.push(`clip \"${key}\" has the id \"${clip.id}\"`)\n if (!(clip.duration > 0)) problems.push(`clip \"${key}\" has no duration`)\n problems.push(...checkAnimation(clip, parts).problems)\n for (const event of clip.events ?? []) if (event.type === STAGE_EVENT && typeof event.data?.stage !== 'string') problems.push(`clip \"${key}\" has a stage event without data.stage`)\n }\n return { ok: problems.length === 0, problems }\n}\n\ninterface Instance {\n readonly name: string\n readonly clip: AnimationClipSpec\n time: number\n delay: number\n fired: number\n}\n\nexport interface ToolClipPlayerOptions {\n clips: ToolClipSet\n rig: ToolRig\n /** Called for each clip event as its time passes (`eject_casing`, `drop_magazine`, `stage`...). */\n onEvent?(event: AnimationEventSpec, clip: string): void\n /** Seconds between the rounds of a `repeat` (a burst): default 0.1. */\n repeatInterval?(): number\n}\n\n/** The default player of a tool's clips: runs the steps of `toolAnimationStep` against a rig, scaled to the duration the rule gives. */\nexport interface ToolClipPlayer {\n apply(step: ToolAnimationStep): void\n update(dt: number): void\n readonly playing: readonly string[]\n /** The clips being played with the time each has reached and the clip itself (scaled to the duration the rule gave), for a renderer that has to follow what the clip does now (the hands working a part). */\n readonly running: ReadonlyArray<{ readonly name: string; readonly time: number; readonly clip: AnimationClipSpec }>\n}\n\n/**\n * The clip with every event that has a `lead` moved that many seconds earlier, the lead it got in `data.lead`. A led event never goes before 0\n * nor before the event written ahead of it (a fast clip keeps its order: the lead shrinks). Run after `scaleClip`: the lead is real time, the\n * clip's stretch does not touch it.\n */\nexport const leadClipEvents = (clip: AnimationClipSpec): AnimationClipSpec => {\n const events = clip.events ?? []\n if (!events.some((event) => (event.lead ?? 0) > 0)) return clip\n let floor = 0\n const led = events.map((event) => {\n const lead = Math.max(0, Math.min(event.t - floor, event.lead ?? 0))\n const t = event.t - lead\n floor = Math.max(floor, t)\n if (event.lead === undefined) return event\n const moved: AnimationEventSpec = { ...event, t, data: lead > 0 ? { ...event.data, lead } : { ...event.data } }\n delete moved.lead\n return moved\n })\n return { ...clip, events: led }\n}\n\nexport const createToolClipPlayer = (options: ToolClipPlayerOptions): ToolClipPlayer => {\n const { clips, rig, onEvent } = options\n let instances: Instance[] = []\n\n const find = (clip: string, variant?: string): { name: string; clip: AnimationClipSpec } | undefined => {\n const name = variant !== undefined && clips[`${clip}_${variant}`] ? `${clip}_${variant}` : clip\n const found = clips[name]\n return found ? { name, clip: found } : undefined\n }\n\n const render = (instance: Instance): void => {\n const time = Math.min(instance.time, instance.clip.duration)\n const root = sampleClip(instance.clip, undefined, time)\n if (instance.clip.keys.some((key) => key.position || key.rotation)) rig.setRootPose?.(root)\n const touched = new Set(instance.clip.keys.flatMap((key) => Object.keys(key.parts ?? {})))\n for (const id of touched) rig.setPartPose(id, sampleClip(instance.clip, id, time))\n }\n\n const fireEvents = (instance: Instance, upTo: number): void => {\n const events = instance.clip.events ?? []\n while (instance.fired < events.length && (events[instance.fired]?.t ?? Infinity) <= upTo + 1e-9) {\n const event = events[instance.fired]\n instance.fired += 1\n if (event) onEvent?.(event, instance.name)\n }\n }\n\n return {\n apply(step) {\n if (step.type === 'sync') {\n for (const instance of instances) {\n const marker = (instance.clip.events ?? []).find((event) => event.type === STAGE_EVENT && event.data?.stage === step.stage)\n if (marker && instance.time < marker.t) instance.time = marker.t\n }\n return\n }\n if (step.type === 'finish') {\n for (const instance of instances) {\n if (instance.name !== step.clip && !instance.name.startsWith(`${step.clip}_`)) continue\n fireEvents(instance, instance.clip.duration)\n instance.time = instance.clip.duration\n }\n return\n }\n const found = find(step.clip, step.variant)\n if (!found) return\n const clip = leadClipEvents(step.duration && step.duration > 0 ? scaleClip(found.clip, step.duration) : found.clip)\n const interval = options.repeatInterval?.() ?? 0.1\n instances = instances.filter((existing) => existing.name !== found.name || existing.delay > 0)\n for (let round = 0; round < (step.repeat ?? 1); round++) {\n instances.push({ name: found.name, clip, time: 0, delay: round * interval, fired: 0 })\n }\n },\n update(dt) {\n for (const instance of instances) {\n const carried = instance.delay > 0 ? dt - instance.delay : dt\n if (instance.delay > 0) {\n instance.delay = Math.max(0, instance.delay - dt)\n if (instance.delay > 0) continue\n }\n instance.time += carried\n fireEvents(instance, instance.time)\n render(instance)\n }\n instances = instances.filter((instance) => instance.delay > 0 || instance.time < instance.clip.duration)\n },\n get playing() {\n return instances.map((instance) => instance.name)\n },\n get running() {\n return instances.filter((instance) => instance.delay <= 0).map((instance) => ({ name: instance.name, time: instance.time, clip: instance.clip }))\n },\n }\n}\n","export const FRAME_PHASES = ['input', 'fixedSimulate', 'lateSimulate', 'present', 'render', 'idle'] as const\nexport type FramePhase = (typeof FRAME_PHASES)[number]\n\n/**\n * Presentation work a system leaves for later frames, run in small units within a shared time budget.\n * Never simulation: nothing that consumes a seeded generator or decides an outcome may wait in a queue.\n */\nexport interface DeferredQueue {\n /** Stable name for stats and logs (see `DEFERRED_QUEUE_ID`). */\n readonly id: string\n /**\n * Units waiting. 0 means idle; the budget skips the queue without calling `run`. `frame` is the budget's frame counter: a queue may\n * report 0 for the rest of a frame (the crease queue does in the frame a panel was torn). Same value for repeated calls in one frame.\n */\n pending(frame?: number): number\n /**\n * Runs units in order until `clock() >= deadline`. Contract: when `pending() > 0` it runs **at least one** unit, even with a deadline\n * already past; it never runs a unit after it saw the deadline pass. Returns how many units it ran.\n */\n run(deadline: number, clock: () => number): number\n /** Runs everything now (synchronous step, clear, dispose). */\n flush(): void\n /**\n * Called by `budget.register`: from now on the owner stops draining on its own (no MessageChannel, no drain inside `update`).\n * Never called by a getter; a queue nobody registered keeps today's internal draining.\n */\n attach?(): void\n /** Called by the unregister function and by `budget.dispose`: the owner goes back to its internal draining. */\n detach?(): void\n}\n\n/** Where a module registers a deferred queue with the host's budget. */\nexport interface DeferredQueueOptions {\n /** Higher runs first. See DEFERRED_PRIORITY. */\n readonly priority: number\n /** `present` runs before the render (the work must show this frame); `idle` runs after it. Default `idle`. */\n readonly phase?: 'present' | 'idle'\n /** Starvation guard: the queue runs at least one unit every this many frames, even with the budget spent. Default 4. */\n readonly minEveryFrames?: number\n /** Milliseconds of every frame kept for this queue before the others share the rest (when it has work). Default 0. */\n readonly reserveMs?: number\n}\n\n/** The ids of the kit's queues: what `DeferredQueue.id` says and what `DEFERRED_PRIORITY` is keyed by. */\nexport const DEFERRED_QUEUE_ID = {\n DESTRUCTION_EVENTS: 'destruction.events',\n BREACH_PAINT: 'floorplan.breach-paint',\n AUDIO_VOICES: 'audio.voices',\n VEHICLE_CREASE: 'vehicles.crease',\n} as const\n\n/** Default priorities and reserves of the kit's queues; a host may override any of them. */\nexport const DEFERRED_PRIORITY = {\n [DEFERRED_QUEUE_ID.DESTRUCTION_EVENTS]: { priority: 300, phase: 'present' },\n [DEFERRED_QUEUE_ID.BREACH_PAINT]: { priority: 250, phase: 'present' },\n [DEFERRED_QUEUE_ID.AUDIO_VOICES]: { priority: 200, phase: 'idle', reserveMs: 1 },\n [DEFERRED_QUEUE_ID.VEHICLE_CREASE]: { priority: 100, phase: 'idle' },\n} as const satisfies Readonly<Record<string, DeferredQueueOptions>>\n\nexport interface DeferredQueueReport {\n readonly ok: boolean\n readonly problems: readonly string[]\n}\n\n/**\n * Checks the `DeferredQueue` contract. `fill` leaves the queue with at least two units waiting (the same call is made on a fresh queue).\n * It cannot prove the queue only carries presentation work: that is a rule of review.\n */\nexport function checkDeferredQueue(queue: DeferredQueue, fill: () => void): DeferredQueueReport {\n const problems: string[] = []\n fill()\n const waiting = queue.pending(1)\n if (waiting < 2) problems.push(`fill() must leave at least 2 units waiting (pending is ${waiting})`)\n if (queue.pending(1) !== waiting) problems.push('pending(frame) changed between two calls in the same frame')\n const ran = queue.run(0, () => 1)\n if (ran !== 1) problems.push(`run with a deadline already past must run exactly one unit (ran ${ran})`)\n if (waiting >= 2 && queue.pending(2) !== waiting - 1) problems.push(`one unit ran but pending went from ${waiting} to ${queue.pending(2)}`)\n try {\n queue.attach?.()\n queue.attach?.()\n queue.detach?.()\n queue.detach?.()\n } catch (error) {\n problems.push(`attach/detach must be idempotent: ${error instanceof Error ? error.message : String(error)}`)\n }\n queue.flush()\n if (queue.pending(3) !== 0) problems.push(`flush must leave nothing pending (pending is ${queue.pending(3)})`)\n if (queue.run(0, () => 1) !== 0) problems.push('run on an empty queue must run no unit')\n return { ok: problems.length === 0, problems }\n}\n","const WARNED_KEY = Symbol.for('@adatechnology/game-contracts.warned')\n\ntype WarnedHolder = { [WARNED_KEY]?: Set<string> }\n\nconst warnedKeys = (): Set<string> => {\n const holder = globalThis as WarnedHolder\n return (holder[WARNED_KEY] ??= new Set<string>())\n}\n\ndeclare const process: { readonly env: { readonly NODE_ENV?: string } }\n\n// The literal `process.env.NODE_ENV` is what bundlers replace; where there is no `process` the reference throws and counts as development.\nconst isProduction = (): boolean => {\n try {\n return process.env.NODE_ENV === 'production'\n } catch {\n return false\n }\n}\n\nconst isQuiet = (): boolean => (globalThis as { __GAME_KIT_QUIET__?: unknown }).__GAME_KIT_QUIET__ === true\n\n/**\n * Warns on the console the first time `key` is seen, and only outside production and when `globalThis.__GAME_KIT_QUIET__` is not `true`: for a silent fallback that keeps working (an adapter that made its own effects\n * world or audio engine because the host lent none). The seen keys live on `globalThis`, so several bundles of the kit on one page warn once together.\n */\nexport const warnOnce = (key: string, message: string): void => {\n if (isQuiet() || isProduction()) return\n const seen = warnedKeys()\n if (seen.has(key)) return\n seen.add(key)\n console.warn(`[game-kit] ${message}`)\n}\n\n/** Forgets what `warnOnce` has seen (tests that count warnings). */\nexport const resetWarnOnce = (): void => warnedKeys().clear()\n","import { warnOnce } from './warn'\n\ntype PlainObject = Record<string, unknown>\ntype Entry = { readonly id: string }\n\n/** Keys that would reach the prototype of the result when a patch comes from parsed JSON. */\nconst UNSAFE_KEYS: ReadonlySet<string> = new Set(['__proto__', 'constructor', 'prototype'])\n\nconst isPlainObject = (value: unknown): value is PlainObject =>\n typeof value === 'object' && value !== null && !Array.isArray(value) && Object.getPrototypeOf(value) === Object.prototype\n\n/** Recursively optional; arrays and functions are replaced as a whole, objects are merged. */\nexport type DeepPartial<TValue> = TValue extends (...args: never[]) => unknown\n ? TValue\n : TValue extends readonly unknown[]\n ? TValue\n : TValue extends object\n ? { [TKey in keyof TValue]?: DeepPartial<TValue[TKey]> }\n : TValue\n\n/** Merges `patch` over `base`: plain objects merge field by field, arrays, functions and primitives replace. `undefined` in the patch is ignored. */\nexport const deepMerge = <TBase extends object>(base: TBase, patch: object | undefined): TBase => {\n if (!patch) return base\n const result: PlainObject = { ...(base as PlainObject) }\n for (const [key, value] of Object.entries(patch)) {\n if (value === undefined || UNSAFE_KEYS.has(key)) continue\n const current = result[key]\n result[key] = isPlainObject(current) && isPlainObject(value) ? deepMerge(current, value) : value\n }\n return result as TBase\n}\n\n/** The shipped entries with the ones from `extra` added or, when the id exists, replaced. */\nexport const mergeById = <TEntry extends Entry>(shipped: readonly TEntry[], extra: readonly TEntry[] | undefined): Map<string, TEntry> => {\n const entries = new Map<string, TEntry>()\n for (const entry of [...shipped, ...(extra ?? [])]) entries.set(entry.id, entry)\n return entries\n}\n\n/** Applies `patch` by id; a patch for an id that does not exist is ignored (and warned about once, in development). */\nexport const applyPatches = <TEntry extends Entry>(entries: Map<string, TEntry>, patches: Readonly<Record<string, DeepPartial<TEntry> | Partial<TEntry>>> | undefined): void => {\n for (const [id, patch] of Object.entries(patches ?? {})) {\n const entry = entries.get(id)\n if (entry) entries.set(id, deepMerge(entry, patch))\n else warnOnce(`registry.patch.${id}`, `patch for \"${id}\" ignored: no entry has that id`)\n }\n}\n\n/** Takes the ids out; an id that does not exist is ignored (and warned about once, in development). */\nexport const removeIds = (entries: Map<string, unknown>, ids: readonly string[] | undefined): void => {\n for (const id of ids ?? []) {\n if (!entries.delete(id)) warnOnce(`registry.remove.${id}`, `remove of \"${id}\" ignored: no entry has that id`)\n }\n}\n","import type { Vec3 } from './destruction'\n\n/**\n * The bench of a module: controls, layers and counters it declares as data. The host keeps the values, draws them in a generic way and hands\n * every change back through `ModuleHost.bench`. Nothing here is specific to a kind of module.\n */\nexport type ControlValue = number | boolean | string\n\nexport interface ChoiceOption {\n readonly id: string\n readonly name: string\n /** Heading the host lists the option under (`optgroup`, a grouped row of buttons). Options of a group must sit next to each other. */\n readonly group?: string\n}\n\ninterface ControlBase {\n /** snake_case, unique across the module's controls, layers and metrics. */\n readonly id: string\n /** Display name, already translated for the locale the host asked for. */\n readonly name: string\n readonly hint?: string\n readonly hidden?: boolean\n /**\n * The change (or the press, for an action) takes a noticeable time, a third of a second or more: the host shows its loading indicator while it works, with this text, or the control's name for `true`.\n * Only the host's own controls panel does it; a change made through `TestRoom.bench().set / act` runs at once.\n */\n readonly slow?: boolean | string\n}\n\nexport interface NumberControl extends ControlBase {\n readonly kind: 'number'\n readonly min: number\n readonly max: number\n readonly step?: number\n readonly unit?: string\n readonly default: number\n}\n\nexport interface BooleanControl extends ControlBase {\n readonly kind: 'boolean'\n readonly default: boolean\n}\n\nexport interface ChoiceControl extends ControlBase {\n readonly kind: 'choice'\n readonly options: readonly ChoiceOption[]\n readonly default: string\n}\n\n/** A button: no value, only the press. */\nexport interface ActionControl extends ControlBase {\n readonly kind: 'action'\n}\n\nexport type ModuleControl = NumberControl | BooleanControl | ChoiceControl | ActionControl\n\n/** Something of the module the viewer turns on or off (smoke, flash, casings). */\nexport interface ModuleLayer {\n readonly id: string\n readonly name: string\n /** On unless `false`. */\n readonly default?: boolean\n}\n\n/** Pulled: the room calls read only when it samples (~4 Hz, or on TestRoom.metrics()). */\nexport interface ModuleMetric {\n readonly id: string\n readonly name: string\n readonly unit?: string\n /** Budget: the host shows a bar and warns past it. */\n readonly max?: number\n readonly digits?: number\n read(): number | string\n}\n\nexport type BenchChange =\n | { readonly kind: 'control'; readonly id: string; readonly value: ControlValue }\n | { readonly kind: 'layer'; readonly id: string; readonly on: boolean }\n | { readonly kind: 'action'; readonly id: string }\n\nexport interface ControlPatch {\n readonly hidden?: boolean\n readonly disabled?: boolean\n readonly options?: readonly ChoiceOption[]\n readonly value?: ControlValue\n}\n\n/** What the host lends a module that declares a bench: the current values and the changes. */\nexport interface ModuleBench {\n value(id: string): ControlValue | undefined\n layer(id: string): boolean\n /** Right after attach returns, the host sends one change per control (not actions) and per layer, in declaration order. */\n onChange(listener: (change: BenchChange) => void): () => void\n /** `value` sets without emitting (no echo loops); `options` falls back to the first option if the value is no longer offered. */\n patch(id: string, patch: ControlPatch): void\n /** Move the host camera (a near / middle / far choice). */\n look(eye: Vec3, target: Vec3): void\n /** Shows a sheet on the host's panel, or takes it down with `null`. A host without a sheet area ignores it. */\n sheet?(sheet: BenchSheet | null): void\n}\n\n/**\n * A card of text the module puts on the host's panel (the sheet of an effect, of a weapon): what it is, its numbers, its steps, its colours and,\n * optionally, a strip of segments over time. Names and texts are already translated for the host's locale.\n */\nexport interface BenchSheet {\n readonly kicker?: string\n readonly title: string\n readonly body?: string\n readonly facts?: readonly { readonly label: string; readonly value: string }[]\n readonly steps?: readonly { readonly at: string; readonly text: string }[]\n readonly swatches?: readonly { readonly color: string; readonly name: string }[]\n readonly note?: string\n /** A picture of the real thing the card is about, with its author and licence: the host shows it on the card, linked to `page`. */\n readonly image?: { readonly url: string; readonly alt: string; readonly credit?: string; readonly page?: string }\n /** A strip of named segments (seconds), with tick marks and a playhead that follows the module metric `metric`. */\n readonly timeline?: {\n readonly segments: readonly { readonly name: string; readonly start: number; readonly end: number; readonly color: string }[]\n readonly ticks: readonly number[]\n readonly metric: string\n }\n}\n\nexport interface BenchReport {\n readonly ok: boolean\n readonly problems: readonly string[]\n}\n\nexport interface BenchDeclaration {\n readonly controls?: readonly ModuleControl[]\n readonly layers?: readonly ModuleLayer[]\n readonly metrics?: readonly ModuleMetric[]\n}\n\nconst SNAKE_CASE = /^[a-z][a-z0-9_]*$/\nconst finite = (n: unknown): n is number => typeof n === 'number' && Number.isFinite(n)\n\nfunction checkControl(control: ModuleControl, problems: string[]): void {\n const label = `control \"${control.id}\"`\n if (control.kind === 'number') {\n if (!finite(control.min) || !finite(control.max) || control.min >= control.max) problems.push(`${label} needs min < max`)\n if (control.step !== undefined && !(finite(control.step) && control.step > 0)) problems.push(`${label} needs a step > 0`)\n if (!finite(control.default) || control.default < control.min || control.default > control.max) problems.push(`${label} default ${String(control.default)} is outside ${control.min}..${control.max}`)\n return\n }\n if (control.kind !== 'choice') return\n if (control.options.length === 0) {\n problems.push(`${label} needs at least one option`)\n return\n }\n const seen = new Set<string>()\n const groups = new Set<string>()\n let previousGroup: string | undefined\n for (const option of control.options) {\n if (seen.has(option.id)) problems.push(`${label} repeats option \"${option.id}\"`)\n seen.add(option.id)\n if (option.group !== undefined && (typeof option.group !== 'string' || option.group === '')) problems.push(`${label} option \"${option.id}\" has an empty group`)\n else if (option.group !== undefined && option.group !== previousGroup && groups.has(option.group)) problems.push(`${label} group \"${option.group}\" is split: its options must be next to each other`)\n if (typeof option.group === 'string' && option.group !== '') groups.add(option.group)\n previousGroup = option.group\n }\n if (!seen.has(control.default)) problems.push(`${label} default \"${control.default}\" is not among its options`)\n}\n\n/** snake_case ids unique across controls, layers and metrics; min < max; step > 0; default in range; options non-empty, unique, default among them, each group in one run; metric max > 0. */\nexport function checkBench(declared: BenchDeclaration): BenchReport {\n const problems: string[] = []\n const ids = new Set<string>()\n const claim = (kind: string, id: string): void => {\n if (!SNAKE_CASE.test(id)) problems.push(`${kind} id \"${id}\" must be snake_case`)\n if (ids.has(id)) problems.push(`duplicate id \"${id}\" across controls, layers and metrics`)\n ids.add(id)\n }\n for (const control of declared.controls ?? []) {\n claim('control', control.id)\n checkControl(control, problems)\n }\n for (const layer of declared.layers ?? []) claim('layer', layer.id)\n for (const metric of declared.metrics ?? []) {\n claim('metric', metric.id)\n if (metric.max !== undefined && !(finite(metric.max) && metric.max > 0)) problems.push(`metric \"${metric.id}\" needs a max > 0`)\n }\n return { ok: problems.length === 0, problems }\n}\n","/** The weather, light and ground as the world is right now. Written by whoever drives the weather, read by whoever reacts to it. */\nexport interface EnvironmentState {\n /** Rain in mm/h; 0 is dry. */\n readonly rain: number\n /** Wind in m/s along x and z, and its strength (the length of that vector). */\n readonly windX: number\n readonly windZ: number\n readonly windSpeed: number\n /** Strongest gust in m/s. */\n readonly gust: number\n /** Render fog far distance in metres. */\n readonly fogFar: number\n /** How far one can see for gameplay, in metres (not the render fog). */\n readonly visibility: number\n /** 0 is full daylight, 1 is the darkest night. */\n readonly nightFactor: number\n readonly temperatureC: number\n /** Wet ground, 0..1: rises with rain and dries after it stops. */\n readonly wetness: number\n}\n\nexport type EnvironmentKey = keyof EnvironmentState\n\n/** A calm dry day (the normal world, before anything went wrong). */\nexport const DEFAULT_ENVIRONMENT: EnvironmentState = {\n rain: 0,\n windX: 0,\n windZ: 0,\n windSpeed: 0,\n gust: 0,\n fogFar: 220,\n visibility: 220,\n nightFactor: 0,\n temperatureC: 20,\n wetness: 0,\n}\n\n/** The host's environment (`ModuleHost.environment`): a store the weather module writes to and the others read. */\nexport interface EnvironmentBus {\n get(): EnvironmentState\n /** Merges `patch` into the state; listeners hear it only when a value really changed. */\n set(patch: Partial<EnvironmentState>): void\n /** Hears every change with the keys that changed. Returns the unsubscribe function. */\n on(listener: (state: EnvironmentState, changed: readonly EnvironmentKey[]) => void): () => void\n}\n\n/** A plain store that implements the bus; the test room and tests use it, a game may bring its own. */\nexport function createEnvironmentBus(initial: Partial<EnvironmentState> = {}): EnvironmentBus {\n let state: EnvironmentState = { ...DEFAULT_ENVIRONMENT, ...initial }\n const listeners = new Set<(state: EnvironmentState, changed: readonly EnvironmentKey[]) => void>()\n return {\n get: () => state,\n set(patch) {\n const changed = (Object.keys(patch) as EnvironmentKey[]).filter((key) => patch[key] !== undefined && patch[key] !== state[key])\n if (changed.length === 0) return\n const next = { ...state } as { -readonly [Key in EnvironmentKey]: number }\n for (const key of changed) next[key] = patch[key] as number\n state = next\n for (const listener of [...listeners]) listener(state, changed)\n },\n on(listener) {\n listeners.add(listener)\n return () => void listeners.delete(listener)\n },\n }\n}\n","import { applyPatches, deepMerge, mergeById, removeIds } from './registry'\nimport type { DeepPartial } from './registry'\n\n/** One category (kind) of items. Defaults and required contracts are inherited from the `extends` chain. */\nexport interface CategoryDef<TDefaults extends object = Record<string, unknown>> {\n readonly id: string\n /** Parent category id; the child inherits its defaults and its required contracts. */\n readonly extends?: string\n /** Field values every entry of this kind starts with; objects merge down the chain, arrays replace. */\n readonly defaults?: DeepPartial<TDefaults>\n /** Contract ids (`ContractChecker.id`) every entry of this kind, or of a descendant, must satisfy. */\n readonly requires?: readonly string[]\n /** An abstract category only groups: entries cannot declare it directly, only its descendants. */\n readonly abstract?: boolean\n}\n\n/** Where a checker is being run: the entry's kind and the chain of categories root first. */\nexport interface ContractContext {\n readonly kind: string\n readonly chain: readonly string[]\n}\n\n/** A named contract: returns the problems of an entry, each a short phrase like `missing leftover.despawnSeconds`. Empty means it holds. */\nexport interface ContractChecker<TEntry> {\n readonly id: string\n check(entry: TEntry, ctx: ContractContext): string[]\n}\n\nexport interface CategoryOptions {\n /** Categories added to the shipped ones; the same id replaces. */\n readonly extra?: readonly CategoryDef[]\n /** Partial changes by id, applied after `extra`. */\n readonly patches?: Readonly<Record<string, DeepPartial<CategoryDef> | Partial<CategoryDef>>>\n /** Ids taken out of the tree (their children are then reported by `check()`). */\n readonly remove?: readonly string[]\n}\n\nexport interface CategoryRegistry {\n get(id: string): CategoryDef | undefined\n has(id: string): boolean\n ids(): string[]\n /** Root first, ending at `id`. Throws on an unknown id, an unknown parent or a cycle. */\n chain(id: string): string[]\n /** `defaults` merged along the chain, root first, so the closest category wins. */\n defaults(id: string): Record<string, unknown>\n /** Union of `requires` along the chain, order kept, without duplicates. */\n requires(id: string): string[]\n /** True when `id` is `ancestorId` or descends from it. */\n isA(id: string, ancestorId: string): boolean\n /** Problems in the tree itself: duplicate ids, unknown `extends`, cycles. */\n check(): string[]\n}\n\nexport interface CategorizedOptions {\n /** Field of the entry that names its category. Default `kind`. */\n readonly kindField?: string\n /** Known gaps by entry id: problems starting with one of these texts go to `allowed`, so the list can shrink over time. */\n readonly allow?: Readonly<Record<string, readonly string[]>>\n}\n\nexport interface CategorizedReport {\n readonly ok: boolean\n readonly problems: string[]\n readonly allowed: string[]\n}\n\nexport const defineCategories = (defs: readonly CategoryDef[], options: CategoryOptions = {}): CategoryRegistry => {\n const problems: string[] = []\n const duplicates = (list: readonly CategoryDef[]): void => {\n const ids = new Set<string>()\n for (const def of list) {\n if (ids.has(def.id)) problems.push(`duplicate category \"${def.id}\"`)\n ids.add(def.id)\n }\n }\n duplicates(defs)\n duplicates(options.extra ?? [])\n\n const entries = mergeById(defs, options.extra)\n applyPatches(entries, options.patches)\n removeIds(entries, options.remove)\n\n const chain = (id: string): string[] => {\n const path: string[] = []\n let current: string | undefined = id\n while (current !== undefined) {\n const def = entries.get(current)\n if (!def) throw new Error(path.length === 0 ? `unknown category \"${current}\"` : `category \"${path[0]}\" has unknown parent \"${current}\"`)\n if (path.includes(current)) throw new Error(`category cycle: ${[...path, current].reverse().join(' -> ')}`)\n path.push(current)\n current = def.extends\n }\n return path.reverse()\n }\n\n const registry: CategoryRegistry = {\n get: (id) => entries.get(id),\n has: (id) => entries.has(id),\n ids: () => [...entries.keys()],\n chain,\n defaults: (id) => chain(id).reduce<Record<string, unknown>>((acc, ancestor) => deepMerge(acc, entries.get(ancestor)?.defaults), {}),\n requires: (id) => {\n const out: string[] = []\n for (const ancestor of chain(id)) for (const contract of entries.get(ancestor)?.requires ?? []) if (!out.includes(contract)) out.push(contract)\n return out\n },\n isA: (id, ancestorId) => {\n try {\n return chain(id).includes(ancestorId)\n } catch {\n return false\n }\n },\n check: () => {\n const found = [...problems]\n for (const [id, def] of entries) {\n if (def.extends !== undefined && !entries.has(def.extends)) found.push(`category \"${id}\" extends unknown \"${def.extends}\"`)\n else {\n try {\n chain(id)\n } catch (error) {\n const message = (error as Error).message\n // The same cycle is found from each of its members; the dedupe keeps one line per distinct message.\n if (message.startsWith('category cycle') && !found.includes(message)) found.push(message)\n }\n }\n }\n return found\n },\n }\n return registry\n}\n\n/** The entry with the defaults of its category underneath: the entry wins, objects merge, arrays replace. */\nexport const resolveEntry = <TEntry extends object>(registry: CategoryRegistry, entry: TEntry, kindField = 'kind'): TEntry =>\n deepMerge(registry.defaults(String((entry as Record<string, unknown>)[kindField])) as TEntry, entry)\n\n/** Checks that each entry has a known, concrete kind and satisfies every contract its chain requires. */\nexport const checkCategorized = <TEntry extends { readonly id: string }>(\n entries: readonly TEntry[],\n registry: CategoryRegistry,\n checkers: readonly ContractChecker<TEntry>[],\n options: CategorizedOptions = {},\n): CategorizedReport => {\n const kindField = options.kindField ?? 'kind'\n const byId = new Map(checkers.map((checker) => [checker.id, checker]))\n const problems: string[] = [...registry.check()]\n const allowed: string[] = []\n\n for (const entry of entries) {\n const kind = String((entry as Record<string, unknown>)[kindField])\n if (!registry.has(kind)) {\n problems.push(`\"${entry.id}\" has unknown kind \"${kind}\"`)\n continue\n }\n if (registry.get(kind)?.abstract) {\n problems.push(`\"${entry.id}\" has abstract kind \"${kind}\"`)\n continue\n }\n let path: string[]\n try {\n path = registry.chain(kind)\n } catch (error) {\n problems.push(`\"${entry.id}\" (${kind}): ${(error as Error).message}`)\n continue\n }\n const resolved = resolveEntry(registry, entry, kindField)\n for (const contract of registry.requires(kind)) {\n const owner = path.find((ancestor) => registry.get(ancestor)?.requires?.includes(contract)) ?? kind\n const checker = byId.get(contract)\n if (!checker) {\n problems.push(`kind \"${kind}\" requires contract \"${contract}\" but no checker is registered`)\n continue\n }\n const prefix = `\"${entry.id}\" (${kind}): `\n for (const problem of checker.check(resolved, { kind, chain: path })) {\n const text = `${prefix}${problem}, required by ${owner}`\n if ((options.allow?.[entry.id] ?? []).some((start) => problem.startsWith(start))) allowed.push(text)\n else problems.push(text)\n }\n }\n }\n return { ok: problems.length === 0, problems: [...new Set(problems)], allowed }\n}\n","/**\n * Where a drawn object comes from. Every builder of the kit that draws a piece (a car of the fleet, a house or a wall, a piece of furniture, a person, an\n * animal, a plant, an item, a weapon) marks the root it returns, and every renderer that draws for the room (effects, debris, liquids, the room itself)\n * marks its own roots, so a host can tell a piece of the kit from something drawn on the spot. Duck-typed on three.js objects (`userData`, `parent`,\n * `children`), so the contracts stay free of three.js.\n */\nexport const KIT_ORIGIN_KEY = 'kitOrigin'\n\n/** What drew an object: the package and the kind of piece (`vehicle`, `structure`, `furniture`, `person`... or `effect`, `room` for what is not a piece). */\nexport interface KitOrigin {\n readonly owner: string\n readonly kind: string\n /** The catalogue id of the piece, when it has one. */\n readonly id?: string\n /** Drawn as a simple stand-in shape because the kit has no model of the piece yet (an item with no team model): a model still to make. */\n readonly standIn?: boolean\n}\n\ninterface Node {\n userData?: Record<string, unknown>\n parent?: Node | null\n children?: readonly Node[]\n name?: string\n visible?: boolean\n isMesh?: boolean\n isPoints?: boolean\n isLine?: boolean\n isSprite?: boolean\n}\n\n/** Marks `object` as drawn by `origin.owner` and returns it. */\nexport function markKitOrigin<T>(object: T, origin: KitOrigin): T {\n const node = object as unknown as Node\n node.userData = node.userData ?? {}\n node.userData[KIT_ORIGIN_KEY] = { ...origin }\n return object\n}\n\n/** The origin of the object or of its nearest marked ancestor; null when nothing up the tree is marked. */\nexport function kitOriginOf(object: unknown): KitOrigin | null {\n for (let node = object as Node | null | undefined; node; node = node.parent) {\n const origin = node.userData?.[KIT_ORIGIN_KEY] as KitOrigin | undefined\n if (origin && typeof origin.owner === 'string') return origin\n }\n return null\n}\n\n/** A drawn thing that no builder of the kit marked: what was drawn on the spot. */\nexport interface UnmarkedDrawing {\n /** The names of the object and its named ancestors, outermost first. */\n readonly path: string\n readonly object: unknown\n}\n\n/** Every visible mesh, line, point cloud or sprite under `root` with no marked ancestor (`root` itself not counted as one). */\nexport function unmarkedDrawings(root: unknown): UnmarkedDrawing[] {\n const out: UnmarkedDrawing[] = []\n const pathOf = (node: Node): string => {\n const names: string[] = []\n for (let n: Node | null | undefined = node; n && n !== root; n = n.parent) if (n.name) names.push(n.name)\n return names.reverse().join(' > ') || '(no name)'\n }\n const walk = (node: Node, marked: boolean): void => {\n if (node.visible === false) return\n const here = marked || (node !== root && Boolean((node.userData?.[KIT_ORIGIN_KEY] as KitOrigin | undefined)?.owner))\n if (!here && (node.isMesh || node.isPoints || node.isLine || node.isSprite)) out.push({ path: pathOf(node), object: node })\n for (const child of node.children ?? []) walk(child, here)\n }\n walk(root as Node, false)\n return out\n}\n","/** A floor rectangle in an object's own space, metres (x across, z along). */\nexport interface Footprint {\n readonly minX: number\n readonly maxX: number\n readonly minZ: number\n readonly maxZ: number\n}\n\n/** What `footprintBlocker` reads of an object: its world matrix (three.js `Object3D`, duck-typed so the contracts stay free of three.js). */\nexport interface FootprintObject {\n readonly matrixWorld: { readonly elements: ArrayLike<number> }\n readonly parent?: unknown\n updateWorldMatrix?(updateParents: boolean, updateChildren: boolean): void\n}\n\n/**\n * The `ModuleHost.addBlocker` function of a solid object standing on the floor: the walking player stays out of `footprint`, a rectangle in the object's own space,\n * so the object blocks turned with it and follows it when it moves. An object out of the scene (no parent) blocks nothing.\n */\nexport function footprintBlocker(object: FootprintObject | (() => FootprintObject | null | undefined), footprint: Footprint | (() => Footprint | null | undefined)): (x: number, z: number, radius: number) => boolean {\n return (x, z, radius) => {\n const o = typeof object === 'function' ? object() : object\n const fp = typeof footprint === 'function' ? footprint() : footprint\n if (!o || !fp || !o.parent) return false\n o.updateWorldMatrix?.(true, false)\n const e = o.matrixWorld.elements\n // the world point in the object's own floor axes: its x and z columns are at right angles, so a projection on each (over its squared length, for a scale) inverts the matrix\n const dx = x - (e[12] as number)\n const dz = z - (e[14] as number)\n const ax = (e[0] as number) ** 2 + (e[1] as number) ** 2 + (e[2] as number) ** 2\n const az = (e[8] as number) ** 2 + (e[9] as number) ** 2 + (e[10] as number) ** 2\n const lx = (dx * (e[0] as number) + dz * (e[2] as number)) / (ax || 1)\n const lz = (dx * (e[8] as number) + dz * (e[10] as number)) / (az || 1)\n return lx > fp.minX - radius && lx < fp.maxX + radius && lz > fp.minZ - radius && lz < fp.maxZ + radius\n }\n}\n","/**\n * The sounds of a body (footsteps, jumps, landings, blows, hurt), as ids every package agrees on: the rule that knows what the body did\n * (`game-player`, a host's own player) names the sound, and the bank that knows how it sounds (`game-audio`'s `BODY_FOLEY_BANK`) answers it.\n * A game swaps the sound of an id (a sample instead of the synthesis) without touching the rule.\n */\n\n/** What the feet touch, by how it sounds (not by what it is made of: a wooden floor and a plywood board both sound `wood`). */\nexport const SURFACE_IDS = ['concrete', 'asphalt', 'wood', 'tile', 'dirt', 'grass', 'gravel', 'sand', 'metal', 'water', 'glass', 'carpet'] as const\nexport type SurfaceId = (typeof SURFACE_IDS)[number]\n\n/** The surface a body stands on when nobody says (the test room's floor is a concrete slab). */\nexport const DEFAULT_SURFACE: SurfaceId = 'concrete'\n\n/** How the feet move: a run hits harder and shorter; a crouched step is the walk, quieter. */\nexport const GAIT_IDS = ['walk', 'run'] as const\nexport type GaitId = (typeof GAIT_IDS)[number]\n\n/** How hard a landing is: `light` for a jump on the spot or a step down (up to about 5 m/s), `heavy` for a drop of more than a metre and a half. */\nexport const LANDING_IDS = ['light', 'heavy'] as const\nexport type LandingId = (typeof LANDING_IDS)[number]\n\n/** The fall speed (m/s) from which a landing is `heavy`. */\nexport const HEAVY_LANDING_SPEED = 5.5\n\nexport type FootstepSoundId = `footstep_${SurfaceId}_${GaitId}`\nexport type LandSoundId = `land_${SurfaceId}_${LandingId}`\n\n/**\n * How a blow is struck, by the body part or the tool that does it. `blade` stabs or slashes, `blunt` is a club, a bat, a pipe or a hammer, `chop` an\n * axe or a machete driven down.\n */\nexport const BLOW_IDS = ['punch', 'kick', 'shove', 'blade', 'blunt', 'chop'] as const\nexport type BlowId = (typeof BLOW_IDS)[number]\n\n/** What the blow meets: a body (flesh and bone, the head apart), something else (the material answers with its own impact), or nothing. */\nexport type BlowTarget = 'body' | 'head' | 'object' | 'air'\n\n/** The sounds of the body that are not a footstep or a landing. */\nexport const BODY_SOUND_IDS = [\n 'jump',\n 'cloth_rustle',\n 'body_fall',\n 'fall_damage',\n 'player_hurt',\n 'player_breath_run',\n 'player_death',\n 'bite',\n 'grab',\n 'punch_swing',\n 'punch_hit_body',\n 'punch_hit_face',\n 'punch_hit_object',\n 'kick_swing',\n 'kick_hit',\n 'kick_hit_object',\n 'shove_two_hands',\n 'knife_swing',\n 'knife_stab',\n 'knife_slash',\n 'knife_hit_object',\n 'blunt_swing',\n 'blunt_hit',\n 'blunt_hit_object',\n 'axe_swing',\n 'axe_chop',\n 'axe_hit_object',\n] as const\nexport type BodySoundId = (typeof BODY_SOUND_IDS)[number]\n\n/** Every sound of a body: what a host plays for the player, a survivor or a zombie. */\nexport type BodyFoleyId = FootstepSoundId | LandSoundId | BodySoundId\n\nexport const footstepSoundId = (surface: SurfaceId, gait: GaitId): FootstepSoundId => `footstep_${surface}_${gait}`\nexport const landSoundId = (surface: SurfaceId, fallSpeed: number): LandSoundId => `land_${surface}_${fallSpeed >= HEAVY_LANDING_SPEED ? 'heavy' : 'light'}`\n\n/** Every footstep and landing id, in the order of the surfaces. */\nexport const FOOTSTEP_SOUND_IDS: readonly FootstepSoundId[] = SURFACE_IDS.flatMap((surface) => GAIT_IDS.map((gait) => footstepSoundId(surface, gait)))\nexport const LAND_SOUND_IDS: readonly LandSoundId[] = SURFACE_IDS.flatMap((surface) => LANDING_IDS.map((landing): LandSoundId => `land_${surface}_${landing}`))\nexport const BODY_FOLEY_IDS: readonly BodyFoleyId[] = [...FOOTSTEP_SOUND_IDS, ...LAND_SOUND_IDS, ...BODY_SOUND_IDS]\n\nconst SWING: Readonly<Record<BlowId, BodySoundId | null>> = {\n punch: 'punch_swing',\n kick: 'kick_swing',\n // two hands pushed out do not whistle: the shove is one sound, at the contact\n shove: null,\n blade: 'knife_swing',\n blunt: 'blunt_swing',\n chop: 'axe_swing',\n}\n\n/**\n * Seconds from the start of a swing's sound to its loudest point (the limb or the tool at full speed, just before the contact). A host that knows when the\n * blow lands starts the swing this long before; one that does not plays the swing now and the hit this long after.\n */\nexport const SWING_LEAD_SECONDS: Readonly<Record<BlowId, number>> = { punch: 0.07, kick: 0.09, shove: 0, blade: 0.05, blunt: 0.1, chop: 0.11 }\n\n/** The swing through the air, played as the blow starts (`null`: the blow has none). */\nexport const swingSoundId = (blow: BlowId): BodySoundId | null => SWING[blow]\n\nconst HIT: Readonly<Record<BlowId, Readonly<Record<Exclude<BlowTarget, 'air'>, BodySoundId>>>> = {\n punch: { body: 'punch_hit_body', head: 'punch_hit_face', object: 'punch_hit_object' },\n kick: { body: 'kick_hit', head: 'kick_hit', object: 'kick_hit_object' },\n shove: { body: 'shove_two_hands', head: 'shove_two_hands', object: 'shove_two_hands' },\n blade: { body: 'knife_stab', head: 'knife_stab', object: 'knife_hit_object' },\n blunt: { body: 'blunt_hit', head: 'blunt_hit', object: 'blunt_hit_object' },\n chop: { body: 'axe_chop', head: 'axe_chop', object: 'axe_hit_object' },\n}\n\n/**\n * The body's side of a blow that lands: the knuckles, the shoe, the blade or the club meeting what it hit. On an object the material's own impact\n * plays too (the wood, the metal); this is the part that says it was a punch and not a shot.\n */\nexport const hitSoundId = (blow: BlowId, target: Exclude<BlowTarget, 'air'>): BodySoundId => HIT[blow][target]\n\n/**\n * The surface a material sounds like underfoot, by the material ids of `game-destruction` and `game-terrain` (unknown ids: `fallback`). Data, so\n * a game with its own materials passes its own table to `surfaceOfMaterial`.\n */\nexport const MATERIAL_SURFACES: Readonly<Record<string, SurfaceId>> = {\n concrete: 'concrete',\n mortar: 'concrete',\n stone: 'concrete',\n brick: 'concrete',\n cobble: 'concrete',\n paver: 'concrete',\n plaster: 'concrete',\n asphalt: 'asphalt',\n wood_soft: 'wood',\n wood_hard: 'wood',\n green_wood: 'wood',\n plywood: 'wood',\n mdf: 'wood',\n ceramic: 'tile',\n plastic: 'tile',\n soil: 'dirt',\n mud: 'dirt',\n clay: 'dirt',\n wax: 'dirt',\n flesh_fruit: 'dirt',\n turf: 'grass',\n foliage: 'grass',\n cactus: 'grass',\n gravel: 'gravel',\n sand: 'sand',\n // no snow surface yet: packed snow crunches closest to sand underfoot\n snow: 'sand',\n steel: 'metal',\n cast_iron: 'metal',\n aluminium: 'metal',\n copper: 'metal',\n water: 'water',\n glass: 'glass',\n tempered_glass: 'glass',\n fabric: 'carpet',\n foam: 'carpet',\n leather: 'carpet',\n rubber: 'carpet',\n paper: 'carpet',\n}\n\nexport const isSurfaceId = (value: unknown): value is SurfaceId => typeof value === 'string' && (SURFACE_IDS as readonly string[]).includes(value)\n\n/** The surface of a material id; a surface id passes through. */\nexport function surfaceOfMaterial(material: string | undefined, table: Readonly<Record<string, SurfaceId>> = MATERIAL_SURFACES, fallback: SurfaceId = DEFAULT_SURFACE): SurfaceId {\n if (material === undefined) return fallback\n if (isSurfaceId(material)) return material\n return table[material] ?? fallback\n}\n","/**\n * @adatechnology/game-contracts: the contracts every game module (vehicles, furniture, plants, houses, weapons) depends on, and nothing else.\n * Types plus tiny pure checkers, no runtime dependencies. The default destruction world, the renderers and the test room are optional.\n */\nexport type {\n ChainDelay,\n Crack,\n DamageStage,\n DamageType,\n DebrisKind,\n Dent,\n DestructibleSpec,\n BlastOptions,\n BlastReport,\n ConfinementOptions,\n ExplosionChain,\n FragmentHitOptions,\n ShelterOptions,\n DestructionEvent,\n DestructionEventType,\n FluidKind,\n Fragment,\n FragmentMark,\n FractureStyle,\n BallisticExtras,\n Hit,\n HitIgnition,\n HitResult,\n Hole,\n JointKind,\n JointSpec,\n JointState,\n MaterialId,\n ObjectState,\n PartShape,\n PartSpec,\n PartBreach,\n PartState,\n PartStatus,\n PartUnits,\n Quat,\n RayHit,\n Reinforcement,\n TensionRebar,\n TunedMassDamper,\n WindExposure,\n WindState,\n PileSpec,\n GroundLoss,\n PartSettlement,\n SoilLayer,\n SoilProfile,\n SoilState,\n StructureRole,\n SurfaceLayer,\n ToolKind,\n Vec3,\n} from './destruction'\nexport type { BusyOptions, BusySink, BusyTask } from './busy'\nexport { blastShove, DEFAULT_BLAST_SHOVE } from './blast-shove'\nexport { bodyMass, FRAGMENT_COVER, KNOCK_CHEST, KNOCK_DOWN_SPEED, KNOCKED_DOWN_ANGLE, knockOf, launchBody, stepKnock, takeLaunch } from './blast-knock'\nexport { blastBodySpeed, bodyImpulse, DEFAULT_BLAST_IMPULSE, sideOnImpulse, sideOnOverpressure } from './blast-impulse'\nexport type { BlastImpulseOptions } from './blast-impulse'\nexport type { Knock } from './blast-knock'\nexport type { BlastShove, BlastShoveOptions, BlastSource } from './blast-shove'\nexport { IMPACT_CONTRACT, checkDestructible, checkHit } from './impact'\nexport type { CheckOptions, DestructibleImpl, ImpactContract, SurfaceRay, SurfaceRayHit } from './impact'\nexport type { CostOptions } from './impact-cost'\nexport { MISSING_BITS } from './body'\nexport type { BodyRegion, BodySlot, SegmentKind } from './body'\nexport { checkSpec } from './spec'\nexport type { CheckSpecOptions, SpecReport } from './spec'\nexport { shotToHit, shotExtras, useToHit } from './weapons'\nexport { DEFAULT_IGNITION_RULES, fillFactor, ignitionChance, resolveIgnitionRules, sparkTargetFactor } from './ignition'\nexport type { IgnitionRules } from './ignition'\nexport type { Shot, Use } from './weapons'\nexport type { ContainerSpec, ItemUseDef, LiquidId } from './fluids'\nexport { sealBlock, sealOpener } from './seal'\nexport type { SealBlock, SealSpec, SealState } from './seal'\nexport type { HandPose, HandTargetSource, HandTargets, MuzzlePose, MuzzleSource, ToolHand } from './hands'\nexport { FIRST_PERSON_LAYER } from './hands'\nexport { TWIST_LIFT, twistStroke } from './twist'\nexport type { TwistOptions, TwistStroke } from './twist'\nexport type { EffectHandle, EffectPose, EffectRequest, EffectSink, Enclosure, EnclosureBox } from './effects'\nexport type { WarmUpProbes } from './warm-up'\nexport { checkAnimation } from './animation'\nexport type { AnimationClipSpec, AnimationEventSpec, AnimationKey, AnimationPose, ItemAnimationContract } from './animation'\nexport { STAGE_EVENT, TOOL_CLIP, checkToolClips, createToolClipPlayer, leadClipEvents, sampleClip, scaleClip, toolAnimationStep } from './tool-animation'\nexport type { ToolAnimationStep, ToolAnimator, ToolClipId, ToolClipPlayer, ToolClipPlayerOptions, ToolClipSet, ToolRig } from './tool-animation'\nexport { DEFERRED_PRIORITY, DEFERRED_QUEUE_ID, FRAME_PHASES, checkDeferredQueue } from './frame'\nexport type { DeferredQueue, DeferredQueueOptions, DeferredQueueReport, FramePhase } from './frame'\nexport type { FrameOptions, AreaPlacement, GroundLayout, GroundZone, HostEvent, HostGraphics, HostTool, HostToolAttachment, CornerImage, ModuleArea, ModuleHost, HostMovable, HostShove, ModuleView, ModuleItemFluid, ModuleItemSeal, ModuleScenario, PlayerState, ItemSeat, ItemSounds, TestableItem, TestableModule, Thumbnail, ToolCommand, ToolCommandResult, HostReach } from './module'\nexport { applyPatches, deepMerge, mergeById, removeIds } from './registry'\nexport type { DeepPartial } from './registry'\nimport { resetWarnOnce as resetWarnOnceForTests } from './warn'\n\nexport { warnOnce } from './warn'\n/** @deprecated Import it from `@adatechnology/game-contracts/testing`. */\nexport const resetWarnOnce = resetWarnOnceForTests\nexport { checkBench } from './bench'\nexport type {\n ActionControl,\n BenchChange,\n BenchDeclaration,\n BenchReport,\n BenchSheet,\n BooleanControl,\n ChoiceControl,\n ChoiceOption,\n ControlPatch,\n ControlValue,\n ModuleBench,\n ModuleControl,\n ModuleLayer,\n ModuleMetric,\n NumberControl,\n} from './bench'\nexport type { AudioListener, AudioSink, LoopHandle, SoundHandle, SoundRequest } from './audio'\nexport { DEFAULT_ENVIRONMENT, createEnvironmentBus } from './environment'\nexport type { EnvironmentBus, EnvironmentKey, EnvironmentState } from './environment'\nexport { checkCategorized, defineCategories, resolveEntry } from './categories'\nexport type { CategorizedOptions, CategorizedReport, CategoryDef, CategoryOptions, CategoryRegistry, ContractChecker, ContractContext } from './categories'\nexport { KIT_ORIGIN_KEY, kitOriginOf, markKitOrigin, unmarkedDrawings } from './origin'\nexport type { KitOrigin, UnmarkedDrawing } from './origin'\nexport { footprintBlocker } from './footprint'\nexport type { Footprint, FootprintObject } from './footprint'\nexport {\n BLOW_IDS,\n BODY_FOLEY_IDS,\n BODY_SOUND_IDS,\n DEFAULT_SURFACE,\n FOOTSTEP_SOUND_IDS,\n GAIT_IDS,\n HEAVY_LANDING_SPEED,\n LANDING_IDS,\n LAND_SOUND_IDS,\n MATERIAL_SURFACES,\n SURFACE_IDS,\n SWING_LEAD_SECONDS,\n footstepSoundId,\n hitSoundId,\n isSurfaceId,\n landSoundId,\n surfaceOfMaterial,\n swingSoundId,\n} from './foley'\nexport type { BlowId, BlowTarget, BodyFoleyId, BodySoundId, FootstepSoundId, GaitId, LandSoundId, LandingId, SurfaceId } from './foley'\n","[\n {\n \"id\": \"hand\",\n \"name\": \"Hand\",\n \"category\": \"hand\",\n \"action\": {\n \"kind\": \"hand\",\n \"reach\": 2\n },\n \"mass\": 0,\n \"tags\": [\n \"grab\"\n ]\n },\n {\n \"id\": \"kick\",\n \"name\": \"Kick\",\n \"category\": \"melee_blunt\",\n \"action\": {\n \"kind\": \"melee\",\n \"damage\": \"blunt\",\n \"energy\": 250,\n \"radius\": 0.08,\n \"reach\": 1.1,\n \"rpm\": 60,\n \"noise\": 8\n },\n \"mass\": 0\n },\n {\n \"id\": \"shove\",\n \"name\": \"Shove\",\n \"category\": \"melee_blunt\",\n \"action\": {\n \"kind\": \"melee\",\n \"damage\": \"blunt\",\n \"energy\": 80,\n \"radius\": 0.1,\n \"reach\": 1.5,\n \"rpm\": 90,\n \"noise\": 5\n },\n \"mass\": 0\n },\n {\n \"id\": \"pistol_9mm\",\n \"name\": \"9 mm service pistol\",\n \"category\": \"pistol\",\n \"action\": {\n \"kind\": \"firearm\",\n \"caliber\": \"9x19\",\n \"rpm\": 300,\n \"modes\": [\n \"semi\"\n ],\n \"magazine\": 15,\n \"reload\": 2,\n \"barrel\": 1,\n \"spreadDeg\": 1,\n \"bloomDeg\": 0.6,\n \"recoveryDegPerS\": 4,\n \"recoil\": [\n 1.2,\n 0.4\n ],\n \"range\": 50\n },\n \"mass\": 0.9,\n \"tags\": [\n \"sidearm\"\n ]\n },\n {\n \"id\": \"pistol_45\",\n \"name\": \".45 ACP pistol\",\n \"category\": \"pistol\",\n \"action\": {\n \"kind\": \"firearm\",\n \"caliber\": \"45acp\",\n \"rpm\": 280,\n \"modes\": [\n \"semi\"\n ],\n \"magazine\": 8,\n \"reload\": 2.2,\n \"barrel\": 1,\n \"spreadDeg\": 1.1,\n \"bloomDeg\": 0.8,\n \"recoveryDegPerS\": 4,\n \"recoil\": [\n 1.8,\n 0.6\n ],\n \"range\": 50\n },\n \"mass\": 1.1,\n \"tags\": [\n \"sidearm\"\n ]\n },\n {\n \"id\": \"pistol_22\",\n \"name\": \".22 LR pistol\",\n \"category\": \"pistol\",\n \"action\": {\n \"kind\": \"firearm\",\n \"caliber\": \"22lr\",\n \"rpm\": 360,\n \"modes\": [\n \"semi\"\n ],\n \"magazine\": 10,\n \"reload\": 1.8,\n \"barrel\": 1,\n \"spreadDeg\": 0.9,\n \"bloomDeg\": 0.3,\n \"recoveryDegPerS\": 5,\n \"recoil\": [\n 0.5,\n 0.2\n ],\n \"range\": 40\n },\n \"mass\": 0.7,\n \"tags\": [\n \"sidearm\"\n ]\n },\n {\n \"id\": \"revolver_357\",\n \"name\": \".357 Magnum revolver\",\n \"category\": \"revolver\",\n \"action\": {\n \"kind\": \"firearm\",\n \"caliber\": \"357mag\",\n \"rpm\": 150,\n \"modes\": [\n \"single\"\n ],\n \"magazine\": 6,\n \"reload\": 4,\n \"barrel\": 1.05,\n \"spreadDeg\": 0.8,\n \"bloomDeg\": 1,\n \"recoveryDegPerS\": 3,\n \"recoil\": [\n 3,\n 0.9\n ],\n \"range\": 60\n },\n \"mass\": 1.2,\n \"tags\": [\n \"sidearm\"\n ]\n },\n {\n \"id\": \"revolver_38\",\n \"name\": \".38 Special revolver\",\n \"category\": \"revolver\",\n \"action\": {\n \"kind\": \"firearm\",\n \"caliber\": \"38spl\",\n \"rpm\": 160,\n \"modes\": [\n \"single\"\n ],\n \"magazine\": 6,\n \"reload\": 3.8,\n \"barrel\": 0.95,\n \"spreadDeg\": 0.9,\n \"bloomDeg\": 0.7,\n \"recoveryDegPerS\": 3.5,\n \"recoil\": [\n 1.6,\n 0.5\n ],\n \"range\": 45\n },\n \"mass\": 0.9,\n \"tags\": [\n \"sidearm\"\n ]\n },\n {\n \"id\": \"smg_9mm\",\n \"name\": \"9 mm submachine gun\",\n \"category\": \"smg\",\n \"action\": {\n \"kind\": \"firearm\",\n \"caliber\": \"9x19\",\n \"rpm\": 800,\n \"modes\": [\n \"auto\",\n \"burst\",\n \"semi\"\n ],\n \"burst\": 3,\n \"magazine\": 30,\n \"reload\": 2.4,\n \"barrel\": 1.1,\n \"spreadDeg\": 1.5,\n \"bloomDeg\": 0.35,\n \"recoveryDegPerS\": 6,\n \"recoil\": [\n 0.9,\n 0.5\n ],\n \"range\": 80\n },\n \"mass\": 2.6,\n \"tags\": [\n \"automatic\"\n ]\n },\n {\n \"id\": \"carbine_22\",\n \"name\": \".22 LR carbine\",\n \"category\": \"carbine\",\n \"action\": {\n \"kind\": \"firearm\",\n \"caliber\": \"22lr\",\n \"rpm\": 300,\n \"modes\": [\n \"semi\"\n ],\n \"magazine\": 10,\n \"reload\": 2.2,\n \"barrel\": 1.4,\n \"spreadDeg\": 0.5,\n \"bloomDeg\": 0.15,\n \"recoveryDegPerS\": 5,\n \"recoil\": [\n 0.4,\n 0.15\n ],\n \"range\": 80\n },\n \"mass\": 2.4,\n \"tags\": [\n \"small_game\"\n ]\n },\n {\n \"id\": \"rifle_5_56\",\n \"name\": \"5.56 mm assault rifle\",\n \"category\": \"rifle\",\n \"action\": {\n \"kind\": \"firearm\",\n \"caliber\": \"5_56x45\",\n \"rpm\": 750,\n \"modes\": [\n \"auto\",\n \"burst\",\n \"semi\"\n ],\n \"burst\": 3,\n \"magazine\": 30,\n \"reload\": 2.5,\n \"barrel\": 1,\n \"spreadDeg\": 0.6,\n \"bloomDeg\": 0.25,\n \"recoveryDegPerS\": 5,\n \"recoil\": [\n 1,\n 0.6\n ],\n \"range\": 400\n },\n \"mass\": 3.4,\n \"tags\": [\n \"automatic\"\n ]\n },\n {\n \"id\": \"rifle_7_62x39\",\n \"name\": \"7.62×39 mm assault rifle\",\n \"category\": \"rifle\",\n \"action\": {\n \"kind\": \"firearm\",\n \"caliber\": \"7_62x39\",\n \"rpm\": 600,\n \"modes\": [\n \"auto\",\n \"semi\"\n ],\n \"magazine\": 30,\n \"reload\": 2.8,\n \"barrel\": 1,\n \"spreadDeg\": 0.8,\n \"bloomDeg\": 0.35,\n \"recoveryDegPerS\": 4.5,\n \"recoil\": [\n 1.5,\n 0.8\n ],\n \"range\": 350\n },\n \"mass\": 3.8,\n \"tags\": [\n \"automatic\"\n ]\n },\n {\n \"id\": \"rifle_bolt_308\",\n \"name\": \".308 bolt-action rifle\",\n \"category\": \"rifle\",\n \"action\": {\n \"kind\": \"firearm\",\n \"caliber\": \"7_62x51\",\n \"rpm\": 40,\n \"modes\": [\n \"bolt\"\n ],\n \"magazine\": 5,\n \"reload\": 3.5,\n \"barrel\": 1.05,\n \"spreadDeg\": 0.25,\n \"bloomDeg\": 0.3,\n \"recoveryDegPerS\": 3,\n \"recoil\": [\n 3,\n 0.5\n ],\n \"range\": 800\n },\n \"mass\": 4,\n \"tags\": [\n \"hunting\"\n ]\n },\n {\n \"id\": \"sniper_338\",\n \"name\": \".338 Lapua sniper rifle\",\n \"category\": \"sniper\",\n \"action\": {\n \"kind\": \"firearm\",\n \"caliber\": \"338lapua\",\n \"rpm\": 35,\n \"modes\": [\n \"bolt\"\n ],\n \"magazine\": 5,\n \"reload\": 4,\n \"barrel\": 1.05,\n \"spreadDeg\": 0.1,\n \"bloomDeg\": 0.3,\n \"recoveryDegPerS\": 2.5,\n \"recoil\": [\n 4.5,\n 0.7\n ],\n \"range\": 1500\n },\n \"mass\": 6.5,\n \"tags\": [\n \"long_range\"\n ]\n },\n {\n \"id\": \"anti_materiel_50\",\n \"name\": \".50 BMG anti-materiel rifle\",\n \"category\": \"sniper\",\n \"action\": {\n \"kind\": \"firearm\",\n \"caliber\": \"50bmg\",\n \"rpm\": 30,\n \"modes\": [\n \"semi\"\n ],\n \"magazine\": 10,\n \"reload\": 4.5,\n \"barrel\": 1.05,\n \"spreadDeg\": 0.15,\n \"bloomDeg\": 0.5,\n \"recoveryDegPerS\": 2,\n \"recoil\": [\n 7,\n 1.2\n ],\n \"range\": 1800\n },\n \"mass\": 12.5,\n \"tags\": [\n \"long_range\",\n \"heavy\"\n ]\n },\n {\n \"id\": \"shotgun_pump_12\",\n \"name\": \"12 gauge pump-action shotgun\",\n \"category\": \"shotgun\",\n \"action\": {\n \"kind\": \"firearm\",\n \"caliber\": \"12ga_00buck\",\n \"rpm\": 60,\n \"modes\": [\n \"pump\"\n ],\n \"magazine\": 6,\n \"reload\": 0.6,\n \"perRound\": true,\n \"family\": \"pump\",\n \"barrel\": 1,\n \"spreadDeg\": 1,\n \"bloomDeg\": 0.5,\n \"recoveryDegPerS\": 3,\n \"pelletSpreadDeg\": 3,\n \"recoil\": [\n 4,\n 1\n ],\n \"range\": 40\n },\n \"mass\": 3.2,\n \"tags\": [\n \"shotgun\"\n ]\n },\n {\n \"id\": \"shotgun_double_12\",\n \"name\": \"12 gauge double-barrel shotgun\",\n \"category\": \"shotgun\",\n \"action\": {\n \"kind\": \"firearm\",\n \"caliber\": \"12ga_00buck\",\n \"rpm\": 120,\n \"modes\": [\n \"break\"\n ],\n \"magazine\": 2,\n \"reload\": 3.5,\n \"barrel\": 1,\n \"spreadDeg\": 1,\n \"bloomDeg\": 0.5,\n \"recoveryDegPerS\": 3,\n \"pelletSpreadDeg\": 3,\n \"recoil\": [\n 4.5,\n 1.2\n ],\n \"range\": 35\n },\n \"mass\": 3,\n \"tags\": [\n \"shotgun\"\n ]\n },\n {\n \"id\": \"shotgun_semi_12\",\n \"name\": \"12 gauge semi-automatic shotgun\",\n \"category\": \"shotgun\",\n \"action\": {\n \"kind\": \"firearm\",\n \"caliber\": \"12ga_00buck\",\n \"rpm\": 180,\n \"modes\": [\n \"semi\"\n ],\n \"magazine\": 5,\n \"reload\": 0.7,\n \"perRound\": true,\n \"barrel\": 1,\n \"spreadDeg\": 1,\n \"bloomDeg\": 0.5,\n \"recoveryDegPerS\": 3,\n \"pelletSpreadDeg\": 3,\n \"recoil\": [\n 3.4,\n 1\n ],\n \"range\": 40\n },\n \"mass\": 3.4,\n \"tags\": [\n \"shotgun\"\n ]\n },\n {\n \"id\": \"bow_compound\",\n \"name\": \"Compound bow\",\n \"category\": \"bow\",\n \"action\": {\n \"kind\": \"firearm\",\n \"caliber\": \"arrow\",\n \"rpm\": 20,\n \"modes\": [\n \"single\"\n ],\n \"magazine\": 1,\n \"reload\": 1.5,\n \"barrel\": 1,\n \"spreadDeg\": 0.4,\n \"bloomDeg\": 0.4,\n \"recoveryDegPerS\": 2,\n \"recoil\": [\n 0.3,\n 0.1\n ],\n \"range\": 60\n },\n \"mass\": 1.8,\n \"tags\": [\n \"silent\"\n ]\n },\n {\n \"id\": \"crossbow\",\n \"name\": \"Crossbow\",\n \"category\": \"crossbow\",\n \"action\": {\n \"kind\": \"firearm\",\n \"caliber\": \"crossbow_bolt\",\n \"rpm\": 8,\n \"modes\": [\n \"single\"\n ],\n \"magazine\": 1,\n \"reload\": 4,\n \"barrel\": 1,\n \"spreadDeg\": 0.3,\n \"bloomDeg\": 0.3,\n \"recoveryDegPerS\": 2,\n \"recoil\": [\n 0.5,\n 0.1\n ],\n \"range\": 70\n },\n \"mass\": 3,\n \"tags\": [\n \"silent\"\n ]\n },\n {\n \"id\": \"hammer\",\n \"name\": \"Hammer\",\n \"category\": \"melee_blunt\",\n \"action\": {\n \"kind\": \"melee\",\n \"damage\": \"blunt\",\n \"energy\": 60,\n \"radius\": 0.08,\n \"reach\": 0.7,\n \"rpm\": 70,\n \"noise\": 6\n },\n \"mass\": 1\n },\n {\n \"id\": \"sledgehammer\",\n \"name\": \"Sledgehammer\",\n \"category\": \"melee_blunt\",\n \"action\": {\n \"kind\": \"melee\",\n \"damage\": \"blunt\",\n \"energy\": 300,\n \"radius\": 0.15,\n \"reach\": 1.1,\n \"rpm\": 30,\n \"noise\": 8\n },\n \"mass\": 5.5,\n \"tags\": [\n \"heavy\"\n ]\n },\n {\n \"id\": \"baseball_bat\",\n \"name\": \"Baseball bat\",\n \"category\": \"melee_blunt\",\n \"action\": {\n \"kind\": \"melee\",\n \"damage\": \"blunt\",\n \"energy\": 150,\n \"radius\": 0.1,\n \"reach\": 1,\n \"rpm\": 60,\n \"noise\": 7\n },\n \"mass\": 0.9\n },\n {\n \"id\": \"crowbar\",\n \"name\": \"Crowbar\",\n \"category\": \"melee_blunt\",\n \"action\": {\n \"kind\": \"melee\",\n \"damage\": \"blunt\",\n \"energy\": 120,\n \"radius\": 0.08,\n \"reach\": 0.9,\n \"rpm\": 60,\n \"noise\": 7\n },\n \"mass\": 2,\n \"tags\": [\n \"pry\"\n ]\n },\n {\n \"id\": \"machete\",\n \"name\": \"Machete\",\n \"category\": \"melee_blade\",\n \"action\": {\n \"kind\": \"melee\",\n \"damage\": \"slash\",\n \"energy\": 140,\n \"radius\": 0.06,\n \"reach\": 0.8,\n \"rpm\": 80,\n \"noise\": 6\n },\n \"mass\": 0.8\n },\n {\n \"id\": \"axe\",\n \"name\": \"Axe\",\n \"category\": \"melee_blade\",\n \"action\": {\n \"kind\": \"melee\",\n \"damage\": \"slash\",\n \"energy\": 250,\n \"radius\": 0.08,\n \"reach\": 0.9,\n \"rpm\": 45,\n \"noise\": 8\n },\n \"mass\": 1.6\n },\n {\n \"id\": \"knife\",\n \"name\": \"Knife\",\n \"category\": \"melee_blade\",\n \"action\": {\n \"kind\": \"melee\",\n \"damage\": \"slash\",\n \"energy\": 40,\n \"radius\": 0.03,\n \"reach\": 0.4,\n \"rpm\": 100,\n \"noise\": 5\n },\n \"mass\": 0.2\n },\n {\n \"id\": \"fists\",\n \"name\": \"Fists\",\n \"category\": \"melee_blunt\",\n \"action\": {\n \"kind\": \"melee\",\n \"damage\": \"blunt\",\n \"energy\": 25,\n \"radius\": 0.1,\n \"reach\": 0.6,\n \"rpm\": 120,\n \"noise\": 5\n },\n \"mass\": 0\n },\n {\n \"id\": \"lighter\",\n \"name\": \"Lighter\",\n \"category\": \"flame\",\n \"action\": {\n \"kind\": \"flame\",\n \"temperature\": 400,\n \"radius\": 0.03,\n \"range\": 0.15,\n \"fuelPerSecond\": 0.02,\n \"fuel\": 60,\n \"noise\": 0\n },\n \"mass\": 0.05,\n \"tags\": [\n \"fire\"\n ]\n },\n {\n \"id\": \"flamethrower\",\n \"name\": \"Flamethrower\",\n \"category\": \"flame\",\n \"action\": {\n \"kind\": \"flame\",\n \"temperature\": 900,\n \"radius\": 0.6,\n \"range\": 6,\n \"fuelPerSecond\": 1,\n \"fuel\": 20,\n \"cone\": true,\n \"noise\": 20\n },\n \"mass\": 15,\n \"tags\": [\n \"fire\"\n ]\n },\n {\n \"id\": \"molotov\",\n \"name\": \"Molotov cocktail\",\n \"category\": \"throwable\",\n \"action\": {\n \"kind\": \"throwable\",\n \"explosive\": \"molotov\",\n \"energy\": 500,\n \"radius\": 1.5,\n \"fuse\": 0,\n \"throwSpeed\": 12,\n \"fire\": {\n \"temperature\": 700,\n \"radius\": 1.5,\n \"seconds\": 12\n },\n \"noise\": 40\n },\n \"mass\": 0.8,\n \"tags\": [\n \"fire\",\n \"improvised\"\n ]\n },\n {\n \"id\": \"cutting_torch\",\n \"name\": \"Oxy-fuel cutting torch\",\n \"category\": \"heat\",\n \"action\": {\n \"kind\": \"heat\",\n \"temperature\": 3000,\n \"radius\": 0.02,\n \"range\": 0.25,\n \"fuelPerSecond\": 0.05,\n \"fuel\": 30,\n \"noise\": 15\n },\n \"mass\": 4,\n \"tags\": [\n \"fire\",\n \"cutting\"\n ]\n },\n {\n \"id\": \"blowtorch\",\n \"name\": \"Blowtorch\",\n \"category\": \"heat\",\n \"action\": {\n \"kind\": \"heat\",\n \"temperature\": 1300,\n \"radius\": 0.04,\n \"range\": 0.3,\n \"fuelPerSecond\": 0.04,\n \"fuel\": 30,\n \"noise\": 10\n },\n \"mass\": 0.6,\n \"tags\": [\n \"fire\"\n ]\n },\n {\n \"id\": \"frag_grenade\",\n \"name\": \"Fragmentation grenade\",\n \"category\": \"throwable\",\n \"action\": {\n \"kind\": \"throwable\",\n \"explosive\": \"m67\",\n \"energy\": 200000,\n \"radius\": 5,\n \"fuse\": 4,\n \"throwSpeed\": 15,\n \"noise\": 500\n },\n \"mass\": 0.45,\n \"tags\": [\n \"explosive\"\n ]\n },\n {\n \"id\": \"pipe_bomb\",\n \"name\": \"Pipe bomb\",\n \"category\": \"throwable\",\n \"action\": {\n \"kind\": \"throwable\",\n \"explosive\": \"pipe_bomb\",\n \"energy\": 43200,\n \"radius\": 3,\n \"fuse\": 3,\n \"throwSpeed\": 13,\n \"noise\": 450\n },\n \"mass\": 0.7,\n \"tags\": [\n \"explosive\",\n \"improvised\"\n ]\n },\n {\n \"id\": \"screwdriver\",\n \"name\": \"Screwdriver\",\n \"category\": \"tool\",\n \"action\": {\n \"kind\": \"tool\",\n \"tool\": \"screwdriver\",\n \"reach\": 0.5,\n \"noise\": 5\n },\n \"mass\": 0.15\n },\n {\n \"id\": \"wrench\",\n \"name\": \"Wrench\",\n \"category\": \"tool\",\n \"action\": {\n \"kind\": \"tool\",\n \"tool\": \"wrench\",\n \"reach\": 0.6,\n \"noise\": 6\n },\n \"mass\": 0.5\n },\n {\n \"id\": \"pry_bar\",\n \"name\": \"Pry bar\",\n \"category\": \"tool\",\n \"action\": {\n \"kind\": \"tool\",\n \"tool\": \"pry_bar\",\n \"reach\": 0.8,\n \"noise\": 8\n },\n \"mass\": 0.8\n },\n {\n \"id\": \"hacksaw\",\n \"name\": \"Hacksaw\",\n \"category\": \"tool\",\n \"action\": {\n \"kind\": \"tool\",\n \"tool\": \"saw\",\n \"reach\": 0.7,\n \"noise\": 10\n },\n \"mass\": 0.6\n },\n {\n \"id\": \"utility_knife\",\n \"name\": \"Utility knife\",\n \"category\": \"tool\",\n \"action\": {\n \"kind\": \"tool\",\n \"tool\": \"knife\",\n \"reach\": 0.3,\n \"noise\": 3\n },\n \"mass\": 0.1\n },\n {\n \"id\": \"claw_hammer\",\n \"name\": \"Claw hammer\",\n \"category\": \"tool\",\n \"action\": {\n \"kind\": \"tool\",\n \"tool\": \"hammer\",\n \"reach\": 0.5,\n \"noise\": 8\n },\n \"mass\": 0.7\n },\n {\n \"id\": \"extinguisher\",\n \"name\": \"Fire extinguisher\",\n \"category\": \"extinguisher\",\n \"action\": {\n \"kind\": \"extinguisher\",\n \"range\": 4,\n \"coolC\": 300,\n \"charge\": 12,\n \"noise\": 25\n },\n \"mass\": 5,\n \"tags\": [\n \"safety\"\n ]\n }\n]\n","[\n {\n \"id\": \"22lr\",\n \"label\": \".22 LR\",\n \"diameter\": 5.7,\n \"bulletGrams\": 2.6,\n \"muzzleSpeed\": 350,\n \"dragPer100m\": 0.15,\n \"kind\": \"rimfire\",\n \"noise\": 60,\n \"caseType\": \"tiny\",\n \"rim\": \"rimfire\",\n \"cartridge\": {\n \"caseDiameter\": 5.7,\n \"overallLength\": 25.4,\n \"caseLength\": 15.6,\n \"projectileDiameter\": 5.7\n },\n \"sources\": [\n \"sdk\",\n \"gallery\",\n \"arsenal\"\n ]\n },\n {\n \"id\": \"380acp\",\n \"label\": \".380 ACP\",\n \"diameter\": 9,\n \"bulletGrams\": 6.2,\n \"muzzleSpeed\": 295,\n \"dragPer100m\": 0.22,\n \"kind\": \"fmj\",\n \"noise\": 150,\n \"caseType\": \"pistol\",\n \"rim\": \"rimless\",\n \"cartridge\": {\n \"caseDiameter\": 9.5,\n \"overallLength\": 25,\n \"caseLength\": 17.3,\n \"projectileDiameter\": 9\n },\n \"sources\": [\n \"sdk\",\n \"gallery\",\n \"arsenal\"\n ]\n },\n {\n \"id\": \"9x18\",\n \"label\": \"9×18 mm Makarov\",\n \"diameter\": 9.3,\n \"bulletGrams\": 6.1,\n \"muzzleSpeed\": 315,\n \"dragPer100m\": 0.2,\n \"kind\": \"fmj\",\n \"noise\": 150,\n \"caseType\": \"pistol\",\n \"rim\": \"rimless\",\n \"cartridge\": {\n \"caseDiameter\": 9.9,\n \"overallLength\": 25.3,\n \"caseLength\": 18,\n \"projectileDiameter\": 9.3\n },\n \"sources\": [\n \"reference\",\n \"gallery\",\n \"arsenal\"\n ]\n },\n {\n \"id\": \"9x19\",\n \"label\": \"9×19 mm\",\n \"diameter\": 9,\n \"bulletGrams\": 7.5,\n \"muzzleSpeed\": 365,\n \"dragPer100m\": 0.2,\n \"kind\": \"fmj\",\n \"noise\": 150,\n \"caseType\": \"pistol\",\n \"cartridge\": {\n \"caseDiameter\": 9.9,\n \"overallLength\": 29.7,\n \"caseLength\": 19.15,\n \"projectileDiameter\": 9\n },\n \"sources\": [\n \"sdk\",\n \"gallery\",\n \"arsenal\"\n ]\n },\n {\n \"id\": \"40sw\",\n \"label\": \".40 S&W\",\n \"diameter\": 10.2,\n \"bulletGrams\": 11.7,\n \"muzzleSpeed\": 310,\n \"dragPer100m\": 0.2,\n \"kind\": \"fmj\",\n \"noise\": 150,\n \"caseType\": \"pistol\",\n \"cartridge\": {\n \"caseDiameter\": 10.8,\n \"overallLength\": 28.6,\n \"caseLength\": 21.6,\n \"projectileDiameter\": 10.2\n },\n \"sources\": [\n \"sdk\",\n \"gallery\",\n \"arsenal\"\n ]\n },\n {\n \"id\": \"45acp\",\n \"label\": \".45 ACP\",\n \"diameter\": 11.5,\n \"bulletGrams\": 14.9,\n \"muzzleSpeed\": 254,\n \"dragPer100m\": 0.2,\n \"kind\": \"fmj\",\n \"noise\": 150,\n \"caseType\": \"pistol\",\n \"cartridge\": {\n \"caseDiameter\": 12,\n \"overallLength\": 32.4,\n \"caseLength\": 22.8,\n \"projectileDiameter\": 11.5\n },\n \"sources\": [\n \"sdk\",\n \"gallery\",\n \"arsenal\"\n ]\n },\n {\n \"id\": \"5_7x28\",\n \"label\": \"5.7×28 mm\",\n \"diameter\": 5.7,\n \"bulletGrams\": 2,\n \"muzzleSpeed\": 715,\n \"dragPer100m\": 0.12,\n \"kind\": \"fmj\",\n \"noise\": 150,\n \"caseType\": \"pistol\",\n \"rim\": \"rimless\",\n \"cartridge\": {\n \"caseDiameter\": 7.9,\n \"overallLength\": 40.5,\n \"caseLength\": 28.9,\n \"projectileDiameter\": 5.7\n },\n \"sources\": [\n \"reference\",\n \"gallery\",\n \"arsenal\"\n ]\n },\n {\n \"id\": \"38spl\",\n \"label\": \".38 Special\",\n \"diameter\": 9.1,\n \"bulletGrams\": 10.2,\n \"muzzleSpeed\": 247,\n \"dragPer100m\": 0.2,\n \"kind\": \"fmj\",\n \"noise\": 150,\n \"caseType\": \"pistol\",\n \"rim\": \"rimmed\",\n \"cartridge\": {\n \"caseDiameter\": 9.6,\n \"overallLength\": 39.4,\n \"caseLength\": 29.3,\n \"projectileDiameter\": 9.1\n },\n \"sources\": [\n \"sdk\",\n \"gallery\",\n \"arsenal\"\n ]\n },\n {\n \"id\": \"357mag\",\n \"label\": \".357 Magnum\",\n \"diameter\": 9.1,\n \"bulletGrams\": 10.2,\n \"muzzleSpeed\": 396,\n \"dragPer100m\": 0.18,\n \"kind\": \"hp\",\n \"noise\": 300,\n \"caseType\": \"pistol\",\n \"rim\": \"rimmed\",\n \"cartridge\": {\n \"caseDiameter\": 9.6,\n \"overallLength\": 40,\n \"caseLength\": 33,\n \"projectileDiameter\": 9.1\n },\n \"sources\": [\n \"sdk\",\n \"gallery\",\n \"arsenal\"\n ]\n },\n {\n \"id\": \"44mag\",\n \"label\": \".44 Magnum\",\n \"diameter\": 10.9,\n \"bulletGrams\": 15.6,\n \"muzzleSpeed\": 440,\n \"dragPer100m\": 0.18,\n \"kind\": \"fmj\",\n \"noise\": 420,\n \"caseType\": \"pistol\",\n \"rim\": \"rimmed\",\n \"cartridge\": {\n \"caseDiameter\": 11.6,\n \"overallLength\": 40.9,\n \"caseLength\": 32.6,\n \"projectileDiameter\": 10.9\n },\n \"sources\": [\n \"reference\",\n \"gallery\",\n \"arsenal\"\n ]\n },\n {\n \"id\": \"50ae\",\n \"label\": \".50 AE\",\n \"diameter\": 12.7,\n \"bulletGrams\": 19.4,\n \"muzzleSpeed\": 470,\n \"dragPer100m\": 0.18,\n \"kind\": \"fmj\",\n \"noise\": 420,\n \"caseType\": \"pistol\",\n \"cartridge\": {\n \"caseDiameter\": 13.9,\n \"overallLength\": 40.9,\n \"caseLength\": 32.6,\n \"projectileDiameter\": 12.7\n },\n \"sources\": [\n \"reference\",\n \"gallery\",\n \"arsenal\"\n ]\n },\n {\n \"id\": \"12ga_00buck\",\n \"label\": \"12 ga 00 buck\",\n \"diameter\": 8.4,\n \"bulletGrams\": 3.5,\n \"muzzleSpeed\": 414,\n \"pellets\": 9,\n \"dragPer100m\": 0.45,\n \"kind\": \"buck\",\n \"noise\": 350,\n \"caseType\": \"shell\",\n \"rim\": \"shell\",\n \"cartridge\": {\n \"caseDiameter\": 20,\n \"overallLength\": 70,\n \"caseLength\": 70,\n \"projectileDiameter\": 18.5\n },\n \"sources\": [\n \"sdk\",\n \"gallery\",\n \"arsenal\"\n ]\n },\n {\n \"id\": \"12ga_slug\",\n \"label\": \"12 ga slug\",\n \"diameter\": 18.5,\n \"bulletGrams\": 28,\n \"muzzleSpeed\": 463,\n \"dragPer100m\": 0.3,\n \"kind\": \"slug\",\n \"noise\": 350,\n \"caseType\": \"shell\",\n \"rim\": \"shell\",\n \"cartridge\": {\n \"caseDiameter\": 20,\n \"overallLength\": 70,\n \"caseLength\": 70,\n \"projectileDiameter\": 18.5\n },\n \"sources\": [\n \"sdk\",\n \"gallery\",\n \"arsenal\"\n ]\n },\n {\n \"id\": \"12ga_birdshot\",\n \"label\": \"12 ga birdshot\",\n \"diameter\": 2.4,\n \"bulletGrams\": 0.2,\n \"muzzleSpeed\": 400,\n \"pellets\": 90,\n \"dragPer100m\": 0.6,\n \"kind\": \"birdshot\",\n \"noise\": 350,\n \"caseType\": \"shell\",\n \"rim\": \"shell\",\n \"cartridge\": {\n \"caseDiameter\": 20,\n \"overallLength\": 70,\n \"caseLength\": 70,\n \"projectileDiameter\": 18.5\n },\n \"sources\": [\n \"sdk\",\n \"gallery\",\n \"arsenal\"\n ]\n },\n {\n \"id\": \"20ga_buck\",\n \"label\": \"20 ga buck\",\n \"diameter\": 6.9,\n \"bulletGrams\": 1.3,\n \"muzzleSpeed\": 400,\n \"pellets\": 20,\n \"dragPer100m\": 0.5,\n \"kind\": \"buck\",\n \"noise\": 350,\n \"caseType\": \"shell\",\n \"rim\": \"shell\",\n \"sources\": [\n \"sdk\",\n \"derived\"\n ]\n },\n {\n \"id\": \"5_56x45\",\n \"label\": \"5.56×45 mm\",\n \"diameter\": 5.7,\n \"bulletGrams\": 4,\n \"muzzleSpeed\": 935,\n \"dragPer100m\": 0.1,\n \"kind\": \"fmj\",\n \"noise\": 300,\n \"caseType\": \"rifle\",\n \"cartridge\": {\n \"caseDiameter\": 9.6,\n \"overallLength\": 57.4,\n \"caseLength\": 44.7,\n \"projectileDiameter\": 5.7\n },\n \"sources\": [\n \"sdk\",\n \"gallery\",\n \"arsenal\"\n ]\n },\n {\n \"id\": \"5_45x39\",\n \"label\": \"5.45×39 mm\",\n \"diameter\": 5.6,\n \"bulletGrams\": 3.4,\n \"muzzleSpeed\": 900,\n \"dragPer100m\": 0.1,\n \"kind\": \"fmj\",\n \"noise\": 300,\n \"caseType\": \"rifle\",\n \"cartridge\": {\n \"caseDiameter\": 10,\n \"overallLength\": 57,\n \"caseLength\": 39.8,\n \"projectileDiameter\": 5.6\n },\n \"sources\": [\n \"reference\",\n \"gallery\",\n \"arsenal\"\n ]\n },\n {\n \"id\": \"7_62x39\",\n \"label\": \"7.62×39 mm\",\n \"diameter\": 7.9,\n \"bulletGrams\": 8,\n \"muzzleSpeed\": 725,\n \"dragPer100m\": 0.1,\n \"kind\": \"fmj\",\n \"noise\": 300,\n \"caseType\": \"rifle\",\n \"cartridge\": {\n \"caseDiameter\": 11.3,\n \"overallLength\": 56,\n \"caseLength\": 38.7,\n \"projectileDiameter\": 7.9\n },\n \"sources\": [\n \"sdk\",\n \"gallery\",\n \"arsenal\"\n ]\n },\n {\n \"id\": \"30_30\",\n \"label\": \".30-30 Winchester\",\n \"diameter\": 7.8,\n \"bulletGrams\": 9.7,\n \"muzzleSpeed\": 670,\n \"dragPer100m\": 0.1,\n \"kind\": \"fmj\",\n \"noise\": 300,\n \"caseType\": \"rifle\",\n \"rim\": \"rimmed\",\n \"cartridge\": {\n \"caseDiameter\": 10.7,\n \"overallLength\": 64.8,\n \"caseLength\": 51.8,\n \"projectileDiameter\": 7.8\n },\n \"sources\": [\n \"reference\",\n \"gallery\",\n \"arsenal\"\n ]\n },\n {\n \"id\": \"7_62x51\",\n \"label\": \"7.62×51 mm (.308)\",\n \"diameter\": 7.8,\n \"bulletGrams\": 9.7,\n \"muzzleSpeed\": 850,\n \"dragPer100m\": 0.08,\n \"kind\": \"fmj\",\n \"noise\": 420,\n \"caseType\": \"rifle\",\n \"cartridge\": {\n \"caseDiameter\": 12,\n \"overallLength\": 71.1,\n \"caseLength\": 51.2,\n \"projectileDiameter\": 7.8\n },\n \"sources\": [\n \"sdk\",\n \"gallery\",\n \"arsenal\"\n ]\n },\n {\n \"id\": \"7_62x54r\",\n \"label\": \"7.62×54R\",\n \"diameter\": 7.9,\n \"bulletGrams\": 9.6,\n \"muzzleSpeed\": 865,\n \"dragPer100m\": 0.08,\n \"kind\": \"fmj\",\n \"noise\": 420,\n \"caseType\": \"rifle\",\n \"rim\": \"rimmed\",\n \"cartridge\": {\n \"caseDiameter\": 12.4,\n \"overallLength\": 77.2,\n \"caseLength\": 53.7,\n \"projectileDiameter\": 7.9\n },\n \"sources\": [\n \"reference\",\n \"gallery\",\n \"arsenal\"\n ]\n },\n {\n \"id\": \"30_06\",\n \"label\": \".30-06 Springfield\",\n \"diameter\": 7.8,\n \"bulletGrams\": 9.7,\n \"muzzleSpeed\": 880,\n \"dragPer100m\": 0.08,\n \"kind\": \"fmj\",\n \"noise\": 420,\n \"caseType\": \"rifle\",\n \"cartridge\": {\n \"caseDiameter\": 12,\n \"overallLength\": 84.8,\n \"caseLength\": 63.3,\n \"projectileDiameter\": 7.8\n },\n \"sources\": [\n \"reference\",\n \"gallery\",\n \"arsenal\"\n ]\n },\n {\n \"id\": \"300wm\",\n \"label\": \".300 Winchester Magnum\",\n \"diameter\": 7.8,\n \"bulletGrams\": 11.7,\n \"muzzleSpeed\": 900,\n \"dragPer100m\": 0.07,\n \"kind\": \"fmj\",\n \"noise\": 600,\n \"caseType\": \"rifle\",\n \"cartridge\": {\n \"caseDiameter\": 13,\n \"overallLength\": 84.8,\n \"caseLength\": 66.5,\n \"projectileDiameter\": 7.8\n },\n \"sources\": [\n \"reference\",\n \"gallery\",\n \"arsenal\"\n ]\n },\n {\n \"id\": \"338lapua\",\n \"label\": \".338 Lapua Magnum\",\n \"diameter\": 8.6,\n \"bulletGrams\": 16.2,\n \"muzzleSpeed\": 903,\n \"dragPer100m\": 0.06,\n \"kind\": \"fmj\",\n \"noise\": 600,\n \"caseType\": \"rifle\",\n \"cartridge\": {\n \"caseDiameter\": 14.9,\n \"overallLength\": 93.5,\n \"caseLength\": 69.2,\n \"projectileDiameter\": 8.6\n },\n \"sources\": [\n \"sdk\",\n \"gallery\",\n \"arsenal\"\n ]\n },\n {\n \"id\": \"408cheytac\",\n \"label\": \".408 CheyTac\",\n \"diameter\": 10.4,\n \"bulletGrams\": 27.2,\n \"muzzleSpeed\": 900,\n \"dragPer100m\": 0.05,\n \"kind\": \"fmj\",\n \"noise\": 600,\n \"caseType\": \"big\",\n \"cartridge\": {\n \"caseDiameter\": 16,\n \"overallLength\": 115.6,\n \"caseLength\": 77,\n \"projectileDiameter\": 10.36\n },\n \"sources\": [\n \"reference\",\n \"arsenal\"\n ]\n },\n {\n \"id\": \"50bmg\",\n \"label\": \".50 BMG\",\n \"diameter\": 12.7,\n \"bulletGrams\": 42,\n \"muzzleSpeed\": 925,\n \"dragPer100m\": 0.05,\n \"kind\": \"ap\",\n \"noise\": 600,\n \"caseType\": \"big\",\n \"cartridge\": {\n \"caseDiameter\": 20.4,\n \"overallLength\": 138,\n \"caseLength\": 99,\n \"projectileDiameter\": 12.7\n },\n \"sources\": [\n \"sdk\",\n \"gallery\",\n \"arsenal\"\n ]\n },\n {\n \"id\": \"arrow\",\n \"label\": \"Arrow (compound bow)\",\n \"diameter\": 7,\n \"bulletGrams\": 25,\n \"muzzleSpeed\": 90,\n \"dragPer100m\": 0.12,\n \"kind\": \"arrow\",\n \"noise\": 20,\n \"propellant\": \"none\",\n \"sources\": [\n \"sdk\"\n ]\n },\n {\n \"id\": \"crossbow_bolt\",\n \"label\": \"Crossbow bolt\",\n \"diameter\": 8,\n \"bulletGrams\": 20,\n \"muzzleSpeed\": 122,\n \"dragPer100m\": 0.12,\n \"kind\": \"bolt\",\n \"noise\": 25,\n \"propellant\": \"none\",\n \"sources\": [\n \"sdk\"\n ]\n },\n {\n \"id\": \"4_6x30\",\n \"label\": \"4.6×30 mm\",\n \"diameter\": 4.65,\n \"bulletGrams\": 2,\n \"muzzleSpeed\": 735,\n \"dragPer100m\": 0.12,\n \"kind\": \"fmj\",\n \"noise\": 150,\n \"caseType\": \"pistol\",\n \"rim\": \"rimless\",\n \"cartridge\": {\n \"caseDiameter\": 8,\n \"overallLength\": 38.5,\n \"caseLength\": 30.5,\n \"projectileDiameter\": 4.65\n },\n \"sources\": [\n \"reference\",\n \"derived\"\n ]\n },\n {\n \"id\": \"32acp\",\n \"label\": \".32 ACP\",\n \"diameter\": 7.94,\n \"bulletGrams\": 4.6,\n \"muzzleSpeed\": 276,\n \"dragPer100m\": 0.22,\n \"kind\": \"fmj\",\n \"noise\": 150,\n \"caseType\": \"pistol\",\n \"rim\": \"rimmed\",\n \"cartridge\": {\n \"caseDiameter\": 9.1,\n \"overallLength\": 25,\n \"caseLength\": 17.3,\n \"projectileDiameter\": 7.94\n },\n \"sources\": [\n \"reference\",\n \"derived\"\n ]\n },\n {\n \"id\": \"45_70_bp\",\n \"label\": \".45-70 Government (black powder)\",\n \"diameter\": 11.43,\n \"bulletGrams\": 26.2,\n \"muzzleSpeed\": 400,\n \"dragPer100m\": 0.09,\n \"kind\": \"fmj\",\n \"noise\": 350,\n \"caseType\": \"rifle\",\n \"rim\": \"rimmed\",\n \"propellant\": \"black_powder\",\n \"cartridge\": {\n \"caseDiameter\": 12.07,\n \"overallLength\": 66.5,\n \"caseLength\": 53.3,\n \"projectileDiameter\": 11.43\n },\n \"sources\": [\n \"sdk\"\n ]\n },\n {\n \"id\": \"7_62x25\",\n \"label\": \"7.62×25 mm Tokarev\",\n \"diameter\": 7.85,\n \"bulletGrams\": 5.5,\n \"muzzleSpeed\": 488,\n \"dragPer100m\": 0.12,\n \"kind\": \"fmj\",\n \"noise\": 300,\n \"caseType\": \"pistol\",\n \"rim\": \"rimless\",\n \"cartridge\": {\n \"caseDiameter\": 9.95,\n \"overallLength\": 35.2,\n \"caseLength\": 25,\n \"projectileDiameter\": 7.85\n },\n \"sources\": [\n \"reference\",\n \"derived\"\n ]\n },\n {\n \"id\": \"7_92x57\",\n \"label\": \"7.92×57 mm Mauser\",\n \"diameter\": 8.22,\n \"bulletGrams\": 11.7,\n \"muzzleSpeed\": 760,\n \"dragPer100m\": 0.08,\n \"kind\": \"fmj\",\n \"noise\": 420,\n \"caseType\": \"rifle\",\n \"rim\": \"rimless\",\n \"cartridge\": {\n \"caseDiameter\": 11.95,\n \"overallLength\": 82,\n \"caseLength\": 57,\n \"projectileDiameter\": 8.22\n },\n \"sources\": [\n \"reference\",\n \"derived\"\n ]\n },\n {\n \"id\": \"9x39\",\n \"label\": \"9×39 mm SP-5\",\n \"diameter\": 9.27,\n \"bulletGrams\": 16.1,\n \"muzzleSpeed\": 290,\n \"dragPer100m\": 0.2,\n \"kind\": \"fmj\",\n \"noise\": 300,\n \"caseType\": \"rifle\",\n \"rim\": \"rimless\",\n \"cartridge\": {\n \"caseDiameter\": 11.33,\n \"overallLength\": 56,\n \"caseLength\": 38.7,\n \"projectileDiameter\": 9.27\n },\n \"sources\": [\n \"reference\",\n \"derived\"\n ]\n }\n]\n","[\n {\n \"id\": \"m67\",\n \"name\": \"M67 fragmentation grenade\",\n \"kind\": \"fragmentation\",\n \"lethalRadius\": 5,\n \"injuryRadius\": 15,\n \"energy\": 200000,\n \"tnt\": 0.24,\n \"destructionLevel\": 2,\n \"noise\": 500,\n \"fuse\": 4,\n \"triggers\": [\n \"timer\"\n ],\n \"mass\": 0.4,\n \"sources\": [\n \"arsenal\",\n \"lab\",\n \"game\",\n \"gallery\"\n ]\n },\n {\n \"id\": \"molotov\",\n \"name\": \"Molotov cocktail\",\n \"kind\": \"incendiary\",\n \"lethalRadius\": 0,\n \"injuryRadius\": 4,\n \"energy\": 500,\n \"destructionLevel\": 0,\n \"noise\": 40,\n \"fire\": {\n \"temperature\": 700,\n \"radius\": 4,\n \"seconds\": 9\n },\n \"triggers\": [\n \"impact\"\n ],\n \"sources\": [\n \"arsenal\",\n \"lab\",\n \"game\",\n \"gallery\"\n ]\n },\n {\n \"id\": \"pipe_bomb\",\n \"name\": \"Pipe bomb\",\n \"kind\": \"fragmentation\",\n \"lethalRadius\": 3,\n \"injuryRadius\": 10,\n \"energy\": 43200,\n \"tnt\": 0.15,\n \"destructionLevel\": 2,\n \"noise\": 450,\n \"fuse\": 3,\n \"triggers\": [\n \"timer\"\n ],\n \"sources\": [\n \"arsenal\",\n \"lab\",\n \"gallery\"\n ]\n },\n {\n \"id\": \"propane_p13\",\n \"name\": \"P13 propane cylinder\",\n \"kind\": \"fuel\",\n \"lethalRadius\": 5,\n \"injuryRadius\": 14,\n \"energy\": 200000,\n \"tnt\": 1.5,\n \"destructionLevel\": 2,\n \"noise\": 550,\n \"fire\": {\n \"temperature\": 700,\n \"radius\": 1.4,\n \"seconds\": 7\n },\n \"triggers\": [\n \"shot\",\n \"fire\",\n \"explosion\"\n ],\n \"chain\": {\n \"shot\": 1.4,\n \"fire\": 1.4,\n \"explosion\": [\n 0.25,\n 0.6\n ]\n },\n \"mass\": 28,\n \"leak\": {\n \"fluid\": \"gas\",\n \"liters\": 24,\n \"pressurized\": true,\n \"igniteDelay\": 0.8,\n \"hissSeconds\": 0.8\n },\n \"shell\": {\n \"launchSpeed\": 13,\n \"trailSeconds\": 1.8\n },\n \"sources\": [\n \"arsenal\",\n \"lab\",\n \"game\",\n \"gallery\"\n ]\n },\n {\n \"id\": \"dynamite\",\n \"name\": \"Dynamite\",\n \"kind\": \"blast\",\n \"lethalRadius\": 4,\n \"injuryRadius\": 12,\n \"energy\": 102400,\n \"tnt\": 0.25,\n \"destructionLevel\": 3,\n \"noise\": 600,\n \"fuseLength\": 0.03,\n \"burnRate\": 131,\n \"burnTolerance\": 0.1,\n \"triggers\": [\n \"timer\"\n ],\n \"sources\": [\n \"arsenal\",\n \"lab\",\n \"gallery\",\n \"reference\"\n ]\n },\n {\n \"id\": \"c4\",\n \"name\": \"C4 charge\",\n \"kind\": \"blast\",\n \"lethalRadius\": 6,\n \"injuryRadius\": 18,\n \"energy\": 345600,\n \"tnt\": 0.76,\n \"destructionLevel\": 3,\n \"noise\": 700,\n \"triggers\": [\n \"remote\"\n ],\n \"mass\": 0.57,\n \"sources\": [\n \"arsenal\",\n \"lab\",\n \"gallery\"\n ]\n },\n {\n \"id\": \"claymore\",\n \"name\": \"Claymore mine\",\n \"kind\": \"directional\",\n \"lethalRadius\": 15,\n \"injuryRadius\": 50,\n \"cone\": {\n \"halfAngleDeg\": 30,\n \"length\": 50\n },\n \"energy\": 102400,\n \"tnt\": 0.9,\n \"destructionLevel\": 1,\n \"noise\": 500,\n \"triggers\": [\n \"wire\"\n ],\n \"tripwire\": {\n \"length\": 10,\n \"angleDeg\": 0,\n \"height\": 0.15\n },\n \"sources\": [\n \"arsenal\",\n \"lab\",\n \"gallery\"\n ]\n },\n {\n \"id\": \"flashbang\",\n \"name\": \"Flashbang\",\n \"kind\": \"flash\",\n \"lethalRadius\": 0,\n \"injuryRadius\": 10,\n \"energy\": 0,\n \"tnt\": 0.01,\n \"destructionLevel\": 0,\n \"noise\": 400,\n \"fuseRange\": [\n 1,\n 2.3\n ],\n \"stunSeconds\": 4,\n \"triggers\": [\n \"timer\"\n ],\n \"sources\": [\n \"arsenal\",\n \"lab\",\n \"gallery\",\n \"reference\"\n ]\n },\n {\n \"id\": \"m79_40mm\",\n \"name\": \"40 mm grenade\",\n \"kind\": \"fragmentation\",\n \"lethalRadius\": 4,\n \"injuryRadius\": 12,\n \"energy\": 102400,\n \"tnt\": 0.045,\n \"destructionLevel\": 2,\n \"noise\": 450,\n \"armRange\": [\n 14,\n 27\n ],\n \"triggers\": [\n \"impact\"\n ],\n \"sources\": [\n \"arsenal\",\n \"lab\",\n \"gallery\",\n \"reference\"\n ]\n },\n {\n \"id\": \"m72_66mm\",\n \"name\": \"66 mm HEAT rocket\",\n \"kind\": \"shaped_charge\",\n \"lethalRadius\": 5,\n \"injuryRadius\": 15,\n \"energy\": 200000,\n \"tnt\": 0.45,\n \"destructionLevel\": 3,\n \"noise\": 700,\n \"triggers\": [\n \"impact\"\n ],\n \"sources\": [\n \"arsenal\",\n \"lab\",\n \"gallery\"\n ]\n },\n {\n \"id\": \"at4_84mm\",\n \"name\": \"84 mm HEAT rocket\",\n \"kind\": \"shaped_charge\",\n \"lethalRadius\": 5,\n \"injuryRadius\": 16,\n \"energy\": 200000,\n \"tnt\": 0.7,\n \"destructionLevel\": 3,\n \"noise\": 750,\n \"triggers\": [\n \"impact\"\n ],\n \"sources\": [\n \"arsenal\",\n \"lab\",\n \"gallery\"\n ]\n },\n {\n \"id\": \"pg7v\",\n \"name\": \"PG-7V rocket\",\n \"kind\": \"shaped_charge\",\n \"lethalRadius\": 5,\n \"injuryRadius\": 16,\n \"energy\": 200000,\n \"tnt\": 0.45,\n \"destructionLevel\": 3,\n \"noise\": 750,\n \"triggers\": [\n \"impact\"\n ],\n \"sources\": [\n \"arsenal\",\n \"lab\",\n \"gallery\"\n ]\n },\n {\n \"id\": \"carl_gustaf_84mm\",\n \"name\": \"84 mm HE/HEAT round\",\n \"kind\": \"shaped_charge\",\n \"lethalRadius\": 5,\n \"injuryRadius\": 16,\n \"energy\": 200000,\n \"tnt\": 0.7,\n \"destructionLevel\": 3,\n \"noise\": 750,\n \"triggers\": [\n \"impact\"\n ],\n \"sources\": [\n \"lab\",\n \"gallery\",\n \"derived\"\n ]\n },\n {\n \"id\": \"fuel_barrel\",\n \"name\": \"Fuel barrel\",\n \"kind\": \"fuel\",\n \"lethalRadius\": 4,\n \"injuryRadius\": 12,\n \"energy\": 102400,\n \"tnt\": 1,\n \"destructionLevel\": 2,\n \"noise\": 550,\n \"fire\": {\n \"temperature\": 700,\n \"radius\": 2,\n \"seconds\": 12\n },\n \"triggers\": [\n \"shot\",\n \"fire\",\n \"explosion\"\n ],\n \"chain\": {\n \"shot\": 1.2,\n \"fire\": 1.2,\n \"explosion\": [\n 0.2,\n 0.4\n ]\n },\n \"sources\": [\n \"lab\",\n \"game\",\n \"derived\"\n ]\n },\n {\n \"id\": \"car_fuel_tank\",\n \"name\": \"Car fuel tank\",\n \"kind\": \"fuel\",\n \"lethalRadius\": 5,\n \"injuryRadius\": 14,\n \"energy\": 200000,\n \"tnt\": 0.5,\n \"destructionLevel\": 2,\n \"noise\": 550,\n \"fire\": {\n \"temperature\": 700,\n \"radius\": 2.2,\n \"seconds\": 30\n },\n \"triggers\": [\n \"shot\",\n \"fire\",\n \"explosion\"\n ],\n \"chain\": {\n \"shot\": [\n 3,\n 8\n ],\n \"fire\": [\n 3,\n 8\n ],\n \"explosion\": 0.6,\n \"shotDamageFraction\": 0.5\n },\n \"sources\": [\n \"lab\",\n \"game\",\n \"derived\"\n ]\n },\n {\n \"id\": \"fuel_pump\",\n \"name\": \"Fuel pump\",\n \"kind\": \"fuel\",\n \"lethalRadius\": 4,\n \"injuryRadius\": 12,\n \"energy\": 102400,\n \"tnt\": 0.5,\n \"destructionLevel\": 3,\n \"noise\": 700,\n \"fire\": {\n \"temperature\": 700,\n \"radius\": 1.1,\n \"seconds\": 14\n },\n \"triggers\": [\n \"shot\",\n \"fire\",\n \"explosion\"\n ],\n \"chain\": {\n \"shot\": 1,\n \"fire\": 1,\n \"explosion\": 0.4\n },\n \"sources\": [\n \"lab\",\n \"derived\"\n ]\n },\n {\n \"id\": \"fuel_station_tank\",\n \"name\": \"Fuel station tank\",\n \"kind\": \"fuel\",\n \"lethalRadius\": 12,\n \"injuryRadius\": 30,\n \"energy\": 2764800,\n \"tnt\": 20,\n \"destructionLevel\": 3,\n \"noise\": 700,\n \"fire\": {\n \"temperature\": 700,\n \"radius\": 3.2,\n \"seconds\": 20\n },\n \"triggers\": [\n \"fire\",\n \"explosion\"\n ],\n \"chain\": {\n \"fire\": 2,\n \"explosion\": 2\n },\n \"sources\": [\n \"lab\",\n \"derived\"\n ]\n },\n {\n \"id\": \"vog_25\",\n \"name\": \"VOG-25 40 mm grenade\",\n \"kind\": \"fragmentation\",\n \"lethalRadius\": 4,\n \"injuryRadius\": 12,\n \"energy\": 102400,\n \"tnt\": 0.045,\n \"destructionLevel\": 2,\n \"noise\": 450,\n \"armRange\": [\n 10,\n 40\n ],\n \"triggers\": [\n \"impact\"\n ],\n \"sources\": [\n \"lab\",\n \"reference\",\n \"derived\"\n ]\n },\n {\n \"id\": \"semtex\",\n \"name\": \"Semtex charge\",\n \"kind\": \"blast\",\n \"lethalRadius\": 6,\n \"injuryRadius\": 18,\n \"energy\": 377400,\n \"tnt\": 0.83,\n \"destructionLevel\": 3,\n \"noise\": 700,\n \"fuseLength\": 0.23,\n \"burnRate\": 131,\n \"burnTolerance\": 0.1,\n \"triggers\": [\n \"remote\",\n \"timer\"\n ],\n \"mass\": 0.5,\n \"sources\": [\n \"lab\",\n \"reference\",\n \"derived\"\n ]\n },\n {\n \"id\": \"smoke_grenade\",\n \"name\": \"M18 colored smoke grenade\",\n \"kind\": \"smoke\",\n \"lethalRadius\": 0,\n \"injuryRadius\": 0,\n \"energy\": 0,\n \"destructionLevel\": 0,\n \"noise\": 30,\n \"fuseRange\": [\n 1,\n 2.3\n ],\n \"smoke\": {\n \"color\": 4177738,\n \"seconds\": [\n 50,\n 90\n ]\n },\n \"triggers\": [\n \"timer\"\n ],\n \"mass\": 0.54,\n \"sources\": [\n \"reference\",\n \"derived\"\n ]\n }\n]\n","[\n {\n \"id\": \"flashbang\",\n \"name\": \"Flashbang\",\n \"category\": \"throwable\",\n \"action\": {\n \"kind\": \"throwable\",\n \"explosive\": \"flashbang\",\n \"energy\": 0,\n \"radius\": 0,\n \"fuse\": 0,\n \"throwSpeed\": 15,\n \"noise\": 0\n },\n \"mass\": 0.23,\n \"tags\": [\n \"explosive\"\n ],\n \"archetype\": \"frag_grenade\",\n \"sources\": [\n \"arsenal\",\n \"lab\",\n \"reference\",\n \"derived\"\n ]\n },\n {\n \"id\": \"dynamite\",\n \"name\": \"Dynamite\",\n \"category\": \"throwable\",\n \"action\": {\n \"kind\": \"throwable\",\n \"explosive\": \"dynamite\",\n \"energy\": 0,\n \"radius\": 0,\n \"fuse\": 0,\n \"throwSpeed\": 15,\n \"noise\": 0\n },\n \"mass\": 0.5,\n \"tags\": [\n \"explosive\"\n ],\n \"archetype\": \"frag_grenade\",\n \"sources\": [\n \"arsenal\",\n \"lab\",\n \"reference\",\n \"derived\"\n ]\n },\n {\n \"id\": \"c4\",\n \"name\": \"C4 charge\",\n \"category\": \"throwable\",\n \"action\": {\n \"kind\": \"throwable\",\n \"explosive\": \"c4\",\n \"energy\": 0,\n \"radius\": 0,\n \"fuse\": 0,\n \"throwSpeed\": 0,\n \"noise\": 0\n },\n \"mass\": 0.57,\n \"tags\": [\n \"explosive\",\n \"placed\"\n ],\n \"archetype\": \"frag_grenade\",\n \"sources\": [\n \"arsenal\",\n \"lab\"\n ]\n },\n {\n \"id\": \"claymore\",\n \"name\": \"Claymore mine\",\n \"category\": \"throwable\",\n \"action\": {\n \"kind\": \"throwable\",\n \"explosive\": \"claymore\",\n \"energy\": 0,\n \"radius\": 0,\n \"fuse\": 0,\n \"throwSpeed\": 0,\n \"noise\": 0\n },\n \"mass\": 1.6,\n \"tags\": [\n \"explosive\",\n \"placed\"\n ],\n \"archetype\": \"frag_grenade\",\n \"sources\": [\n \"arsenal\",\n \"lab\",\n \"reference\"\n ]\n },\n {\n \"id\": \"semtex\",\n \"name\": \"Semtex charge\",\n \"category\": \"throwable\",\n \"action\": {\n \"kind\": \"throwable\",\n \"explosive\": \"semtex\",\n \"energy\": 0,\n \"radius\": 0,\n \"fuse\": 0,\n \"throwSpeed\": 0,\n \"noise\": 0\n },\n \"mass\": 0.5,\n \"tags\": [\n \"explosive\",\n \"placed\"\n ],\n \"archetype\": \"frag_grenade\",\n \"sources\": [\n \"reference\",\n \"derived\"\n ]\n },\n {\n \"id\": \"smoke_grenade\",\n \"name\": \"M18 colored smoke grenade\",\n \"category\": \"throwable\",\n \"action\": {\n \"kind\": \"throwable\",\n \"explosive\": \"smoke_grenade\",\n \"energy\": 0,\n \"radius\": 0,\n \"fuse\": 0,\n \"throwSpeed\": 15,\n \"noise\": 0\n },\n \"mass\": 0.54,\n \"tags\": [\n \"explosive\",\n \"smoke\"\n ],\n \"archetype\": \"frag_grenade\",\n \"sources\": [\n \"reference\",\n \"derived\"\n ]\n }\n]\n","[\n {\n \"id\": \"glock_17\",\n \"name\": \"Glock 17\",\n \"maker\": \"Glock\",\n \"category\": \"pistol\",\n \"action\": {\n \"kind\": \"firearm\",\n \"caliber\": \"9x19\",\n \"rpm\": 300,\n \"modes\": [\n \"semi\"\n ],\n \"magazine\": 17,\n \"reload\": 1.8,\n \"muzzleSpeed\": 375,\n \"spreadDeg\": 1,\n \"bloomDeg\": 0.6,\n \"recoveryDegPerS\": 4,\n \"recoil\": [\n 1.63,\n 0.54\n ],\n \"range\": 50,\n \"family\": \"pistol\",\n \"timings\": {\n \"draw\": 0.35,\n \"reload\": 1.8,\n \"clear\": 1.2\n },\n \"faultFactor\": 0.7,\n \"moa\": 4\n },\n \"mass\": 0.7,\n \"dimensions\": {\n \"length\": 0.202,\n \"barrel\": 0.114,\n \"emptyMass\": 0.63\n },\n \"archetype\": \"pistol_9mm\",\n \"sources\": [\n \"gallery\",\n \"arsenal\",\n \"sdk\"\n ],\n \"mounts\": [\n {\n \"kind\": \"magazine\",\n \"interfaces\": [\n \"mag_pistol\"\n ],\n \"sources\": [\n \"derived\"\n ]\n }\n ],\n \"fitted\": []\n },\n {\n \"id\": \"glock_18\",\n \"name\": \"Glock 18\",\n \"maker\": \"Glock\",\n \"category\": \"pistol\",\n \"action\": {\n \"kind\": \"firearm\",\n \"caliber\": \"9x19\",\n \"rpm\": 1200,\n \"modes\": [\n \"semi\",\n \"auto\"\n ],\n \"magazine\": 17,\n \"magazineOptions\": [\n 33\n ],\n \"reload\": 1.8,\n \"muzzleSpeed\": 375,\n \"spreadDeg\": 1,\n \"bloomDeg\": 0.6,\n \"recoveryDegPerS\": 4,\n \"recoil\": [\n 1.63,\n 0.54\n ],\n \"range\": 50,\n \"family\": \"pistol\",\n \"timings\": {\n \"draw\": 0.35,\n \"reload\": 1.8,\n \"clear\": 1.2\n },\n \"faultFactor\": 0.9,\n \"moa\": 4\n },\n \"mass\": 0.7,\n \"dimensions\": {\n \"length\": 0.202,\n \"barrel\": 0.114,\n \"emptyMass\": 0.62\n },\n \"archetype\": \"pistol_9mm\",\n \"sources\": [\n \"gallery\",\n \"arsenal\",\n \"sdk\"\n ],\n \"mounts\": [\n {\n \"kind\": \"magazine\",\n \"interfaces\": [\n \"mag_pistol\"\n ],\n \"sources\": [\n \"derived\"\n ]\n }\n ],\n \"fitted\": []\n },\n {\n \"id\": \"glock_19\",\n \"name\": \"Glock 19\",\n \"maker\": \"Glock\",\n \"category\": \"pistol\",\n \"action\": {\n \"kind\": \"firearm\",\n \"caliber\": \"9x19\",\n \"rpm\": 300,\n \"modes\": [\n \"semi\"\n ],\n \"magazine\": 15,\n \"reload\": 1.7,\n \"muzzleSpeed\": 360,\n \"spreadDeg\": 1,\n \"bloomDeg\": 0.6,\n \"recoveryDegPerS\": 4,\n \"recoil\": [\n 1.75,\n 0.58\n ],\n \"range\": 50,\n \"family\": \"pistol\",\n \"timings\": {\n \"draw\": 0.35,\n \"reload\": 1.7,\n \"clear\": 1.2\n },\n \"faultFactor\": 0.7,\n \"moa\": 4\n },\n \"mass\": 0.6,\n \"dimensions\": {\n \"length\": 0.185,\n \"barrel\": 0.102,\n \"emptyMass\": 0.6\n },\n \"archetype\": \"pistol_9mm\",\n \"sources\": [\n \"gallery\",\n \"arsenal\",\n \"sdk\"\n ],\n \"mounts\": [\n {\n \"kind\": \"magazine\",\n \"interfaces\": [\n \"mag_pistol\"\n ],\n \"sources\": [\n \"derived\"\n ]\n }\n ],\n \"fitted\": []\n },\n {\n \"id\": \"taurus_g2c\",\n \"name\": \"Taurus G2C\",\n \"maker\": \"Taurus\",\n \"category\": \"pistol\",\n \"action\": {\n \"kind\": \"firearm\",\n \"caliber\": \"9x19\",\n \"rpm\": 300,\n \"modes\": [\n \"semi\"\n ],\n \"magazine\": 12,\n \"reload\": 1.7,\n \"muzzleSpeed\": 340,\n \"spreadDeg\": 1,\n \"bloomDeg\": 0.6,\n \"recoveryDegPerS\": 4,\n \"recoil\": [\n 1.56,\n 0.52\n ],\n \"range\": 50,\n \"family\": \"pistol\",\n \"timings\": {\n \"draw\": 0.35,\n \"reload\": 1.7,\n \"clear\": 1.2\n },\n \"faultFactor\": 1.5,\n \"moa\": 5\n },\n \"mass\": 0.6,\n \"dimensions\": {\n \"length\": 0.159,\n \"barrel\": 0.081,\n \"emptyMass\": 0.62\n },\n \"archetype\": \"pistol_9mm\",\n \"sources\": [\n \"gallery\",\n \"arsenal\",\n \"sdk\"\n ],\n \"mounts\": [\n {\n \"kind\": \"magazine\",\n \"interfaces\": [\n \"mag_pistol\"\n ],\n \"sources\": [\n \"derived\"\n ]\n }\n ],\n \"fitted\": []\n },\n {\n \"id\": \"taurus_ts9\",\n \"name\": \"Taurus TS9\",\n \"maker\": \"Taurus\",\n \"category\": \"pistol\",\n \"action\": {\n \"kind\": \"firearm\",\n \"caliber\": \"9x19\",\n \"rpm\": 300,\n \"modes\": [\n \"semi\"\n ],\n \"magazine\": 17,\n \"reload\": 1.8,\n \"muzzleSpeed\": 360,\n \"spreadDeg\": 1,\n \"bloomDeg\": 0.6,\n \"recoveryDegPerS\": 4,\n \"recoil\": [\n 1.5,\n 0.5\n ],\n \"range\": 50,\n \"family\": \"pistol\",\n \"timings\": {\n \"draw\": 0.35,\n \"reload\": 1.8,\n \"clear\": 1.2\n },\n \"faultFactor\": 1.2,\n \"moa\": 4\n },\n \"mass\": 0.7,\n \"dimensions\": {\n \"length\": 0.194,\n \"barrel\": 0.104,\n \"emptyMass\": 0.68\n },\n \"archetype\": \"pistol_9mm\",\n \"sources\": [\n \"gallery\",\n \"arsenal\",\n \"sdk\"\n ],\n \"mounts\": [\n {\n \"kind\": \"magazine\",\n \"interfaces\": [\n \"mag_pistol\"\n ],\n \"sources\": [\n \"derived\"\n ]\n }\n ],\n \"fitted\": []\n },\n {\n \"id\": \"beretta_92fs\",\n \"name\": \"Beretta 92FS\",\n \"maker\": \"Beretta\",\n \"category\": \"pistol\",\n \"action\": {\n \"kind\": \"firearm\",\n \"caliber\": \"9x19\",\n \"rpm\": 300,\n \"modes\": [\n \"semi\"\n ],\n \"magazine\": 15,\n \"reload\": 1.9,\n \"muzzleSpeed\": 381,\n \"spreadDeg\": 1,\n \"bloomDeg\": 0.6,\n \"recoveryDegPerS\": 4,\n \"recoil\": [\n 1.24,\n 0.41\n ],\n \"range\": 50,\n \"family\": \"pistol\",\n \"timings\": {\n \"draw\": 0.35,\n \"reload\": 1.9,\n \"clear\": 1.2\n },\n \"faultFactor\": 0.9,\n \"moa\": 3\n },\n \"mass\": 0.95,\n \"dimensions\": {\n \"length\": 0.217,\n \"barrel\": 0.125,\n \"emptyMass\": 0.95\n },\n \"archetype\": \"pistol_9mm\",\n \"sources\": [\n \"gallery\",\n \"arsenal\",\n \"sdk\"\n ],\n \"mounts\": [\n {\n \"kind\": \"magazine\",\n \"interfaces\": [\n \"mag_pistol\"\n ],\n \"sources\": [\n \"derived\"\n ]\n }\n ],\n \"fitted\": []\n },\n {\n \"id\": \"sig_sauer_p226\",\n \"name\": \"SIG Sauer P226\",\n \"maker\": \"SIG Sauer\",\n \"category\": \"pistol\",\n \"action\": {\n \"kind\": \"firearm\",\n \"caliber\": \"9x19\",\n \"rpm\": 300,\n \"modes\": [\n \"semi\"\n ],\n \"magazine\": 15,\n \"reload\": 1.9,\n \"muzzleSpeed\": 350,\n \"spreadDeg\": 1,\n \"bloomDeg\": 0.6,\n \"recoveryDegPerS\": 4,\n \"recoil\": [\n 1.03,\n 0.34\n ],\n \"range\": 50,\n \"family\": \"pistol\",\n \"timings\": {\n \"draw\": 0.35,\n \"reload\": 1.9,\n \"clear\": 1.2\n },\n \"faultFactor\": 0.8,\n \"moa\": 3\n },\n \"mass\": 0.96,\n \"dimensions\": {\n \"length\": 0.196,\n \"barrel\": 0.112,\n \"emptyMass\": 0.96\n },\n \"archetype\": \"pistol_9mm\",\n \"sources\": [\n \"gallery\",\n \"arsenal\",\n \"sdk\"\n ],\n \"mounts\": [\n {\n \"kind\": \"magazine\",\n \"interfaces\": [\n \"mag_pistol\"\n ],\n \"sources\": [\n \"derived\"\n ]\n }\n ],\n \"fitted\": []\n },\n {\n \"id\": \"cz_75\",\n \"name\": \"CZ 75\",\n \"maker\": \"CZ\",\n \"category\": \"pistol\",\n \"action\": {\n \"kind\": \"firearm\",\n \"caliber\": \"9x19\",\n \"rpm\": 300,\n \"modes\": [\n \"semi\"\n ],\n \"magazine\": 16,\n \"reload\": 1.9,\n \"muzzleSpeed\": 370,\n \"spreadDeg\": 1,\n \"bloomDeg\": 0.6,\n \"recoveryDegPerS\": 4,\n \"recoil\": [\n 1.11,\n 0.37\n ],\n \"range\": 50,\n \"family\": \"pistol\",\n \"timings\": {\n \"draw\": 0.35,\n \"reload\": 1.9,\n \"clear\": 1.2\n },\n \"faultFactor\": 0.9,\n \"moa\": 3\n },\n \"mass\": 1,\n \"dimensions\": {\n \"length\": 0.206,\n \"barrel\": 0.12,\n \"emptyMass\": 1\n },\n \"archetype\": \"pistol_9mm\",\n \"sources\": [\n \"gallery\",\n \"arsenal\",\n \"sdk\"\n ],\n \"mounts\": [\n {\n \"kind\": \"magazine\",\n \"interfaces\": [\n \"mag_pistol\"\n ],\n \"sources\": [\n \"derived\"\n ]\n }\n ],\n \"fitted\": []\n },\n {\n \"id\": \"taurus_pt100\",\n \"name\": \"Taurus PT100\",\n \"maker\": \"Taurus\",\n \"category\": \"pistol\",\n \"action\": {\n \"kind\": \"firearm\",\n \"caliber\": \"40sw\",\n \"rpm\": 300,\n \"modes\": [\n \"semi\"\n ],\n \"magazine\": 11,\n \"reload\": 1.9,\n \"muzzleSpeed\": 300,\n \"spreadDeg\": 1,\n \"bloomDeg\": 0.6,\n \"recoveryDegPerS\": 4,\n \"recoil\": [\n 1.14,\n 0.38\n ],\n \"range\": 50,\n \"family\": \"pistol\",\n \"timings\": {\n \"draw\": 0.35,\n \"reload\": 1.9,\n \"clear\": 1.2\n },\n \"faultFactor\": 1.2,\n \"moa\": 4\n },\n \"mass\": 1,\n \"dimensions\": {\n \"length\": 0.216,\n \"barrel\": 0.127,\n \"emptyMass\": 1\n },\n \"archetype\": \"pistol_9mm\",\n \"sources\": [\n \"gallery\",\n \"arsenal\",\n \"sdk\"\n ],\n \"mounts\": [\n {\n \"kind\": \"magazine\",\n \"interfaces\": [\n \"mag_pistol\"\n ],\n \"sources\": [\n \"derived\"\n ]\n }\n ],\n \"fitted\": []\n },\n {\n \"id\": \"colt_m1911\",\n \"name\": \"Colt M1911\",\n \"maker\": \"Colt\",\n \"category\": \"pistol\",\n \"action\": {\n \"kind\": \"firearm\",\n \"caliber\": \"45acp\",\n \"rpm\": 300,\n \"modes\": [\n \"semi\"\n ],\n \"magazine\": 7,\n \"reload\": 1.8,\n \"muzzleSpeed\": 253,\n \"spreadDeg\": 1.1,\n \"bloomDeg\": 0.8,\n \"recoveryDegPerS\": 4,\n \"recoil\": [\n 1.79,\n 0.6\n ],\n \"range\": 50,\n \"family\": \"pistol\",\n \"timings\": {\n \"draw\": 0.35,\n \"reload\": 1.8,\n \"clear\": 1.2\n },\n \"faultFactor\": 1.1,\n \"moa\": 3\n },\n \"mass\": 1.1,\n \"dimensions\": {\n \"length\": 0.216,\n \"barrel\": 0.127,\n \"emptyMass\": 1.1\n },\n \"archetype\": \"pistol_45\",\n \"sources\": [\n \"gallery\",\n \"arsenal\",\n \"sdk\"\n ],\n \"mounts\": [\n {\n \"kind\": \"magazine\",\n \"interfaces\": [\n \"mag_pistol\"\n ],\n \"sources\": [\n \"derived\"\n ]\n }\n ],\n \"fitted\": []\n },\n {\n \"id\": \"makarov_pm\",\n \"name\": \"Makarov PM\",\n \"category\": \"pistol\",\n \"action\": {\n \"kind\": \"firearm\",\n \"caliber\": \"9x18\",\n \"rpm\": 300,\n \"modes\": [\n \"semi\"\n ],\n \"magazine\": 8,\n \"reload\": 1.7,\n \"muzzleSpeed\": 315,\n \"spreadDeg\": 1,\n \"bloomDeg\": 0.6,\n \"recoveryDegPerS\": 4,\n \"recoil\": [\n 0.9,\n 0.3\n ],\n \"range\": 50,\n \"family\": \"pistol\",\n \"timings\": {\n \"draw\": 0.35,\n \"reload\": 1.7,\n \"clear\": 1.2\n },\n \"faultFactor\": 0.8,\n \"moa\": 5\n },\n \"mass\": 0.73,\n \"dimensions\": {\n \"length\": 0.161,\n \"barrel\": 0.094,\n \"emptyMass\": 0.73\n },\n \"archetype\": \"pistol_9mm\",\n \"sources\": [\n \"gallery\",\n \"arsenal\",\n \"sdk\"\n ],\n \"mounts\": [\n {\n \"kind\": \"magazine\",\n \"interfaces\": [\n \"mag_pistol\"\n ],\n \"sources\": [\n \"derived\"\n ]\n }\n ],\n \"fitted\": []\n },\n {\n \"id\": \"fn_five_seven\",\n \"name\": \"FN Five-seveN\",\n \"maker\": \"FN\",\n \"category\": \"pistol\",\n \"action\": {\n \"kind\": \"firearm\",\n \"caliber\": \"5_7x28\",\n \"rpm\": 300,\n \"modes\": [\n \"semi\"\n ],\n \"magazine\": 20,\n \"reload\": 1.8,\n \"muzzleSpeed\": 650,\n \"spreadDeg\": 1,\n \"bloomDeg\": 0.6,\n \"recoveryDegPerS\": 4,\n \"recoil\": [\n 1.5,\n 0.5\n ],\n \"range\": 50,\n \"family\": \"pistol\",\n \"timings\": {\n \"draw\": 0.35,\n \"reload\": 1.8,\n \"clear\": 1.2\n },\n \"faultFactor\": 0.9,\n \"moa\": 3\n },\n \"mass\": 0.61,\n \"dimensions\": {\n \"length\": 0.208,\n \"barrel\": 0.122,\n \"emptyMass\": 0.61\n },\n \"archetype\": \"pistol_9mm\",\n \"sources\": [\n \"gallery\",\n \"arsenal\",\n \"sdk\"\n ],\n \"mounts\": [\n {\n \"kind\": \"magazine\",\n \"interfaces\": [\n \"mag_pistol\"\n ],\n \"sources\": [\n \"derived\"\n ]\n }\n ],\n \"fitted\": []\n },\n {\n \"id\": \"desert_eagle_mark_xix\",\n \"name\": \"Desert Eagle Mark XIX\",\n \"category\": \"pistol\",\n \"action\": {\n \"kind\": \"firearm\",\n \"caliber\": \"50ae\",\n \"rpm\": 300,\n \"modes\": [\n \"semi\"\n ],\n \"magazine\": 7,\n \"reload\": 2,\n \"muzzleSpeed\": 470,\n \"spreadDeg\": 1.1,\n \"bloomDeg\": 0.8,\n \"recoveryDegPerS\": 4,\n \"recoil\": [\n 4.41,\n 1.47\n ],\n \"range\": 50,\n \"family\": \"pistol\",\n \"timings\": {\n \"draw\": 0.35,\n \"reload\": 2,\n \"clear\": 1.2\n },\n \"faultFactor\": 1.8,\n \"moa\": 3\n },\n \"mass\": 2,\n \"dimensions\": {\n \"length\": 0.27,\n \"barrel\": 0.152,\n \"emptyMass\": 1.99\n },\n \"archetype\": \"pistol_45\",\n \"sources\": [\n \"gallery\",\n \"arsenal\",\n \"sdk\"\n ],\n \"mounts\": [\n {\n \"kind\": \"magazine\",\n \"interfaces\": [\n \"mag_pistol\"\n ],\n \"sources\": [\n \"derived\"\n ]\n }\n ],\n \"fitted\": []\n },\n {\n \"id\": \"taurus_82\",\n \"name\": \"Taurus 82\",\n \"maker\": \"Taurus\",\n \"category\": \"revolver\",\n \"action\": {\n \"kind\": \"firearm\",\n \"caliber\": \"38spl\",\n \"rpm\": 150,\n \"modes\": [\n \"single\"\n ],\n \"magazine\": 6,\n \"reload\": 2.2,\n \"muzzleSpeed\": 260,\n \"spreadDeg\": 0.9,\n \"bloomDeg\": 0.7,\n \"recoveryDegPerS\": 3.5,\n \"recoil\": [\n 1.96,\n 0.61\n ],\n \"range\": 45,\n \"family\": \"revolver\",\n \"timings\": {\n \"draw\": 0.35,\n \"reload\": 2.2,\n \"perRound\": 1,\n \"clear\": 1.2\n },\n \"moa\": 4\n },\n \"mass\": 0.9,\n \"dimensions\": {\n \"length\": 0.24,\n \"barrel\": 0.102,\n \"emptyMass\": 0.95\n },\n \"archetype\": \"revolver_38\",\n \"sources\": [\n \"gallery\",\n \"arsenal\",\n \"sdk\"\n ],\n \"mounts\": [],\n \"fitted\": []\n },\n {\n \"id\": \"sw_686\",\n \"name\": \"S&W 686\",\n \"maker\": \"S&W\",\n \"category\": \"revolver\",\n \"action\": {\n \"kind\": \"firearm\",\n \"caliber\": \"357mag\",\n \"rpm\": 150,\n \"modes\": [\n \"single\"\n ],\n \"magazine\": 7,\n \"reload\": 2.4,\n \"muzzleSpeed\": 430,\n \"spreadDeg\": 0.8,\n \"bloomDeg\": 1,\n \"recoveryDegPerS\": 3,\n \"recoil\": [\n 3.21,\n 0.96\n ],\n \"range\": 60,\n \"family\": \"revolver\",\n \"timings\": {\n \"draw\": 0.35,\n \"reload\": 2.4,\n \"perRound\": 1,\n \"clear\": 1.2\n },\n \"moa\": 3,\n \"acceptsCalibers\": [\n \"38spl\"\n ]\n },\n \"mass\": 1.2,\n \"dimensions\": {\n \"length\": 0.244,\n \"barrel\": 0.102,\n \"emptyMass\": 1.14\n },\n \"archetype\": \"revolver_357\",\n \"sources\": [\n \"gallery\",\n \"arsenal\",\n \"sdk\"\n ],\n \"mounts\": [],\n \"fitted\": []\n },\n {\n \"id\": \"sw_model_29\",\n \"name\": \"S&W Model 29\",\n \"maker\": \"S&W\",\n \"category\": \"revolver\",\n \"action\": {\n \"kind\": \"firearm\",\n \"caliber\": \"44mag\",\n \"rpm\": 150,\n \"modes\": [\n \"single\"\n ],\n \"magazine\": 6,\n \"reload\": 2.6,\n \"muzzleSpeed\": 440,\n \"spreadDeg\": 0.8,\n \"bloomDeg\": 1,\n \"recoveryDegPerS\": 3,\n \"recoil\": [\n 4.4,\n 1.32\n ],\n \"range\": 60,\n \"family\": \"revolver\",\n \"timings\": {\n \"draw\": 0.35,\n \"reload\": 2.6,\n \"perRound\": 1,\n \"clear\": 1.2\n },\n \"moa\": 3\n },\n \"mass\": 1.4,\n \"dimensions\": {\n \"length\": 0.302,\n \"barrel\": 0.165,\n \"emptyMass\": 1.4\n },\n \"archetype\": \"revolver_357\",\n \"sources\": [\n \"gallery\",\n \"arsenal\",\n \"sdk\"\n ],\n \"mounts\": [],\n \"fitted\": []\n },\n {\n \"id\": \"hk_mp5a3\",\n \"name\": \"HK MP5A3\",\n \"maker\": \"HK\",\n \"category\": \"smg\",\n \"action\": {\n \"kind\": \"firearm\",\n \"caliber\": \"9x19\",\n \"rpm\": 800,\n \"modes\": [\n \"auto\",\n \"semi\"\n ],\n \"magazine\": 30,\n \"reload\": 2.6,\n \"muzzleSpeed\": 400,\n \"spreadDeg\": 1.5,\n \"bloomDeg\": 0.35,\n \"recoveryDegPerS\": 6,\n \"recoil\": [\n 0.8,\n 0.44\n ],\n \"range\": 80,\n \"family\": \"magazine\",\n \"timings\": {\n \"draw\": 0.35,\n \"reload\": 2.6,\n \"clear\": 1.2\n },\n \"moa\": 3\n },\n \"mass\": 2.9,\n \"dimensions\": {\n \"length\": 0.7,\n \"barrel\": 0.225,\n \"emptyMass\": 2.54,\n \"lengthCollapsed\": 0.55\n },\n \"archetype\": \"smg_9mm\",\n \"sources\": [\n \"gallery\",\n \"arsenal\",\n \"sdk\"\n ],\n \"mounts\": [\n {\n \"kind\": \"muzzle\",\n \"interfaces\": [\n \"hk_3lug\"\n ],\n \"sources\": [\n \"reference\"\n ]\n },\n {\n \"kind\": \"magazine\",\n \"interfaces\": [\n \"mag_curved\"\n ],\n \"sources\": [\n \"gallery\"\n ]\n },\n {\n \"kind\": \"sling\",\n \"interfaces\": [\n \"swivel\"\n ],\n \"sources\": [\n \"derived\"\n ]\n }\n ],\n \"fitted\": [],\n \"stock\": {\n \"kind\": \"retract\"\n }\n },\n {\n \"id\": \"taurus_smt9\",\n \"name\": \"Taurus SMT9\",\n \"maker\": \"Taurus\",\n \"category\": \"smg\",\n \"action\": {\n \"kind\": \"firearm\",\n \"caliber\": \"9x19\",\n \"rpm\": 750,\n \"modes\": [\n \"auto\",\n \"semi\"\n ],\n \"magazine\": 30,\n \"reload\": 2.5,\n \"muzzleSpeed\": 380,\n \"spreadDeg\": 1.5,\n \"bloomDeg\": 0.35,\n \"recoveryDegPerS\": 6,\n \"recoil\": [\n 0.78,\n 0.43\n ],\n \"range\": 80,\n \"family\": \"magazine\",\n \"timings\": {\n \"draw\": 0.35,\n \"reload\": 2.5,\n \"clear\": 1.2\n },\n \"moa\": 4\n },\n \"mass\": 2.7,\n \"dimensions\": {\n \"length\": 0.66,\n \"barrel\": 0.2,\n \"emptyMass\": 2.5,\n \"lengthCollapsed\": 0.45\n },\n \"archetype\": \"smg_9mm\",\n \"sources\": [\n \"gallery\",\n \"arsenal\",\n \"sdk\"\n ],\n \"mounts\": [\n {\n \"kind\": \"rail_top\",\n \"interfaces\": [\n \"picatinny\"\n ],\n \"sources\": [\n \"gallery\"\n ]\n },\n {\n \"kind\": \"rail_left\",\n \"interfaces\": [\n \"picatinny\"\n ],\n \"sources\": [\n \"gallery\"\n ]\n },\n {\n \"kind\": \"rail_right\",\n \"interfaces\": [\n \"picatinny\"\n ],\n \"sources\": [\n \"gallery\"\n ]\n },\n {\n \"kind\": \"rail_bottom\",\n \"interfaces\": [\n \"picatinny\"\n ],\n \"sources\": [\n \"gallery\"\n ]\n },\n {\n \"kind\": \"magazine\",\n \"interfaces\": [\n \"mag_box\"\n ],\n \"sources\": [\n \"gallery\"\n ]\n },\n {\n \"kind\": \"sling\",\n \"interfaces\": [\n \"swivel\"\n ],\n \"sources\": [\n \"derived\"\n ]\n }\n ],\n \"fitted\": [],\n \"stock\": {\n \"kind\": \"retract\"\n }\n },\n {\n \"id\": \"hk_ump_45\",\n \"name\": \"HK UMP-45\",\n \"maker\": \"HK\",\n \"category\": \"smg\",\n \"action\": {\n \"kind\": \"firearm\",\n \"caliber\": \"45acp\",\n \"rpm\": 600,\n \"modes\": [\n \"auto\",\n \"semi\"\n ],\n \"magazine\": 25,\n \"reload\": 2.7,\n \"muzzleSpeed\": 285,\n \"spreadDeg\": 1.5,\n \"bloomDeg\": 0.35,\n \"recoveryDegPerS\": 6,\n \"recoil\": [\n 1.02,\n 0.57\n ],\n \"range\": 80,\n \"family\": \"magazine\",\n \"timings\": {\n \"draw\": 0.35,\n \"reload\": 2.7,\n \"clear\": 1.2\n },\n \"moa\": 4\n },\n \"mass\": 2.3,\n \"dimensions\": {\n \"length\": 0.69,\n \"barrel\": 0.2,\n \"emptyMass\": 2.3,\n \"lengthCollapsed\": 0.45\n },\n \"archetype\": \"smg_9mm\",\n \"sources\": [\n \"gallery\",\n \"arsenal\",\n \"sdk\"\n ],\n \"mounts\": [\n {\n \"kind\": \"muzzle\",\n \"interfaces\": [\n \"thread_5/8x24\"\n ],\n \"sources\": [\n \"derived\"\n ]\n },\n {\n \"kind\": \"rail_top\",\n \"interfaces\": [\n \"picatinny\"\n ],\n \"sources\": [\n \"gallery\"\n ]\n },\n {\n \"kind\": \"magazine\",\n \"interfaces\": [\n \"mag_box\"\n ],\n \"sources\": [\n \"gallery\"\n ]\n },\n {\n \"kind\": \"sling\",\n \"interfaces\": [\n \"swivel\"\n ],\n \"sources\": [\n \"derived\"\n ]\n }\n ],\n \"fitted\": [],\n \"stock\": {\n \"kind\": \"fold\",\n \"foldAxis\": \"right\"\n }\n },\n {\n \"id\": \"uzi\",\n \"name\": \"Uzi\",\n \"category\": \"smg\",\n \"action\": {\n \"kind\": \"firearm\",\n \"caliber\": \"9x19\",\n \"rpm\": 600,\n \"modes\": [\n \"auto\",\n \"semi\"\n ],\n \"magazine\": 32,\n \"reload\": 2.4,\n \"muzzleSpeed\": 400,\n \"spreadDeg\": 1.5,\n \"bloomDeg\": 0.35,\n \"recoveryDegPerS\": 6,\n \"recoil\": [\n 0.66,\n 0.37\n ],\n \"range\": 80,\n \"family\": \"magazine\",\n \"timings\": {\n \"draw\": 0.35,\n \"reload\": 2.4,\n \"clear\": 1.2\n },\n \"moa\": 6\n },\n \"mass\": 3.5,\n \"dimensions\": {\n \"length\": 0.65,\n \"barrel\": 0.26,\n \"emptyMass\": 3.5,\n \"lengthCollapsed\": 0.47\n },\n \"archetype\": \"smg_9mm\",\n \"sources\": [\n \"gallery\",\n \"arsenal\",\n \"sdk\"\n ],\n \"mounts\": [\n {\n \"kind\": \"magazine\",\n \"interfaces\": [\n \"mag_box\"\n ],\n \"sources\": [\n \"gallery\"\n ]\n },\n {\n \"kind\": \"sling\",\n \"interfaces\": [\n \"swivel\"\n ],\n \"sources\": [\n \"derived\"\n ]\n }\n ],\n \"fitted\": [],\n \"stock\": {\n \"kind\": \"fold\",\n \"foldAxis\": \"under\"\n }\n },\n {\n \"id\": \"fn_p90\",\n \"name\": \"FN P90\",\n \"maker\": \"FN\",\n \"category\": \"smg\",\n \"action\": {\n \"kind\": \"firearm\",\n \"caliber\": \"5_7x28\",\n \"rpm\": 900,\n \"modes\": [\n \"auto\",\n \"semi\"\n ],\n \"magazine\": 50,\n \"reload\": 3,\n \"muzzleSpeed\": 715,\n \"spreadDeg\": 1.5,\n \"bloomDeg\": 0.35,\n \"recoveryDegPerS\": 6,\n \"recoil\": [\n 0.76,\n 0.42\n ],\n \"range\": 80,\n \"family\": \"top_magazine\",\n \"timings\": {\n \"draw\": 0.35,\n \"reload\": 3,\n \"clear\": 1.2\n },\n \"moa\": 3\n },\n \"mass\": 2.6,\n \"dimensions\": {\n \"length\": 0.5,\n \"barrel\": 0.264,\n \"emptyMass\": 2.6\n },\n \"archetype\": \"smg_9mm\",\n \"sources\": [\n \"gallery\",\n \"arsenal\",\n \"sdk\"\n ],\n \"mounts\": [\n {\n \"kind\": \"sling\",\n \"interfaces\": [\n \"swivel\"\n ],\n \"sources\": [\n \"derived\"\n ]\n }\n ],\n \"fitted\": [],\n \"tags\": [\n \"pdw\"\n ]\n },\n {\n \"id\": \"kriss_vector\",\n \"name\": \"Kriss Vector\",\n \"maker\": \"Kriss\",\n \"category\": \"smg\",\n \"action\": {\n \"kind\": \"firearm\",\n \"caliber\": \"45acp\",\n \"rpm\": 1100,\n \"modes\": [\n \"auto\",\n \"semi\"\n ],\n \"magazine\": 25,\n \"reload\": 2.5,\n \"muzzleSpeed\": 290,\n \"spreadDeg\": 1.5,\n \"bloomDeg\": 0.35,\n \"recoveryDegPerS\": 6,\n \"recoil\": [\n 0.9,\n 0.5\n ],\n \"range\": 80,\n \"family\": \"magazine\",\n \"timings\": {\n \"draw\": 0.35,\n \"reload\": 2.5,\n \"clear\": 1.2\n },\n \"moa\": 4\n },\n \"mass\": 2.7,\n \"dimensions\": {\n \"length\": 0.622,\n \"barrel\": 0.14,\n \"emptyMass\": 2.7,\n \"lengthCollapsed\": 0.406\n },\n \"archetype\": \"smg_9mm\",\n \"sources\": [\n \"gallery\",\n \"arsenal\",\n \"sdk\"\n ],\n \"mounts\": [\n {\n \"kind\": \"rail_top\",\n \"interfaces\": [\n \"picatinny\"\n ],\n \"sources\": [\n \"gallery\"\n ]\n },\n {\n \"kind\": \"rail_left\",\n \"interfaces\": [\n \"picatinny\"\n ],\n \"sources\": [\n \"gallery\"\n ]\n },\n {\n \"kind\": \"rail_right\",\n \"interfaces\": [\n \"picatinny\"\n ],\n \"sources\": [\n \"gallery\"\n ]\n },\n {\n \"kind\": \"rail_bottom\",\n \"interfaces\": [\n \"picatinny\"\n ],\n \"sources\": [\n \"gallery\"\n ]\n },\n {\n \"kind\": \"magazine\",\n \"interfaces\": [\n \"mag_box\"\n ],\n \"sources\": [\n \"gallery\"\n ]\n },\n {\n \"kind\": \"sling\",\n \"interfaces\": [\n \"swivel\"\n ],\n \"sources\": [\n \"derived\"\n ]\n }\n ],\n \"fitted\": [\n {\n \"id\": \"red_dot\",\n \"mount\": \"rail_top\"\n }\n ],\n \"stock\": {\n \"kind\": \"fold_retract\",\n \"foldAxis\": \"right\"\n }\n },\n {\n \"id\": \"thompson_m1a1\",\n \"name\": \"Thompson M1A1\",\n \"maker\": \"Thompson\",\n \"category\": \"smg\",\n \"action\": {\n \"kind\": \"firearm\",\n \"caliber\": \"45acp\",\n \"rpm\": 700,\n \"modes\": [\n \"auto\",\n \"semi\"\n ],\n \"magazine\": 30,\n \"reload\": 2.9,\n \"muzzleSpeed\": 285,\n \"spreadDeg\": 1.5,\n \"bloomDeg\": 0.35,\n \"recoveryDegPerS\": 6,\n \"recoil\": [\n 0.49,\n 0.27\n ],\n \"range\": 80,\n \"family\": \"magazine\",\n \"timings\": {\n \"draw\": 0.35,\n \"reload\": 2.9,\n \"clear\": 1.2\n },\n \"moa\": 5\n },\n \"mass\": 4.8,\n \"dimensions\": {\n \"length\": 0.813,\n \"barrel\": 0.267,\n \"emptyMass\": 4.8\n },\n \"archetype\": \"smg_9mm\",\n \"sources\": [\n \"gallery\",\n \"arsenal\",\n \"sdk\"\n ],\n \"mounts\": [\n {\n \"kind\": \"magazine\",\n \"interfaces\": [\n \"mag_box\"\n ],\n \"sources\": [\n \"gallery\"\n ]\n },\n {\n \"kind\": \"sling\",\n \"interfaces\": [\n \"swivel\"\n ],\n \"sources\": [\n \"derived\"\n ]\n }\n ],\n \"fitted\": []\n },\n {\n \"id\": \"cz_scorpion_evo_3\",\n \"name\": \"CZ Scorpion EVO 3\",\n \"maker\": \"CZ\",\n \"category\": \"smg\",\n \"action\": {\n \"kind\": \"firearm\",\n \"caliber\": \"9x19\",\n \"rpm\": 1150,\n \"modes\": [\n \"auto\",\n \"semi\"\n ],\n \"magazine\": 30,\n \"reload\": 2.4,\n \"muzzleSpeed\": 370,\n \"spreadDeg\": 1.5,\n \"bloomDeg\": 0.35,\n \"recoveryDegPerS\": 6,\n \"recoil\": [\n 0.71,\n 0.39\n ],\n \"range\": 80,\n \"family\": \"magazine\",\n \"timings\": {\n \"draw\": 0.35,\n \"reload\": 2.4,\n \"clear\": 1.2\n },\n \"moa\": 4\n },\n \"mass\": 2.8,\n \"dimensions\": {\n \"length\": 0.67,\n \"barrel\": 0.196,\n \"emptyMass\": 2.77,\n \"lengthCollapsed\": 0.41\n },\n \"archetype\": \"smg_9mm\",\n \"sources\": [\n \"gallery\",\n \"arsenal\",\n \"sdk\"\n ],\n \"mounts\": [\n {\n \"kind\": \"rail_top\",\n \"interfaces\": [\n \"picatinny\"\n ],\n \"sources\": [\n \"gallery\"\n ]\n },\n {\n \"kind\": \"rail_left\",\n \"interfaces\": [\n \"picatinny\"\n ],\n \"sources\": [\n \"gallery\"\n ]\n },\n {\n \"kind\": \"rail_right\",\n \"interfaces\": [\n \"picatinny\"\n ],\n \"sources\": [\n \"gallery\"\n ]\n },\n {\n \"kind\": \"rail_bottom\",\n \"interfaces\": [\n \"picatinny\"\n ],\n \"sources\": [\n \"gallery\"\n ]\n },\n {\n \"kind\": \"magazine\",\n \"interfaces\": [\n \"mag_box\"\n ],\n \"sources\": [\n \"gallery\"\n ]\n },\n {\n \"kind\": \"sling\",\n \"interfaces\": [\n \"swivel\"\n ],\n \"sources\": [\n \"derived\"\n ]\n }\n ],\n \"fitted\": [\n {\n \"id\": \"red_dot\",\n \"mount\": \"rail_top\"\n }\n ],\n \"stock\": {\n \"kind\": \"fold\",\n \"foldAxis\": \"right\"\n }\n },\n {\n \"id\": \"mac_10\",\n \"name\": \"MAC-10\",\n \"category\": \"smg\",\n \"action\": {\n \"kind\": \"firearm\",\n \"caliber\": \"45acp\",\n \"rpm\": 1090,\n \"modes\": [\n \"auto\",\n \"semi\"\n ],\n \"magazine\": 30,\n \"reload\": 2.2,\n \"muzzleSpeed\": 280,\n \"spreadDeg\": 1.5,\n \"bloomDeg\": 0.35,\n \"recoveryDegPerS\": 6,\n \"recoil\": [\n 0.81,\n 0.45\n ],\n \"range\": 80,\n \"family\": \"magazine\",\n \"timings\": {\n \"draw\": 0.35,\n \"reload\": 2.2,\n \"clear\": 1.2\n },\n \"faultFactor\": 1.4,\n \"moa\": 8\n },\n \"mass\": 2.8,\n \"dimensions\": {\n \"length\": 0.548,\n \"barrel\": 0.146,\n \"emptyMass\": 2.84,\n \"lengthCollapsed\": 0.296\n },\n \"archetype\": \"smg_9mm\",\n \"sources\": [\n \"gallery\",\n \"arsenal\",\n \"sdk\"\n ],\n \"mounts\": [\n {\n \"kind\": \"muzzle\",\n \"interfaces\": [\n \"fixed_muzzle_device\"\n ],\n \"sources\": [\n \"derived\"\n ]\n },\n {\n \"kind\": \"magazine\",\n \"interfaces\": [\n \"mag_box\"\n ],\n \"sources\": [\n \"gallery\"\n ]\n },\n {\n \"kind\": \"sling\",\n \"interfaces\": [\n \"swivel\"\n ],\n \"sources\": [\n \"derived\"\n ]\n }\n ],\n \"fitted\": [\n {\n \"id\": \"muzzle_brake_heavy\",\n \"mount\": \"muzzle\"\n }\n ],\n \"stock\": {\n \"kind\": \"retract\"\n }\n },\n {\n \"id\": \"remington_870\",\n \"name\": \"Remington 870\",\n \"maker\": \"Remington\",\n \"category\": \"shotgun\",\n \"action\": {\n \"kind\": \"firearm\",\n \"caliber\": \"12ga_00buck\",\n \"rpm\": 120,\n \"modes\": [\n \"pump\"\n ],\n \"magazine\": 6,\n \"chamber\": 1,\n \"reload\": 0.55,\n \"perRound\": true,\n \"muzzleSpeed\": 400,\n \"spreadDeg\": 1,\n \"bloomDeg\": 0.5,\n \"recoveryDegPerS\": 3,\n \"pelletSpreadDeg\": 3,\n \"recoil\": [\n 3.32,\n 0.83\n ],\n \"range\": 40,\n \"family\": \"pump\",\n \"timings\": {\n \"draw\": 0.35,\n \"reload\": 0.55,\n \"perRound\": 0.55,\n \"cycle\": 0.5,\n \"clear\": 1.2\n },\n \"patternCm\": 60\n },\n \"mass\": 3.6,\n \"dimensions\": {\n \"length\": 0.99,\n \"barrel\": 0.47,\n \"emptyMass\": 3.6\n },\n \"archetype\": \"shotgun_pump_12\",\n \"sources\": [\n \"gallery\",\n \"arsenal\",\n \"sdk\"\n ],\n \"mounts\": [\n {\n \"kind\": \"barrel\",\n \"interfaces\": [\n \"barrel_swap\"\n ],\n \"sources\": [\n \"derived\"\n ]\n },\n {\n \"kind\": \"sling\",\n \"interfaces\": [\n \"swivel\"\n ],\n \"sources\": [\n \"derived\"\n ]\n }\n ],\n \"fitted\": []\n },\n {\n \"id\": \"mossberg_500\",\n \"name\": \"Mossberg 500\",\n \"maker\": \"Mossberg\",\n \"category\": \"shotgun\",\n \"action\": {\n \"kind\": \"firearm\",\n \"caliber\": \"12ga_00buck\",\n \"rpm\": 120,\n \"modes\": [\n \"pump\"\n ],\n \"magazine\": 5,\n \"chamber\": 1,\n \"reload\": 0.55,\n \"perRound\": true,\n \"muzzleSpeed\": 400,\n \"spreadDeg\": 1,\n \"bloomDeg\": 0.5,\n \"recoveryDegPerS\": 3,\n \"pelletSpreadDeg\": 3,\n \"recoil\": [\n 3.73,\n 0.93\n ],\n \"range\": 40,\n \"family\": \"pump\",\n \"timings\": {\n \"draw\": 0.35,\n \"reload\": 0.55,\n \"perRound\": 0.55,\n \"cycle\": 0.5,\n \"clear\": 1.2\n },\n \"patternCm\": 60\n },\n \"mass\": 3.2,\n \"dimensions\": {\n \"length\": 0.99,\n \"barrel\": 0.47,\n \"emptyMass\": 3.2\n },\n \"archetype\": \"shotgun_pump_12\",\n \"sources\": [\n \"gallery\",\n \"arsenal\",\n \"sdk\"\n ],\n \"mounts\": [\n {\n \"kind\": \"barrel\",\n \"interfaces\": [\n \"barrel_swap\"\n ],\n \"sources\": [\n \"derived\"\n ]\n },\n {\n \"kind\": \"sling\",\n \"interfaces\": [\n \"swivel\"\n ],\n \"sources\": [\n \"derived\"\n ]\n }\n ],\n \"fitted\": []\n },\n {\n \"id\": \"cbc_pump_military_3_0\",\n \"name\": \"CBC Pump Military 3.0\",\n \"maker\": \"CBC\",\n \"category\": \"shotgun\",\n \"action\": {\n \"kind\": \"firearm\",\n \"caliber\": \"12ga_00buck\",\n \"rpm\": 120,\n \"modes\": [\n \"pump\"\n ],\n \"magazine\": 7,\n \"chamber\": 1,\n \"reload\": 0.6,\n \"perRound\": true,\n \"muzzleSpeed\": 400,\n \"spreadDeg\": 1,\n \"bloomDeg\": 0.5,\n \"recoveryDegPerS\": 3,\n \"pelletSpreadDeg\": 3,\n \"recoil\": [\n 3.41,\n 0.85\n ],\n \"range\": 40,\n \"family\": \"pump\",\n \"timings\": {\n \"draw\": 0.35,\n \"reload\": 0.6,\n \"perRound\": 0.6,\n \"cycle\": 0.5,\n \"clear\": 1.2\n },\n \"patternCm\": 60\n },\n \"mass\": 3.5,\n \"dimensions\": {\n \"length\": 1,\n \"barrel\": 0.48,\n \"emptyMass\": 3.4\n },\n \"archetype\": \"shotgun_pump_12\",\n \"sources\": [\n \"gallery\",\n \"arsenal\",\n \"sdk\"\n ],\n \"mounts\": [\n {\n \"kind\": \"rail_top\",\n \"interfaces\": [\n \"picatinny\"\n ],\n \"sources\": [\n \"gallery\"\n ]\n },\n {\n \"kind\": \"barrel\",\n \"interfaces\": [\n \"barrel_swap\"\n ],\n \"sources\": [\n \"derived\"\n ]\n },\n {\n \"kind\": \"sling\",\n \"interfaces\": [\n \"swivel\"\n ],\n \"sources\": [\n \"derived\"\n ]\n }\n ],\n \"fitted\": []\n },\n {\n \"id\": \"benelli_m4\",\n \"name\": \"Benelli M4\",\n \"maker\": \"Benelli\",\n \"category\": \"shotgun\",\n \"action\": {\n \"kind\": \"firearm\",\n \"caliber\": \"12ga_00buck\",\n \"rpm\": 180,\n \"modes\": [\n \"semi\"\n ],\n \"magazine\": 7,\n \"chamber\": 1,\n \"reload\": 0.5,\n \"perRound\": true,\n \"muzzleSpeed\": 400,\n \"spreadDeg\": 1,\n \"bloomDeg\": 0.5,\n \"recoveryDegPerS\": 3,\n \"pelletSpreadDeg\": 3,\n \"recoil\": [\n 2.84,\n 0.84\n ],\n \"range\": 40,\n \"family\": \"tube_semi\",\n \"timings\": {\n \"draw\": 0.35,\n \"reload\": 0.5,\n \"perRound\": 0.5,\n \"clear\": 1.2\n },\n \"patternCm\": 60\n },\n \"mass\": 3.8,\n \"dimensions\": {\n \"length\": 1.01,\n \"barrel\": 0.47,\n \"emptyMass\": 3.82,\n \"lengthCollapsed\": 0.889\n },\n \"archetype\": \"shotgun_semi_12\",\n \"sources\": [\n \"gallery\",\n \"arsenal\",\n \"sdk\"\n ],\n \"mounts\": [\n {\n \"kind\": \"rail_top\",\n \"interfaces\": [\n \"picatinny\"\n ],\n \"sources\": [\n \"gallery\"\n ]\n },\n {\n \"kind\": \"barrel\",\n \"interfaces\": [\n \"barrel_swap\"\n ],\n \"sources\": [\n \"derived\"\n ]\n },\n {\n \"kind\": \"sling\",\n \"interfaces\": [\n \"swivel\"\n ],\n \"sources\": [\n \"derived\"\n ]\n }\n ],\n \"fitted\": [\n {\n \"id\": \"red_dot\",\n \"mount\": \"rail_top\"\n }\n ],\n \"stock\": {\n \"kind\": \"retract\"\n }\n },\n {\n \"id\": \"franchi_spas_12\",\n \"name\": \"Franchi SPAS-12\",\n \"maker\": \"Franchi\",\n \"category\": \"shotgun\",\n \"action\": {\n \"kind\": \"firearm\",\n \"caliber\": \"12ga_00buck\",\n \"rpm\": 120,\n \"modes\": [\n \"pump\",\n \"semi\"\n ],\n \"magazine\": 8,\n \"chamber\": 1,\n \"reload\": 0.55,\n \"perRound\": true,\n \"muzzleSpeed\": 400,\n \"spreadDeg\": 1,\n \"bloomDeg\": 0.5,\n \"recoveryDegPerS\": 3,\n \"pelletSpreadDeg\": 3,\n \"recoil\": [\n 2.72,\n 0.68\n ],\n \"range\": 40,\n \"family\": \"pump\",\n \"timings\": {\n \"draw\": 0.35,\n \"reload\": 0.55,\n \"perRound\": 0.55,\n \"cycle\": 0.5,\n \"clear\": 1.2\n },\n \"patternCm\": 55\n },\n \"mass\": 4.4,\n \"dimensions\": {\n \"length\": 1.041,\n \"barrel\": 0.546,\n \"emptyMass\": 4.4,\n \"lengthCollapsed\": 0.82\n },\n \"archetype\": \"shotgun_pump_12\",\n \"sources\": [\n \"gallery\",\n \"arsenal\",\n \"sdk\"\n ],\n \"mounts\": [\n {\n \"kind\": \"barrel\",\n \"interfaces\": [\n \"barrel_swap\"\n ],\n \"sources\": [\n \"derived\"\n ]\n },\n {\n \"kind\": \"sling\",\n \"interfaces\": [\n \"swivel\"\n ],\n \"sources\": [\n \"derived\"\n ]\n }\n ],\n \"fitted\": [],\n \"stock\": {\n \"kind\": \"fold\",\n \"foldAxis\": \"over\"\n }\n },\n {\n \"id\": \"kel_tec_ksg\",\n \"name\": \"Kel-Tec KSG\",\n \"maker\": \"Kel-Tec\",\n \"category\": \"shotgun\",\n \"action\": {\n \"kind\": \"firearm\",\n \"caliber\": \"12ga_00buck\",\n \"rpm\": 120,\n \"modes\": [\n \"pump\"\n ],\n \"magazine\": 14,\n \"chamber\": 1,\n \"tubes\": 2,\n \"reload\": 0.55,\n \"perRound\": true,\n \"muzzleSpeed\": 400,\n \"spreadDeg\": 1,\n \"bloomDeg\": 0.5,\n \"recoveryDegPerS\": 3,\n \"pelletSpreadDeg\": 3,\n \"recoil\": [\n 3.85,\n 0.96\n ],\n \"range\": 40,\n \"family\": \"pump\",\n \"timings\": {\n \"draw\": 0.35,\n \"reload\": 0.55,\n \"perRound\": 0.55,\n \"cycle\": 0.5,\n \"clear\": 1.2\n },\n \"patternCm\": 60\n },\n \"mass\": 3.1,\n \"dimensions\": {\n \"length\": 0.66,\n \"barrel\": 0.47,\n \"emptyMass\": 3.1\n },\n \"archetype\": \"shotgun_pump_12\",\n \"sources\": [\n \"gallery\",\n \"arsenal\",\n \"sdk\"\n ],\n \"mounts\": [\n {\n \"kind\": \"barrel\",\n \"interfaces\": [\n \"barrel_swap\"\n ],\n \"sources\": [\n \"derived\"\n ]\n },\n {\n \"kind\": \"sling\",\n \"interfaces\": [\n \"swivel\"\n ],\n \"sources\": [\n \"derived\"\n ]\n }\n ],\n \"fitted\": []\n },\n {\n \"id\": \"saiga_12\",\n \"name\": \"Saiga-12\",\n \"category\": \"shotgun\",\n \"action\": {\n \"kind\": \"firearm\",\n \"caliber\": \"12ga_00buck\",\n \"rpm\": 180,\n \"modes\": [\n \"semi\"\n ],\n \"magazine\": 8,\n \"magazineOptions\": [\n 20\n ],\n \"reload\": 2.8,\n \"muzzleSpeed\": 400,\n \"spreadDeg\": 1,\n \"bloomDeg\": 0.5,\n \"recoveryDegPerS\": 3,\n \"pelletSpreadDeg\": 3,\n \"recoil\": [\n 3,\n 0.88\n ],\n \"range\": 40,\n \"family\": \"magazine\",\n \"timings\": {\n \"draw\": 0.35,\n \"reload\": 2.8,\n \"clear\": 1.2\n },\n \"faultFactor\": 1.3,\n \"patternCm\": 65\n },\n \"mass\": 3.6,\n \"dimensions\": {\n \"length\": 1,\n \"barrel\": 0.43,\n \"emptyMass\": 3.6\n },\n \"archetype\": \"shotgun_semi_12\",\n \"sources\": [\n \"gallery\",\n \"arsenal\",\n \"sdk\"\n ],\n \"mounts\": [\n {\n \"kind\": \"magazine\",\n \"interfaces\": [\n \"mag_box\"\n ],\n \"sources\": [\n \"gallery\"\n ]\n },\n {\n \"kind\": \"barrel\",\n \"interfaces\": [\n \"barrel_swap\"\n ],\n \"sources\": [\n \"derived\"\n ]\n },\n {\n \"kind\": \"sling\",\n \"interfaces\": [\n \"swivel\"\n ],\n \"sources\": [\n \"derived\"\n ]\n }\n ],\n \"fitted\": []\n },\n {\n \"id\": \"aa_12\",\n \"name\": \"AA-12\",\n \"category\": \"shotgun\",\n \"action\": {\n \"kind\": \"firearm\",\n \"caliber\": \"12ga_00buck\",\n \"rpm\": 300,\n \"modes\": [\n \"auto\",\n \"semi\"\n ],\n \"magazine\": 8,\n \"magazineOptions\": [\n 20\n ],\n \"reload\": 3,\n \"muzzleSpeed\": 400,\n \"spreadDeg\": 1,\n \"bloomDeg\": 0.5,\n \"recoveryDegPerS\": 3,\n \"pelletSpreadDeg\": 3,\n \"recoil\": [\n 2.08,\n 0.61\n ],\n \"range\": 40,\n \"family\": \"magazine\",\n \"timings\": {\n \"draw\": 0.35,\n \"reload\": 3,\n \"clear\": 1.2\n },\n \"patternCm\": 65\n },\n \"mass\": 5.2,\n \"dimensions\": {\n \"length\": 0.966,\n \"barrel\": 0.457,\n \"emptyMass\": 5.2\n },\n \"archetype\": \"shotgun_semi_12\",\n \"sources\": [\n \"gallery\",\n \"arsenal\",\n \"sdk\"\n ],\n \"mounts\": [\n {\n \"kind\": \"magazine\",\n \"interfaces\": [\n \"mag_drum\"\n ],\n \"sources\": [\n \"gallery\"\n ]\n },\n {\n \"kind\": \"barrel\",\n \"interfaces\": [\n \"barrel_swap\"\n ],\n \"sources\": [\n \"derived\"\n ]\n },\n {\n \"kind\": \"sling\",\n \"interfaces\": [\n \"swivel\"\n ],\n \"sources\": [\n \"derived\"\n ]\n }\n ],\n \"fitted\": []\n },\n {\n \"id\": \"boito_double_barrel\",\n \"name\": \"Boito double-barrel\",\n \"category\": \"shotgun\",\n \"action\": {\n \"kind\": \"firearm\",\n \"caliber\": \"12ga_00buck\",\n \"rpm\": 180,\n \"modes\": [\n \"break\",\n \"volley\"\n ],\n \"magazine\": 2,\n \"reload\": 2,\n \"muzzleSpeed\": 410,\n \"spreadDeg\": 1,\n \"bloomDeg\": 0.5,\n \"recoveryDegPerS\": 3,\n \"pelletSpreadDeg\": 3,\n \"recoil\": [\n 4.14,\n 1.1\n ],\n \"range\": 35,\n \"family\": \"break\",\n \"timings\": {\n \"draw\": 0.35,\n \"reload\": 2,\n \"clear\": 1.2\n },\n \"patternCm\": 45\n },\n \"mass\": 3.2,\n \"dimensions\": {\n \"length\": 1.13,\n \"barrel\": 0.71,\n \"emptyMass\": 3.2\n },\n \"archetype\": \"shotgun_double_12\",\n \"sources\": [\n \"gallery\",\n \"arsenal\",\n \"sdk\"\n ],\n \"mounts\": [\n {\n \"kind\": \"barrel\",\n \"interfaces\": [\n \"barrel_swap\"\n ],\n \"sources\": [\n \"derived\"\n ]\n },\n {\n \"kind\": \"sling\",\n \"interfaces\": [\n \"swivel\"\n ],\n \"sources\": [\n \"derived\"\n ]\n }\n ],\n \"fitted\": []\n },\n {\n \"id\": \"ak_47\",\n \"name\": \"AK-47\",\n \"category\": \"rifle\",\n \"action\": {\n \"kind\": \"firearm\",\n \"caliber\": \"7_62x39\",\n \"rpm\": 600,\n \"modes\": [\n \"auto\",\n \"semi\"\n ],\n \"magazine\": 30,\n \"reload\": 2.6,\n \"muzzleSpeed\": 715,\n \"spreadDeg\": 0.8,\n \"bloomDeg\": 0.35,\n \"recoveryDegPerS\": 4.5,\n \"recoil\": [\n 1.29,\n 0.69\n ],\n \"range\": 350,\n \"family\": \"magazine\",\n \"timings\": {\n \"draw\": 0.35,\n \"reload\": 2.6,\n \"reloadEmpty\": 3.4,\n \"clear\": 1.2\n },\n \"faultFactor\": 0.4,\n \"moa\": 4\n },\n \"mass\": 4.3,\n \"dimensions\": {\n \"length\": 0.88,\n \"barrel\": 0.415,\n \"emptyMass\": 4.3\n },\n \"archetype\": \"rifle_7_62x39\",\n \"sources\": [\n \"gallery\",\n \"arsenal\",\n \"sdk\"\n ],\n \"mounts\": [\n {\n \"kind\": \"muzzle\",\n \"interfaces\": [\n \"thread_14x1lh\"\n ],\n \"sources\": [\n \"reference\"\n ]\n },\n {\n \"kind\": \"rail_left\",\n \"interfaces\": [\n \"ak_side\"\n ],\n \"sources\": [\n \"arsenal\"\n ]\n },\n {\n \"kind\": \"underbarrel\",\n \"interfaces\": [\n \"gp25\"\n ],\n \"sources\": [\n \"gallery\"\n ]\n },\n {\n \"kind\": \"magazine\",\n \"interfaces\": [\n \"mag_curved\"\n ],\n \"sources\": [\n \"gallery\"\n ]\n },\n {\n \"kind\": \"sling\",\n \"interfaces\": [\n \"swivel\"\n ],\n \"sources\": [\n \"derived\"\n ]\n }\n ],\n \"fitted\": []\n },\n {\n \"id\": \"akm\",\n \"name\": \"AKM\",\n \"category\": \"rifle\",\n \"action\": {\n \"kind\": \"firearm\",\n \"caliber\": \"7_62x39\",\n \"rpm\": 600,\n \"modes\": [\n \"auto\",\n \"semi\"\n ],\n \"magazine\": 30,\n \"reload\": 2.6,\n \"muzzleSpeed\": 715,\n \"spreadDeg\": 0.8,\n \"bloomDeg\": 0.35,\n \"recoveryDegPerS\": 4.5,\n \"recoil\": [\n 1.54,\n 0.82\n ],\n \"range\": 350,\n \"family\": \"magazine\",\n \"timings\": {\n \"draw\": 0.35,\n \"reload\": 2.6,\n \"reloadEmpty\": 3.4,\n \"clear\": 1.2\n },\n \"faultFactor\": 0.45,\n \"moa\": 4\n },\n \"mass\": 3.6,\n \"dimensions\": {\n \"length\": 0.88,\n \"barrel\": 0.415,\n \"emptyMass\": 3.1\n },\n \"archetype\": \"rifle_7_62x39\",\n \"sources\": [\n \"gallery\",\n \"arsenal\",\n \"sdk\"\n ],\n \"mounts\": [\n {\n \"kind\": \"muzzle\",\n \"interfaces\": [\n \"thread_14x1lh\"\n ],\n \"sources\": [\n \"reference\"\n ]\n },\n {\n \"kind\": \"rail_left\",\n \"interfaces\": [\n \"ak_side\"\n ],\n \"sources\": [\n \"arsenal\"\n ]\n },\n {\n \"kind\": \"underbarrel\",\n \"interfaces\": [\n \"gp25\"\n ],\n \"sources\": [\n \"arsenal\"\n ]\n },\n {\n \"kind\": \"magazine\",\n \"interfaces\": [\n \"mag_curved\"\n ],\n \"sources\": [\n \"gallery\"\n ]\n },\n {\n \"kind\": \"sling\",\n \"interfaces\": [\n \"swivel\"\n ],\n \"sources\": [\n \"derived\"\n ]\n }\n ],\n \"fitted\": []\n },\n {\n \"id\": \"ak_74\",\n \"name\": \"AK-74\",\n \"category\": \"rifle\",\n \"action\": {\n \"kind\": \"firearm\",\n \"caliber\": \"5_45x39\",\n \"rpm\": 650,\n \"modes\": [\n \"auto\",\n \"semi\"\n ],\n \"magazine\": 30,\n \"reload\": 2.6,\n \"muzzleSpeed\": 900,\n \"spreadDeg\": 0.6,\n \"bloomDeg\": 0.25,\n \"recoveryDegPerS\": 5,\n \"recoil\": [\n 0.81,\n 0.49\n ],\n \"range\": 400,\n \"family\": \"magazine\",\n \"timings\": {\n \"draw\": 0.35,\n \"reload\": 2.6,\n \"reloadEmpty\": 3.4,\n \"clear\": 1.2\n },\n \"moa\": 3\n },\n \"mass\": 3.3,\n \"dimensions\": {\n \"length\": 0.943,\n \"barrel\": 0.415,\n \"emptyMass\": 3.3\n },\n \"archetype\": \"rifle_5_56\",\n \"sources\": [\n \"gallery\",\n \"arsenal\",\n \"sdk\"\n ],\n \"mounts\": [\n {\n \"kind\": \"muzzle\",\n \"interfaces\": [\n \"thread_24x1.5\"\n ],\n \"sources\": [\n \"reference\"\n ]\n },\n {\n \"kind\": \"underbarrel\",\n \"interfaces\": [\n \"gp25\"\n ],\n \"sources\": [\n \"reference\"\n ]\n },\n {\n \"kind\": \"magazine\",\n \"interfaces\": [\n \"mag_curved\"\n ],\n \"sources\": [\n \"gallery\"\n ]\n },\n {\n \"kind\": \"sling\",\n \"interfaces\": [\n \"swivel\"\n ],\n \"sources\": [\n \"derived\"\n ]\n }\n ],\n \"fitted\": [\n {\n \"id\": \"muzzle_brake\",\n \"mount\": \"muzzle\"\n }\n ]\n },\n {\n \"id\": \"ak_12\",\n \"name\": \"AK-12\",\n \"category\": \"rifle\",\n \"action\": {\n \"kind\": \"firearm\",\n \"caliber\": \"5_45x39\",\n \"rpm\": 700,\n \"modes\": [\n \"auto\",\n \"semi\"\n ],\n \"magazine\": 30,\n \"reload\": 2.5,\n \"muzzleSpeed\": 880,\n \"spreadDeg\": 0.6,\n \"bloomDeg\": 0.25,\n \"recoveryDegPerS\": 5,\n \"recoil\": [\n 0.73,\n 0.44\n ],\n \"range\": 400,\n \"family\": \"magazine\",\n \"timings\": {\n \"draw\": 0.35,\n \"reload\": 2.5,\n \"reloadEmpty\": 3.3,\n \"clear\": 1.2\n },\n \"moa\": 2.5\n },\n \"mass\": 3.5,\n \"dimensions\": {\n \"length\": 0.945,\n \"barrel\": 0.415,\n \"emptyMass\": 3.5,\n \"lengthCollapsed\": 0.725\n },\n \"archetype\": \"rifle_5_56\",\n \"sources\": [\n \"gallery\",\n \"arsenal\",\n \"sdk\"\n ],\n \"mounts\": [\n {\n \"kind\": \"muzzle\",\n \"interfaces\": [\n \"thread_24x1.5\"\n ],\n \"sources\": [\n \"reference\"\n ]\n },\n {\n \"kind\": \"rail_top\",\n \"interfaces\": [\n \"picatinny\"\n ],\n \"sources\": [\n \"gallery\",\n \"arsenal\"\n ]\n },\n {\n \"kind\": \"rail_left\",\n \"interfaces\": [\n \"picatinny\"\n ],\n \"sources\": [\n \"gallery\",\n \"arsenal\"\n ]\n },\n {\n \"kind\": \"rail_right\",\n \"interfaces\": [\n \"picatinny\"\n ],\n \"sources\": [\n \"gallery\",\n \"arsenal\"\n ]\n },\n {\n \"kind\": \"rail_bottom\",\n \"interfaces\": [\n \"picatinny\"\n ],\n \"sources\": [\n \"gallery\",\n \"arsenal\"\n ]\n },\n {\n \"kind\": \"underbarrel\",\n \"interfaces\": [\n \"gp25\"\n ],\n \"sources\": [\n \"arsenal\"\n ]\n },\n {\n \"kind\": \"magazine\",\n \"interfaces\": [\n \"mag_curved\"\n ],\n \"sources\": [\n \"gallery\"\n ]\n },\n {\n \"kind\": \"sling\",\n \"interfaces\": [\n \"swivel\"\n ],\n \"sources\": [\n \"derived\"\n ]\n }\n ],\n \"fitted\": [\n {\n \"id\": \"muzzle_brake\",\n \"mount\": \"muzzle\"\n },\n {\n \"id\": \"red_dot\",\n \"mount\": \"rail_top\"\n }\n ],\n \"stock\": {\n \"kind\": \"retract\"\n }\n },\n {\n \"id\": \"imbel_ia2\",\n \"name\": \"IMBEL IA2\",\n \"maker\": \"IMBEL\",\n \"category\": \"rifle\",\n \"action\": {\n \"kind\": \"firearm\",\n \"caliber\": \"5_56x45\",\n \"rpm\": 700,\n \"modes\": [\n \"auto\",\n \"semi\"\n ],\n \"magazine\": 30,\n \"reload\": 2.4,\n \"muzzleSpeed\": 860,\n \"spreadDeg\": 0.6,\n \"bloomDeg\": 0.25,\n \"recoveryDegPerS\": 5,\n \"recoil\": [\n 0.85,\n 0.51\n ],\n \"range\": 400,\n \"family\": \"magazine\",\n \"timings\": {\n \"draw\": 0.35,\n \"reload\": 2.4,\n \"reloadEmpty\": 3.1,\n \"clear\": 1.2\n },\n \"moa\": 3\n },\n \"mass\": 3.4,\n \"dimensions\": {\n \"length\": 0.85,\n \"barrel\": 0.33,\n \"emptyMass\": 3.4,\n \"lengthCollapsed\": 0.6\n },\n \"archetype\": \"rifle_5_56\",\n \"sources\": [\n \"gallery\",\n \"arsenal\",\n \"sdk\"\n ],\n \"mounts\": [\n {\n \"kind\": \"muzzle\",\n \"interfaces\": [\n \"thread_1/2x28\"\n ],\n \"sources\": [\n \"derived\"\n ]\n },\n {\n \"kind\": \"rail_top\",\n \"interfaces\": [\n \"picatinny\"\n ],\n \"sources\": [\n \"gallery\"\n ]\n },\n {\n \"kind\": \"magazine\",\n \"interfaces\": [\n \"mag_box\"\n ],\n \"sources\": [\n \"gallery\"\n ]\n },\n {\n \"kind\": \"sling\",\n \"interfaces\": [\n \"swivel\"\n ],\n \"sources\": [\n \"derived\"\n ]\n }\n ],\n \"fitted\": [],\n \"stock\": {\n \"kind\": \"fold\",\n \"foldAxis\": \"right\"\n }\n },\n {\n \"id\": \"taurus_t4\",\n \"name\": \"Taurus T4\",\n \"maker\": \"Taurus\",\n \"category\": \"rifle\",\n \"action\": {\n \"kind\": \"firearm\",\n \"caliber\": \"5_56x45\",\n \"rpm\": 750,\n \"modes\": [\n \"auto\",\n \"semi\"\n ],\n \"magazine\": 30,\n \"reload\": 2.4,\n \"muzzleSpeed\": 880,\n \"spreadDeg\": 0.6,\n \"bloomDeg\": 0.25,\n \"recoveryDegPerS\": 5,\n \"recoil\": [\n 1,\n 0.6\n ],\n \"range\": 400,\n \"family\": \"magazine\",\n \"timings\": {\n \"draw\": 0.35,\n \"reload\": 2.4,\n \"reloadEmpty\": 3.1,\n \"clear\": 1.2\n },\n \"moa\": 2\n },\n \"mass\": 3,\n \"dimensions\": {\n \"length\": 0.84,\n \"barrel\": 0.368,\n \"emptyMass\": 3,\n \"lengthCollapsed\": 0.767\n },\n \"archetype\": \"rifle_5_56\",\n \"sources\": [\n \"gallery\",\n \"arsenal\",\n \"sdk\"\n ],\n \"mounts\": [\n {\n \"kind\": \"muzzle\",\n \"interfaces\": [\n \"thread_1/2x28\"\n ],\n \"sources\": [\n \"derived\"\n ]\n },\n {\n \"kind\": \"rail_top\",\n \"interfaces\": [\n \"picatinny\"\n ],\n \"sources\": [\n \"gallery\"\n ]\n },\n {\n \"kind\": \"rail_left\",\n \"interfaces\": [\n \"picatinny\"\n ],\n \"sources\": [\n \"gallery\"\n ]\n },\n {\n \"kind\": \"rail_right\",\n \"interfaces\": [\n \"picatinny\"\n ],\n \"sources\": [\n \"gallery\"\n ]\n },\n {\n \"kind\": \"rail_bottom\",\n \"interfaces\": [\n \"picatinny\"\n ],\n \"sources\": [\n \"gallery\"\n ]\n },\n {\n \"kind\": \"magazine\",\n \"interfaces\": [\n \"mag_box\"\n ],\n \"sources\": [\n \"gallery\"\n ]\n },\n {\n \"kind\": \"sling\",\n \"interfaces\": [\n \"swivel\"\n ],\n \"sources\": [\n \"derived\"\n ]\n }\n ],\n \"fitted\": [\n {\n \"id\": \"red_dot\",\n \"mount\": \"rail_top\"\n }\n ],\n \"stock\": {\n \"kind\": \"retract\"\n }\n },\n {\n \"id\": \"colt_m4a1\",\n \"name\": \"Colt M4A1\",\n \"maker\": \"Colt\",\n \"category\": \"rifle\",\n \"action\": {\n \"kind\": \"firearm\",\n \"caliber\": \"5_56x45\",\n \"rpm\": 800,\n \"modes\": [\n \"auto\",\n \"semi\"\n ],\n \"magazine\": 30,\n \"reload\": 2.3,\n \"muzzleSpeed\": 880,\n \"spreadDeg\": 0.6,\n \"bloomDeg\": 0.25,\n \"recoveryDegPerS\": 5,\n \"recoil\": [\n 1,\n 0.6\n ],\n \"range\": 400,\n \"family\": \"magazine\",\n \"timings\": {\n \"draw\": 0.35,\n \"reload\": 2.3,\n \"reloadEmpty\": 3,\n \"clear\": 1.2\n },\n \"moa\": 2\n },\n \"mass\": 3,\n \"dimensions\": {\n \"length\": 0.84,\n \"barrel\": 0.368,\n \"emptyMass\": 2.9,\n \"lengthCollapsed\": 0.757\n },\n \"archetype\": \"rifle_5_56\",\n \"sources\": [\n \"gallery\",\n \"arsenal\",\n \"sdk\"\n ],\n \"mounts\": [\n {\n \"kind\": \"muzzle\",\n \"interfaces\": [\n \"thread_1/2x28\"\n ],\n \"sources\": [\n \"reference\"\n ]\n },\n {\n \"kind\": \"rail_top\",\n \"interfaces\": [\n \"picatinny\",\n \"mlok\"\n ],\n \"sources\": [\n \"gallery\",\n \"arsenal\"\n ]\n },\n {\n \"kind\": \"rail_left\",\n \"interfaces\": [\n \"picatinny\",\n \"mlok\"\n ],\n \"sources\": [\n \"gallery\",\n \"arsenal\"\n ]\n },\n {\n \"kind\": \"rail_right\",\n \"interfaces\": [\n \"picatinny\",\n \"mlok\"\n ],\n \"sources\": [\n \"gallery\",\n \"arsenal\"\n ]\n },\n {\n \"kind\": \"rail_bottom\",\n \"interfaces\": [\n \"picatinny\",\n \"mlok\"\n ],\n \"sources\": [\n \"gallery\",\n \"arsenal\"\n ]\n },\n {\n \"kind\": \"underbarrel\",\n \"interfaces\": [\n \"m203\"\n ],\n \"sources\": [\n \"arsenal\"\n ]\n },\n {\n \"kind\": \"magazine\",\n \"interfaces\": [\n \"mag_box\"\n ],\n \"sources\": [\n \"gallery\"\n ]\n },\n {\n \"kind\": \"sling\",\n \"interfaces\": [\n \"swivel\"\n ],\n \"sources\": [\n \"derived\"\n ]\n }\n ],\n \"fitted\": [\n {\n \"id\": \"acog_4x\",\n \"mount\": \"rail_top\"\n }\n ],\n \"stock\": {\n \"kind\": \"retract\"\n }\n },\n {\n \"id\": \"colt_m16a2\",\n \"name\": \"Colt M16A2\",\n \"maker\": \"Colt\",\n \"category\": \"rifle\",\n \"action\": {\n \"kind\": \"firearm\",\n \"caliber\": \"5_56x45\",\n \"rpm\": 800,\n \"modes\": [\n \"semi\",\n \"burst\"\n ],\n \"burst\": 3,\n \"magazine\": 30,\n \"reload\": 2.4,\n \"muzzleSpeed\": 948,\n \"spreadDeg\": 0.6,\n \"bloomDeg\": 0.25,\n \"recoveryDegPerS\": 5,\n \"recoil\": [\n 1.03,\n 0.62\n ],\n \"range\": 400,\n \"family\": \"magazine\",\n \"timings\": {\n \"draw\": 0.35,\n \"reload\": 2.4,\n \"reloadEmpty\": 3.1,\n \"clear\": 1.2\n },\n \"moa\": 2\n },\n \"mass\": 3.4,\n \"dimensions\": {\n \"length\": 1,\n \"barrel\": 0.508,\n \"emptyMass\": 3.4\n },\n \"archetype\": \"rifle_5_56\",\n \"sources\": [\n \"gallery\",\n \"arsenal\",\n \"sdk\"\n ],\n \"mounts\": [\n {\n \"kind\": \"muzzle\",\n \"interfaces\": [\n \"thread_1/2x28\"\n ],\n \"sources\": [\n \"reference\"\n ]\n },\n {\n \"kind\": \"underbarrel\",\n \"interfaces\": [\n \"m203\"\n ],\n \"sources\": [\n \"reference\"\n ]\n },\n {\n \"kind\": \"magazine\",\n \"interfaces\": [\n \"mag_box\"\n ],\n \"sources\": [\n \"gallery\"\n ]\n },\n {\n \"kind\": \"sling\",\n \"interfaces\": [\n \"swivel\"\n ],\n \"sources\": [\n \"derived\"\n ]\n }\n ],\n \"fitted\": []\n },\n {\n \"id\": \"hk416\",\n \"name\": \"HK416\",\n \"category\": \"rifle\",\n \"action\": {\n \"kind\": \"firearm\",\n \"caliber\": \"5_56x45\",\n \"rpm\": 850,\n \"modes\": [\n \"auto\",\n \"semi\"\n ],\n \"magazine\": 30,\n \"reload\": 2.3,\n \"muzzleSpeed\": 880,\n \"spreadDeg\": 0.6,\n \"bloomDeg\": 0.25,\n \"recoveryDegPerS\": 5,\n \"recoil\": [\n 0.86,\n 0.52\n ],\n \"range\": 400,\n \"family\": \"magazine\",\n \"timings\": {\n \"draw\": 0.35,\n \"reload\": 2.3,\n \"reloadEmpty\": 3,\n \"clear\": 1.2\n },\n \"moa\": 1.5\n },\n \"mass\": 3.5,\n \"dimensions\": {\n \"length\": 0.9,\n \"barrel\": 0.368,\n \"emptyMass\": 3.5,\n \"lengthCollapsed\": 0.8\n },\n \"archetype\": \"rifle_5_56\",\n \"sources\": [\n \"gallery\",\n \"arsenal\",\n \"sdk\"\n ],\n \"mounts\": [\n {\n \"kind\": \"muzzle\",\n \"interfaces\": [\n \"thread_1/2x28\"\n ],\n \"sources\": [\n \"reference\"\n ]\n },\n {\n \"kind\": \"rail_top\",\n \"interfaces\": [\n \"picatinny\"\n ],\n \"sources\": [\n \"gallery\"\n ]\n },\n {\n \"kind\": \"rail_left\",\n \"interfaces\": [\n \"picatinny\"\n ],\n \"sources\": [\n \"gallery\"\n ]\n },\n {\n \"kind\": \"rail_right\",\n \"interfaces\": [\n \"picatinny\"\n ],\n \"sources\": [\n \"gallery\"\n ]\n },\n {\n \"kind\": \"rail_bottom\",\n \"interfaces\": [\n \"picatinny\"\n ],\n \"sources\": [\n \"gallery\"\n ]\n },\n {\n \"kind\": \"underbarrel\",\n \"interfaces\": [\n \"ag36\"\n ],\n \"sources\": [\n \"reference\"\n ]\n },\n {\n \"kind\": \"magazine\",\n \"interfaces\": [\n \"mag_box\"\n ],\n \"sources\": [\n \"gallery\"\n ]\n },\n {\n \"kind\": \"sling\",\n \"interfaces\": [\n \"swivel\"\n ],\n \"sources\": [\n \"derived\"\n ]\n }\n ],\n \"fitted\": [\n {\n \"id\": \"red_dot\",\n \"mount\": \"rail_top\"\n }\n ],\n \"stock\": {\n \"kind\": \"retract\"\n }\n },\n {\n \"id\": \"steyr_aug_a1\",\n \"name\": \"Steyr AUG A1\",\n \"maker\": \"Steyr\",\n \"category\": \"rifle\",\n \"action\": {\n \"kind\": \"firearm\",\n \"caliber\": \"5_56x45\",\n \"rpm\": 680,\n \"modes\": [\n \"auto\",\n \"semi\"\n ],\n \"magazine\": 30,\n \"reload\": 2.8,\n \"muzzleSpeed\": 970,\n \"spreadDeg\": 0.6,\n \"bloomDeg\": 0.25,\n \"recoveryDegPerS\": 5,\n \"recoil\": [\n 1.02,\n 0.61\n ],\n \"range\": 400,\n \"family\": \"magazine\",\n \"timings\": {\n \"draw\": 0.35,\n \"reload\": 2.8,\n \"reloadEmpty\": 3.4,\n \"clear\": 1.2\n },\n \"moa\": 2\n },\n \"mass\": 3.6,\n \"dimensions\": {\n \"length\": 0.79,\n \"barrel\": 0.508,\n \"emptyMass\": 3.6\n },\n \"archetype\": \"rifle_5_56\",\n \"sources\": [\n \"gallery\",\n \"arsenal\",\n \"sdk\"\n ],\n \"mounts\": [\n {\n \"kind\": \"rail_top\",\n \"interfaces\": [\n \"integral\"\n ],\n \"sources\": [\n \"reference\"\n ]\n },\n {\n \"kind\": \"magazine\",\n \"interfaces\": [\n \"mag_box\"\n ],\n \"sources\": [\n \"derived\"\n ]\n },\n {\n \"kind\": \"sling\",\n \"interfaces\": [\n \"swivel\"\n ],\n \"sources\": [\n \"derived\"\n ]\n }\n ],\n \"fitted\": [\n {\n \"id\": \"integral_optic_1_5x\",\n \"mount\": \"rail_top\",\n \"integral\": true\n }\n ]\n },\n {\n \"id\": \"fn_fal\",\n \"name\": \"FN FAL\",\n \"maker\": \"FN\",\n \"category\": \"rifle\",\n \"action\": {\n \"kind\": \"firearm\",\n \"caliber\": \"7_62x51\",\n \"rpm\": 650,\n \"modes\": [\n \"auto\",\n \"semi\"\n ],\n \"magazine\": 20,\n \"reload\": 2.7,\n \"muzzleSpeed\": 840,\n \"spreadDeg\": 0.8,\n \"bloomDeg\": 0.35,\n \"recoveryDegPerS\": 4.5,\n \"recoil\": [\n 2.16,\n 1.15\n ],\n \"range\": 350,\n \"family\": \"magazine\",\n \"timings\": {\n \"draw\": 0.35,\n \"reload\": 2.7,\n \"reloadEmpty\": 3.5,\n \"clear\": 1.2\n },\n \"moa\": 3\n },\n \"mass\": 4.3,\n \"dimensions\": {\n \"length\": 1.09,\n \"barrel\": 0.533,\n \"emptyMass\": 4.3\n },\n \"archetype\": \"rifle_7_62x39\",\n \"sources\": [\n \"gallery\",\n \"arsenal\",\n \"sdk\"\n ],\n \"mounts\": [\n {\n \"kind\": \"muzzle\",\n \"interfaces\": [\n \"fixed_muzzle_device\"\n ],\n \"sources\": [\n \"derived\"\n ]\n },\n {\n \"kind\": \"magazine\",\n \"interfaces\": [\n \"mag_box\"\n ],\n \"sources\": [\n \"gallery\"\n ]\n },\n {\n \"kind\": \"sling\",\n \"interfaces\": [\n \"swivel\"\n ],\n \"sources\": [\n \"derived\"\n ]\n }\n ],\n \"fitted\": [\n {\n \"id\": \"muzzle_brake\",\n \"mount\": \"muzzle\"\n }\n ]\n },\n {\n \"id\": \"hk_g3a3\",\n \"name\": \"HK G3A3\",\n \"maker\": \"HK\",\n \"category\": \"rifle\",\n \"action\": {\n \"kind\": \"firearm\",\n \"caliber\": \"7_62x51\",\n \"rpm\": 550,\n \"modes\": [\n \"auto\",\n \"semi\"\n ],\n \"magazine\": 20,\n \"reload\": 2.7,\n \"muzzleSpeed\": 800,\n \"spreadDeg\": 0.8,\n \"bloomDeg\": 0.35,\n \"recoveryDegPerS\": 4.5,\n \"recoil\": [\n 1.91,\n 1.02\n ],\n \"range\": 350,\n \"family\": \"magazine\",\n \"timings\": {\n \"draw\": 0.35,\n \"reload\": 2.7,\n \"reloadEmpty\": 3.6,\n \"clear\": 1.2\n },\n \"moa\": 2.5\n },\n \"mass\": 4.4,\n \"dimensions\": {\n \"length\": 1.025,\n \"barrel\": 0.45,\n \"emptyMass\": 4.4\n },\n \"archetype\": \"rifle_7_62x39\",\n \"sources\": [\n \"gallery\",\n \"arsenal\",\n \"sdk\"\n ],\n \"mounts\": [\n {\n \"kind\": \"magazine\",\n \"interfaces\": [\n \"mag_box\"\n ],\n \"sources\": [\n \"gallery\"\n ]\n },\n {\n \"kind\": \"sling\",\n \"interfaces\": [\n \"swivel\"\n ],\n \"sources\": [\n \"derived\"\n ]\n }\n ],\n \"fitted\": []\n },\n {\n \"id\": \"sks\",\n \"name\": \"SKS\",\n \"category\": \"rifle\",\n \"action\": {\n \"kind\": \"firearm\",\n \"caliber\": \"7_62x39\",\n \"rpm\": 120,\n \"modes\": [\n \"semi\"\n ],\n \"magazine\": 10,\n \"reload\": 2.2,\n \"muzzleSpeed\": 735,\n \"spreadDeg\": 0.8,\n \"bloomDeg\": 0.35,\n \"recoveryDegPerS\": 4.5,\n \"recoil\": [\n 1.54,\n 0.82\n ],\n \"range\": 350,\n \"family\": \"top_load_semi\",\n \"timings\": {\n \"draw\": 0.35,\n \"reload\": 2.2,\n \"clear\": 1.2\n },\n \"moa\": 3\n },\n \"mass\": 3.8,\n \"dimensions\": {\n \"length\": 1.02,\n \"barrel\": 0.52,\n \"emptyMass\": 3.85\n },\n \"archetype\": \"rifle_7_62x39\",\n \"sources\": [\n \"gallery\",\n \"arsenal\",\n \"sdk\"\n ],\n \"mounts\": [\n {\n \"kind\": \"sling\",\n \"interfaces\": [\n \"swivel\"\n ],\n \"sources\": [\n \"derived\"\n ]\n }\n ],\n \"fitted\": []\n },\n {\n \"id\": \"m14_ebr\",\n \"name\": \"M14 EBR\",\n \"category\": \"dmr\",\n \"action\": {\n \"kind\": \"firearm\",\n \"caliber\": \"7_62x51\",\n \"rpm\": 120,\n \"modes\": [\n \"semi\"\n ],\n \"magazine\": 20,\n \"reload\": 2.8,\n \"muzzleSpeed\": 850,\n \"spreadDeg\": 0.25,\n \"bloomDeg\": 0.3,\n \"recoveryDegPerS\": 3,\n \"recoil\": [\n 2.13,\n 0.36\n ],\n \"range\": 800,\n \"family\": \"magazine\",\n \"timings\": {\n \"draw\": 0.35,\n \"reload\": 2.8,\n \"clear\": 1.2\n },\n \"moa\": 1.5\n },\n \"mass\": 5.1,\n \"dimensions\": {\n \"length\": 1,\n \"barrel\": 0.457,\n \"emptyMass\": 5.1,\n \"lengthCollapsed\": 0.81\n },\n \"archetype\": \"rifle_bolt_308\",\n \"sources\": [\n \"gallery\",\n \"arsenal\",\n \"sdk\"\n ],\n \"mounts\": [\n {\n \"kind\": \"rail_top\",\n \"interfaces\": [\n \"picatinny\"\n ],\n \"sources\": [\n \"gallery\"\n ]\n },\n {\n \"kind\": \"rail_left\",\n \"interfaces\": [\n \"picatinny\"\n ],\n \"sources\": [\n \"gallery\"\n ]\n },\n {\n \"kind\": \"rail_right\",\n \"interfaces\": [\n \"picatinny\"\n ],\n \"sources\": [\n \"gallery\"\n ]\n },\n {\n \"kind\": \"rail_bottom\",\n \"interfaces\": [\n \"picatinny\"\n ],\n \"sources\": [\n \"gallery\"\n ]\n },\n {\n \"kind\": \"magazine\",\n \"interfaces\": [\n \"mag_box\"\n ],\n \"sources\": [\n \"gallery\"\n ]\n },\n {\n \"kind\": \"sling\",\n \"interfaces\": [\n \"swivel\"\n ],\n \"sources\": [\n \"derived\"\n ]\n }\n ],\n \"fitted\": [\n {\n \"id\": \"scope_3_9x\",\n \"mount\": \"rail_top\"\n }\n ],\n \"stock\": {\n \"kind\": \"retract\"\n }\n },\n {\n \"id\": \"svd_dragunov\",\n \"name\": \"SVD Dragunov\",\n \"category\": \"dmr\",\n \"action\": {\n \"kind\": \"firearm\",\n \"caliber\": \"7_62x54r\",\n \"rpm\": 120,\n \"modes\": [\n \"semi\"\n ],\n \"magazine\": 10,\n \"reload\": 2.9,\n \"muzzleSpeed\": 830,\n \"spreadDeg\": 0.25,\n \"bloomDeg\": 0.3,\n \"recoveryDegPerS\": 3,\n \"recoil\": [\n 2.39,\n 0.4\n ],\n \"range\": 800,\n \"family\": \"magazine\",\n \"timings\": {\n \"draw\": 0.35,\n \"reload\": 2.9,\n \"clear\": 1.2\n },\n \"moa\": 1.5\n },\n \"mass\": 4.3,\n \"dimensions\": {\n \"length\": 1.225,\n \"barrel\": 0.62,\n \"emptyMass\": 4.3\n },\n \"archetype\": \"rifle_bolt_308\",\n \"sources\": [\n \"gallery\",\n \"arsenal\",\n \"sdk\"\n ],\n \"mounts\": [\n {\n \"kind\": \"muzzle\",\n \"interfaces\": [\n \"fixed_muzzle_device\"\n ],\n \"sources\": [\n \"derived\"\n ]\n },\n {\n \"kind\": \"rail_top\",\n \"interfaces\": [\n \"pso_1_side\"\n ],\n \"sources\": [\n \"reference\"\n ]\n },\n {\n \"kind\": \"magazine\",\n \"interfaces\": [\n \"mag_box\"\n ],\n \"sources\": [\n \"gallery\"\n ]\n },\n {\n \"kind\": \"sling\",\n \"interfaces\": [\n \"swivel\"\n ],\n \"sources\": [\n \"derived\"\n ]\n }\n ],\n \"fitted\": [\n {\n \"id\": \"muzzle_brake\",\n \"mount\": \"muzzle\"\n },\n {\n \"id\": \"pso_1\",\n \"mount\": \"rail_top\",\n \"integral\": true\n }\n ]\n },\n {\n \"id\": \"fn_scar_h\",\n \"name\": \"FN SCAR-H\",\n \"maker\": \"FN\",\n \"category\": \"dmr\",\n \"action\": {\n \"kind\": \"firearm\",\n \"caliber\": \"7_62x51\",\n \"rpm\": 600,\n \"modes\": [\n \"auto\",\n \"semi\"\n ],\n \"magazine\": 20,\n \"reload\": 2.6,\n \"muzzleSpeed\": 770,\n \"spreadDeg\": 0.25,\n \"bloomDeg\": 0.3,\n \"recoveryDegPerS\": 3,\n \"recoil\": [\n 2.48,\n 0.41\n ],\n \"range\": 800,\n \"family\": \"magazine\",\n \"timings\": {\n \"draw\": 0.35,\n \"reload\": 2.6,\n \"clear\": 1.2\n },\n \"moa\": 1.5\n },\n \"mass\": 3.6,\n \"dimensions\": {\n \"length\": 0.965,\n \"barrel\": 0.4,\n \"emptyMass\": 3.6,\n \"lengthCollapsed\": 0.71\n },\n \"archetype\": \"rifle_bolt_308\",\n \"sources\": [\n \"gallery\",\n \"arsenal\",\n \"sdk\"\n ],\n \"mounts\": [\n {\n \"kind\": \"muzzle\",\n \"interfaces\": [\n \"thread_5/8x24\"\n ],\n \"sources\": [\n \"reference\"\n ]\n },\n {\n \"kind\": \"rail_top\",\n \"interfaces\": [\n \"picatinny\"\n ],\n \"sources\": [\n \"gallery\"\n ]\n },\n {\n \"kind\": \"rail_left\",\n \"interfaces\": [\n \"picatinny\"\n ],\n \"sources\": [\n \"gallery\"\n ]\n },\n {\n \"kind\": \"rail_right\",\n \"interfaces\": [\n \"picatinny\"\n ],\n \"sources\": [\n \"gallery\"\n ]\n },\n {\n \"kind\": \"rail_bottom\",\n \"interfaces\": [\n \"picatinny\"\n ],\n \"sources\": [\n \"gallery\"\n ]\n },\n {\n \"kind\": \"magazine\",\n \"interfaces\": [\n \"mag_box\"\n ],\n \"sources\": [\n \"gallery\"\n ]\n },\n {\n \"kind\": \"sling\",\n \"interfaces\": [\n \"swivel\"\n ],\n \"sources\": [\n \"derived\"\n ]\n }\n ],\n \"fitted\": [\n {\n \"id\": \"acog_4x\",\n \"mount\": \"rail_top\"\n }\n ],\n \"stock\": {\n \"kind\": \"fold\",\n \"foldAxis\": \"right\"\n }\n },\n {\n \"id\": \"knights_sr_25_mk11\",\n \"name\": \"Knight's SR-25 (Mk 11)\",\n \"maker\": \"Knight's\",\n \"category\": \"dmr\",\n \"action\": {\n \"kind\": \"firearm\",\n \"caliber\": \"7_62x51\",\n \"rpm\": 120,\n \"modes\": [\n \"semi\"\n ],\n \"magazine\": 20,\n \"reload\": 2.7,\n \"muzzleSpeed\": 800,\n \"spreadDeg\": 0.25,\n \"bloomDeg\": 0.3,\n \"recoveryDegPerS\": 3,\n \"recoil\": [\n 2.14,\n 0.36\n ],\n \"range\": 800,\n \"family\": \"magazine\",\n \"timings\": {\n \"draw\": 0.35,\n \"reload\": 2.7,\n \"clear\": 1.2\n },\n \"moa\": 1\n },\n \"mass\": 4.5,\n \"dimensions\": {\n \"length\": 1.156,\n \"barrel\": 0.508,\n \"emptyMass\": 4.5\n },\n \"archetype\": \"rifle_bolt_308\",\n \"sources\": [\n \"gallery\",\n \"arsenal\",\n \"sdk\"\n ],\n \"mounts\": [\n {\n \"kind\": \"rail_top\",\n \"interfaces\": [\n \"picatinny\"\n ],\n \"sources\": [\n \"gallery\"\n ]\n },\n {\n \"kind\": \"rail_left\",\n \"interfaces\": [\n \"picatinny\"\n ],\n \"sources\": [\n \"gallery\"\n ]\n },\n {\n \"kind\": \"rail_right\",\n \"interfaces\": [\n \"picatinny\"\n ],\n \"sources\": [\n \"gallery\"\n ]\n },\n {\n \"kind\": \"rail_bottom\",\n \"interfaces\": [\n \"picatinny\",\n \"bipod_stud\"\n ],\n \"sources\": [\n \"gallery\"\n ]\n },\n {\n \"kind\": \"magazine\",\n \"interfaces\": [\n \"mag_box\"\n ],\n \"sources\": [\n \"gallery\"\n ]\n },\n {\n \"kind\": \"sling\",\n \"interfaces\": [\n \"swivel\"\n ],\n \"sources\": [\n \"derived\"\n ]\n }\n ],\n \"fitted\": [\n {\n \"id\": \"scope_3_9x\",\n \"mount\": \"rail_top\"\n },\n {\n \"id\": \"bipod\",\n \"mount\": \"rail_bottom\"\n }\n ]\n },\n {\n \"id\": \"hk_psg_1\",\n \"name\": \"HK PSG-1\",\n \"maker\": \"HK\",\n \"category\": \"dmr\",\n \"action\": {\n \"kind\": \"firearm\",\n \"caliber\": \"7_62x51\",\n \"rpm\": 120,\n \"modes\": [\n \"semi\"\n ],\n \"magazine\": 5,\n \"magazineOptions\": [\n 20\n ],\n \"reload\": 2.7,\n \"spreadDeg\": 0.25,\n \"bloomDeg\": 0.3,\n \"recoveryDegPerS\": 3,\n \"recoil\": [\n 1.51,\n 0.25\n ],\n \"range\": 800,\n \"family\": \"magazine\",\n \"timings\": {\n \"draw\": 0.35,\n \"reload\": 2.7,\n \"reloadEmpty\": 3.6,\n \"clear\": 1.2\n },\n \"faultFactor\": 0.7\n },\n \"mass\": 7.2,\n \"dimensions\": {\n \"length\": 1.208,\n \"barrel\": 0.65,\n \"emptyMass\": 7.2\n },\n \"archetype\": \"rifle_bolt_308\",\n \"sources\": [\n \"gallery\",\n \"sdk\",\n \"derived\"\n ],\n \"mounts\": [\n {\n \"kind\": \"rail_top\",\n \"interfaces\": [\n \"dovetail\"\n ],\n \"sources\": [\n \"derived\"\n ]\n },\n {\n \"kind\": \"magazine\",\n \"interfaces\": [\n \"mag_box\"\n ],\n \"sources\": [\n \"gallery\"\n ]\n },\n {\n \"kind\": \"sling\",\n \"interfaces\": [\n \"swivel\"\n ],\n \"sources\": [\n \"derived\"\n ]\n }\n ],\n \"fitted\": [\n {\n \"id\": \"scope_3_9x\",\n \"mount\": \"rail_top\"\n }\n ]\n },\n {\n \"id\": \"steyr_ssg_69\",\n \"name\": \"Steyr SSG 69\",\n \"maker\": \"Steyr\",\n \"category\": \"sniper\",\n \"action\": {\n \"kind\": \"firearm\",\n \"caliber\": \"7_62x51\",\n \"rpm\": 73.17,\n \"modes\": [\n \"bolt\"\n ],\n \"magazine\": 5,\n \"reload\": 0.7,\n \"perRound\": true,\n \"spreadDeg\": 0.25,\n \"bloomDeg\": 0.3,\n \"recoveryDegPerS\": 3,\n \"recoil\": [\n 2.79,\n 0.47\n ],\n \"range\": 800,\n \"family\": \"bolt\",\n \"timings\": {\n \"draw\": 0.35,\n \"reload\": 0.7,\n \"perRound\": 0.7,\n \"cycle\": 0.82,\n \"clear\": 1.2\n },\n \"faultFactor\": 0.6\n },\n \"mass\": 3.9,\n \"dimensions\": {\n \"length\": 1.14,\n \"barrel\": 0.65,\n \"emptyMass\": 3.9\n },\n \"archetype\": \"rifle_bolt_308\",\n \"sources\": [\n \"gallery\",\n \"sdk\",\n \"derived\"\n ],\n \"mounts\": [\n {\n \"kind\": \"rail_top\",\n \"interfaces\": [\n \"dovetail\"\n ],\n \"sources\": [\n \"derived\"\n ]\n },\n {\n \"kind\": \"sling\",\n \"interfaces\": [\n \"swivel\"\n ],\n \"sources\": [\n \"derived\"\n ]\n }\n ],\n \"fitted\": [\n {\n \"id\": \"scope_3_9x\",\n \"mount\": \"rail_top\"\n }\n ]\n },\n {\n \"id\": \"barrett_mrad\",\n \"name\": \"Barrett MRAD\",\n \"maker\": \"Barrett\",\n \"category\": \"sniper\",\n \"action\": {\n \"kind\": \"firearm\",\n \"caliber\": \"338lapua\",\n \"rpm\": 73.17,\n \"modes\": [\n \"bolt\"\n ],\n \"magazine\": 10,\n \"reload\": 3.2,\n \"spreadDeg\": 0.1,\n \"bloomDeg\": 0.3,\n \"recoveryDegPerS\": 2.5,\n \"recoil\": [\n 3.85,\n 0.6\n ],\n \"range\": 1500,\n \"family\": \"bolt_magazine\",\n \"timings\": {\n \"draw\": 0.35,\n \"reload\": 3.2,\n \"cycle\": 0.82,\n \"clear\": 1.2\n }\n },\n \"mass\": 6.9,\n \"dimensions\": {\n \"length\": 1.26,\n \"barrel\": 0.686,\n \"emptyMass\": 6.9,\n \"lengthCollapsed\": 1.055\n },\n \"archetype\": \"sniper_338\",\n \"sources\": [\n \"gallery\",\n \"sdk\",\n \"derived\"\n ],\n \"mounts\": [\n {\n \"kind\": \"muzzle\",\n \"interfaces\": [\n \"fixed_muzzle_device\"\n ],\n \"sources\": [\n \"derived\"\n ]\n },\n {\n \"kind\": \"rail_top\",\n \"interfaces\": [\n \"picatinny\"\n ],\n \"sources\": [\n \"gallery\"\n ]\n },\n {\n \"kind\": \"rail_left\",\n \"interfaces\": [\n \"picatinny\"\n ],\n \"sources\": [\n \"gallery\"\n ]\n },\n {\n \"kind\": \"rail_right\",\n \"interfaces\": [\n \"picatinny\"\n ],\n \"sources\": [\n \"gallery\"\n ]\n },\n {\n \"kind\": \"rail_bottom\",\n \"interfaces\": [\n \"picatinny\",\n \"bipod_stud\"\n ],\n \"sources\": [\n \"gallery\"\n ]\n },\n {\n \"kind\": \"magazine\",\n \"interfaces\": [\n \"mag_box\"\n ],\n \"sources\": [\n \"gallery\"\n ]\n },\n {\n \"kind\": \"sling\",\n \"interfaces\": [\n \"swivel\"\n ],\n \"sources\": [\n \"derived\"\n ]\n }\n ],\n \"fitted\": [\n {\n \"id\": \"muzzle_brake\",\n \"mount\": \"muzzle\"\n },\n {\n \"id\": \"scope_3_9x\",\n \"mount\": \"rail_top\"\n },\n {\n \"id\": \"bipod\",\n \"mount\": \"rail_bottom\"\n }\n ],\n \"stock\": {\n \"kind\": \"fold\",\n \"foldAxis\": \"right\"\n }\n },\n {\n \"id\": \"cheytac_m200\",\n \"name\": \"CheyTac M200\",\n \"maker\": \"CheyTac\",\n \"category\": \"sniper\",\n \"action\": {\n \"kind\": \"firearm\",\n \"caliber\": \"408cheytac\",\n \"rpm\": 73.17,\n \"modes\": [\n \"bolt\"\n ],\n \"magazine\": 7,\n \"reload\": 3.2,\n \"spreadDeg\": 0.1,\n \"bloomDeg\": 0.3,\n \"recoveryDegPerS\": 2.5,\n \"recoil\": [\n 3.16,\n 0.49\n ],\n \"range\": 1500,\n \"family\": \"bolt_magazine\",\n \"timings\": {\n \"draw\": 0.35,\n \"reload\": 3.2,\n \"cycle\": 0.82,\n \"clear\": 1.2\n }\n },\n \"mass\": 14,\n \"dimensions\": {\n \"length\": 1.397,\n \"barrel\": 0.737,\n \"emptyMass\": 14,\n \"lengthCollapsed\": 1.187\n },\n \"archetype\": \"sniper_338\",\n \"sources\": [\n \"gallery\",\n \"sdk\",\n \"derived\"\n ],\n \"mounts\": [\n {\n \"kind\": \"muzzle\",\n \"interfaces\": [\n \"fixed_muzzle_device\"\n ],\n \"sources\": [\n \"derived\"\n ]\n },\n {\n \"kind\": \"rail_top\",\n \"interfaces\": [\n \"dovetail\"\n ],\n \"sources\": [\n \"derived\"\n ]\n },\n {\n \"kind\": \"rail_bottom\",\n \"interfaces\": [\n \"bipod_stud\"\n ],\n \"sources\": [\n \"gallery\"\n ]\n },\n {\n \"kind\": \"magazine\",\n \"interfaces\": [\n \"mag_box\"\n ],\n \"sources\": [\n \"gallery\"\n ]\n },\n {\n \"kind\": \"sling\",\n \"interfaces\": [\n \"swivel\"\n ],\n \"sources\": [\n \"derived\"\n ]\n }\n ],\n \"fitted\": [\n {\n \"id\": \"muzzle_brake\",\n \"mount\": \"muzzle\"\n },\n {\n \"id\": \"scope_6_24x\",\n \"mount\": \"rail_top\"\n },\n {\n \"id\": \"bipod\",\n \"mount\": \"rail_bottom\"\n }\n ],\n \"stock\": {\n \"kind\": \"retract\"\n }\n },\n {\n \"id\": \"remington_700\",\n \"name\": \"Remington 700\",\n \"maker\": \"Remington\",\n \"category\": \"sniper\",\n \"action\": {\n \"kind\": \"firearm\",\n \"caliber\": \"7_62x51\",\n \"rpm\": 73.17,\n \"modes\": [\n \"bolt\"\n ],\n \"magazine\": 4,\n \"reload\": 0.7,\n \"perRound\": true,\n \"muzzleSpeed\": 790,\n \"spreadDeg\": 0.25,\n \"bloomDeg\": 0.3,\n \"recoveryDegPerS\": 3,\n \"recoil\": [\n 2.35,\n 0.39\n ],\n \"range\": 800,\n \"family\": \"bolt\",\n \"timings\": {\n \"draw\": 0.35,\n \"reload\": 0.7,\n \"perRound\": 0.7,\n \"cycle\": 0.82,\n \"clear\": 1.2\n },\n \"moa\": 1\n },\n \"mass\": 4,\n \"dimensions\": {\n \"length\": 1.1,\n \"barrel\": 0.61,\n \"emptyMass\": 3.6\n },\n \"archetype\": \"rifle_bolt_308\",\n \"sources\": [\n \"gallery\",\n \"arsenal\",\n \"sdk\"\n ],\n \"mounts\": [\n {\n \"kind\": \"rail_top\",\n \"interfaces\": [\n \"dovetail\"\n ],\n \"sources\": [\n \"derived\"\n ]\n },\n {\n \"kind\": \"sling\",\n \"interfaces\": [\n \"swivel\"\n ],\n \"sources\": [\n \"derived\"\n ]\n }\n ],\n \"fitted\": [\n {\n \"id\": \"scope_3_9x\",\n \"mount\": \"rail_top\"\n }\n ]\n },\n {\n \"id\": \"m24_sws\",\n \"name\": \"M24 SWS\",\n \"category\": \"sniper\",\n \"action\": {\n \"kind\": \"firearm\",\n \"caliber\": \"7_62x51\",\n \"rpm\": 73.17,\n \"modes\": [\n \"bolt\"\n ],\n \"magazine\": 5,\n \"reload\": 0.7,\n \"perRound\": true,\n \"muzzleSpeed\": 790,\n \"spreadDeg\": 0.25,\n \"bloomDeg\": 0.3,\n \"recoveryDegPerS\": 3,\n \"recoil\": [\n 1.74,\n 0.29\n ],\n \"range\": 800,\n \"family\": \"bolt\",\n \"timings\": {\n \"draw\": 0.35,\n \"reload\": 0.7,\n \"perRound\": 0.7,\n \"cycle\": 0.82,\n \"clear\": 1.2\n },\n \"moa\": 0.75\n },\n \"mass\": 5.4,\n \"dimensions\": {\n \"length\": 1.092,\n \"barrel\": 0.61,\n \"emptyMass\": 5.4\n },\n \"archetype\": \"rifle_bolt_308\",\n \"sources\": [\n \"gallery\",\n \"arsenal\",\n \"sdk\"\n ],\n \"mounts\": [\n {\n \"kind\": \"rail_top\",\n \"interfaces\": [\n \"integral\"\n ],\n \"sources\": [\n \"reference\"\n ]\n },\n {\n \"kind\": \"rail_bottom\",\n \"interfaces\": [\n \"bipod_stud\"\n ],\n \"sources\": [\n \"gallery\"\n ]\n },\n {\n \"kind\": \"sling\",\n \"interfaces\": [\n \"swivel\"\n ],\n \"sources\": [\n \"derived\"\n ]\n }\n ],\n \"fitted\": [\n {\n \"id\": \"bipod\",\n \"mount\": \"rail_bottom\"\n },\n {\n \"id\": \"fixed_scope_10x\",\n \"mount\": \"rail_top\",\n \"integral\": true\n }\n ]\n },\n {\n \"id\": \"mosin_nagant_91_30\",\n \"name\": \"Mosin-Nagant 91/30\",\n \"category\": \"sniper\",\n \"action\": {\n \"kind\": \"firearm\",\n \"caliber\": \"7_62x54r\",\n \"rpm\": 73.17,\n \"modes\": [\n \"bolt\"\n ],\n \"magazine\": 5,\n \"reload\": 2.4,\n \"muzzleSpeed\": 865,\n \"spreadDeg\": 0.25,\n \"bloomDeg\": 0.3,\n \"recoveryDegPerS\": 3,\n \"recoil\": [\n 2.79,\n 0.46\n ],\n \"range\": 800,\n \"family\": \"bolt\",\n \"timings\": {\n \"draw\": 0.35,\n \"reload\": 2.4,\n \"cycle\": 0.82,\n \"clear\": 1.2\n },\n \"moa\": 2.5\n },\n \"mass\": 4,\n \"dimensions\": {\n \"length\": 1.232,\n \"barrel\": 0.73,\n \"emptyMass\": 4\n },\n \"archetype\": \"rifle_bolt_308\",\n \"sources\": [\n \"gallery\",\n \"arsenal\",\n \"sdk\"\n ],\n \"mounts\": [\n {\n \"kind\": \"sling\",\n \"interfaces\": [\n \"swivel\"\n ],\n \"sources\": [\n \"derived\"\n ]\n }\n ],\n \"fitted\": []\n },\n {\n \"id\": \"accuracy_awm\",\n \"name\": \"Accuracy AWM\",\n \"maker\": \"Accuracy\",\n \"category\": \"sniper\",\n \"action\": {\n \"kind\": \"firearm\",\n \"caliber\": \"338lapua\",\n \"rpm\": 73.17,\n \"modes\": [\n \"bolt\"\n ],\n \"magazine\": 5,\n \"reload\": 3.2,\n \"muzzleSpeed\": 936,\n \"spreadDeg\": 0.1,\n \"bloomDeg\": 0.3,\n \"recoveryDegPerS\": 2.5,\n \"recoil\": [\n 4.13,\n 0.64\n ],\n \"range\": 1500,\n \"family\": \"bolt_magazine\",\n \"timings\": {\n \"draw\": 0.35,\n \"reload\": 3.2,\n \"cycle\": 0.82,\n \"clear\": 1.2\n },\n \"moa\": 0.5\n },\n \"mass\": 6.9,\n \"dimensions\": {\n \"length\": 1.23,\n \"barrel\": 0.686,\n \"emptyMass\": 6.9\n },\n \"archetype\": \"sniper_338\",\n \"sources\": [\n \"gallery\",\n \"arsenal\",\n \"sdk\"\n ],\n \"mounts\": [\n {\n \"kind\": \"muzzle\",\n \"interfaces\": [\n \"fixed_muzzle_device\"\n ],\n \"sources\": [\n \"derived\"\n ]\n },\n {\n \"kind\": \"rail_top\",\n \"interfaces\": [\n \"dovetail\"\n ],\n \"sources\": [\n \"derived\"\n ]\n },\n {\n \"kind\": \"rail_bottom\",\n \"interfaces\": [\n \"bipod_stud\"\n ],\n \"sources\": [\n \"gallery\"\n ]\n },\n {\n \"kind\": \"magazine\",\n \"interfaces\": [\n \"mag_box\"\n ],\n \"sources\": [\n \"gallery\"\n ]\n },\n {\n \"kind\": \"sling\",\n \"interfaces\": [\n \"swivel\"\n ],\n \"sources\": [\n \"derived\"\n ]\n }\n ],\n \"fitted\": [\n {\n \"id\": \"muzzle_brake\",\n \"mount\": \"muzzle\"\n },\n {\n \"id\": \"scope_3_9x\",\n \"mount\": \"rail_top\"\n },\n {\n \"id\": \"bipod\",\n \"mount\": \"rail_bottom\"\n }\n ]\n },\n {\n \"id\": \"sako_trg_42\",\n \"name\": \"Sako TRG-42\",\n \"maker\": \"Sako\",\n \"category\": \"sniper\",\n \"action\": {\n \"kind\": \"firearm\",\n \"caliber\": \"338lapua\",\n \"rpm\": 73.17,\n \"modes\": [\n \"bolt\"\n ],\n \"magazine\": 5,\n \"reload\": 3,\n \"muzzleSpeed\": 900,\n \"spreadDeg\": 0.1,\n \"bloomDeg\": 0.3,\n \"recoveryDegPerS\": 2.5,\n \"recoil\": [\n 5.17,\n 0.8\n ],\n \"range\": 1500,\n \"family\": \"bolt_magazine\",\n \"timings\": {\n \"draw\": 0.35,\n \"reload\": 3,\n \"cycle\": 0.82,\n \"clear\": 1.2\n },\n \"moa\": 0.5\n },\n \"mass\": 5.1,\n \"dimensions\": {\n \"length\": 1.2,\n \"barrel\": 0.69,\n \"emptyMass\": 5.1\n },\n \"archetype\": \"sniper_338\",\n \"sources\": [\n \"gallery\",\n \"arsenal\",\n \"sdk\"\n ],\n \"mounts\": [\n {\n \"kind\": \"muzzle\",\n \"interfaces\": [\n \"fixed_muzzle_device\"\n ],\n \"sources\": [\n \"derived\"\n ]\n },\n {\n \"kind\": \"rail_top\",\n \"interfaces\": [\n \"dovetail\"\n ],\n \"sources\": [\n \"derived\"\n ]\n },\n {\n \"kind\": \"rail_bottom\",\n \"interfaces\": [\n \"bipod_stud\"\n ],\n \"sources\": [\n \"gallery\"\n ]\n },\n {\n \"kind\": \"magazine\",\n \"interfaces\": [\n \"mag_box\"\n ],\n \"sources\": [\n \"gallery\"\n ]\n },\n {\n \"kind\": \"sling\",\n \"interfaces\": [\n \"swivel\"\n ],\n \"sources\": [\n \"derived\"\n ]\n }\n ],\n \"fitted\": [\n {\n \"id\": \"muzzle_brake\",\n \"mount\": \"muzzle\"\n },\n {\n \"id\": \"scope_3_9x\",\n \"mount\": \"rail_top\"\n },\n {\n \"id\": \"bipod\",\n \"mount\": \"rail_bottom\"\n }\n ]\n },\n {\n \"id\": \"barrett_m82a1\",\n \"name\": \"Barrett M82A1\",\n \"maker\": \"Barrett\",\n \"category\": \"sniper\",\n \"action\": {\n \"kind\": \"firearm\",\n \"caliber\": \"50bmg\",\n \"rpm\": 30,\n \"modes\": [\n \"semi\"\n ],\n \"magazine\": 10,\n \"reload\": 4,\n \"muzzleSpeed\": 853,\n \"spreadDeg\": 0.15,\n \"bloomDeg\": 0.5,\n \"recoveryDegPerS\": 2,\n \"recoil\": [\n 4.82,\n 0.83\n ],\n \"range\": 1800,\n \"family\": \"magazine\",\n \"timings\": {\n \"draw\": 0.35,\n \"reload\": 4,\n \"clear\": 1.2\n },\n \"moa\": 1.5\n },\n \"mass\": 14,\n \"dimensions\": {\n \"length\": 1.448,\n \"barrel\": 0.737,\n \"emptyMass\": 14\n },\n \"archetype\": \"anti_materiel_50\",\n \"sources\": [\n \"gallery\",\n \"arsenal\",\n \"sdk\"\n ],\n \"mounts\": [\n {\n \"kind\": \"muzzle\",\n \"interfaces\": [\n \"fixed_muzzle_device\"\n ],\n \"sources\": [\n \"derived\"\n ]\n },\n {\n \"kind\": \"rail_top\",\n \"interfaces\": [\n \"dovetail\"\n ],\n \"sources\": [\n \"derived\"\n ]\n },\n {\n \"kind\": \"rail_bottom\",\n \"interfaces\": [\n \"bipod_stud\"\n ],\n \"sources\": [\n \"gallery\"\n ]\n },\n {\n \"kind\": \"magazine\",\n \"interfaces\": [\n \"mag_box\"\n ],\n \"sources\": [\n \"gallery\"\n ]\n },\n {\n \"kind\": \"sling\",\n \"interfaces\": [\n \"swivel\"\n ],\n \"sources\": [\n \"derived\"\n ]\n }\n ],\n \"fitted\": [\n {\n \"id\": \"muzzle_brake_heavy\",\n \"mount\": \"muzzle\"\n },\n {\n \"id\": \"scope_3_9x\",\n \"mount\": \"rail_top\"\n },\n {\n \"id\": \"bipod\",\n \"mount\": \"rail_bottom\"\n }\n ]\n },\n {\n \"id\": \"ruger_10_22\",\n \"name\": \"Ruger 10/22\",\n \"maker\": \"Ruger\",\n \"category\": \"hunting\",\n \"action\": {\n \"kind\": \"firearm\",\n \"caliber\": \"22lr\",\n \"rpm\": 300,\n \"modes\": [\n \"semi\"\n ],\n \"magazine\": 10,\n \"magazineOptions\": [\n 25\n ],\n \"reload\": 1.9,\n \"muzzleSpeed\": 380,\n \"spreadDeg\": 0.5,\n \"bloomDeg\": 0.15,\n \"recoveryDegPerS\": 5,\n \"recoil\": [\n 0.25,\n 0.09\n ],\n \"range\": 80,\n \"family\": \"top_load_semi\",\n \"timings\": {\n \"draw\": 0.35,\n \"reload\": 1.9,\n \"clear\": 1.2\n },\n \"moa\": 1.5\n },\n \"mass\": 2.3,\n \"dimensions\": {\n \"length\": 0.94,\n \"barrel\": 0.47,\n \"emptyMass\": 2.3\n },\n \"archetype\": \"carbine_22\",\n \"sources\": [\n \"gallery\",\n \"arsenal\",\n \"sdk\"\n ],\n \"mounts\": [\n {\n \"kind\": \"sling\",\n \"interfaces\": [\n \"swivel\"\n ],\n \"sources\": [\n \"derived\"\n ]\n }\n ],\n \"fitted\": []\n },\n {\n \"id\": \"cbc_7022\",\n \"name\": \"CBC 7022\",\n \"maker\": \"CBC\",\n \"category\": \"hunting\",\n \"action\": {\n \"kind\": \"firearm\",\n \"caliber\": \"22lr\",\n \"rpm\": 300,\n \"modes\": [\n \"semi\"\n ],\n \"magazine\": 10,\n \"reload\": 1.9,\n \"muzzleSpeed\": 380,\n \"spreadDeg\": 0.5,\n \"bloomDeg\": 0.15,\n \"recoveryDegPerS\": 5,\n \"recoil\": [\n 0.29,\n 0.11\n ],\n \"range\": 80,\n \"family\": \"top_load_semi\",\n \"timings\": {\n \"draw\": 0.35,\n \"reload\": 1.9,\n \"clear\": 1.2\n },\n \"moa\": 2\n },\n \"mass\": 2,\n \"dimensions\": {\n \"length\": 1,\n \"barrel\": 0.53,\n \"emptyMass\": 2\n },\n \"archetype\": \"carbine_22\",\n \"sources\": [\n \"gallery\",\n \"arsenal\",\n \"sdk\"\n ],\n \"mounts\": [\n {\n \"kind\": \"sling\",\n \"interfaces\": [\n \"swivel\"\n ],\n \"sources\": [\n \"derived\"\n ]\n }\n ],\n \"fitted\": []\n },\n {\n \"id\": \"cbc_122\",\n \"name\": \"CBC 122\",\n \"maker\": \"CBC\",\n \"category\": \"hunting\",\n \"action\": {\n \"kind\": \"firearm\",\n \"caliber\": \"22lr\",\n \"rpm\": 73.17,\n \"modes\": [\n \"bolt\"\n ],\n \"magazine\": 10,\n \"reload\": 1.9,\n \"muzzleSpeed\": 380,\n \"spreadDeg\": 0.5,\n \"bloomDeg\": 0.15,\n \"recoveryDegPerS\": 5,\n \"recoil\": [\n 0.24,\n 0.09\n ],\n \"range\": 80,\n \"family\": \"bolt\",\n \"timings\": {\n \"draw\": 0.35,\n \"reload\": 1.9,\n \"cycle\": 0.82,\n \"clear\": 1.2\n },\n \"moa\": 1.5\n },\n \"mass\": 2.4,\n \"dimensions\": {\n \"length\": 1.03,\n \"barrel\": 0.59,\n \"emptyMass\": 2.4\n },\n \"archetype\": \"carbine_22\",\n \"sources\": [\n \"gallery\",\n \"arsenal\",\n \"sdk\"\n ],\n \"mounts\": [\n {\n \"kind\": \"sling\",\n \"interfaces\": [\n \"swivel\"\n ],\n \"sources\": [\n \"derived\"\n ]\n }\n ],\n \"fitted\": []\n },\n {\n \"id\": \"winchester_1894\",\n \"name\": \"Winchester 1894\",\n \"maker\": \"Winchester\",\n \"category\": \"hunting\",\n \"action\": {\n \"kind\": \"firearm\",\n \"caliber\": \"30_30\",\n \"rpm\": 109.09,\n \"modes\": [\n \"lever\"\n ],\n \"magazine\": 7,\n \"reload\": 0.6,\n \"perRound\": true,\n \"muzzleSpeed\": 670,\n \"spreadDeg\": 0.25,\n \"bloomDeg\": 0.3,\n \"recoveryDegPerS\": 3,\n \"recoil\": [\n 2.25,\n 0.38\n ],\n \"range\": 800,\n \"family\": \"lever\",\n \"timings\": {\n \"draw\": 0.35,\n \"reload\": 0.6,\n \"perRound\": 0.6,\n \"cycle\": 0.55,\n \"clear\": 1.2\n },\n \"moa\": 3\n },\n \"mass\": 3,\n \"dimensions\": {\n \"length\": 0.965,\n \"barrel\": 0.508,\n \"emptyMass\": 3\n },\n \"archetype\": \"rifle_bolt_308\",\n \"sources\": [\n \"gallery\",\n \"arsenal\",\n \"sdk\"\n ],\n \"mounts\": [\n {\n \"kind\": \"sling\",\n \"interfaces\": [\n \"swivel\"\n ],\n \"sources\": [\n \"derived\"\n ]\n }\n ],\n \"fitted\": []\n },\n {\n \"id\": \"rossi_puma\",\n \"name\": \"Rossi Puma\",\n \"maker\": \"Rossi\",\n \"category\": \"hunting\",\n \"action\": {\n \"kind\": \"firearm\",\n \"caliber\": \"357mag\",\n \"rpm\": 109.09,\n \"modes\": [\n \"lever\"\n ],\n \"magazine\": 10,\n \"reload\": 0.5,\n \"perRound\": true,\n \"muzzleSpeed\": 500,\n \"spreadDeg\": 0.25,\n \"bloomDeg\": 0.3,\n \"recoveryDegPerS\": 3,\n \"recoil\": [\n 1.47,\n 0.24\n ],\n \"range\": 800,\n \"family\": \"lever\",\n \"timings\": {\n \"draw\": 0.35,\n \"reload\": 0.5,\n \"perRound\": 0.5,\n \"cycle\": 0.55,\n \"clear\": 1.2\n },\n \"moa\": 3,\n \"acceptsCalibers\": [\n \"38spl\"\n ]\n },\n \"mass\": 2.7,\n \"dimensions\": {\n \"length\": 0.95,\n \"barrel\": 0.508,\n \"emptyMass\": 2.7\n },\n \"archetype\": \"rifle_bolt_308\",\n \"sources\": [\n \"gallery\",\n \"arsenal\",\n \"sdk\"\n ],\n \"mounts\": [\n {\n \"kind\": \"sling\",\n \"interfaces\": [\n \"swivel\"\n ],\n \"sources\": [\n \"derived\"\n ]\n }\n ],\n \"fitted\": []\n },\n {\n \"id\": \"hunting_rifle_30_06\",\n \"name\": \".30-06 hunting rifle\",\n \"category\": \"hunting\",\n \"action\": {\n \"kind\": \"firearm\",\n \"caliber\": \"30_06\",\n \"rpm\": 73.17,\n \"modes\": [\n \"bolt\"\n ],\n \"magazine\": 4,\n \"reload\": 0.7,\n \"perRound\": true,\n \"muzzleSpeed\": 880,\n \"spreadDeg\": 0.25,\n \"bloomDeg\": 0.3,\n \"recoveryDegPerS\": 3,\n \"recoil\": [\n 3.24,\n 0.54\n ],\n \"range\": 800,\n \"family\": \"bolt\",\n \"timings\": {\n \"draw\": 0.35,\n \"reload\": 0.7,\n \"perRound\": 0.7,\n \"cycle\": 0.82,\n \"clear\": 1.2\n },\n \"moa\": 1.5\n },\n \"mass\": 3.6,\n \"dimensions\": {\n \"length\": 1.1,\n \"barrel\": 0.56,\n \"emptyMass\": 3.6\n },\n \"archetype\": \"rifle_bolt_308\",\n \"sources\": [\n \"gallery\",\n \"arsenal\",\n \"sdk\"\n ],\n \"mounts\": [\n {\n \"kind\": \"rail_top\",\n \"interfaces\": [\n \"dovetail\"\n ],\n \"sources\": [\n \"derived\"\n ]\n },\n {\n \"kind\": \"sling\",\n \"interfaces\": [\n \"swivel\"\n ],\n \"sources\": [\n \"derived\"\n ]\n }\n ],\n \"fitted\": [\n {\n \"id\": \"scope_3_9x\",\n \"mount\": \"rail_top\"\n }\n ]\n },\n {\n \"id\": \"fn_minimi\",\n \"name\": \"FN Minimi\",\n \"maker\": \"FN\",\n \"category\": \"machine_gun\",\n \"action\": {\n \"kind\": \"firearm\",\n \"caliber\": \"5_56x45\",\n \"rpm\": 850,\n \"modes\": [\n \"auto\"\n ],\n \"magazine\": 200,\n \"reload\": 7.5,\n \"muzzleSpeed\": 915,\n \"spreadDeg\": 0.6,\n \"bloomDeg\": 0.25,\n \"recoveryDegPerS\": 5,\n \"recoil\": [\n 0.46,\n 0.28\n ],\n \"range\": 400,\n \"family\": \"belt\",\n \"timings\": {\n \"draw\": 0.35,\n \"reload\": 7.5,\n \"clear\": 1.2\n },\n \"moa\": 4\n },\n \"mass\": 7.1,\n \"dimensions\": {\n \"length\": 1.04,\n \"barrel\": 0.465,\n \"emptyMass\": 7.1\n },\n \"archetype\": \"rifle_5_56\",\n \"sources\": [\n \"gallery\",\n \"arsenal\",\n \"sdk\"\n ],\n \"mounts\": [\n {\n \"kind\": \"rail_bottom\",\n \"interfaces\": [\n \"bipod_stud\"\n ],\n \"sources\": [\n \"gallery\"\n ]\n },\n {\n \"kind\": \"sling\",\n \"interfaces\": [\n \"swivel\"\n ],\n \"sources\": [\n \"derived\"\n ]\n },\n {\n \"kind\": \"feed\",\n \"interfaces\": [\n \"belt\"\n ],\n \"sources\": [\n \"derived\"\n ]\n }\n ],\n \"fitted\": [\n {\n \"id\": \"bipod\",\n \"mount\": \"rail_bottom\"\n }\n ]\n },\n {\n \"id\": \"pkm\",\n \"name\": \"PKM\",\n \"category\": \"machine_gun\",\n \"action\": {\n \"kind\": \"firearm\",\n \"caliber\": \"7_62x54r\",\n \"rpm\": 650,\n \"modes\": [\n \"auto\"\n ],\n \"magazine\": 100,\n \"reload\": 8,\n \"muzzleSpeed\": 825,\n \"spreadDeg\": 0.8,\n \"bloomDeg\": 0.35,\n \"recoveryDegPerS\": 4.5,\n \"recoil\": [\n 1.18,\n 0.63\n ],\n \"range\": 350,\n \"family\": \"belt\",\n \"timings\": {\n \"draw\": 0.35,\n \"reload\": 8,\n \"clear\": 1.2\n },\n \"moa\": 4\n },\n \"mass\": 7.5,\n \"dimensions\": {\n \"length\": 1.173,\n \"barrel\": 0.658,\n \"emptyMass\": 7.5\n },\n \"archetype\": \"rifle_7_62x39\",\n \"sources\": [\n \"gallery\",\n \"arsenal\",\n \"sdk\"\n ],\n \"mounts\": [\n {\n \"kind\": \"rail_bottom\",\n \"interfaces\": [\n \"bipod_stud\"\n ],\n \"sources\": [\n \"gallery\"\n ]\n },\n {\n \"kind\": \"sling\",\n \"interfaces\": [\n \"swivel\"\n ],\n \"sources\": [\n \"derived\"\n ]\n },\n {\n \"kind\": \"feed\",\n \"interfaces\": [\n \"belt\"\n ],\n \"sources\": [\n \"derived\"\n ]\n }\n ],\n \"fitted\": [\n {\n \"id\": \"bipod\",\n \"mount\": \"rail_bottom\"\n }\n ]\n },\n {\n \"id\": \"m60\",\n \"name\": \"M60\",\n \"category\": \"machine_gun\",\n \"action\": {\n \"kind\": \"firearm\",\n \"caliber\": \"7_62x51\",\n \"rpm\": 550,\n \"modes\": [\n \"auto\"\n ],\n \"magazine\": 100,\n \"reload\": 8.5,\n \"muzzleSpeed\": 853,\n \"spreadDeg\": 0.8,\n \"bloomDeg\": 0.35,\n \"recoveryDegPerS\": 4.5,\n \"recoil\": [\n 0.91,\n 0.49\n ],\n \"range\": 350,\n \"family\": \"belt\",\n \"timings\": {\n \"draw\": 0.35,\n \"reload\": 8.5,\n \"clear\": 1.2\n },\n \"faultFactor\": 1.3,\n \"moa\": 4\n },\n \"mass\": 10.5,\n \"dimensions\": {\n \"length\": 1.105,\n \"barrel\": 0.56,\n \"emptyMass\": 10.5\n },\n \"archetype\": \"rifle_7_62x39\",\n \"sources\": [\n \"gallery\",\n \"arsenal\",\n \"sdk\"\n ],\n \"mounts\": [\n {\n \"kind\": \"rail_bottom\",\n \"interfaces\": [\n \"bipod_stud\"\n ],\n \"sources\": [\n \"gallery\"\n ]\n },\n {\n \"kind\": \"sling\",\n \"interfaces\": [\n \"swivel\"\n ],\n \"sources\": [\n \"derived\"\n ]\n },\n {\n \"kind\": \"feed\",\n \"interfaces\": [\n \"belt\"\n ],\n \"sources\": [\n \"derived\"\n ]\n }\n ],\n \"fitted\": [\n {\n \"id\": \"bipod\",\n \"mount\": \"rail_bottom\"\n }\n ]\n },\n {\n \"id\": \"browning_m2\",\n \"name\": \"Browning M2 .50\",\n \"maker\": \"Browning\",\n \"category\": \"machine_gun\",\n \"action\": {\n \"kind\": \"firearm\",\n \"caliber\": \"50bmg\",\n \"rpm\": 550,\n \"modes\": [\n \"auto\"\n ],\n \"magazine\": 100,\n \"reload\": 10,\n \"muzzleSpeed\": 890,\n \"spreadDeg\": 0.15,\n \"bloomDeg\": 0.5,\n \"recoveryDegPerS\": 2,\n \"recoil\": [\n 1.93,\n 0.33\n ],\n \"range\": 1800,\n \"family\": \"belt\",\n \"timings\": {\n \"draw\": 0.35,\n \"reload\": 10,\n \"clear\": 1.2\n },\n \"moa\": 2\n },\n \"mass\": 38,\n \"dimensions\": {\n \"length\": 1.65,\n \"barrel\": 1.14,\n \"emptyMass\": 38\n },\n \"archetype\": \"anti_materiel_50\",\n \"sources\": [\n \"gallery\",\n \"arsenal\",\n \"sdk\"\n ],\n \"mounts\": [\n {\n \"kind\": \"underbarrel\",\n \"interfaces\": [\n \"tripod\"\n ],\n \"sources\": [\n \"reference\"\n ]\n },\n {\n \"kind\": \"sling\",\n \"interfaces\": [\n \"swivel\"\n ],\n \"sources\": [\n \"derived\"\n ]\n },\n {\n \"kind\": \"feed\",\n \"interfaces\": [\n \"belt\"\n ],\n \"sources\": [\n \"derived\"\n ]\n }\n ],\n \"fitted\": [\n {\n \"id\": \"tripod\",\n \"mount\": \"underbarrel\",\n \"integral\": true\n }\n ]\n },\n {\n \"id\": \"remington_700_300wm\",\n \"name\": \"Remington 700 (.300 WM)\",\n \"maker\": \"Remington\",\n \"category\": \"sniper\",\n \"action\": {\n \"kind\": \"firearm\",\n \"caliber\": \"300wm\",\n \"rpm\": 73.17,\n \"modes\": [\n \"bolt\"\n ],\n \"magazine\": 3,\n \"reload\": 0.7,\n \"perRound\": true,\n \"spreadDeg\": 0.1,\n \"bloomDeg\": 0.3,\n \"recoveryDegPerS\": 2.5,\n \"recoil\": [\n 4.76,\n 0.74\n ],\n \"range\": 1500,\n \"family\": \"bolt\",\n \"timings\": {\n \"draw\": 0.35,\n \"reload\": 0.7,\n \"perRound\": 0.7,\n \"cycle\": 0.82,\n \"clear\": 1.2\n },\n \"moa\": 1\n },\n \"mass\": 4,\n \"dimensions\": {\n \"length\": 1.1,\n \"barrel\": 0.61,\n \"emptyMass\": 3.6\n },\n \"archetype\": \"sniper_338\",\n \"variantOf\": \"remington_700\",\n \"sources\": [\n \"gallery\",\n \"arsenal\",\n \"sdk\",\n \"derived\"\n ],\n \"mounts\": [\n {\n \"kind\": \"rail_top\",\n \"interfaces\": [\n \"dovetail\"\n ],\n \"sources\": [\n \"derived\"\n ]\n },\n {\n \"kind\": \"sling\",\n \"interfaces\": [\n \"swivel\"\n ],\n \"sources\": [\n \"derived\"\n ]\n }\n ],\n \"fitted\": [\n {\n \"id\": \"scope_3_9x\",\n \"mount\": \"rail_top\"\n }\n ]\n },\n {\n \"id\": \"m79\",\n \"name\": \"M79 grenade launcher\",\n \"category\": \"launcher\",\n \"action\": {\n \"kind\": \"launcher\",\n \"projectile\": \"m79_40mm\",\n \"magazine\": 1,\n \"reload\": 2,\n \"timings\": {\n \"draw\": 0.35,\n \"reload\": 2,\n \"clear\": 1.2\n },\n \"family\": \"break\",\n \"speed\": 76,\n \"minArmDistance\": 10,\n \"backblast\": 0,\n \"recoil\": [\n 4.5,\n 1.2\n ]\n },\n \"mass\": 2.93,\n \"dimensions\": {\n \"length\": 0.73,\n \"barrel\": 0.356,\n \"emptyMass\": 2.7\n },\n \"archetype\": \"shotgun_double_12\",\n \"sources\": [\n \"gallery\",\n \"arsenal\",\n \"reference\",\n \"derived\"\n ],\n \"mounts\": [],\n \"fitted\": []\n },\n {\n \"id\": \"hk_mp5sd3\",\n \"name\": \"HK MP5SD3\",\n \"maker\": \"HK\",\n \"category\": \"smg\",\n \"action\": {\n \"kind\": \"firearm\",\n \"caliber\": \"9x19\",\n \"rpm\": 700,\n \"modes\": [\n \"auto\",\n \"semi\"\n ],\n \"magazine\": 30,\n \"reload\": 2.6,\n \"muzzleSpeed\": 285,\n \"noise\": 37.5,\n \"spreadDeg\": 1.5,\n \"bloomDeg\": 0.35,\n \"recoveryDegPerS\": 6,\n \"recoil\": [\n 0.35,\n 0.19\n ],\n \"range\": 80,\n \"family\": \"magazine\",\n \"timings\": {\n \"draw\": 0.35,\n \"reload\": 2.6,\n \"clear\": 1.2\n }\n },\n \"mass\": 3.4,\n \"dimensions\": {\n \"length\": 0.805,\n \"barrel\": 0.146,\n \"emptyMass\": 3.4,\n \"lengthCollapsed\": 0.61\n },\n \"archetype\": \"smg_9mm\",\n \"variantOf\": \"hk_mp5a3\",\n \"sources\": [\n \"reference\",\n \"derived\",\n \"sdk\"\n ],\n \"mounts\": [\n {\n \"kind\": \"muzzle\",\n \"interfaces\": [\n \"integral\"\n ],\n \"sources\": [\n \"reference\"\n ]\n },\n {\n \"kind\": \"magazine\",\n \"interfaces\": [\n \"mag_curved\"\n ],\n \"sources\": [\n \"gallery\"\n ]\n },\n {\n \"kind\": \"sling\",\n \"interfaces\": [\n \"swivel\"\n ],\n \"sources\": [\n \"derived\"\n ]\n }\n ],\n \"fitted\": [\n {\n \"id\": \"integral_suppressor\",\n \"mount\": \"muzzle\",\n \"integral\": true\n }\n ],\n \"stock\": {\n \"kind\": \"retract\"\n }\n },\n {\n \"id\": \"fn_parafal\",\n \"name\": \"FN ParaFAL\",\n \"maker\": \"FN\",\n \"category\": \"rifle\",\n \"action\": {\n \"kind\": \"firearm\",\n \"caliber\": \"7_62x51\",\n \"rpm\": 650,\n \"modes\": [\n \"auto\",\n \"semi\"\n ],\n \"magazine\": 20,\n \"reload\": 2.7,\n \"muzzleSpeed\": 840,\n \"spreadDeg\": 0.8,\n \"bloomDeg\": 0.35,\n \"recoveryDegPerS\": 4.5,\n \"recoil\": [\n 2.32,\n 1.24\n ],\n \"range\": 350,\n \"family\": \"magazine\",\n \"timings\": {\n \"draw\": 0.35,\n \"reload\": 2.7,\n \"reloadEmpty\": 3.5,\n \"clear\": 1.2\n }\n },\n \"mass\": 4,\n \"dimensions\": {\n \"length\": 1.02,\n \"barrel\": 0.44,\n \"emptyMass\": 4,\n \"lengthCollapsed\": 0.77\n },\n \"archetype\": \"rifle_7_62x39\",\n \"variantOf\": \"fn_fal\",\n \"sources\": [\n \"reference\",\n \"derived\",\n \"sdk\"\n ],\n \"mounts\": [\n {\n \"kind\": \"muzzle\",\n \"interfaces\": [\n \"fixed_muzzle_device\"\n ],\n \"sources\": [\n \"derived\"\n ]\n },\n {\n \"kind\": \"magazine\",\n \"interfaces\": [\n \"mag_box\"\n ],\n \"sources\": [\n \"gallery\"\n ]\n },\n {\n \"kind\": \"sling\",\n \"interfaces\": [\n \"swivel\"\n ],\n \"sources\": [\n \"derived\"\n ]\n }\n ],\n \"fitted\": [\n {\n \"id\": \"muzzle_brake\",\n \"mount\": \"muzzle\"\n }\n ],\n \"stock\": {\n \"kind\": \"fold\",\n \"foldAxis\": \"right\"\n }\n },\n {\n \"id\": \"taurus_t4_civil\",\n \"name\": \"Taurus T4 (civil)\",\n \"maker\": \"Taurus\",\n \"category\": \"rifle\",\n \"action\": {\n \"kind\": \"firearm\",\n \"caliber\": \"5_56x45\",\n \"rpm\": 120,\n \"modes\": [\n \"semi\"\n ],\n \"magazine\": 30,\n \"reload\": 2.4,\n \"muzzleSpeed\": 880,\n \"spreadDeg\": 0.6,\n \"bloomDeg\": 0.25,\n \"recoveryDegPerS\": 5,\n \"recoil\": [\n 1,\n 0.6\n ],\n \"range\": 400,\n \"family\": \"magazine\",\n \"timings\": {\n \"draw\": 0.35,\n \"reload\": 2.4,\n \"reloadEmpty\": 3.1,\n \"clear\": 1.2\n }\n },\n \"mass\": 3,\n \"dimensions\": {\n \"length\": 0.878,\n \"barrel\": 0.406,\n \"emptyMass\": 3,\n \"lengthCollapsed\": 0.805\n },\n \"archetype\": \"rifle_5_56\",\n \"variantOf\": \"taurus_t4\",\n \"sources\": [\n \"derived\",\n \"reference\",\n \"sdk\"\n ],\n \"mounts\": [\n {\n \"kind\": \"muzzle\",\n \"interfaces\": [\n \"thread_1/2x28\"\n ],\n \"sources\": [\n \"derived\"\n ]\n },\n {\n \"kind\": \"rail_top\",\n \"interfaces\": [\n \"picatinny\"\n ],\n \"sources\": [\n \"gallery\"\n ]\n },\n {\n \"kind\": \"rail_left\",\n \"interfaces\": [\n \"picatinny\"\n ],\n \"sources\": [\n \"gallery\"\n ]\n },\n {\n \"kind\": \"rail_right\",\n \"interfaces\": [\n \"picatinny\"\n ],\n \"sources\": [\n \"gallery\"\n ]\n },\n {\n \"kind\": \"rail_bottom\",\n \"interfaces\": [\n \"picatinny\"\n ],\n \"sources\": [\n \"gallery\"\n ]\n },\n {\n \"kind\": \"magazine\",\n \"interfaces\": [\n \"mag_box\"\n ],\n \"sources\": [\n \"gallery\"\n ]\n },\n {\n \"kind\": \"sling\",\n \"interfaces\": [\n \"swivel\"\n ],\n \"sources\": [\n \"derived\"\n ]\n }\n ],\n \"fitted\": [\n {\n \"id\": \"red_dot\",\n \"mount\": \"rail_top\"\n }\n ],\n \"stock\": {\n \"kind\": \"retract\"\n }\n },\n {\n \"id\": \"taurus_th380\",\n \"name\": \"Taurus TH380\",\n \"maker\": \"Taurus\",\n \"category\": \"pistol\",\n \"action\": {\n \"kind\": \"firearm\",\n \"caliber\": \"380acp\",\n \"rpm\": 300,\n \"modes\": [\n \"semi\"\n ],\n \"magazine\": 12,\n \"chamber\": 1,\n \"reload\": 1.7,\n \"spreadDeg\": 1,\n \"bloomDeg\": 0.6,\n \"recoveryDegPerS\": 4,\n \"recoil\": [\n 1.06,\n 0.35\n ],\n \"range\": 50,\n \"family\": \"pistol\",\n \"timings\": {\n \"draw\": 0.35,\n \"reload\": 1.7,\n \"clear\": 1.2\n },\n \"faultFactor\": 1.5\n },\n \"mass\": 0.55,\n \"dimensions\": {\n \"length\": 0.165,\n \"barrel\": 0.09,\n \"emptyMass\": 0.55\n },\n \"archetype\": \"pistol_9mm\",\n \"variantOf\": \"taurus_g2c\",\n \"sources\": [\n \"derived\",\n \"sdk\"\n ],\n \"mounts\": [\n {\n \"kind\": \"magazine\",\n \"interfaces\": [\n \"mag_pistol\"\n ],\n \"sources\": [\n \"derived\"\n ]\n }\n ],\n \"fitted\": []\n },\n {\n \"id\": \"mossberg_500_cruiser\",\n \"name\": \"Mossberg 500 Cruiser\",\n \"maker\": \"Mossberg\",\n \"category\": \"shotgun\",\n \"action\": {\n \"kind\": \"firearm\",\n \"caliber\": \"12ga_00buck\",\n \"rpm\": 120,\n \"modes\": [\n \"pump\"\n ],\n \"magazine\": 5,\n \"chamber\": 1,\n \"reload\": 0.55,\n \"perRound\": true,\n \"muzzleSpeed\": 400,\n \"spreadDeg\": 1,\n \"bloomDeg\": 0.5,\n \"recoveryDegPerS\": 3,\n \"pelletSpreadDeg\": 3,\n \"recoil\": [\n 4.43,\n 1.11\n ],\n \"range\": 40,\n \"family\": \"pump\",\n \"timings\": {\n \"draw\": 0.35,\n \"reload\": 0.55,\n \"perRound\": 0.55,\n \"cycle\": 0.5,\n \"clear\": 1.2\n }\n },\n \"mass\": 2.7,\n \"dimensions\": {\n \"length\": 0.72,\n \"barrel\": 0.47,\n \"emptyMass\": 2.7\n },\n \"archetype\": \"shotgun_pump_12\",\n \"variantOf\": \"mossberg_500\",\n \"sources\": [\n \"derived\",\n \"reference\",\n \"sdk\"\n ],\n \"mounts\": [\n {\n \"kind\": \"barrel\",\n \"interfaces\": [\n \"barrel_swap\"\n ],\n \"sources\": [\n \"derived\"\n ]\n },\n {\n \"kind\": \"sling\",\n \"interfaces\": [\n \"swivel\"\n ],\n \"sources\": [\n \"derived\"\n ]\n }\n ],\n \"fitted\": []\n },\n {\n \"id\": \"hk_mp5k\",\n \"name\": \"HK MP5K\",\n \"maker\": \"HK\",\n \"category\": \"smg\",\n \"action\": {\n \"kind\": \"firearm\",\n \"caliber\": \"9x19\",\n \"rpm\": 900,\n \"modes\": [\n \"auto\",\n \"semi\"\n ],\n \"magazine\": 30,\n \"magazineOptions\": [\n 15\n ],\n \"reload\": 2.6,\n \"muzzleSpeed\": 400,\n \"spreadDeg\": 1.5,\n \"bloomDeg\": 0.35,\n \"recoveryDegPerS\": 6,\n \"recoil\": [\n 1.16,\n 0.65\n ],\n \"range\": 80,\n \"family\": \"magazine\",\n \"timings\": {\n \"draw\": 0.35,\n \"reload\": 2.6,\n \"clear\": 1.2\n }\n },\n \"mass\": 2,\n \"dimensions\": {\n \"length\": 0.325,\n \"barrel\": 0.115,\n \"emptyMass\": 2\n },\n \"archetype\": \"smg_9mm\",\n \"variantOf\": \"hk_mp5a3\",\n \"sources\": [\n \"reference\",\n \"derived\",\n \"sdk\"\n ],\n \"mounts\": [\n {\n \"kind\": \"muzzle\",\n \"interfaces\": [\n \"hk_3lug\"\n ],\n \"sources\": [\n \"reference\"\n ]\n },\n {\n \"kind\": \"magazine\",\n \"interfaces\": [\n \"mag_curved\"\n ],\n \"sources\": [\n \"gallery\"\n ]\n },\n {\n \"kind\": \"sling\",\n \"interfaces\": [\n \"swivel\"\n ],\n \"sources\": [\n \"derived\"\n ]\n }\n ],\n \"fitted\": []\n },\n {\n \"id\": \"hk_ump9\",\n \"name\": \"HK UMP9\",\n \"maker\": \"HK\",\n \"category\": \"smg\",\n \"action\": {\n \"kind\": \"firearm\",\n \"caliber\": \"9x19\",\n \"rpm\": 700,\n \"modes\": [\n \"auto\",\n \"semi\"\n ],\n \"magazine\": 30,\n \"reload\": 2.7,\n \"muzzleSpeed\": 380,\n \"spreadDeg\": 1.5,\n \"bloomDeg\": 0.35,\n \"recoveryDegPerS\": 6,\n \"recoil\": [\n 0.91,\n 0.51\n ],\n \"range\": 80,\n \"family\": \"magazine\",\n \"timings\": {\n \"draw\": 0.35,\n \"reload\": 2.7,\n \"clear\": 1.2\n }\n },\n \"mass\": 2.3,\n \"dimensions\": {\n \"length\": 0.69,\n \"barrel\": 0.2,\n \"emptyMass\": 2.3,\n \"lengthCollapsed\": 0.45\n },\n \"archetype\": \"smg_9mm\",\n \"variantOf\": \"hk_ump_45\",\n \"sources\": [\n \"reference\",\n \"derived\",\n \"sdk\"\n ],\n \"mounts\": [\n {\n \"kind\": \"rail_top\",\n \"interfaces\": [\n \"picatinny\"\n ],\n \"sources\": [\n \"gallery\"\n ]\n },\n {\n \"kind\": \"magazine\",\n \"interfaces\": [\n \"mag_curved\"\n ],\n \"sources\": [\n \"gallery\"\n ]\n },\n {\n \"kind\": \"sling\",\n \"interfaces\": [\n \"swivel\"\n ],\n \"sources\": [\n \"derived\"\n ]\n }\n ],\n \"fitted\": [],\n \"stock\": {\n \"kind\": \"fold\",\n \"foldAxis\": \"right\"\n }\n },\n {\n \"id\": \"mini_uzi\",\n \"name\": \"Mini Uzi\",\n \"category\": \"smg\",\n \"action\": {\n \"kind\": \"firearm\",\n \"caliber\": \"9x19\",\n \"rpm\": 950,\n \"modes\": [\n \"auto\",\n \"semi\"\n ],\n \"magazine\": 20,\n \"magazineOptions\": [\n 25,\n 32\n ],\n \"reload\": 2.4,\n \"muzzleSpeed\": 400,\n \"spreadDeg\": 1.5,\n \"bloomDeg\": 0.35,\n \"recoveryDegPerS\": 6,\n \"recoil\": [\n 0.86,\n 0.48\n ],\n \"range\": 80,\n \"family\": \"magazine\",\n \"timings\": {\n \"draw\": 0.35,\n \"reload\": 2.4,\n \"clear\": 1.2\n }\n },\n \"mass\": 2.7,\n \"dimensions\": {\n \"length\": 0.6,\n \"barrel\": 0.197,\n \"emptyMass\": 2.7,\n \"lengthCollapsed\": 0.36\n },\n \"archetype\": \"smg_9mm\",\n \"variantOf\": \"uzi\",\n \"sources\": [\n \"reference\",\n \"derived\",\n \"sdk\"\n ],\n \"mounts\": [\n {\n \"kind\": \"magazine\",\n \"interfaces\": [\n \"mag_box\"\n ],\n \"sources\": [\n \"gallery\"\n ]\n },\n {\n \"kind\": \"sling\",\n \"interfaces\": [\n \"swivel\"\n ],\n \"sources\": [\n \"derived\"\n ]\n }\n ],\n \"fitted\": [],\n \"stock\": {\n \"kind\": \"fold\",\n \"foldAxis\": \"under\"\n }\n },\n {\n \"id\": \"hk_mp7a1\",\n \"name\": \"HK MP7A1\",\n \"maker\": \"HK\",\n \"category\": \"smg\",\n \"action\": {\n \"kind\": \"firearm\",\n \"caliber\": \"4_6x30\",\n \"rpm\": 950,\n \"modes\": [\n \"auto\",\n \"semi\"\n ],\n \"magazine\": 40,\n \"magazineOptions\": [\n 20,\n 30\n ],\n \"reload\": 2.6,\n \"muzzleSpeed\": 735,\n \"spreadDeg\": 1.5,\n \"bloomDeg\": 0.35,\n \"recoveryDegPerS\": 6,\n \"recoil\": [\n 1.1,\n 0.61\n ],\n \"range\": 80,\n \"family\": \"magazine\",\n \"timings\": {\n \"draw\": 0.35,\n \"reload\": 2.6,\n \"clear\": 1.2\n }\n },\n \"mass\": 1.9,\n \"dimensions\": {\n \"length\": 0.638,\n \"barrel\": 0.18,\n \"emptyMass\": 1.9,\n \"lengthCollapsed\": 0.415\n },\n \"archetype\": \"smg_9mm\",\n \"sources\": [\n \"reference\",\n \"derived\",\n \"sdk\"\n ],\n \"mounts\": [\n {\n \"kind\": \"rail_top\",\n \"interfaces\": [\n \"picatinny\"\n ],\n \"sources\": [\n \"gallery\"\n ]\n },\n {\n \"kind\": \"rail_left\",\n \"interfaces\": [\n \"picatinny\"\n ],\n \"sources\": [\n \"gallery\"\n ]\n },\n {\n \"kind\": \"rail_right\",\n \"interfaces\": [\n \"picatinny\"\n ],\n \"sources\": [\n \"gallery\"\n ]\n },\n {\n \"kind\": \"rail_bottom\",\n \"interfaces\": [\n \"picatinny\"\n ],\n \"sources\": [\n \"gallery\"\n ]\n },\n {\n \"kind\": \"magazine\",\n \"interfaces\": [\n \"mag_box\"\n ],\n \"sources\": [\n \"gallery\"\n ]\n },\n {\n \"kind\": \"sling\",\n \"interfaces\": [\n \"swivel\"\n ],\n \"sources\": [\n \"derived\"\n ]\n }\n ],\n \"fitted\": [],\n \"stock\": {\n \"kind\": \"retract\"\n },\n \"tags\": [\n \"pdw\"\n ]\n },\n {\n \"id\": \"hk_g36\",\n \"name\": \"HK G36\",\n \"maker\": \"HK\",\n \"category\": \"rifle\",\n \"action\": {\n \"kind\": \"firearm\",\n \"caliber\": \"5_56x45\",\n \"rpm\": 750,\n \"modes\": [\n \"auto\",\n \"semi\"\n ],\n \"magazine\": 30,\n \"magazineOptions\": [\n 100\n ],\n \"reload\": 2.3,\n \"muzzleSpeed\": 920,\n \"spreadDeg\": 0.6,\n \"bloomDeg\": 0.25,\n \"recoveryDegPerS\": 5,\n \"recoil\": [\n 0.91,\n 0.54\n ],\n \"range\": 400,\n \"family\": \"magazine\",\n \"timings\": {\n \"draw\": 0.35,\n \"reload\": 2.3,\n \"reloadEmpty\": 3,\n \"clear\": 1.2\n }\n },\n \"mass\": 3.63,\n \"dimensions\": {\n \"length\": 0.999,\n \"barrel\": 0.48,\n \"emptyMass\": 3.63,\n \"lengthCollapsed\": 0.758\n },\n \"archetype\": \"rifle_5_56\",\n \"sources\": [\n \"reference\",\n \"derived\",\n \"sdk\"\n ],\n \"mounts\": [\n {\n \"kind\": \"rail_top\",\n \"interfaces\": [\n \"integral\"\n ],\n \"sources\": [\n \"reference\"\n ]\n },\n {\n \"kind\": \"magazine\",\n \"interfaces\": [\n \"mag_box\"\n ],\n \"sources\": [\n \"gallery\"\n ]\n },\n {\n \"kind\": \"sling\",\n \"interfaces\": [\n \"swivel\"\n ],\n \"sources\": [\n \"derived\"\n ]\n }\n ],\n \"fitted\": [\n {\n \"id\": \"integral_optic_3x\",\n \"mount\": \"rail_top\",\n \"integral\": true\n }\n ],\n \"stock\": {\n \"kind\": \"fold\",\n \"foldAxis\": \"left\"\n }\n },\n {\n \"id\": \"hk_g36k\",\n \"name\": \"HK G36K\",\n \"maker\": \"HK\",\n \"category\": \"rifle\",\n \"action\": {\n \"kind\": \"firearm\",\n \"caliber\": \"5_56x45\",\n \"rpm\": 750,\n \"modes\": [\n \"auto\",\n \"semi\"\n ],\n \"magazine\": 30,\n \"magazineOptions\": [\n 100\n ],\n \"reload\": 2.3,\n \"spreadDeg\": 0.6,\n \"bloomDeg\": 0.25,\n \"recoveryDegPerS\": 5,\n \"recoil\": [\n 1.03,\n 0.62\n ],\n \"range\": 400,\n \"family\": \"magazine\",\n \"timings\": {\n \"draw\": 0.35,\n \"reload\": 2.3,\n \"reloadEmpty\": 3,\n \"clear\": 1.2\n }\n },\n \"mass\": 3.3,\n \"dimensions\": {\n \"length\": 0.86,\n \"barrel\": 0.318,\n \"emptyMass\": 3.3,\n \"lengthCollapsed\": 0.615\n },\n \"archetype\": \"rifle_5_56\",\n \"sources\": [\n \"reference\",\n \"derived\",\n \"sdk\"\n ],\n \"mounts\": [\n {\n \"kind\": \"rail_top\",\n \"interfaces\": [\n \"integral\"\n ],\n \"sources\": [\n \"reference\"\n ]\n },\n {\n \"kind\": \"magazine\",\n \"interfaces\": [\n \"mag_box\"\n ],\n \"sources\": [\n \"gallery\"\n ]\n },\n {\n \"kind\": \"sling\",\n \"interfaces\": [\n \"swivel\"\n ],\n \"sources\": [\n \"derived\"\n ]\n }\n ],\n \"fitted\": [\n {\n \"id\": \"integral_optic_3x\",\n \"mount\": \"rail_top\",\n \"integral\": true\n }\n ],\n \"stock\": {\n \"kind\": \"fold\",\n \"foldAxis\": \"left\"\n }\n },\n {\n \"id\": \"hk_g36c\",\n \"name\": \"HK G36C\",\n \"maker\": \"HK\",\n \"category\": \"rifle\",\n \"action\": {\n \"kind\": \"firearm\",\n \"caliber\": \"5_56x45\",\n \"rpm\": 750,\n \"modes\": [\n \"auto\",\n \"semi\"\n ],\n \"magazine\": 30,\n \"magazineOptions\": [\n 100\n ],\n \"reload\": 2.3,\n \"spreadDeg\": 0.6,\n \"bloomDeg\": 0.25,\n \"recoveryDegPerS\": 5,\n \"recoil\": [\n 1.21,\n 0.72\n ],\n \"range\": 400,\n \"family\": \"magazine\",\n \"timings\": {\n \"draw\": 0.35,\n \"reload\": 2.3,\n \"reloadEmpty\": 3,\n \"clear\": 1.2\n }\n },\n \"mass\": 2.82,\n \"dimensions\": {\n \"length\": 0.72,\n \"barrel\": 0.228,\n \"emptyMass\": 2.82,\n \"lengthCollapsed\": 0.5\n },\n \"archetype\": \"rifle_5_56\",\n \"sources\": [\n \"reference\",\n \"derived\",\n \"sdk\"\n ],\n \"mounts\": [\n {\n \"kind\": \"rail_top\",\n \"interfaces\": [\n \"picatinny\"\n ],\n \"sources\": [\n \"gallery\"\n ]\n },\n {\n \"kind\": \"magazine\",\n \"interfaces\": [\n \"mag_box\"\n ],\n \"sources\": [\n \"gallery\"\n ]\n },\n {\n \"kind\": \"sling\",\n \"interfaces\": [\n \"swivel\"\n ],\n \"sources\": [\n \"derived\"\n ]\n }\n ],\n \"fitted\": [],\n \"stock\": {\n \"kind\": \"fold\",\n \"foldAxis\": \"left\"\n }\n },\n {\n \"id\": \"fn_m249\",\n \"name\": \"FN M249\",\n \"maker\": \"FN\",\n \"category\": \"machine_gun\",\n \"action\": {\n \"kind\": \"firearm\",\n \"caliber\": \"5_56x45\",\n \"rpm\": 850,\n \"modes\": [\n \"auto\"\n ],\n \"magazine\": 200,\n \"magazineOptions\": [\n 30\n ],\n \"reload\": 7.5,\n \"muzzleSpeed\": 915,\n \"spreadDeg\": 0.6,\n \"bloomDeg\": 0.25,\n \"recoveryDegPerS\": 5,\n \"recoil\": [\n 0.46,\n 0.28\n ],\n \"range\": 400,\n \"family\": \"belt\",\n \"timings\": {\n \"draw\": 0.35,\n \"reload\": 7.5,\n \"clear\": 1.2\n }\n },\n \"mass\": 7.1,\n \"dimensions\": {\n \"length\": 1.04,\n \"barrel\": 0.465,\n \"emptyMass\": 7.1\n },\n \"archetype\": \"rifle_5_56\",\n \"variantOf\": \"fn_minimi\",\n \"sources\": [\n \"reference\",\n \"derived\",\n \"sdk\"\n ],\n \"mounts\": [\n {\n \"kind\": \"rail_bottom\",\n \"interfaces\": [\n \"bipod_stud\"\n ],\n \"sources\": [\n \"gallery\"\n ]\n },\n {\n \"kind\": \"sling\",\n \"interfaces\": [\n \"swivel\"\n ],\n \"sources\": [\n \"derived\"\n ]\n },\n {\n \"kind\": \"feed\",\n \"interfaces\": [\n \"belt\"\n ],\n \"sources\": [\n \"derived\"\n ]\n }\n ],\n \"fitted\": [\n {\n \"id\": \"bipod\",\n \"mount\": \"rail_bottom\"\n }\n ]\n },\n {\n \"id\": \"fn_minimi_para\",\n \"name\": \"FN Minimi Para\",\n \"maker\": \"FN\",\n \"category\": \"machine_gun\",\n \"action\": {\n \"kind\": \"firearm\",\n \"caliber\": \"5_56x45\",\n \"rpm\": 850,\n \"modes\": [\n \"auto\"\n ],\n \"magazine\": 200,\n \"magazineOptions\": [\n 30\n ],\n \"reload\": 7.5,\n \"muzzleSpeed\": 915,\n \"spreadDeg\": 0.6,\n \"bloomDeg\": 0.25,\n \"recoveryDegPerS\": 5,\n \"recoil\": [\n 0.46,\n 0.28\n ],\n \"range\": 400,\n \"family\": \"belt\",\n \"timings\": {\n \"draw\": 0.35,\n \"reload\": 7.5,\n \"clear\": 1.2\n }\n },\n \"mass\": 7.1,\n \"dimensions\": {\n \"length\": 0.893,\n \"barrel\": 0.349,\n \"emptyMass\": 7.1,\n \"lengthCollapsed\": 0.766\n },\n \"archetype\": \"rifle_5_56\",\n \"variantOf\": \"fn_minimi\",\n \"sources\": [\n \"reference\",\n \"derived\",\n \"sdk\"\n ],\n \"mounts\": [\n {\n \"kind\": \"rail_bottom\",\n \"interfaces\": [\n \"bipod_stud\"\n ],\n \"sources\": [\n \"gallery\"\n ]\n },\n {\n \"kind\": \"sling\",\n \"interfaces\": [\n \"swivel\"\n ],\n \"sources\": [\n \"derived\"\n ]\n },\n {\n \"kind\": \"feed\",\n \"interfaces\": [\n \"belt\"\n ],\n \"sources\": [\n \"derived\"\n ]\n }\n ],\n \"fitted\": [\n {\n \"id\": \"bipod\",\n \"mount\": \"rail_bottom\"\n }\n ],\n \"stock\": {\n \"kind\": \"retract\"\n }\n },\n {\n \"id\": \"fn_mag\",\n \"name\": \"FN MAG\",\n \"maker\": \"FN\",\n \"category\": \"machine_gun\",\n \"action\": {\n \"kind\": \"firearm\",\n \"caliber\": \"7_62x51\",\n \"rpm\": 750,\n \"modes\": [\n \"auto\"\n ],\n \"magazine\": 100,\n \"reload\": 8.5,\n \"muzzleSpeed\": 840,\n \"spreadDeg\": 0.8,\n \"bloomDeg\": 0.35,\n \"recoveryDegPerS\": 4.5,\n \"recoil\": [\n 0.79,\n 0.42\n ],\n \"range\": 350,\n \"family\": \"belt\",\n \"timings\": {\n \"draw\": 0.35,\n \"reload\": 8.5,\n \"clear\": 1.2\n }\n },\n \"mass\": 11.79,\n \"dimensions\": {\n \"length\": 1.263,\n \"barrel\": 0.63,\n \"emptyMass\": 11.79\n },\n \"archetype\": \"rifle_7_62x39\",\n \"sources\": [\n \"reference\",\n \"derived\",\n \"sdk\"\n ],\n \"mounts\": [\n {\n \"kind\": \"rail_bottom\",\n \"interfaces\": [\n \"bipod_stud\"\n ],\n \"sources\": [\n \"gallery\"\n ]\n },\n {\n \"kind\": \"sling\",\n \"interfaces\": [\n \"swivel\"\n ],\n \"sources\": [\n \"derived\"\n ]\n },\n {\n \"kind\": \"feed\",\n \"interfaces\": [\n \"belt\"\n ],\n \"sources\": [\n \"derived\"\n ]\n }\n ],\n \"fitted\": [\n {\n \"id\": \"bipod\",\n \"mount\": \"rail_bottom\"\n }\n ]\n },\n {\n \"id\": \"rpk\",\n \"name\": \"RPK\",\n \"category\": \"machine_gun\",\n \"action\": {\n \"kind\": \"firearm\",\n \"caliber\": \"7_62x39\",\n \"rpm\": 600,\n \"modes\": [\n \"auto\",\n \"semi\"\n ],\n \"magazine\": 40,\n \"magazineOptions\": [\n 75\n ],\n \"reload\": 2.6,\n \"muzzleSpeed\": 745,\n \"spreadDeg\": 0.8,\n \"bloomDeg\": 0.35,\n \"recoveryDegPerS\": 4.5,\n \"recoil\": [\n 1.25,\n 0.67\n ],\n \"range\": 350,\n \"family\": \"magazine\",\n \"timings\": {\n \"draw\": 0.35,\n \"reload\": 2.6,\n \"reloadEmpty\": 3.4,\n \"clear\": 1.2\n },\n \"faultFactor\": 0.4\n },\n \"mass\": 4.8,\n \"dimensions\": {\n \"length\": 1.04,\n \"barrel\": 0.59,\n \"emptyMass\": 4.8\n },\n \"archetype\": \"rifle_7_62x39\",\n \"variantOf\": \"ak_47\",\n \"sources\": [\n \"reference\",\n \"derived\",\n \"sdk\"\n ],\n \"mounts\": [\n {\n \"kind\": \"muzzle\",\n \"interfaces\": [\n \"thread_14x1lh\"\n ],\n \"sources\": [\n \"derived\"\n ]\n },\n {\n \"kind\": \"rail_bottom\",\n \"interfaces\": [\n \"bipod_stud\"\n ],\n \"sources\": [\n \"gallery\"\n ]\n },\n {\n \"kind\": \"magazine\",\n \"interfaces\": [\n \"mag_curved\"\n ],\n \"sources\": [\n \"gallery\"\n ]\n },\n {\n \"kind\": \"sling\",\n \"interfaces\": [\n \"swivel\"\n ],\n \"sources\": [\n \"derived\"\n ]\n }\n ],\n \"fitted\": [\n {\n \"id\": \"bipod\",\n \"mount\": \"rail_bottom\"\n }\n ]\n },\n {\n \"id\": \"sig_mpx\",\n \"name\": \"SIG MPX\",\n \"category\": \"smg\",\n \"action\": {\n \"kind\": \"firearm\",\n \"caliber\": \"9x19\",\n \"rpm\": 850,\n \"modes\": [\n \"auto\",\n \"semi\"\n ],\n \"magazine\": 30,\n \"magazineOptions\": [\n 20,\n 35\n ],\n \"reload\": 2.6,\n \"spreadDeg\": 1.5,\n \"bloomDeg\": 0.35,\n \"recoveryDegPerS\": 6,\n \"recoil\": [\n 0.72,\n 0.4\n ],\n \"range\": 80,\n \"family\": \"magazine\",\n \"timings\": {\n \"draw\": 0.35,\n \"reload\": 2.6,\n \"clear\": 1.2\n }\n },\n \"mass\": 2.7,\n \"dimensions\": {\n \"length\": 0.61,\n \"barrel\": 0.203,\n \"emptyMass\": 2.7,\n \"lengthCollapsed\": 0.425\n },\n \"archetype\": \"smg_9mm\",\n \"sources\": [\n \"reference\",\n \"derived\",\n \"sdk\"\n ],\n \"mounts\": [\n {\n \"kind\": \"rail_top\",\n \"interfaces\": [\n \"picatinny\"\n ],\n \"sources\": [\n \"gallery\"\n ]\n },\n {\n \"kind\": \"rail_left\",\n \"interfaces\": [\n \"picatinny\"\n ],\n \"sources\": [\n \"gallery\"\n ]\n },\n {\n \"kind\": \"rail_right\",\n \"interfaces\": [\n \"picatinny\"\n ],\n \"sources\": [\n \"gallery\"\n ]\n },\n {\n \"kind\": \"rail_bottom\",\n \"interfaces\": [\n \"picatinny\"\n ],\n \"sources\": [\n \"gallery\"\n ]\n },\n {\n \"kind\": \"magazine\",\n \"interfaces\": [\n \"mag_box\"\n ],\n \"sources\": [\n \"gallery\"\n ]\n },\n {\n \"kind\": \"sling\",\n \"interfaces\": [\n \"swivel\"\n ],\n \"sources\": [\n \"derived\"\n ]\n }\n ],\n \"fitted\": [],\n \"stock\": {\n \"kind\": \"retract\"\n }\n },\n {\n \"id\": \"mg3\",\n \"name\": \"MG3\",\n \"category\": \"machine_gun\",\n \"action\": {\n \"kind\": \"firearm\",\n \"caliber\": \"7_62x51\",\n \"rpm\": 1100,\n \"modes\": [\n \"auto\"\n ],\n \"magazine\": 100,\n \"reload\": 8.5,\n \"muzzleSpeed\": 820,\n \"spreadDeg\": 0.8,\n \"bloomDeg\": 0.35,\n \"recoveryDegPerS\": 4.5,\n \"recoil\": [\n 0.77,\n 0.41\n ],\n \"range\": 350,\n \"family\": \"belt\",\n \"timings\": {\n \"draw\": 0.35,\n \"reload\": 8.5,\n \"clear\": 1.2\n }\n },\n \"mass\": 11.5,\n \"dimensions\": {\n \"length\": 1.225,\n \"barrel\": 0.565,\n \"emptyMass\": 11.5\n },\n \"archetype\": \"rifle_7_62x39\",\n \"sources\": [\n \"reference\",\n \"derived\",\n \"sdk\"\n ],\n \"mounts\": [\n {\n \"kind\": \"rail_bottom\",\n \"interfaces\": [\n \"bipod_stud\"\n ],\n \"sources\": [\n \"gallery\"\n ]\n },\n {\n \"kind\": \"sling\",\n \"interfaces\": [\n \"swivel\"\n ],\n \"sources\": [\n \"derived\"\n ]\n },\n {\n \"kind\": \"feed\",\n \"interfaces\": [\n \"belt\"\n ],\n \"sources\": [\n \"derived\"\n ]\n }\n ],\n \"fitted\": [\n {\n \"id\": \"bipod\",\n \"mount\": \"rail_bottom\"\n }\n ]\n },\n {\n \"id\": \"pp19_bizon\",\n \"name\": \"PP-19 Bizon\",\n \"category\": \"smg\",\n \"action\": {\n \"kind\": \"firearm\",\n \"caliber\": \"9x18\",\n \"rpm\": 680,\n \"modes\": [\n \"auto\",\n \"semi\"\n ],\n \"magazine\": 64,\n \"reload\": 2.5,\n \"muzzleSpeed\": 320,\n \"spreadDeg\": 1.5,\n \"bloomDeg\": 0.35,\n \"recoveryDegPerS\": 6,\n \"recoil\": [\n 0.58,\n 0.32\n ],\n \"range\": 80,\n \"family\": \"magazine\",\n \"timings\": {\n \"draw\": 0.35,\n \"reload\": 2.5,\n \"clear\": 1.2\n }\n },\n \"mass\": 2.1,\n \"dimensions\": {\n \"length\": 0.66,\n \"barrel\": 0.195,\n \"emptyMass\": 2.1,\n \"lengthCollapsed\": 0.425\n },\n \"archetype\": \"smg_9mm\",\n \"sources\": [\n \"reference\",\n \"derived\",\n \"sdk\"\n ],\n \"mounts\": [\n {\n \"kind\": \"magazine\",\n \"interfaces\": [\n \"mag_helical\"\n ],\n \"sources\": [\n \"gallery\"\n ]\n },\n {\n \"kind\": \"sling\",\n \"interfaces\": [\n \"swivel\"\n ],\n \"sources\": [\n \"derived\"\n ]\n }\n ],\n \"fitted\": [],\n \"stock\": {\n \"kind\": \"fold\",\n \"foldAxis\": \"left\"\n }\n },\n {\n \"id\": \"vz61\",\n \"name\": \"vz. 61 Škorpion\",\n \"category\": \"smg\",\n \"action\": {\n \"kind\": \"firearm\",\n \"caliber\": \"32acp\",\n \"rpm\": 850,\n \"modes\": [\n \"auto\",\n \"semi\"\n ],\n \"magazine\": 20,\n \"magazineOptions\": [\n 10\n ],\n \"reload\": 2.4,\n \"muzzleSpeed\": 320,\n \"spreadDeg\": 1.5,\n \"bloomDeg\": 0.35,\n \"recoveryDegPerS\": 6,\n \"recoil\": [\n 0.7,\n 0.39\n ],\n \"range\": 80,\n \"family\": \"magazine\",\n \"timings\": {\n \"draw\": 0.35,\n \"reload\": 2.4,\n \"clear\": 1.2\n }\n },\n \"mass\": 1.3,\n \"dimensions\": {\n \"length\": 0.517,\n \"barrel\": 0.115,\n \"emptyMass\": 1.3,\n \"lengthCollapsed\": 0.27\n },\n \"archetype\": \"smg_9mm\",\n \"sources\": [\n \"reference\",\n \"derived\",\n \"sdk\"\n ],\n \"mounts\": [\n {\n \"kind\": \"magazine\",\n \"interfaces\": [\n \"mag_curved\"\n ],\n \"sources\": [\n \"gallery\"\n ]\n },\n {\n \"kind\": \"sling\",\n \"interfaces\": [\n \"swivel\"\n ],\n \"sources\": [\n \"derived\"\n ]\n }\n ],\n \"fitted\": [],\n \"stock\": {\n \"kind\": \"fold\",\n \"foldAxis\": \"over\"\n }\n },\n {\n \"id\": \"m134\",\n \"name\": \"M134 Minigun\",\n \"category\": \"machine_gun\",\n \"action\": {\n \"kind\": \"firearm\",\n \"caliber\": \"7_62x51\",\n \"rpm\": 3000,\n \"modes\": [\n \"auto\"\n ],\n \"magazine\": 200,\n \"reload\": 8.5,\n \"muzzleSpeed\": 853,\n \"spin\": {\n \"upSeconds\": 0.5,\n \"holdSeconds\": 1\n },\n \"rpmRange\": [\n 2000,\n 6000\n ],\n \"spreadDeg\": 0.8,\n \"bloomDeg\": 0.35,\n \"recoveryDegPerS\": 4.5,\n \"recoil\": [\n 0.25,\n 0.13\n ],\n \"range\": 350,\n \"family\": \"belt\",\n \"timings\": {\n \"draw\": 0.35,\n \"reload\": 8.5,\n \"clear\": 1.2\n }\n },\n \"mass\": 39,\n \"dimensions\": {\n \"length\": 0.801,\n \"barrel\": 0.559,\n \"emptyMass\": 39,\n \"barrels\": 6,\n \"barrelMass\": 2\n },\n \"archetype\": \"rifle_7_62x39\",\n \"sources\": [\n \"reference\",\n \"derived\",\n \"sdk\"\n ],\n \"mounts\": [\n {\n \"kind\": \"underbarrel\",\n \"interfaces\": [\n \"tripod\"\n ],\n \"sources\": [\n \"reference\"\n ]\n },\n {\n \"kind\": \"sling\",\n \"interfaces\": [\n \"swivel\"\n ],\n \"sources\": [\n \"derived\"\n ]\n },\n {\n \"kind\": \"feed\",\n \"interfaces\": [\n \"belt\"\n ],\n \"sources\": [\n \"derived\"\n ]\n }\n ],\n \"fitted\": []\n },\n {\n \"id\": \"aks_74u\",\n \"name\": \"AKS-74U\",\n \"category\": \"rifle\",\n \"action\": {\n \"kind\": \"firearm\",\n \"caliber\": \"5_45x39\",\n \"rpm\": 700,\n \"modes\": [\n \"auto\",\n \"semi\"\n ],\n \"magazine\": 30,\n \"reload\": 2.6,\n \"muzzleSpeed\": 735,\n \"spreadDeg\": 0.6,\n \"bloomDeg\": 0.25,\n \"recoveryDegPerS\": 5,\n \"recoil\": [\n 0.66,\n 0.4\n ],\n \"range\": 400,\n \"family\": \"magazine\",\n \"timings\": {\n \"draw\": 0.35,\n \"reload\": 2.6,\n \"reloadEmpty\": 3.4,\n \"clear\": 1.2\n }\n },\n \"mass\": 2.7,\n \"dimensions\": {\n \"length\": 0.73,\n \"barrel\": 0.206,\n \"emptyMass\": 2.7,\n \"lengthCollapsed\": 0.49\n },\n \"archetype\": \"rifle_5_56\",\n \"variantOf\": \"ak_74\",\n \"sources\": [\n \"reference\",\n \"derived\",\n \"sdk\"\n ],\n \"mounts\": [\n {\n \"kind\": \"muzzle\",\n \"interfaces\": [\n \"fixed_muzzle_device\"\n ],\n \"sources\": [\n \"derived\"\n ]\n },\n {\n \"kind\": \"magazine\",\n \"interfaces\": [\n \"mag_curved\"\n ],\n \"sources\": [\n \"gallery\"\n ]\n },\n {\n \"kind\": \"sling\",\n \"interfaces\": [\n \"swivel\"\n ],\n \"sources\": [\n \"derived\"\n ]\n }\n ],\n \"fitted\": [\n {\n \"id\": \"muzzle_brake\",\n \"mount\": \"muzzle\"\n }\n ],\n \"stock\": {\n \"kind\": \"fold\",\n \"foldAxis\": \"left\"\n }\n },\n {\n \"id\": \"fn_scar_l\",\n \"name\": \"FN SCAR-L\",\n \"maker\": \"FN\",\n \"category\": \"dmr\",\n \"action\": {\n \"kind\": \"firearm\",\n \"caliber\": \"5_56x45\",\n \"rpm\": 625,\n \"modes\": [\n \"auto\",\n \"semi\"\n ],\n \"magazine\": 30,\n \"reload\": 2.6,\n \"muzzleSpeed\": 870,\n \"spreadDeg\": 0.25,\n \"bloomDeg\": 0.3,\n \"recoveryDegPerS\": 3,\n \"recoil\": [\n 1.43,\n 0.24\n ],\n \"range\": 800,\n \"family\": \"magazine\",\n \"timings\": {\n \"draw\": 0.35,\n \"reload\": 2.6,\n \"clear\": 1.2\n }\n },\n \"mass\": 3.29,\n \"dimensions\": {\n \"length\": 0.889,\n \"barrel\": 0.351,\n \"emptyMass\": 3.29,\n \"lengthCollapsed\": 0.635\n },\n \"archetype\": \"rifle_bolt_308\",\n \"variantOf\": \"fn_scar_h\",\n \"sources\": [\n \"reference\",\n \"derived\",\n \"sdk\"\n ],\n \"mounts\": [\n {\n \"kind\": \"rail_top\",\n \"interfaces\": [\n \"picatinny\"\n ],\n \"sources\": [\n \"gallery\"\n ]\n },\n {\n \"kind\": \"rail_left\",\n \"interfaces\": [\n \"picatinny\"\n ],\n \"sources\": [\n \"gallery\"\n ]\n },\n {\n \"kind\": \"rail_right\",\n \"interfaces\": [\n \"picatinny\"\n ],\n \"sources\": [\n \"gallery\"\n ]\n },\n {\n \"kind\": \"rail_bottom\",\n \"interfaces\": [\n \"picatinny\"\n ],\n \"sources\": [\n \"gallery\"\n ]\n },\n {\n \"kind\": \"magazine\",\n \"interfaces\": [\n \"mag_box\"\n ],\n \"sources\": [\n \"gallery\"\n ]\n },\n {\n \"kind\": \"sling\",\n \"interfaces\": [\n \"swivel\"\n ],\n \"sources\": [\n \"derived\"\n ]\n }\n ],\n \"fitted\": [\n {\n \"id\": \"acog_4x\",\n \"mount\": \"rail_top\"\n }\n ],\n \"stock\": {\n \"kind\": \"fold\",\n \"foldAxis\": \"right\"\n }\n },\n {\n \"id\": \"m1_garand\",\n \"name\": \"M1 Garand\",\n \"category\": \"rifle\",\n \"action\": {\n \"kind\": \"firearm\",\n \"caliber\": \"30_06\",\n \"rpm\": 120,\n \"modes\": [\n \"semi\"\n ],\n \"magazine\": 8,\n \"reload\": 2.2,\n \"muzzleSpeed\": 865,\n \"spreadDeg\": 0.8,\n \"bloomDeg\": 0.35,\n \"recoveryDegPerS\": 4.5,\n \"recoil\": [\n 2.28,\n 1.22\n ],\n \"range\": 350,\n \"family\": \"top_load_semi\",\n \"timings\": {\n \"draw\": 0.35,\n \"reload\": 2.2,\n \"clear\": 1.2\n }\n },\n \"mass\": 4.31,\n \"dimensions\": {\n \"length\": 1.1,\n \"barrel\": 0.61,\n \"emptyMass\": 4.31\n },\n \"archetype\": \"rifle_7_62x39\",\n \"variantOf\": \"sks\",\n \"sources\": [\n \"reference\",\n \"derived\",\n \"sdk\"\n ],\n \"mounts\": [\n {\n \"kind\": \"sling\",\n \"interfaces\": [\n \"swivel\"\n ],\n \"sources\": [\n \"derived\"\n ]\n }\n ],\n \"fitted\": []\n },\n {\n \"id\": \"accuracy_l96a1\",\n \"name\": \"Accuracy L96A1\",\n \"maker\": \"Accuracy\",\n \"category\": \"sniper\",\n \"action\": {\n \"kind\": \"firearm\",\n \"caliber\": \"7_62x51\",\n \"rpm\": 73.17,\n \"modes\": [\n \"bolt\"\n ],\n \"magazine\": 10,\n \"reload\": 3.2,\n \"muzzleSpeed\": 840,\n \"spreadDeg\": 0.25,\n \"bloomDeg\": 0.3,\n \"recoveryDegPerS\": 3,\n \"recoil\": [\n 1.64,\n 0.27\n ],\n \"range\": 800,\n \"family\": \"bolt_magazine\",\n \"timings\": {\n \"draw\": 0.35,\n \"reload\": 3.2,\n \"cycle\": 0.82,\n \"clear\": 1.2\n }\n },\n \"mass\": 6.5,\n \"dimensions\": {\n \"length\": 1.18,\n \"barrel\": 0.66,\n \"emptyMass\": 6.5\n },\n \"archetype\": \"rifle_bolt_308\",\n \"variantOf\": \"accuracy_awm\",\n \"sources\": [\n \"reference\",\n \"derived\",\n \"sdk\"\n ],\n \"mounts\": [\n {\n \"kind\": \"muzzle\",\n \"interfaces\": [\n \"fixed_muzzle_device\"\n ],\n \"sources\": [\n \"derived\"\n ]\n },\n {\n \"kind\": \"rail_top\",\n \"interfaces\": [\n \"dovetail\"\n ],\n \"sources\": [\n \"derived\"\n ]\n },\n {\n \"kind\": \"rail_bottom\",\n \"interfaces\": [\n \"bipod_stud\"\n ],\n \"sources\": [\n \"gallery\"\n ]\n },\n {\n \"kind\": \"magazine\",\n \"interfaces\": [\n \"mag_box\"\n ],\n \"sources\": [\n \"gallery\"\n ]\n },\n {\n \"kind\": \"sling\",\n \"interfaces\": [\n \"swivel\"\n ],\n \"sources\": [\n \"derived\"\n ]\n }\n ],\n \"fitted\": [\n {\n \"id\": \"muzzle_brake\",\n \"mount\": \"muzzle\"\n },\n {\n \"id\": \"scope_3_9x\",\n \"mount\": \"rail_top\"\n },\n {\n \"id\": \"bipod\",\n \"mount\": \"rail_bottom\"\n }\n ]\n },\n {\n \"id\": \"mossberg_590\",\n \"name\": \"Mossberg 590\",\n \"maker\": \"Mossberg\",\n \"category\": \"shotgun\",\n \"action\": {\n \"kind\": \"firearm\",\n \"caliber\": \"12ga_00buck\",\n \"rpm\": 120,\n \"modes\": [\n \"pump\"\n ],\n \"magazine\": 8,\n \"chamber\": 1,\n \"reload\": 0.55,\n \"perRound\": true,\n \"muzzleSpeed\": 400,\n \"spreadDeg\": 1,\n \"bloomDeg\": 0.5,\n \"recoveryDegPerS\": 3,\n \"pelletSpreadDeg\": 3,\n \"recoil\": [\n 3.62,\n 0.91\n ],\n \"range\": 40,\n \"family\": \"pump\",\n \"timings\": {\n \"draw\": 0.35,\n \"reload\": 0.55,\n \"perRound\": 0.55,\n \"cycle\": 0.5,\n \"clear\": 1.2\n }\n },\n \"mass\": 3.3,\n \"dimensions\": {\n \"length\": 1.003,\n \"barrel\": 0.508,\n \"emptyMass\": 3.3\n },\n \"archetype\": \"shotgun_pump_12\",\n \"variantOf\": \"mossberg_500\",\n \"sources\": [\n \"reference\",\n \"derived\",\n \"sdk\"\n ],\n \"mounts\": [\n {\n \"kind\": \"barrel\",\n \"interfaces\": [\n \"barrel_swap\"\n ],\n \"sources\": [\n \"derived\"\n ]\n },\n {\n \"kind\": \"sling\",\n \"interfaces\": [\n \"swivel\"\n ],\n \"sources\": [\n \"derived\"\n ]\n }\n ],\n \"fitted\": []\n },\n {\n \"id\": \"fn_m240b\",\n \"name\": \"FN M240B\",\n \"maker\": \"FN\",\n \"category\": \"machine_gun\",\n \"action\": {\n \"kind\": \"firearm\",\n \"caliber\": \"7_62x51\",\n \"rpm\": 750,\n \"modes\": [\n \"auto\"\n ],\n \"magazine\": 100,\n \"reload\": 8.5,\n \"muzzleSpeed\": 853,\n \"spreadDeg\": 0.8,\n \"bloomDeg\": 0.35,\n \"recoveryDegPerS\": 4.5,\n \"recoil\": [\n 0.77,\n 0.41\n ],\n \"range\": 350,\n \"family\": \"belt\",\n \"timings\": {\n \"draw\": 0.35,\n \"reload\": 8.5,\n \"clear\": 1.2\n }\n },\n \"mass\": 12.5,\n \"dimensions\": {\n \"length\": 1.245,\n \"barrel\": 0.63,\n \"emptyMass\": 12.5\n },\n \"archetype\": \"rifle_7_62x39\",\n \"sources\": [\n \"reference\",\n \"derived\",\n \"sdk\"\n ],\n \"mounts\": [\n {\n \"kind\": \"rail_top\",\n \"interfaces\": [\n \"picatinny\"\n ],\n \"sources\": [\n \"gallery\"\n ]\n },\n {\n \"kind\": \"rail_bottom\",\n \"interfaces\": [\n \"bipod_stud\"\n ],\n \"sources\": [\n \"gallery\"\n ]\n },\n {\n \"kind\": \"sling\",\n \"interfaces\": [\n \"swivel\"\n ],\n \"sources\": [\n \"derived\"\n ]\n },\n {\n \"kind\": \"feed\",\n \"interfaces\": [\n \"belt\"\n ],\n \"sources\": [\n \"derived\"\n ]\n }\n ],\n \"fitted\": [\n {\n \"id\": \"bipod\",\n \"mount\": \"rail_bottom\"\n }\n ]\n },\n {\n \"id\": \"sig_sauer_p320\",\n \"name\": \"SIG Sauer P320\",\n \"maker\": \"SIG Sauer\",\n \"category\": \"pistol\",\n \"action\": {\n \"kind\": \"firearm\",\n \"caliber\": \"9x19\",\n \"rpm\": 300,\n \"modes\": [\n \"semi\"\n ],\n \"magazine\": 17,\n \"reload\": 1.9,\n \"muzzleSpeed\": 350,\n \"spreadDeg\": 1,\n \"bloomDeg\": 0.6,\n \"recoveryDegPerS\": 4,\n \"recoil\": [\n 1.2,\n 0.4\n ],\n \"range\": 50,\n \"family\": \"pistol\",\n \"timings\": {\n \"draw\": 0.35,\n \"reload\": 1.9,\n \"clear\": 1.2\n },\n \"faultFactor\": 0.8\n },\n \"mass\": 0.83,\n \"dimensions\": {\n \"length\": 0.203,\n \"barrel\": 0.12,\n \"emptyMass\": 0.83\n },\n \"archetype\": \"pistol_9mm\",\n \"variantOf\": \"sig_sauer_p226\",\n \"sources\": [\n \"reference\",\n \"derived\",\n \"sdk\"\n ],\n \"mounts\": [\n {\n \"kind\": \"magazine\",\n \"interfaces\": [\n \"mag_pistol\"\n ],\n \"sources\": [\n \"derived\"\n ]\n }\n ],\n \"fitted\": []\n },\n {\n \"id\": \"hk_usp\",\n \"name\": \"HK USP\",\n \"maker\": \"HK\",\n \"category\": \"pistol\",\n \"action\": {\n \"kind\": \"firearm\",\n \"caliber\": \"9x19\",\n \"rpm\": 300,\n \"modes\": [\n \"semi\"\n ],\n \"magazine\": 15,\n \"reload\": 1.9,\n \"muzzleSpeed\": 350,\n \"spreadDeg\": 1,\n \"bloomDeg\": 0.6,\n \"recoveryDegPerS\": 4,\n \"recoil\": [\n 1.29,\n 0.43\n ],\n \"range\": 50,\n \"family\": \"pistol\",\n \"timings\": {\n \"draw\": 0.35,\n \"reload\": 1.9,\n \"clear\": 1.2\n },\n \"faultFactor\": 0.8\n },\n \"mass\": 0.77,\n \"dimensions\": {\n \"length\": 0.194,\n \"barrel\": 0.108,\n \"emptyMass\": 0.77\n },\n \"archetype\": \"pistol_9mm\",\n \"variantOf\": \"sig_sauer_p226\",\n \"sources\": [\n \"reference\",\n \"derived\",\n \"sdk\"\n ],\n \"mounts\": [\n {\n \"kind\": \"magazine\",\n \"interfaces\": [\n \"mag_pistol\"\n ],\n \"sources\": [\n \"derived\"\n ]\n }\n ],\n \"fitted\": []\n },\n {\n \"id\": \"walther_p99\",\n \"name\": \"Walther P99\",\n \"maker\": \"Walther\",\n \"category\": \"pistol\",\n \"action\": {\n \"kind\": \"firearm\",\n \"caliber\": \"9x19\",\n \"rpm\": 300,\n \"modes\": [\n \"semi\"\n ],\n \"magazine\": 15,\n \"reload\": 1.8,\n \"muzzleSpeed\": 375,\n \"spreadDeg\": 1,\n \"bloomDeg\": 0.6,\n \"recoveryDegPerS\": 4,\n \"recoil\": [\n 1.81,\n 0.6\n ],\n \"range\": 50,\n \"family\": \"pistol\",\n \"timings\": {\n \"draw\": 0.35,\n \"reload\": 1.8,\n \"clear\": 1.2\n },\n \"faultFactor\": 0.7\n },\n \"mass\": 0.63,\n \"dimensions\": {\n \"length\": 0.18,\n \"barrel\": 0.102,\n \"emptyMass\": 0.63\n },\n \"archetype\": \"pistol_9mm\",\n \"variantOf\": \"glock_17\",\n \"sources\": [\n \"reference\",\n \"derived\",\n \"sdk\"\n ],\n \"mounts\": [\n {\n \"kind\": \"magazine\",\n \"interfaces\": [\n \"mag_pistol\"\n ],\n \"sources\": [\n \"derived\"\n ]\n }\n ],\n \"fitted\": []\n },\n {\n \"id\": \"colt_python\",\n \"name\": \"Colt Python\",\n \"maker\": \"Colt\",\n \"category\": \"revolver\",\n \"action\": {\n \"kind\": \"firearm\",\n \"caliber\": \"357mag\",\n \"rpm\": 150,\n \"modes\": [\n \"single\"\n ],\n \"magazine\": 6,\n \"reload\": 2.4,\n \"muzzleSpeed\": 430,\n \"spreadDeg\": 0.8,\n \"bloomDeg\": 1,\n \"recoveryDegPerS\": 3,\n \"recoil\": [\n 3.13,\n 0.94\n ],\n \"range\": 60,\n \"family\": \"revolver\",\n \"timings\": {\n \"draw\": 0.35,\n \"reload\": 2.4,\n \"perRound\": 1,\n \"clear\": 1.2\n }\n },\n \"mass\": 1.23,\n \"dimensions\": {\n \"length\": 0.292,\n \"barrel\": 0.152,\n \"emptyMass\": 1.23\n },\n \"archetype\": \"revolver_357\",\n \"variantOf\": \"sw_686\",\n \"sources\": [\n \"reference\",\n \"derived\",\n \"sdk\"\n ],\n \"mounts\": [],\n \"fitted\": []\n },\n {\n \"id\": \"fn_ps90\",\n \"name\": \"FN PS90\",\n \"maker\": \"FN\",\n \"category\": \"smg\",\n \"action\": {\n \"kind\": \"firearm\",\n \"caliber\": \"5_7x28\",\n \"rpm\": 120,\n \"modes\": [\n \"semi\"\n ],\n \"magazine\": 50,\n \"reload\": 3,\n \"muzzleSpeed\": 715,\n \"spreadDeg\": 1.5,\n \"bloomDeg\": 0.35,\n \"recoveryDegPerS\": 6,\n \"recoil\": [\n 0.69,\n 0.38\n ],\n \"range\": 80,\n \"family\": \"top_magazine\",\n \"timings\": {\n \"draw\": 0.35,\n \"reload\": 3,\n \"clear\": 1.2\n }\n },\n \"mass\": 2.86,\n \"dimensions\": {\n \"length\": 0.668,\n \"barrel\": 0.407,\n \"emptyMass\": 2.86\n },\n \"archetype\": \"smg_9mm\",\n \"variantOf\": \"fn_p90\",\n \"sources\": [\n \"reference\",\n \"derived\",\n \"sdk\"\n ],\n \"mounts\": [\n {\n \"kind\": \"sling\",\n \"interfaces\": [\n \"swivel\"\n ],\n \"sources\": [\n \"derived\"\n ]\n }\n ],\n \"fitted\": []\n },\n {\n \"id\": \"bt_mp9\",\n \"name\": \"B&T MP9\",\n \"maker\": \"B&T\",\n \"category\": \"smg\",\n \"action\": {\n \"kind\": \"firearm\",\n \"caliber\": \"9x19\",\n \"rpm\": 1100,\n \"modes\": [\n \"auto\",\n \"semi\"\n ],\n \"magazine\": 30,\n \"reload\": 2.4,\n \"muzzleSpeed\": 400,\n \"spreadDeg\": 1.5,\n \"bloomDeg\": 0.35,\n \"recoveryDegPerS\": 6,\n \"recoil\": [\n 1.66,\n 0.92\n ],\n \"range\": 80,\n \"family\": \"magazine\",\n \"timings\": {\n \"draw\": 0.35,\n \"reload\": 2.4,\n \"clear\": 1.2\n }\n },\n \"mass\": 1.4,\n \"dimensions\": {\n \"length\": 0.523,\n \"barrel\": 0.13,\n \"emptyMass\": 1.4,\n \"lengthCollapsed\": 0.303\n },\n \"archetype\": \"smg_9mm\",\n \"variantOf\": \"uzi\",\n \"sources\": [\n \"reference\",\n \"derived\",\n \"sdk\"\n ],\n \"mounts\": [\n {\n \"kind\": \"rail_top\",\n \"interfaces\": [\n \"picatinny\"\n ],\n \"sources\": [\n \"gallery\"\n ]\n },\n {\n \"kind\": \"magazine\",\n \"interfaces\": [\n \"mag_box\"\n ],\n \"sources\": [\n \"gallery\"\n ]\n },\n {\n \"kind\": \"sling\",\n \"interfaces\": [\n \"swivel\"\n ],\n \"sources\": [\n \"derived\"\n ]\n }\n ],\n \"fitted\": [],\n \"stock\": {\n \"kind\": \"fold\",\n \"foldAxis\": \"right\"\n }\n },\n {\n \"id\": \"mp40\",\n \"name\": \"MP40\",\n \"category\": \"smg\",\n \"action\": {\n \"kind\": \"firearm\",\n \"caliber\": \"9x19\",\n \"rpm\": 550,\n \"modes\": [\n \"auto\",\n \"semi\"\n ],\n \"magazine\": 32,\n \"reload\": 2.9,\n \"spreadDeg\": 1.5,\n \"bloomDeg\": 0.35,\n \"recoveryDegPerS\": 6,\n \"recoil\": [\n 0.48,\n 0.27\n ],\n \"range\": 80,\n \"family\": \"magazine\",\n \"timings\": {\n \"draw\": 0.35,\n \"reload\": 2.9,\n \"clear\": 1.2\n }\n },\n \"mass\": 4,\n \"dimensions\": {\n \"length\": 0.833,\n \"barrel\": 0.251,\n \"emptyMass\": 4,\n \"lengthCollapsed\": 0.63\n },\n \"archetype\": \"smg_9mm\",\n \"variantOf\": \"thompson_m1a1\",\n \"sources\": [\n \"reference\",\n \"derived\",\n \"sdk\"\n ],\n \"mounts\": [\n {\n \"kind\": \"magazine\",\n \"interfaces\": [\n \"mag_box\"\n ],\n \"sources\": [\n \"gallery\"\n ]\n },\n {\n \"kind\": \"sling\",\n \"interfaces\": [\n \"swivel\"\n ],\n \"sources\": [\n \"derived\"\n ]\n }\n ],\n \"fitted\": [],\n \"stock\": {\n \"kind\": \"fold\",\n \"foldAxis\": \"under\"\n }\n },\n {\n \"id\": \"famas\",\n \"name\": \"FAMAS\",\n \"category\": \"rifle\",\n \"action\": {\n \"kind\": \"firearm\",\n \"caliber\": \"5_56x45\",\n \"rpm\": 1000,\n \"modes\": [\n \"auto\",\n \"semi\"\n ],\n \"magazine\": 25,\n \"reload\": 2.8,\n \"muzzleSpeed\": 960,\n \"spreadDeg\": 0.6,\n \"bloomDeg\": 0.25,\n \"recoveryDegPerS\": 5,\n \"recoil\": [\n 0.99,\n 0.6\n ],\n \"range\": 400,\n \"family\": \"magazine\",\n \"timings\": {\n \"draw\": 0.35,\n \"reload\": 2.8,\n \"reloadEmpty\": 3.4,\n \"clear\": 1.2\n }\n },\n \"mass\": 3.61,\n \"dimensions\": {\n \"length\": 0.757,\n \"barrel\": 0.488,\n \"emptyMass\": 3.61\n },\n \"archetype\": \"rifle_5_56\",\n \"variantOf\": \"steyr_aug_a1\",\n \"sources\": [\n \"reference\",\n \"derived\",\n \"sdk\"\n ],\n \"mounts\": [\n {\n \"kind\": \"magazine\",\n \"interfaces\": [\n \"mag_box\"\n ],\n \"sources\": [\n \"derived\"\n ]\n },\n {\n \"kind\": \"sling\",\n \"interfaces\": [\n \"swivel\"\n ],\n \"sources\": [\n \"derived\"\n ]\n }\n ],\n \"fitted\": []\n },\n {\n \"id\": \"iwi_tavor\",\n \"name\": \"IWI Tavor\",\n \"maker\": \"IWI\",\n \"category\": \"rifle\",\n \"action\": {\n \"kind\": \"firearm\",\n \"caliber\": \"5_56x45\",\n \"rpm\": 850,\n \"modes\": [\n \"auto\",\n \"semi\"\n ],\n \"magazine\": 30,\n \"reload\": 2.8,\n \"muzzleSpeed\": 910,\n \"spreadDeg\": 0.6,\n \"bloomDeg\": 0.25,\n \"recoveryDegPerS\": 5,\n \"recoil\": [\n 0.98,\n 0.59\n ],\n \"range\": 400,\n \"family\": \"magazine\",\n \"timings\": {\n \"draw\": 0.35,\n \"reload\": 2.8,\n \"reloadEmpty\": 3.4,\n \"clear\": 1.2\n }\n },\n \"mass\": 3.27,\n \"dimensions\": {\n \"length\": 0.72,\n \"barrel\": 0.46,\n \"emptyMass\": 3.27\n },\n \"archetype\": \"rifle_5_56\",\n \"variantOf\": \"steyr_aug_a1\",\n \"sources\": [\n \"reference\",\n \"derived\",\n \"sdk\"\n ],\n \"mounts\": [\n {\n \"kind\": \"rail_top\",\n \"interfaces\": [\n \"picatinny\"\n ],\n \"sources\": [\n \"gallery\"\n ]\n },\n {\n \"kind\": \"magazine\",\n \"interfaces\": [\n \"mag_box\"\n ],\n \"sources\": [\n \"derived\"\n ]\n },\n {\n \"kind\": \"sling\",\n \"interfaces\": [\n \"swivel\"\n ],\n \"sources\": [\n \"derived\"\n ]\n }\n ],\n \"fitted\": []\n },\n {\n \"id\": \"l85a2\",\n \"name\": \"L85A2\",\n \"category\": \"rifle\",\n \"action\": {\n \"kind\": \"firearm\",\n \"caliber\": \"5_56x45\",\n \"rpm\": 700,\n \"modes\": [\n \"auto\",\n \"semi\"\n ],\n \"magazine\": 30,\n \"reload\": 2.8,\n \"muzzleSpeed\": 940,\n \"spreadDeg\": 0.6,\n \"bloomDeg\": 0.25,\n \"recoveryDegPerS\": 5,\n \"recoil\": [\n 0.9,\n 0.54\n ],\n \"range\": 400,\n \"family\": \"magazine\",\n \"timings\": {\n \"draw\": 0.35,\n \"reload\": 2.8,\n \"reloadEmpty\": 3.4,\n \"clear\": 1.2\n }\n },\n \"mass\": 3.82,\n \"dimensions\": {\n \"length\": 0.785,\n \"barrel\": 0.518,\n \"emptyMass\": 3.82\n },\n \"archetype\": \"rifle_5_56\",\n \"variantOf\": \"steyr_aug_a1\",\n \"sources\": [\n \"reference\",\n \"derived\",\n \"sdk\"\n ],\n \"mounts\": [\n {\n \"kind\": \"rail_top\",\n \"interfaces\": [\n \"picatinny\"\n ],\n \"sources\": [\n \"gallery\"\n ]\n },\n {\n \"kind\": \"magazine\",\n \"interfaces\": [\n \"mag_box\"\n ],\n \"sources\": [\n \"derived\"\n ]\n },\n {\n \"kind\": \"sling\",\n \"interfaces\": [\n \"swivel\"\n ],\n \"sources\": [\n \"derived\"\n ]\n }\n ],\n \"fitted\": []\n },\n {\n \"id\": \"winchester_1887\",\n \"name\": \"Winchester 1887\",\n \"maker\": \"Winchester\",\n \"category\": \"hunting\",\n \"action\": {\n \"kind\": \"firearm\",\n \"caliber\": \"12ga_00buck\",\n \"rpm\": 109.09,\n \"modes\": [\n \"lever\"\n ],\n \"magazine\": 5,\n \"reload\": 0.6,\n \"perRound\": true,\n \"spreadDeg\": 0.25,\n \"bloomDeg\": 0.3,\n \"recoveryDegPerS\": 3,\n \"recoil\": [\n 2.33,\n 0.39\n ],\n \"range\": 800,\n \"family\": \"lever\",\n \"timings\": {\n \"draw\": 0.35,\n \"reload\": 0.6,\n \"perRound\": 0.6,\n \"cycle\": 0.55,\n \"clear\": 1.2\n }\n },\n \"mass\": 3.6,\n \"dimensions\": {\n \"length\": 1.016,\n \"barrel\": 0.508,\n \"emptyMass\": 3.6\n },\n \"archetype\": \"rifle_bolt_308\",\n \"variantOf\": \"winchester_1894\",\n \"sources\": [\n \"reference\",\n \"derived\",\n \"sdk\"\n ],\n \"mounts\": [\n {\n \"kind\": \"sling\",\n \"interfaces\": [\n \"swivel\"\n ],\n \"sources\": [\n \"derived\"\n ]\n }\n ],\n \"fitted\": []\n },\n {\n \"id\": \"ppsh_41\",\n \"name\": \"PPSh-41\",\n \"category\": \"smg\",\n \"action\": {\n \"kind\": \"firearm\",\n \"caliber\": \"7_62x25\",\n \"rpm\": 1250,\n \"modes\": [\n \"auto\",\n \"semi\"\n ],\n \"magazine\": 71,\n \"magazineOptions\": [\n 35\n ],\n \"reload\": 2.9,\n \"muzzleSpeed\": 488,\n \"spreadDeg\": 1.5,\n \"bloomDeg\": 0.35,\n \"recoveryDegPerS\": 6,\n \"recoil\": [\n 0.7,\n 0.39\n ],\n \"range\": 80,\n \"family\": \"magazine\",\n \"timings\": {\n \"draw\": 0.35,\n \"reload\": 2.9,\n \"clear\": 1.2\n }\n },\n \"mass\": 3.63,\n \"dimensions\": {\n \"length\": 0.843,\n \"barrel\": 0.269,\n \"emptyMass\": 3.63\n },\n \"archetype\": \"smg_9mm\",\n \"variantOf\": \"thompson_m1a1\",\n \"sources\": [\n \"reference\",\n \"derived\",\n \"sdk\"\n ],\n \"mounts\": [\n {\n \"kind\": \"magazine\",\n \"interfaces\": [\n \"mag_drum\"\n ],\n \"sources\": [\n \"gallery\"\n ]\n },\n {\n \"kind\": \"sling\",\n \"interfaces\": [\n \"swivel\"\n ],\n \"sources\": [\n \"derived\"\n ]\n }\n ],\n \"fitted\": []\n },\n {\n \"id\": \"mauser_kar98k\",\n \"name\": \"Mauser Kar98k\",\n \"maker\": \"Mauser\",\n \"category\": \"sniper\",\n \"action\": {\n \"kind\": \"firearm\",\n \"caliber\": \"7_92x57\",\n \"rpm\": 73.17,\n \"modes\": [\n \"bolt\"\n ],\n \"magazine\": 5,\n \"reload\": 2.4,\n \"muzzleSpeed\": 760,\n \"spreadDeg\": 0.25,\n \"bloomDeg\": 0.3,\n \"recoveryDegPerS\": 3,\n \"recoil\": [\n 2.84,\n 0.47\n ],\n \"range\": 800,\n \"family\": \"bolt\",\n \"timings\": {\n \"draw\": 0.35,\n \"reload\": 2.4,\n \"cycle\": 0.82,\n \"clear\": 1.2\n }\n },\n \"mass\": 3.7,\n \"dimensions\": {\n \"length\": 1.11,\n \"barrel\": 0.6,\n \"emptyMass\": 3.7\n },\n \"archetype\": \"rifle_bolt_308\",\n \"variantOf\": \"mosin_nagant_91_30\",\n \"sources\": [\n \"reference\",\n \"derived\",\n \"sdk\"\n ],\n \"mounts\": [\n {\n \"kind\": \"sling\",\n \"interfaces\": [\n \"swivel\"\n ],\n \"sources\": [\n \"derived\"\n ]\n }\n ],\n \"fitted\": []\n },\n {\n \"id\": \"mg42\",\n \"name\": \"MG42\",\n \"category\": \"machine_gun\",\n \"action\": {\n \"kind\": \"firearm\",\n \"caliber\": \"7_92x57\",\n \"rpm\": 1200,\n \"modes\": [\n \"auto\"\n ],\n \"magazine\": 50,\n \"reload\": 8.5,\n \"muzzleSpeed\": 740,\n \"spreadDeg\": 0.8,\n \"bloomDeg\": 0.35,\n \"recoveryDegPerS\": 4.5,\n \"recoil\": [\n 0.75,\n 0.4\n ],\n \"range\": 350,\n \"family\": \"belt\",\n \"timings\": {\n \"draw\": 0.35,\n \"reload\": 8.5,\n \"clear\": 1.2\n },\n \"faultFactor\": 1.3\n },\n \"mass\": 11.6,\n \"dimensions\": {\n \"length\": 1.22,\n \"barrel\": 0.53,\n \"emptyMass\": 11.6\n },\n \"archetype\": \"rifle_7_62x39\",\n \"variantOf\": \"m60\",\n \"sources\": [\n \"reference\",\n \"derived\",\n \"sdk\"\n ],\n \"mounts\": [\n {\n \"kind\": \"sling\",\n \"interfaces\": [\n \"swivel\"\n ],\n \"sources\": [\n \"derived\"\n ]\n }\n ],\n \"fitted\": []\n },\n {\n \"id\": \"vss_vintorez\",\n \"name\": \"VSS Vintorez\",\n \"category\": \"dmr\",\n \"action\": {\n \"kind\": \"firearm\",\n \"caliber\": \"9x39\",\n \"rpm\": 850,\n \"modes\": [\n \"auto\",\n \"semi\"\n ],\n \"magazine\": 10,\n \"magazineOptions\": [\n 20,\n 30\n ],\n \"reload\": 2.6,\n \"muzzleSpeed\": 295,\n \"noise\": 75,\n \"spreadDeg\": 0.8,\n \"bloomDeg\": 0.35,\n \"recoveryDegPerS\": 4.5,\n \"recoil\": [\n 0.73,\n 0.39\n ],\n \"range\": 350,\n \"family\": \"magazine\",\n \"timings\": {\n \"draw\": 0.35,\n \"reload\": 2.6,\n \"reloadEmpty\": 3.4,\n \"clear\": 1.2\n }\n },\n \"mass\": 2.6,\n \"dimensions\": {\n \"length\": 0.894,\n \"barrel\": 0.2,\n \"emptyMass\": 2.6\n },\n \"archetype\": \"rifle_7_62x39\",\n \"variantOf\": \"svd_dragunov\",\n \"sources\": [\n \"reference\",\n \"derived\",\n \"sdk\"\n ],\n \"mounts\": [\n {\n \"kind\": \"muzzle\",\n \"interfaces\": [\n \"integral\"\n ],\n \"sources\": [\n \"reference\"\n ]\n },\n {\n \"kind\": \"sling\",\n \"interfaces\": [\n \"swivel\"\n ],\n \"sources\": [\n \"derived\"\n ]\n }\n ],\n \"fitted\": [\n {\n \"id\": \"integral_suppressor\",\n \"mount\": \"muzzle\",\n \"integral\": true\n }\n ]\n }\n]\n","[\n {\n \"id\": \"rpg_7\",\n \"name\": \"RPG-7\",\n \"category\": \"launcher\",\n \"action\": {\n \"kind\": \"launcher\",\n \"projectile\": \"pg7v\",\n \"magazine\": 1,\n \"reload\": 4.5,\n \"timings\": {\n \"draw\": 0.35,\n \"reload\": 4.5,\n \"clear\": 1.2\n },\n \"family\": \"rocket\",\n \"speed\": 117,\n \"minArmDistance\": 10,\n \"backblast\": 5,\n \"backblastHalfAngleDeg\": 19,\n \"recoil\": [\n 4,\n 1\n ]\n },\n \"mass\": 6.3,\n \"dimensions\": {\n \"length\": 0.95,\n \"barrel\": 0.95,\n \"emptyMass\": 6.3\n },\n \"archetype\": \"shotgun_pump_12\",\n \"sources\": [\n \"gallery\",\n \"arsenal\",\n \"reference\",\n \"derived\"\n ]\n },\n {\n \"id\": \"m72_law\",\n \"name\": \"M72 LAW\",\n \"category\": \"launcher\",\n \"action\": {\n \"kind\": \"launcher\",\n \"projectile\": \"m72_66mm\",\n \"magazine\": 1,\n \"reload\": 1.15,\n \"timings\": {\n \"draw\": 0.35,\n \"reload\": 1.15,\n \"clear\": 1.2\n },\n \"family\": \"rocket\",\n \"disposable\": true,\n \"speed\": 145,\n \"minArmDistance\": 10,\n \"backblast\": 5,\n \"backblastHalfAngleDeg\": 19,\n \"recoil\": [\n 2.75,\n 0.69\n ]\n },\n \"mass\": 2.5,\n \"dimensions\": {\n \"length\": 0.881,\n \"barrel\": 0.881,\n \"emptyMass\": 2.5\n },\n \"archetype\": \"shotgun_pump_12\",\n \"sources\": [\n \"gallery\",\n \"reference\",\n \"derived\"\n ]\n },\n {\n \"id\": \"at4\",\n \"name\": \"AT4\",\n \"category\": \"launcher\",\n \"action\": {\n \"kind\": \"launcher\",\n \"projectile\": \"at4_84mm\",\n \"magazine\": 1,\n \"reload\": 1.15,\n \"timings\": {\n \"draw\": 0.35,\n \"reload\": 1.15,\n \"clear\": 1.2\n },\n \"family\": \"rocket\",\n \"disposable\": true,\n \"speed\": 285,\n \"minArmDistance\": 10,\n \"backblast\": 5,\n \"backblastHalfAngleDeg\": 19,\n \"recoil\": [\n 3.25,\n 0.81\n ]\n },\n \"mass\": 6.7,\n \"dimensions\": {\n \"length\": 1.02,\n \"barrel\": 1.02,\n \"emptyMass\": 6.7\n },\n \"archetype\": \"shotgun_pump_12\",\n \"sources\": [\n \"gallery\",\n \"reference\",\n \"derived\"\n ]\n },\n {\n \"id\": \"carl_gustaf_m4\",\n \"name\": \"Carl Gustaf M4\",\n \"category\": \"launcher\",\n \"action\": {\n \"kind\": \"launcher\",\n \"projectile\": \"carl_gustaf_84mm\",\n \"magazine\": 1,\n \"reload\": 1.05,\n \"timings\": {\n \"draw\": 0.35,\n \"reload\": 1.05,\n \"clear\": 1.2\n },\n \"family\": \"rocket\",\n \"speed\": 255,\n \"minArmDistance\": 10,\n \"backblast\": 5,\n \"backblastHalfAngleDeg\": 19,\n \"recoil\": [\n 3.5,\n 0.87\n ]\n },\n \"mass\": 6.6,\n \"dimensions\": {\n \"length\": 0.95,\n \"barrel\": 0.95,\n \"emptyMass\": 6.6\n },\n \"archetype\": \"shotgun_pump_12\",\n \"sources\": [\n \"gallery\",\n \"reference\",\n \"derived\"\n ]\n },\n {\n \"id\": \"m2_flamethrower\",\n \"name\": \"M2 flamethrower\",\n \"category\": \"launcher\",\n \"action\": {\n \"kind\": \"flame\",\n \"temperature\": 900,\n \"radius\": 0.6,\n \"range\": 6,\n \"fuelPerSecond\": 1,\n \"fuel\": 9,\n \"cone\": true,\n \"noise\": 20,\n \"family\": \"flame\",\n \"timings\": {\n \"draw\": 0.35,\n \"reload\": 1.1,\n \"clear\": 1.2\n }\n },\n \"mass\": 32,\n \"dimensions\": {\n \"length\": 1,\n \"barrel\": 0.62,\n \"emptyMass\": 32\n },\n \"archetype\": \"flamethrower\",\n \"sources\": [\n \"gallery\",\n \"sdk\",\n \"derived\"\n ]\n },\n {\n \"id\": \"improvised_flamethrower\",\n \"name\": \"Improvised flamethrower\",\n \"category\": \"launcher\",\n \"action\": {\n \"kind\": \"flame\",\n \"temperature\": 900,\n \"radius\": 0.6,\n \"range\": 3.6,\n \"fuelPerSecond\": 1,\n \"fuel\": 5,\n \"cone\": true,\n \"noise\": 20,\n \"family\": \"flame\",\n \"timings\": {\n \"draw\": 0.35,\n \"reload\": 1.1,\n \"clear\": 1.2\n }\n },\n \"mass\": 6,\n \"dimensions\": {\n \"length\": 0.8,\n \"barrel\": 0.66,\n \"emptyMass\": 6\n },\n \"archetype\": \"flamethrower\",\n \"sources\": [\n \"gallery\",\n \"sdk\",\n \"derived\"\n ]\n },\n {\n \"id\": \"m203\",\n \"name\": \"M203 grenade launcher\",\n \"category\": \"launcher\",\n \"action\": {\n \"kind\": \"launcher\",\n \"projectile\": \"m79_40mm\",\n \"magazine\": 1,\n \"reload\": 2,\n \"timings\": {\n \"draw\": 0.35,\n \"reload\": 2,\n \"clear\": 1.2\n },\n \"family\": \"underbarrel\",\n \"speed\": 76,\n \"minArmDistance\": 10,\n \"backblast\": 0,\n \"recoil\": [\n 4.5,\n 1.2\n ]\n },\n \"mass\": 1.59,\n \"dimensions\": {\n \"length\": 0.38,\n \"barrel\": 0.305,\n \"emptyMass\": 1.36\n },\n \"archetype\": \"shotgun_double_12\",\n \"tags\": [\n \"underbarrel\"\n ],\n \"sources\": [\n \"arsenal\",\n \"reference\",\n \"derived\"\n ]\n },\n {\n \"id\": \"gp_25\",\n \"name\": \"GP-25 grenade launcher\",\n \"category\": \"launcher\",\n \"action\": {\n \"kind\": \"launcher\",\n \"projectile\": \"vog_25\",\n \"magazine\": 1,\n \"reload\": 2,\n \"timings\": {\n \"draw\": 0.35,\n \"reload\": 2,\n \"clear\": 1.2\n },\n \"family\": \"underbarrel\",\n \"speed\": 76,\n \"minArmDistance\": 10,\n \"backblast\": 0,\n \"recoil\": [\n 4.5,\n 1.2\n ]\n },\n \"mass\": 1.73,\n \"dimensions\": {\n \"length\": 0.323,\n \"barrel\": 0.26,\n \"emptyMass\": 1.5\n },\n \"archetype\": \"shotgun_double_12\",\n \"tags\": [\n \"underbarrel\"\n ],\n \"sources\": [\n \"arsenal\",\n \"reference\",\n \"derived\"\n ]\n },\n {\n \"id\": \"ag36\",\n \"name\": \"AG36 grenade launcher\",\n \"category\": \"launcher\",\n \"action\": {\n \"kind\": \"launcher\",\n \"projectile\": \"m79_40mm\",\n \"magazine\": 1,\n \"reload\": 2,\n \"timings\": {\n \"draw\": 0.35,\n \"reload\": 2,\n \"clear\": 1.2\n },\n \"family\": \"underbarrel\",\n \"speed\": 76,\n \"minArmDistance\": 10,\n \"backblast\": 0,\n \"recoil\": [\n 4.5,\n 1.2\n ]\n },\n \"mass\": 1.73,\n \"dimensions\": {\n \"length\": 0.35,\n \"barrel\": 0.28,\n \"emptyMass\": 1.5\n },\n \"archetype\": \"shotgun_double_12\",\n \"tags\": [\n \"underbarrel\"\n ],\n \"sources\": [\n \"arsenal\",\n \"reference\",\n \"derived\"\n ]\n },\n {\n \"id\": \"m32_mgl\",\n \"name\": \"M32 multiple grenade launcher (Milkor MGL)\",\n \"category\": \"launcher\",\n \"action\": {\n \"kind\": \"launcher\",\n \"projectile\": \"m79_40mm\",\n \"magazine\": 6,\n \"reload\": 9.2,\n \"timings\": {\n \"draw\": 0.35,\n \"reload\": 9.2,\n \"clear\": 1.2\n },\n \"family\": \"revolver\",\n \"speed\": 75,\n \"minArmDistance\": 10,\n \"backblast\": 0,\n \"recoil\": [\n 2.25,\n 0.6\n ]\n },\n \"mass\": 6.68,\n \"dimensions\": {\n \"length\": 0.778,\n \"lengthCollapsed\": 0.565,\n \"barrel\": 0.3,\n \"emptyMass\": 5.3\n },\n \"archetype\": \"shotgun_double_12\",\n \"stock\": {\n \"kind\": \"fold\",\n \"foldAxis\": \"over\"\n },\n \"sources\": [\n \"reference\",\n \"derived\"\n ]\n }\n]\n","import type { AttachmentDef, AttachmentInstall, FittedAttachment, MountDef, MountKind } from './attachment-types'\nimport type { CaliberDef, WeaponDef } from './types'\n\nexport type FitRefusal = 'no_mount' | 'interface' | 'caliber' | 'category' | 'occupied' | 'blocked' | 'rejected'\n\nexport type CanFit = { readonly ok: true; readonly mount: MountKind } | { readonly ok: false; readonly reason: FitRefusal }\n\n/** What a game adds to the rule: false keeps the accessory off the weapon whatever the mounts say. */\nexport type IsCompatible = (def: WeaponDef, attachment: AttachmentDef, fitted: readonly FittedAttachment[]) => boolean\n\nexport interface CanFitContext {\n readonly caliber: CaliberDef | null\n readonly catalogue: ReadonlyMap<string, AttachmentDef>\n readonly isCompatible?: IsCompatible\n}\n\nconst INSTALL_RANK: Readonly<Record<AttachmentInstall, number>> = { field: 0, tool: 1, bench: 2 }\n\n/** Whether what is at hand (`field`: the hands, `tool`: a tool, `bench`: a bench) is enough to put the accessory on or take it off. */\nexport const canInstallWith = (available: AttachmentInstall, needed: AttachmentInstall): boolean => INSTALL_RANK[available] >= INSTALL_RANK[needed]\n\nconst muzzleEnergyOf = (def: WeaponDef, caliber: CaliberDef): number => {\n const speed = def.action.kind === 'firearm' ? def.action.muzzleSpeed ?? caliber.muzzleSpeed * (def.action.barrel ?? 1) : caliber.muzzleSpeed\n return 0.5 * (caliber.bulletGrams / 1000) * speed * speed\n}\n\nconst caliberRefusal = (def: WeaponDef, attachment: AttachmentDef, caliber: CaliberDef | null): boolean => {\n const limit = attachment.calibers\n if (!limit) return false\n if (!caliber) return true\n if (limit.ids && !limit.ids.includes(caliber.id)) return true\n if (limit.maxDiameter !== undefined && caliber.diameter > limit.maxDiameter) return true\n return limit.maxEnergy !== undefined && muzzleEnergyOf(def, caliber) > limit.maxEnergy\n}\n\nconst candidatesOf = (def: WeaponDef, attachment: AttachmentDef, mount?: MountKind): MountDef[] =>\n (def.mounts ?? []).filter((place) => attachment.mounts.includes(place.kind) && (mount === undefined || place.kind === mount))\n\nconst isBlocked = (place: MountKind, attachment: AttachmentDef, fitted: readonly FittedAttachment[], catalogue: ReadonlyMap<string, AttachmentDef>): boolean => {\n if (fitted.some((part) => catalogue.get(part.id)?.blocks?.includes(place))) return true\n return fitted.some((part) => attachment.blocks?.includes(part.mount))\n}\n\n/**\n * Whether the accessory goes on the weapon, and where. Order of the checks: a place of its kind (`no_mount`), an interface the place takes\n * (`interface`), the calibre limits of a suppressor (`caliber`), the weapon categories (`category`), the place being free (`occupied`),\n * something else covering it (`blocked`), then the game's own `isCompatible` (`rejected`).\n */\nexport const canFit = (def: WeaponDef, attachment: AttachmentDef, fitted: readonly FittedAttachment[], context: CanFitContext, mount?: MountKind): CanFit => {\n const places = candidatesOf(def, attachment, mount)\n if (places.length === 0) return { ok: false, reason: 'no_mount' }\n const matching = places.filter((place) => place.interfaces.some((name) => attachment.interfaces.includes(name)))\n if (matching.length === 0) return { ok: false, reason: 'interface' }\n if (caliberRefusal(def, attachment, context.caliber)) return { ok: false, reason: 'caliber' }\n if (attachment.categories && !attachment.categories.includes(def.category)) return { ok: false, reason: 'category' }\n const free = matching.filter((place) => !fitted.some((part) => part.mount === place.kind))\n if (free.length === 0) return { ok: false, reason: 'occupied' }\n const open = free.filter((place) => !isBlocked(place.kind, attachment, fitted, context.catalogue))\n const place = open[0]\n if (!place) return { ok: false, reason: 'blocked' }\n if (context.isCompatible && !context.isCompatible(def, attachment, fitted)) return { ok: false, reason: 'rejected' }\n return { ok: true, mount: place.kind }\n}\n","[\n {\n \"id\": \"tactical_knife\",\n \"name\": \"Tactical knife\",\n \"category\": \"melee_blade\",\n \"action\": {\n \"kind\": \"melee\",\n \"damage\": \"slash\",\n \"energy\": 45,\n \"radius\": 0.03,\n \"reach\": 0.6,\n \"rpm\": 100,\n \"noise\": 1\n },\n \"mass\": 0.3\n },\n {\n \"id\": \"meat_cleaver\",\n \"name\": \"Meat cleaver\",\n \"category\": \"melee_blade\",\n \"action\": {\n \"kind\": \"melee\",\n \"damage\": \"slash\",\n \"energy\": 120,\n \"radius\": 0.05,\n \"reach\": 0.6,\n \"rpm\": 70,\n \"noise\": 2\n },\n \"mass\": 0.6\n },\n {\n \"id\": \"hatchet\",\n \"name\": \"Hatchet\",\n \"category\": \"melee_blade\",\n \"action\": {\n \"kind\": \"melee\",\n \"damage\": \"slash\",\n \"energy\": 180,\n \"radius\": 0.06,\n \"reach\": 0.7,\n \"rpm\": 55,\n \"noise\": 2\n },\n \"mass\": 0.8\n },\n {\n \"id\": \"nail_bat\",\n \"name\": \"Nail bat\",\n \"category\": \"melee_blunt\",\n \"action\": {\n \"kind\": \"melee\",\n \"damage\": \"blunt\",\n \"energy\": 170,\n \"radius\": 0.1,\n \"reach\": 1,\n \"rpm\": 60,\n \"noise\": 3\n },\n \"mass\": 1.2\n },\n {\n \"id\": \"iron_pipe\",\n \"name\": \"Iron pipe\",\n \"category\": \"melee_blunt\",\n \"action\": {\n \"kind\": \"melee\",\n \"damage\": \"blunt\",\n \"energy\": 140,\n \"radius\": 0.06,\n \"reach\": 1,\n \"rpm\": 60,\n \"noise\": 4\n },\n \"mass\": 1.2\n },\n {\n \"id\": \"pickaxe\",\n \"name\": \"Pickaxe\",\n \"category\": \"melee_blade\",\n \"action\": {\n \"kind\": \"melee\",\n \"damage\": \"slash\",\n \"energy\": 260,\n \"radius\": 0.05,\n \"reach\": 1,\n \"rpm\": 40,\n \"noise\": 4\n },\n \"mass\": 2.8,\n \"tags\": [\n \"heavy\"\n ]\n },\n {\n \"id\": \"sickle\",\n \"name\": \"Sickle\",\n \"category\": \"melee_blade\",\n \"action\": {\n \"kind\": \"melee\",\n \"damage\": \"slash\",\n \"energy\": 70,\n \"radius\": 0.05,\n \"reach\": 1.1,\n \"rpm\": 70,\n \"noise\": 2\n },\n \"mass\": 1.2\n },\n {\n \"id\": \"police_baton\",\n \"name\": \"Police baton\",\n \"category\": \"melee_blunt\",\n \"action\": {\n \"kind\": \"melee\",\n \"damage\": \"blunt\",\n \"energy\": 70,\n \"radius\": 0.04,\n \"reach\": 0.7,\n \"rpm\": 90,\n \"noise\": 3\n },\n \"mass\": 0.6\n },\n {\n \"id\": \"cast_iron_skillet\",\n \"name\": \"Cast iron skillet\",\n \"category\": \"melee_blunt\",\n \"action\": {\n \"kind\": \"melee\",\n \"damage\": \"blunt\",\n \"energy\": 110,\n \"radius\": 0.12,\n \"reach\": 0.6,\n \"rpm\": 60,\n \"noise\": 8\n },\n \"mass\": 1.2\n },\n {\n \"id\": \"improvised_spear\",\n \"name\": \"Improvised spear\",\n \"category\": \"melee_blade\",\n \"action\": {\n \"kind\": \"melee\",\n \"damage\": \"slash\",\n \"energy\": 90,\n \"radius\": 0.02,\n \"reach\": 1.6,\n \"rpm\": 50,\n \"noise\": 1\n },\n \"mass\": 1.1\n },\n {\n \"id\": \"chainsaw\",\n \"name\": \"Chainsaw\",\n \"category\": \"melee_blade\",\n \"action\": {\n \"kind\": \"melee\",\n \"damage\": \"slash\",\n \"energy\": 400,\n \"radius\": 0.1,\n \"reach\": 0.9,\n \"rpm\": 300,\n \"noise\": 120\n },\n \"mass\": 6,\n \"tags\": [\n \"heavy\"\n ]\n },\n {\n \"id\": \"recurve_bow\",\n \"name\": \"Recurve bow\",\n \"category\": \"bow\",\n \"action\": {\n \"kind\": \"firearm\",\n \"caliber\": \"arrow\",\n \"rpm\": 20,\n \"modes\": [\n \"single\"\n ],\n \"magazine\": 1,\n \"reload\": 1.5,\n \"barrel\": 1,\n \"spreadDeg\": 0.4,\n \"bloomDeg\": 0.4,\n \"recoveryDegPerS\": 2,\n \"recoil\": [\n 0.3,\n 0.1\n ],\n \"range\": 40\n },\n \"mass\": 1.2,\n \"tags\": [\n \"silent\"\n ]\n },\n {\n \"id\": \"kabar\",\n \"name\": \"KA-BAR combat knife\",\n \"category\": \"melee_blade\",\n \"action\": {\n \"kind\": \"melee\",\n \"damage\": \"slash\",\n \"energy\": 48,\n \"radius\": 0.03,\n \"reach\": 0.55,\n \"rpm\": 100,\n \"noise\": 1\n },\n \"mass\": 0.32,\n \"sources\": [\n \"reference\",\n \"derived\"\n ]\n },\n {\n \"id\": \"katana\",\n \"name\": \"Katana\",\n \"category\": \"melee_blade\",\n \"action\": {\n \"kind\": \"melee\",\n \"damage\": \"slash\",\n \"energy\": 230,\n \"radius\": 0.04,\n \"reach\": 1.1,\n \"rpm\": 70,\n \"noise\": 5\n },\n \"mass\": 1.1,\n \"tags\": [\n \"two_handed\"\n ],\n \"sources\": [\n \"reference\",\n \"derived\"\n ]\n },\n {\n \"id\": \"brass_knuckles\",\n \"name\": \"Brass knuckles\",\n \"category\": \"melee_blunt\",\n \"action\": {\n \"kind\": \"melee\",\n \"damage\": \"blunt\",\n \"energy\": 32,\n \"radius\": 0.04,\n \"reach\": 0.6,\n \"rpm\": 120,\n \"noise\": 5\n },\n \"mass\": 0.15,\n \"tags\": [\n \"fists\"\n ],\n \"sources\": [\n \"reference\",\n \"derived\"\n ]\n }\n]\n","import type { AttachmentDef, AttachmentId } from './attachment-types'\nimport type { AmmoDef, CaliberDef, CaliberId, ExplosiveDef, ExplosiveId, FirearmAction, WeaponDef, WeaponId, WeaponRules } from './types'\n\nexport interface ArsenalParts {\n readonly weapons: ReadonlyMap<WeaponId, WeaponDef>\n readonly calibers: ReadonlyMap<CaliberId, CaliberDef>\n readonly explosives: ReadonlyMap<ExplosiveId, ExplosiveDef>\n readonly attachments?: ReadonlyMap<AttachmentId, AttachmentDef>\n /** When given, every ammo entry must name a calibre of the arsenal, and every calibre's own kind must have its entry. */\n readonly ammo?: ReadonlyMap<string, AmmoDef>\n /** When given, the default condition and ammunition quality must be ones the rules define. */\n readonly rules?: Pick<WeaponRules, 'conditions' | 'defaultCondition' | 'ammoQualities' | 'defaultAmmoQuality'>\n}\n\n/** Ids that appear more than once in a list a game passed in. */\nexport const findDuplicateIds = (kind: string, entries: readonly { readonly id: string }[] | undefined): string[] => {\n const seen = new Set<string>()\n const problems: string[] = []\n for (const { id } of entries ?? []) {\n if (seen.has(id)) problems.push(`${kind} \"${id}\" is listed more than once`)\n seen.add(id)\n }\n return problems\n}\n\nconst checkRotary = (id: string, action: FirearmAction): string[] => {\n const problems: string[] = []\n const { rpm, rpmRange, spin } = action\n if (rpmRange && !(rpmRange[0] > 0 && rpmRange[0] <= rpmRange[1])) problems.push(`weapon \"${id}\" has an empty rate range ${rpmRange[0]}-${rpmRange[1]} rpm`)\n if (rpmRange && (rpm < rpmRange[0] || rpm > rpmRange[1])) problems.push(`weapon \"${id}\" fires at ${rpm} rpm, outside its range ${rpmRange[0]}-${rpmRange[1]}`)\n if (spin && !(spin.upSeconds >= 0 && spin.holdSeconds >= 0)) problems.push(`weapon \"${id}\" has a negative spin time`)\n return problems\n}\n\nconst checkFirearm = (def: WeaponDef, calibers: ArsenalParts['calibers']): string[] => {\n if (def.action.kind !== 'firearm') return []\n const problems: string[] = []\n for (const caliber of [def.action.caliber, ...(def.action.acceptsCalibers ?? [])]) {\n if (!calibers.has(caliber)) problems.push(`weapon \"${def.id}\" uses unknown calibre \"${caliber}\"`)\n }\n if (def.action.modes.length === 0) problems.push(`weapon \"${def.id}\" has no fire modes`)\n if (!(def.action.rpm > 0)) problems.push(`weapon \"${def.id}\" has a rate of fire of ${def.action.rpm} rpm`)\n if (!(def.action.reload > 0)) problems.push(`weapon \"${def.id}\" has a reload time of ${def.action.reload} s`)\n problems.push(...checkRotary(def.id, def.action))\n return problems\n}\n\nconst checkTimings = (def: WeaponDef): string[] => {\n const timings = 'timings' in def.action ? def.action.timings : undefined\n return Object.entries(timings ?? {})\n .filter(([, seconds]) => typeof seconds === 'number' && !(seconds > 0))\n .map(([name, seconds]) => `weapon \"${def.id}\" has a ${name} time of ${seconds} s`)\n}\n\nconst checkExplosiveReference = (def: WeaponDef, explosives: ArsenalParts['explosives']): string[] => {\n const id = def.action.kind === 'launcher' ? def.action.projectile : def.action.kind === 'throwable' ? def.action.explosive : undefined\n return id !== undefined && !explosives.has(id) ? [`weapon \"${def.id}\" uses unknown explosive \"${id}\"`] : []\n}\n\nconst checkExplosiveNumbers = (explosive: ExplosiveDef): string[] => {\n const problems: string[] = []\n const [low, high] = explosive.fuseRange ?? [1, 1]\n if (!(low > 0 && high >= low)) problems.push(`explosive \"${explosive.id}\" has a fuse range of ${low} to ${high} s`)\n if (explosive.armRange && !(explosive.armRange[0] > 0 && explosive.armRange[1] >= explosive.armRange[0])) problems.push(`explosive \"${explosive.id}\" arms between ${explosive.armRange[0]} and ${explosive.armRange[1]} m`)\n if (explosive.fuseLength !== undefined && !(explosive.fuseLength > 0)) problems.push(`explosive \"${explosive.id}\" has a fuse length of ${explosive.fuseLength} m`)\n if (explosive.burnRate !== undefined && !(explosive.burnRate > 0)) problems.push(`explosive \"${explosive.id}\" has a burn rate of ${explosive.burnRate} s/m`)\n if (explosive.burnTolerance !== undefined && !(explosive.burnTolerance >= 0 && explosive.burnTolerance < 1)) problems.push(`explosive \"${explosive.id}\" has a burn tolerance of ${explosive.burnTolerance}`)\n if (explosive.leak && !(explosive.leak.liters > 0 && explosive.leak.igniteDelay >= 0 && (explosive.leak.hissSeconds ?? 0) >= 0)) problems.push(`explosive \"${explosive.id}\" has a leak of ${explosive.leak.liters} l that lights after ${explosive.leak.igniteDelay} s`)\n if (explosive.shell && !(explosive.shell.launchSpeed >= 0 && explosive.shell.trailSeconds >= 0)) problems.push(`explosive \"${explosive.id}\" has a shell that leaves at ${explosive.shell.launchSpeed} m/s and trails fire for ${explosive.shell.trailSeconds} s`)\n if (explosive.tripwire && !(explosive.tripwire.length > 0)) problems.push(`explosive \"${explosive.id}\" has a trip wire of ${explosive.tripwire.length} m`)\n return problems\n}\n\nconst STATS: ReadonlySet<string> = new Set(['noise', 'spread', 'hipSpreadExcess', 'recoilVertical', 'recoilHorizontal', 'range', 'muzzleSpeed', 'mass', 'capacity', 'reload', 'reloadEmpty', 'draw', 'aim', 'faultChance', 'heatPerShot'])\nconst INSTALLS: ReadonlySet<string> = new Set(['field', 'tool', 'bench'])\n\nconst checkAttachment = (attachment: AttachmentDef, weapons: ArsenalParts['weapons']): string[] => {\n const problems: string[] = []\n if (attachment.launcher !== undefined && weapons.get(attachment.launcher)?.action.kind !== 'launcher') problems.push(`attachment \"${attachment.id}\" names \"${attachment.launcher}\" as its launcher, which is not a launcher weapon`)\n const label = `attachment \"${attachment.id}\"`\n if (!INSTALLS.has(attachment.install)) problems.push(`${label} installs \"${attachment.install}\"`)\n if (attachment.mounts.length === 0) problems.push(`${label} has no mount`)\n if (attachment.interfaces.length === 0) problems.push(`${label} has no interface`)\n for (const effect of attachment.effects) {\n if (!STATS.has(effect.stat)) problems.push(`${label} changes the unknown stat \"${effect.stat}\"`)\n if (effect.mul !== undefined && !(effect.mul > 0)) problems.push(`${label} multiplies ${effect.stat} by ${effect.mul}`)\n }\n return problems\n}\n\nconst checkFitted = (def: WeaponDef, attachments: ArsenalParts['attachments']): string[] => {\n if (!attachments) return []\n return (def.fitted ?? []).flatMap((part) => {\n const problems: string[] = []\n if (!attachments.has(part.id)) problems.push(`weapon \"${def.id}\" is fitted with unknown attachment \"${part.id}\"`)\n if (!(def.mounts ?? []).some((mount) => mount.kind === part.mount)) problems.push(`weapon \"${def.id}\" has \"${part.id}\" on \"${part.mount}\", which it has no mount for`)\n return problems\n })\n}\n\nconst checkRuleDefaults = (rules: ArsenalParts['rules']): string[] => {\n if (!rules) return []\n const problems: string[] = []\n if (!rules.conditions.some((condition) => condition.id === rules.defaultCondition)) problems.push(`the default condition \"${rules.defaultCondition}\" is not one of the conditions`)\n if (!rules.ammoQualities.some((quality) => quality.id === rules.defaultAmmoQuality)) problems.push(`the default ammunition quality \"${rules.defaultAmmoQuality}\" is not one of the qualities`)\n return problems\n}\n\nconst PENETRATION_KEYS = ['steel', 'concrete', 'brick', 'wood'] as const\n\nconst checkAmmo = (ammo: ArsenalParts['ammo'], calibers: ArsenalParts['calibers']): string[] => {\n if (!ammo) return []\n const problems: string[] = []\n for (const load of ammo.values()) {\n const label = `ammo \"${load.id}\"`\n if (load.id !== `${load.caliber}:${load.kind}`) problems.push(`${label} should be called \"${load.caliber}:${load.kind}\"`)\n if (!calibers.has(load.caliber)) problems.push(`${label} is for unknown calibre \"${load.caliber}\"`)\n if (load.bulletGrams !== undefined && !(load.bulletGrams > 0)) problems.push(`${label} weighs ${load.bulletGrams} g`)\n if (load.muzzleSpeed !== undefined && !(load.muzzleSpeed > 0)) problems.push(`${label} leaves at ${load.muzzleSpeed} m/s`)\n for (const key of PENETRATION_KEYS) if (!(load.penetration?.[key] >= 0)) problems.push(`${label} has no penetration for ${key}`)\n }\n for (const caliber of calibers.values()) if (caliber.kind !== undefined && !ammo.has(`${caliber.id}:${caliber.kind}`)) problems.push(`calibre \"${caliber.id}\" has no ammo \"${caliber.id}:${caliber.kind}\" in the table`)\n return problems\n}\n\n/** Every problem found in an arsenal, so a game sees them all at once instead of one per run. Empty when it is consistent. */\nexport const checkArsenal = ({ weapons, calibers, explosives, attachments, ammo, rules }: ArsenalParts): string[] => [\n ...[...weapons.values()].flatMap((def) => [...checkFirearm(def, calibers), ...checkTimings(def), ...checkExplosiveReference(def, explosives), ...checkFitted(def, attachments)]),\n ...[...(attachments?.values() ?? [])].flatMap((attachment) => checkAttachment(attachment, weapons)),\n ...[...explosives.values()].flatMap(checkExplosiveNumbers),\n ...checkAmmo(ammo, calibers),\n ...checkRuleDefaults(rules),\n]\n","import { deepMerge } from '@adatechnology/game-contracts'\nimport type { DeepPartial } from '@adatechnology/game-contracts'\n\n/** Locales shipped with the package. Unknown locales fall back to `en`. */\nexport type WeaponsLocale = 'en' | 'pt-BR'\n\nexport interface WeaponsStrings {\n /** Display name of each weapon id. */\n weapons: Record<string, string>\n /** Display name of each fire mode. */\n modes: Record<string, string>\n /** Display name of each weapon category. */\n categories: Record<string, string>\n /** Display name of each explosive id. */\n explosives: Record<string, string>\n /** Display name of each weapon fault. */\n faults: Record<string, string>\n /** Display name of each weapon condition. */\n conditions: Record<string, string>\n}\n\nconst modesEn = { single: 'single action', semi: 'semi-automatic', burst: 'burst', auto: 'automatic', pump: 'pump action', bolt: 'bolt action', lever: 'lever action', break: 'break action', volley: 'volley' }\nconst categoriesEn = {\n pistol: 'pistol', revolver: 'revolver', smg: 'submachine gun', rifle: 'rifle', carbine: 'carbine', sniper: 'sniper rifle', shotgun: 'shotgun',\n bow: 'bow', crossbow: 'crossbow', melee_blunt: 'blunt melee', melee_blade: 'bladed melee', flame: 'flame', heat: 'heat', throwable: 'throwable',\n tool: 'tool', extinguisher: 'extinguisher', hand: 'hand', dmr: 'marksman rifle', hunting: 'hunting rifle', machine_gun: 'machine gun', launcher: 'launcher', pdw: 'PDW (personal defence weapon)',\n}\nconst faultsEn = { misfire: 'misfire', stovepipe: 'stovepipe', double_feed: 'double feed', failure_to_extract: 'failure to extract' }\nconst conditionsEn = { new: 'new', used: 'used', worn: 'worn', rusty: 'rusty' }\n\nexport const locales: Record<WeaponsLocale, WeaponsStrings> = {\n en: {\n weapons: {\n hand: 'Hand', kick: 'Kick', shove: 'Shove', pistol_9mm: '9 mm service pistol', pistol_45: '.45 ACP pistol', pistol_22: '.22 LR pistol', revolver_357: '.357 Magnum revolver',\n revolver_38: '.38 Special revolver', smg_9mm: '9 mm submachine gun', carbine_22: '.22 LR carbine', rifle_5_56: '5.56 mm assault rifle',\n rifle_7_62x39: '7.62×39 mm assault rifle', rifle_bolt_308: '.308 bolt-action rifle', sniper_338: '.338 Lapua sniper rifle',\n anti_materiel_50: '.50 BMG anti-materiel rifle', shotgun_pump_12: '12 gauge pump-action shotgun', shotgun_double_12: '12 gauge double-barrel shotgun',\n shotgun_semi_12: '12 gauge semi-automatic shotgun', bow_compound: 'Compound bow', crossbow: 'Crossbow', hammer: 'Hammer', sledgehammer: 'Sledgehammer',\n baseball_bat: 'Baseball bat', crowbar: 'Crowbar', machete: 'Machete', axe: 'Axe', knife: 'Knife', fists: 'Fists', lighter: 'Lighter',\n flamethrower: 'Flamethrower', molotov: 'Molotov cocktail', cutting_torch: 'Oxy-fuel cutting torch', blowtorch: 'Blowtorch',\n frag_grenade: 'Fragmentation grenade', pipe_bomb: 'Pipe bomb', screwdriver: 'Screwdriver', wrench: 'Wrench', pry_bar: 'Pry bar', hacksaw: 'Hacksaw',\n utility_knife: 'Utility knife', claw_hammer: 'Claw hammer', extinguisher: 'Fire extinguisher',\n boito_double_barrel: 'Boito double-barrel', hunting_rifle_30_06: '.30-06 hunting rifle', m2_flamethrower: 'M2 flamethrower', improvised_flamethrower: 'Improvised flamethrower',\n m79: 'M79 grenade launcher',\n m203: 'M203 grenade launcher', gp_25: 'GP-25 grenade launcher', ag36: 'AG36 grenade launcher', flashbang: 'Flashbang', dynamite: 'Dynamite',\n c4: 'C4 charge', claymore: 'Claymore mine', tactical_knife: 'Tactical knife', meat_cleaver: 'Meat cleaver', hatchet: 'Hatchet', nail_bat: 'Nail bat',\n iron_pipe: 'Iron pipe', pickaxe: 'Pickaxe', sickle: 'Sickle', police_baton: 'Police baton', cast_iron_skillet: 'Cast iron skillet',\n improvised_spear: 'Improvised spear', chainsaw: 'Chainsaw', recurve_bow: 'Recurve bow', m134: 'M134 Minigun',\n semtex: 'Semtex charge', smoke_grenade: 'M18 smoke grenade', kabar: 'KA-BAR combat knife', katana: 'Katana', brass_knuckles: 'Brass knuckles',\n },\n modes: modesEn,\n categories: categoriesEn,\n explosives: {\n m67: 'M67 fragmentation grenade', molotov: 'Molotov cocktail', pipe_bomb: 'Pipe bomb', propane_p13: 'P13 propane cylinder', dynamite: 'Dynamite', c4: 'C4 charge',\n claymore: 'Claymore mine', flashbang: 'Flashbang', semtex: 'Semtex charge', smoke_grenade: 'M18 colored smoke grenade', m79_40mm: '40 mm grenade', m72_66mm: '66 mm HEAT rocket', at4_84mm: '84 mm HEAT rocket',\n pg7v: 'PG-7V rocket', carl_gustaf_84mm: '84 mm HE/HEAT round', fuel_barrel: 'Fuel barrel', car_fuel_tank: 'Car fuel tank',\n fuel_pump: 'Fuel pump', fuel_station_tank: 'Fuel station tank',\n },\n faults: faultsEn,\n conditions: conditionsEn,\n },\n 'pt-BR': {\n weapons: {\n hand: 'mão', kick: 'chute', shove: 'empurrão', pistol_9mm: 'pistola 9 mm', pistol_45: 'pistola .45', pistol_22: 'pistola .22', revolver_357: 'revólver .357', revolver_38: 'revólver .38',\n smg_9mm: 'submetralhadora 9 mm', carbine_22: 'carabina .22', rifle_5_56: 'fuzil 5,56', rifle_7_62x39: 'fuzil 7,62×39', rifle_bolt_308: 'fuzil de ferrolho .308',\n sniper_338: 'fuzil de precisão .338', anti_materiel_50: 'fuzil antimaterial .50', shotgun_pump_12: 'espingarda de repetição calibre 12',\n shotgun_double_12: 'espingarda de dois canos calibre 12', shotgun_semi_12: 'espingarda semiautomática calibre 12', bow_compound: 'arco composto',\n crossbow: 'besta', hammer: 'martelo', sledgehammer: 'marreta', baseball_bat: 'taco de beisebol', crowbar: 'pé de cabra', machete: 'facão', axe: 'machado',\n knife: 'faca', fists: 'punhos', lighter: 'isqueiro', flamethrower: 'lança-chamas', molotov: 'coquetel molotov', cutting_torch: 'maçarico de corte',\n blowtorch: 'maçarico', frag_grenade: 'granada de fragmentação', pipe_bomb: 'bomba caseira', screwdriver: 'chave de fenda', wrench: 'chave inglesa',\n pry_bar: 'alavanca', hacksaw: 'serra de arco', utility_knife: 'estilete', claw_hammer: 'martelo de unha', extinguisher: 'extintor',\n boito_double_barrel: 'Boito (2 canos)', hunting_rifle_30_06: 'Rifle de caça .30-06', m2_flamethrower: 'Lança-chamas M2', improvised_flamethrower: 'Lança-chamas caseiro',\n m79: 'Lança-granadas M79',\n m203: 'Lança-granadas M203', gp_25: 'Lança-granadas GP-25', ag36: 'Lança-granadas AG36', flashbang: 'granada de luz', dynamite: 'dinamite',\n c4: 'C4 com detonador', claymore: 'mina Claymore', tactical_knife: 'faca tática', meat_cleaver: 'cutelo', hatchet: 'machadinha', nail_bat: 'taco com pregos',\n iron_pipe: 'cano de ferro', pickaxe: 'picareta', sickle: 'foice', police_baton: 'cassetete', cast_iron_skillet: 'frigideira de ferro',\n improvised_spear: 'lança improvisada', chainsaw: 'motosserra', recurve_bow: 'arco recurvo', m134: 'Minigun M134',\n semtex: 'Semtex com detonador', smoke_grenade: 'granada de fumaça M18', kabar: 'faca KA-BAR', katana: 'espada katana', brass_knuckles: 'soco inglês',\n },\n modes: { single: 'tiro único', semi: 'semiautomático', burst: 'rajada', auto: 'automático', pump: 'repetição', bolt: 'ferrolho', lever: 'alavanca', break: 'basculante', volley: 'salva' },\n categories: {\n pistol: 'pistola', revolver: 'revólver', smg: 'submetralhadora', rifle: 'fuzil', carbine: 'carabina', sniper: 'fuzil de precisão', shotgun: 'espingarda',\n bow: 'arco', crossbow: 'besta', melee_blunt: 'corpo a corpo contundente', melee_blade: 'corpo a corpo cortante', flame: 'chama', heat: 'calor',\n throwable: 'arremessável', tool: 'ferramenta', extinguisher: 'extintor', hand: 'mão', dmr: 'fuzil de precisão semiautomático', hunting: 'arma de caça',\n machine_gun: 'metralhadora', launcher: 'lançador', pdw: 'PDW (arma de defesa pessoal)',\n },\n explosives: {\n m67: 'Granada M67', molotov: 'Coquetel molotov', pipe_bomb: 'Bomba caseira', propane_p13: 'Botijão de gás P13', dynamite: 'Dinamite', c4: 'C4 com detonador',\n claymore: 'Mina Claymore', flashbang: 'Granada de luz', semtex: 'Semtex com detonador', smoke_grenade: 'Granada de fumaça M18', m79_40mm: 'Granada de 40 mm', m72_66mm: 'Foguete HEAT de 66 mm', at4_84mm: 'Foguete HEAT de 84 mm',\n pg7v: 'Foguete PG-7V', carl_gustaf_84mm: 'Projétil de 84 mm (HE/HEAT)', fuel_barrel: 'Barril de combustível', car_fuel_tank: 'Tanque de combustível do carro',\n fuel_pump: 'Bomba de combustível', fuel_station_tank: 'Tanque do posto de gasolina',\n },\n faults: { misfire: 'nega', stovepipe: 'chaminé', double_feed: 'dupla alimentação', failure_to_extract: 'falha de extração' },\n conditions: { new: 'nova', used: 'usada', worn: 'gasta', rusty: 'enferrujada' },\n },\n}\n\nexport const resolveStrings = (locale: string | undefined, overrides?: DeepPartial<WeaponsStrings>): WeaponsStrings =>\n deepMerge(locales[(locale as WeaponsLocale) ?? 'en'] ?? locales.en, overrides)\n","import type { ExplosiveDef } from './explosive-types'\n\n/** The fuse of an explosive with no randomness: a fixed `fuse`, the burn of a safety fuse (length times rate), or the middle of `fuseRange`. */\nexport const nominalFuse = (explosive: ExplosiveDef, fuseLength?: number): number | undefined => {\n const length = fuseLength ?? explosive.fuseLength\n if (length !== undefined && explosive.burnRate !== undefined) return length * explosive.burnRate\n if (explosive.fuseRange) return (explosive.fuseRange[0] + explosive.fuseRange[1]) / 2\n return explosive.fuse\n}\n\n/**\n * The fuse of one throw. A safety fuse burns `fuseLength × burnRate` seconds, scattered by `burnTolerance` (a fraction, ±); `fuseRange` picks a time\n * between its two ends; a fixed `fuse` is returned as is. Draws from `random` only when the explosive is not fixed, so fixed ones leave the stream alone.\n */\nexport const sampleFuse = (explosive: ExplosiveDef, random: () => number, fuseLength?: number): number | undefined => {\n const length = fuseLength ?? explosive.fuseLength\n if (length !== undefined && explosive.burnRate !== undefined) {\n const tolerance = explosive.burnTolerance ?? 0\n return length * explosive.burnRate * (tolerance > 0 ? 1 + tolerance * (2 * random() - 1) : 1)\n }\n if (explosive.fuseRange) return explosive.fuseRange[0] + (explosive.fuseRange[1] - explosive.fuseRange[0]) * random()\n return explosive.fuse\n}\n","import { nominalFuse } from './fuse'\nimport type { ExplosiveDef, WeaponDef } from './types'\n\n/** A throwable that names an explosive takes its energy, noise, lethal radius, fuse (the nominal one, when it is sampled per throw) and fire from it, so changing the explosive changes the throwable. */\nexport const resolveThrowables = (weapons: Map<string, WeaponDef>, explosives: ReadonlyMap<string, ExplosiveDef>): void => {\n for (const [id, def] of weapons) {\n if (def.action.kind !== 'throwable' || def.action.explosive === undefined) continue\n const explosive = explosives.get(def.action.explosive)\n if (!explosive) continue\n const radius = explosive.lethalRadius > 0 ? explosive.lethalRadius : def.action.radius\n const fire = explosive.fire ? { ...explosive.fire } : def.action.fire\n weapons.set(id, { ...def, action: { ...def.action, energy: explosive.energy, noise: explosive.noise, radius, fuse: nominalFuse(explosive) ?? def.action.fuse, ...(fire ? { fire } : {}) } })\n }\n}\n","import { DEFAULT_IGNITION_RULES } from '@adatechnology/game-contracts'\nimport type { FaultContext, WeaponRules } from './types'\n\n// Physical model (2026-11-05): temperature above ambient in °C. Steel is 490 J/(kg·K); the shares, kg per metre and cooling constants are the kit's\n// calibration against real references (an M4 reaches the warning in about 130 rounds of rapid fire, a pistol never does, a minigun shares six barrels).\nconst DEFAULT_HEAT: WeaponRules['heat'] = {\n cap: 900,\n displayMax: 750,\n faultFrom: 350,\n faultSpan: 200,\n specificHeat: 490,\n barrelShare: { shell: 0.48, big: 0.48, tiny: 0.3, pistol: 0.3, rifle: 0.48 },\n barrelKilogramsPerMetre: {\n pistol: 1.0,\n revolver: 1.4,\n smg: 1.2,\n carbine: 1.6,\n rifle: 1.6,\n dmr: 2.4,\n sniper: 2.4,\n hunting: 2.4,\n machine_gun: 3.0,\n shotgun: 1.1,\n },\n barrelFallback: { metres: 0.4, kilogramsPerMetre: 1.6 },\n cooling: { baseSeconds: 30, secondsPerKilogram: 250 },\n perRocket: 35,\n visual: { smokeFrom: 250, smokeSpan: 300, smokeSeconds: 2.5, glowFrom: 450, glowSpan: 300 },\n}\n\n/** The heat the Galeria 3D do Arsenal recorded (abstract units, hotter per round: a magazine was enough to glow); kept so the recorded runs stay reproducible. */\nexport const GALLERY_HEAT: WeaponRules['heat'] = {\n ...DEFAULT_HEAT,\n cap: 140,\n displayMax: 120,\n faultFrom: 60,\n faultSpan: 40,\n visual: { smokeFrom: 70, smokeSpan: 100, smokeSeconds: 2.5, glowFrom: 80, glowSpan: 40 },\n gallery: {\n perShot: { shell: 6, big: 9, tiny: 1.2, pistol: 3, rifle: 4.5 },\n decayBase: 1.6,\n decayPerPoint: 0.03,\n },\n}\n\n/** Chance of a fault for one round: the wear of the weapon, scaled by its reliability and by how hot it is. */\nconst defaultFaultChance = (context: FaultContext): number => {\n const factor = context.def.action.kind === 'firearm' ? context.def.action.faultFactor ?? 1 : 1\n const overheat = 1 + Math.max(0, context.heat - DEFAULT_HEAT.faultFrom) / DEFAULT_HEAT.faultSpan\n return context.condition.faultChance * factor * overheat\n}\n\n/** The rules the kit ships with; a game overrides any of them through `ArsenalOptions.rules`. */\nexport const DEFAULT_RULES: WeaponRules = {\n faults: true,\n conditions: [\n { id: 'new', faultChance: 0.003 },\n { id: 'used', faultChance: 0.015 },\n { id: 'worn', faultChance: 0.05 },\n { id: 'rusty', faultChance: 0.12 },\n ],\n defaultCondition: 'new',\n ammoQualities: [\n { id: 'factory', faultChance: 0 },\n { id: 'reloaded', faultChance: 0.08 },\n ],\n defaultAmmoQuality: 'factory',\n faultChance: defaultFaultChance,\n heat: DEFAULT_HEAT,\n noiseBurst: { step: 0.05, window: 3, cap: 0.5 },\n // jogo.js (Jogo) explosionsUpdate 68300-68312: vy -= 9,8·dt; chão vy·-0,35 e vx,vz·0,6; parede v·-0,4\n explosives: { gravity: 9.8, groundRestitution: 0.35, groundFriction: 0.6, wallRestitution: 0.4, placeFuseFrom: 10, tripwire: { length: 10, angleDeg: 0, height: 0.15 }, unarmedImpact: 'detonate', restSpeed: 0.5, selfDestructSeconds: 20 },\n // Arsenal §11: montar e desmontar exige chave de fenda ou bancada; 2/15/30 s e a troca do lança-granadas (0,8 s) são padrões aprovados pelo dono (2026-10-24)\n attachments: { fitSeconds: { field: 2, tool: 15, bench: 30 }, switchSeconds: 0.8, speedOfSound: 343 },\n // Arsenal §08: tempo de mira = 0,15 s + 0,05 s por kg. O quadril do Arsenal é ×6 (o ZombiAdA liga isso por configuração); o SDK é neutro (1)\n aim: {\n base: 0.15,\n perKg: 0.05,\n hipSpread: 1,\n // the iron sights close the view in a little: more for a long gun, whose sights sit farther from the eye, than for a handgun\n ironSightZoom: { pistol: 1.1, revolver: 1.1, smg: 1.2, carbine: 1.25, shotgun: 1.15, rifle: 1.3, hunting: 1.35, dmr: 1.4, sniper: 1.4, machine_gun: 1.2, launcher: 1.15, bow: 1.15, crossbow: 1.25 },\n },\n // a weapon in each hand: the handguns, the machine pistols short and light enough for one hand, and the one-hand blades; one hand and no sight picture open the cone and lift the muzzle more\n dualWield: {\n categories: ['pistol', 'revolver'],\n weapons: ['mini_uzi', 'uzi', 'mac_10', 'vz61', 'hk_mp7a1', 'knife', 'tactical_knife', 'machete', 'hatchet'],\n exclude: [],\n spread: 1.8,\n recoil: 1.35,\n // tucking a pistol in the belt and drawing it back is a short motion of one hand\n stowSeconds: 0.45,\n },\n // Arsenal §08/§11: coronha retrátil saca mais rápido, mais recuo; os números são padrões aprovados pelo dono (2026-10-24)\n stock: {\n seconds: 0.6,\n collapsed: [\n { stat: 'draw', mul: 0.8 },\n { stat: 'aim', mul: 0.85 },\n { stat: 'recoilVertical', mul: 1.3 },\n { stat: 'spread', mul: 1.15 },\n ],\n },\n // Modelo do kit (2026-10-24, decisão do dono): não existe tabela pública de ignição por cartucho. Ordem de grandeza: bala comum (chumbo com camisa de\n // cobre) quase nunca acende um tanque; núcleo de aço e perfurante (aço temperado, carbeto de tungstênio) faíscam em aço; incendiária e traçante\n // acendem por conta própria (a literatura de vulnerabilidade de tanques de combustível cita API como a munição que acende de fato). Troque por jogo.\n ignition: {\n core: { lead: 0.005, lead_steel: 0.04, steel: 0.12, hardened_steel: 0.25, tungsten_carbide: 0.25, copper: 0.01, none: 0 },\n jacket: { gilding_metal: 0.005, copper: 0.005, brass: 0.01, steel: 0.08, none: 0 },\n flame: { incendiary: DEFAULT_IGNITION_RULES.flameDefaults.incendiary, tracer: DEFAULT_IGNITION_RULES.flameDefaults.tracer },\n },\n draw: 0.35,\n clear: 1.2,\n startSafe: false,\n}\n","import type { Vec3 } from './types'\n\nexport const subtract = (a: Vec3, b: Vec3): Vec3 => [a[0] - b[0], a[1] - b[1], a[2] - b[2]]\n\nexport const dot = (a: Vec3, b: Vec3): number => a[0] * b[0] + a[1] * b[1] + a[2] * b[2]\n\nexport const length = (v: Vec3): number => Math.hypot(v[0], v[1], v[2])\n\nexport const distance = (a: Vec3, b: Vec3): number => length(subtract(a, b))\n\n/** `v` rotated 180° about the origin: the direction pointing away. */\nexport const negate = (v: Vec3): Vec3 => [0 - v[0], 0 - v[1], 0 - v[2]]\n","import { normalize } from './rng'\nimport type { ExplosiveDef, ExplosiveId, ExplosiveTrigger, Use, Vec3, WeaponRules } from './types'\nimport { distance, dot, length } from './vec'\n\nconst EPS = 1e-9\n/** Steps in a row a launched round must stay still (moving under 5% of `restSpeed`) to count as at rest: one is not enough, a round shot straight up stops for an instant at the top. */\nconst STILL_STEPS = 2\nconst STILL_SHARE = 0.05\n\n/** Everything a host needs to apply a blast: where, how big, in which direction, and what else it does. */\nexport interface Detonation {\n readonly explosive: ExplosiveId\n readonly cause: ExplosiveTrigger\n readonly point: Vec3\n /** The way a directional charge faces; for everything else the direction the body was moving (or facing when placed). */\n readonly direction: Vec3\n /** Seconds on the clock of the body. */\n readonly at: number\n readonly energy: number\n /** Kilograms of TNT equivalent of the charge (`ExplosiveDef.tnt`), when it says. */\n readonly tnt?: number\n readonly lethalRadius: number\n readonly injuryRadius: number\n readonly noise: number\n readonly destructionLevel: ExplosiveDef['destructionLevel']\n readonly cone?: ExplosiveDef['cone']\n readonly stunSeconds?: number\n readonly fire?: ExplosiveDef['fire']\n readonly smoke?: ExplosiveDef['smoke']\n}\n\nexport type ExplosiveEvent =\n | { type: 'armed'; at: number; distance: number }\n | { type: 'impact'; at: number; point: Vec3; armed: boolean }\n /** Hit something before it was armed and `rules.explosives.unarmedImpact` is `dud`: it does not explode. */\n | { type: 'dud'; at: number; point: Vec3 }\n | { type: 'detonate'; at: number; detonation: Detonation }\n\n/** The first surface the segment `from` to `to` crosses: where, its normal and whether it is ground (default: normal pointing up). */\nexport type SurfaceProbe = (from: Vec3, to: Vec3) => { point: Vec3; normal: Vec3; ground?: boolean } | null\n\nexport interface ExplosiveBodyInit {\n readonly explosive: ExplosiveDef\n readonly origin: Vec3\n /** Initial velocity in m/s; absent for something set down. */\n readonly velocity?: Vec3\n /** Facing of a placed charge (the cone of a mine). */\n readonly direction?: Vec3\n /** `timer`: explodes `fuse` seconds after it leaves the hand; `impact`: explodes on the first hit once armed; `wire`/`remote`: waits for `trigger()`. */\n readonly triggers: readonly ExplosiveTrigger[]\n readonly fuse?: number\n /** Metres to fly before an impact sets it off (rockets); 0 arms it at once. */\n readonly armDistance?: number\n readonly rules: WeaponRules['explosives']\n}\n\nconst bounce = (velocity: Vec3, normal: Vec3, ground: boolean, rules: WeaponRules['explosives']): Vec3 => {\n const along = dot(velocity, normal)\n if (along >= 0) return velocity\n const restitution = ground ? rules.groundRestitution : rules.wallRestitution\n const friction = ground ? rules.groundFriction : 1\n const normalPart: Vec3 = [normal[0] * along, normal[1] * along, normal[2] * along]\n return [\n (velocity[0] - normalPart[0]) * friction - normalPart[0] * restitution,\n (velocity[1] - normalPart[1]) * friction - normalPart[1] * restitution,\n (velocity[2] - normalPart[2]) * friction - normalPart[2] * restitution,\n ]\n}\n\n/**\n * One explosive in flight or set down. `step` flies it (gravity, bounces off what `probe` finds) and counts the fuse; `trigger` sets off what waits\n * for a wire, a remote detonator, a bullet, fire or a nearby blast. Same inputs, same events: there is no randomness.\n */\nexport class ExplosiveBody {\n position: Vec3\n velocity: Vec3\n readonly explosive: ExplosiveDef\n private readonly triggers: ReadonlySet<ExplosiveTrigger>\n private readonly armDistance: number\n private readonly rules: WeaponRules['explosives']\n private facing: Vec3\n private clock = 0\n private flown = 0\n private fuseLeft: number | undefined\n private isArmed: boolean\n private isDone = false\n private isDud = false\n /** Fired with a speed and an impact fuze (a rocket, a 40 mm grenade): it must end in a blast, never lie live on what it hit. */\n private readonly isLaunched: boolean\n private stillSteps = 0\n\n constructor(init: ExplosiveBodyInit) {\n this.explosive = init.explosive\n this.position = [init.origin[0], init.origin[1], init.origin[2]]\n this.velocity = init.velocity ? [init.velocity[0], init.velocity[1], init.velocity[2]] : [0, 0, 0]\n this.facing = normalize(init.direction ?? (init.velocity ? init.velocity : [0, 0, -1]))\n this.triggers = new Set(init.triggers)\n this.armDistance = init.armDistance ?? 0\n this.isArmed = this.armDistance <= 0\n this.fuseLeft = this.triggers.has('timer') ? init.fuse : undefined\n this.rules = init.rules\n this.isLaunched = this.triggers.has('impact') && this.moves()\n }\n\n get age(): number {\n return this.clock\n }\n /** Metres flown so far. */\n get travelled(): number {\n return this.flown\n }\n get armed(): boolean {\n return this.isArmed\n }\n /** Exploded or turned out a dud: nothing more happens. */\n get done(): boolean {\n return this.isDone\n }\n get dud(): boolean {\n return this.isDud\n }\n /** Seconds until the timer sets it off, or undefined without one. */\n get fuseRemaining(): number | undefined {\n return this.fuseLeft\n }\n\n /** Whether this trigger sets it off (`impact` for a rocket or a 40 mm grenade, `timer` for a hand grenade). */\n isTriggeredBy(trigger: ExplosiveTrigger): boolean {\n return this.triggers.has(trigger)\n }\n\n step(dt: number, probe?: SurfaceProbe): ExplosiveEvent[] {\n const events: ExplosiveEvent[] = []\n if (this.isDone) return events\n const seconds = Math.max(0, dt)\n const slice = this.fuseLeft === undefined ? seconds : Math.min(seconds, this.fuseLeft)\n this.fly(slice, probe, events)\n if (this.isDone) return events\n if (this.isLaunched && this.isSpent()) {\n events.push(this.detonate(this.clock >= this.rules.selfDestructSeconds ? 'timer' : 'impact'))\n return events\n }\n if (this.fuseLeft !== undefined) {\n this.fuseLeft -= slice\n if (this.fuseLeft <= EPS) events.push(this.detonate('timer'))\n }\n return events\n }\n\n /** Sets it off from outside; undefined when this explosive does not answer to `cause` or is already done. */\n trigger(cause: ExplosiveTrigger): ExplosiveEvent | undefined {\n if (this.isDone || !this.triggers.has(cause)) return undefined\n if (cause === 'impact' && !this.isArmed) return undefined\n return this.detonate(cause)\n }\n\n private moves(): boolean {\n return length(this.velocity) > EPS\n }\n\n /** A launched round that came to rest (stopped, or still for `STILL_STEPS` steps) or flew past its self-destruct time. */\n private isSpent(): boolean {\n if (this.clock >= this.rules.selfDestructSeconds) return true\n return !this.moves() || this.stillSteps >= STILL_STEPS\n }\n\n private fly(seconds: number, probe: SurfaceProbe | undefined, events: ExplosiveEvent[]): void {\n if (seconds <= 0 || !this.moves()) {\n this.clock += Math.max(0, seconds)\n return\n }\n const start = this.position\n this.velocity = [this.velocity[0], this.velocity[1] - this.rules.gravity * seconds, this.velocity[2]]\n const next: Vec3 = [this.position[0] + this.velocity[0] * seconds, this.position[1] + this.velocity[1] * seconds, this.position[2] + this.velocity[2] * seconds]\n const hit = probe?.(this.position, next) ?? null\n const target = hit ? hit.point : next\n const moved = distance(this.position, target)\n const planned = distance(this.position, next)\n this.flown += moved\n this.position = [target[0], target[1], target[2]]\n const hitAt = this.clock + (hit && planned > EPS ? seconds * Math.min(1, moved / planned) : seconds)\n this.clock += seconds\n if (length(this.velocity) > EPS) this.facing = normalize(this.velocity)\n this.stillSteps = distance(start, this.position) < this.rules.restSpeed * STILL_SHARE * seconds ? this.stillSteps + 1 : 0\n this.checkArmed(events)\n if (hit) this.onImpact(hit, hitAt, events)\n }\n\n private checkArmed(events: ExplosiveEvent[]): void {\n if (this.isArmed || this.flown < this.armDistance) return\n this.isArmed = true\n events.push({ type: 'armed', at: this.clock, distance: this.flown })\n }\n\n private onImpact(hit: NonNullable<ReturnType<SurfaceProbe>>, at: number, events: ExplosiveEvent[]): void {\n events.push({ type: 'impact', at, point: hit.point, armed: this.isArmed })\n if (this.triggers.has('impact')) {\n if (this.isArmed || this.rules.unarmedImpact !== 'dud') events.push(this.detonate('impact', at))\n else {\n this.isDone = true\n this.isDud = true\n events.push({ type: 'dud', at, point: hit.point })\n }\n return\n }\n this.velocity = bounce(this.velocity, hit.normal, hit.ground ?? hit.normal[1] > 0.7, this.rules)\n }\n\n private detonate(cause: ExplosiveTrigger, at = this.clock): ExplosiveEvent {\n this.isDone = true\n const def = this.explosive\n const detonation: Detonation = {\n explosive: def.id,\n cause,\n point: [this.position[0], this.position[1], this.position[2]],\n direction: this.facing,\n at,\n energy: def.energy,\n ...(def.tnt !== undefined ? { tnt: def.tnt } : {}),\n lethalRadius: def.lethalRadius,\n injuryRadius: def.injuryRadius,\n noise: def.noise,\n destructionLevel: def.destructionLevel,\n ...(def.cone ? { cone: def.cone } : {}),\n ...(def.stunSeconds !== undefined ? { stunSeconds: def.stunSeconds } : {}),\n ...(def.fire ? { fire: def.fire } : {}),\n ...(def.smoke ? { smoke: def.smoke } : {}),\n }\n return { type: 'detonate', at, detonation }\n }\n}\n\n/** The body of the explosive a `throw` or `place` use carries; undefined for any other use or an unknown explosive id. */\nexport const createExplosiveBody = (use: Use, explosives: ReadonlyMap<ExplosiveId, ExplosiveDef>, rules: WeaponRules['explosives']): ExplosiveBody | undefined => {\n if (use.kind === 'throw' && use.explosive !== undefined) {\n const explosive = explosives.get(use.explosive)\n if (!explosive) return undefined\n return new ExplosiveBody({\n explosive,\n origin: use.origin,\n velocity: use.velocity,\n triggers: [use.trigger ?? (use.fuse > 0 ? 'timer' : 'impact')],\n fuse: use.fuse,\n ...(use.armDistance !== undefined ? { armDistance: use.armDistance } : {}),\n rules,\n })\n }\n if (use.kind !== 'place') return undefined\n const explosive = explosives.get(use.explosive)\n if (!explosive) return undefined\n return new ExplosiveBody({ explosive, origin: use.origin, direction: use.direction, triggers: use.triggers, ...(use.fuse !== undefined ? { fuse: use.fuse } : {}), rules })\n}\n","import type { ExplosiveDef, Use, Vec3, WeaponAction, WeaponRules } from './types'\nimport { negate } from './vec'\n\ntype LauncherAction = Extract<WeaponAction, { kind: 'launcher' }>\ntype ThrowableAction = Extract<WeaponAction, { kind: 'throwable' }>\n\n/** Fraction of the throw speed added upwards so a throw arcs. */\nconst THROW_LIFT = 0.15\n\nconst PLACED_TRIGGERS: ReadonlySet<string> = new Set(['wire', 'remote'])\n\nconst blastNumbers = (explosive: ExplosiveDef): Pick<Extract<Use, { kind: 'throw' }>, 'energy' | 'injuryRadius'> => ({\n energy: explosive.energy,\n injuryRadius: explosive.injuryRadius,\n})\n\n/** The distance a launched projectile arms at: sampled from the fuze's `armRange` when it has one, else the launcher's `minArmDistance`. */\nexport const sampleArmDistance = (action: LauncherAction, explosive: ExplosiveDef | null, random: () => number): number => {\n const range = explosive?.armRange\n if (!range) return action.minArmDistance\n return range[0] + (range[1] - range[0]) * random()\n}\n\nexport type LauncherUsesParams = {\n readonly action: LauncherAction\n readonly explosive: ExplosiveDef | null\n readonly origin: Vec3\n readonly direction: Vec3\n /** Metres of flight before the fuze arms (default `action.minArmDistance`). */\n readonly armDistance?: number\n}\n\n/** The rocket or grenade a launcher fires, plus the blast behind the tube when the launcher has one. */\nexport const launcherUses = ({ action, explosive, origin, direction, armDistance }: LauncherUsesParams): Use[] => {\n const velocity: Vec3 = [direction[0] * action.speed, direction[1] * action.speed, direction[2] * action.speed]\n const projectile: Use = {\n kind: 'throw',\n energy: explosive?.energy ?? 0,\n radius: explosive?.lethalRadius ?? 0,\n fuse: 0,\n velocity,\n origin,\n explosive: action.projectile,\n trigger: 'impact',\n armDistance: armDistance ?? action.minArmDistance,\n ...(explosive ? { injuryRadius: explosive.injuryRadius } : {}),\n }\n if (action.backblast <= 0) return [projectile]\n return [projectile, { kind: 'backblast', radius: action.backblast, halfAngleDeg: action.backblastHalfAngleDeg ?? 180, origin, direction: negate(direction) }]\n}\n\nconst TIMER_TRIGGERS: ReadonlySet<string> = new Set(['timer', ...PLACED_TRIGGERS])\n\n/** Whether the explosive is set down instead of thrown: it waits for a trip wire or a detonator, or its fuse is so long that holding it makes no sense. */\nexport const isPlaced = (explosive: ExplosiveDef | null, fuse: number, rules: Pick<WeaponRules['explosives'], 'placeFuseFrom'>): boolean => {\n if (!explosive) return false\n if (explosive.triggers?.some((trigger) => PLACED_TRIGGERS.has(trigger))) return true\n return (explosive.triggers?.includes('timer') ?? false) && fuse >= rules.placeFuseFrom\n}\n\nexport type ThrowableUseParams = {\n readonly action: ThrowableAction\n readonly explosive: ExplosiveDef | null\n readonly origin: Vec3\n readonly direction: Vec3\n /** Seconds of fuse of this throw (sampled, or what is left after cooking). */\n readonly fuse: number\n /** Seconds the thrower held it after pulling the pin. */\n readonly cooked?: number\n /** Set off in the hand: no throw, the fuse is spent. */\n readonly inHand?: boolean\n readonly rules: Pick<WeaponRules['explosives'], 'placeFuseFrom' | 'tripwire'>\n}\n\nconst placedUse = ({ action, explosive, origin, direction, fuse, rules }: ThrowableUseParams & { explosive: ExplosiveDef }): Use => ({\n kind: 'place',\n explosive: explosive.id,\n triggers: (explosive.triggers ?? []).filter((trigger): trigger is 'timer' | 'wire' | 'remote' => TIMER_TRIGGERS.has(trigger)),\n energy: explosive.energy,\n radius: explosive.lethalRadius,\n injuryRadius: explosive.injuryRadius,\n ...(explosive.cone ? { cone: { halfAngleDeg: explosive.cone.halfAngleDeg, length: explosive.cone.length } } : {}),\n ...(explosive.triggers?.includes('wire') ? { tripwire: { ...rules.tripwire, ...explosive.tripwire } } : {}),\n ...(fuse > 0 && action.fuse > 0 ? { fuse } : {}),\n origin,\n direction,\n})\n\n/** One throw (or one charge set down) of a throwable: a fuse that counts from the throw, or an impact trigger when the fuse is 0. */\nexport const throwableUse = (params: ThrowableUseParams): Use => {\n const { action, explosive, origin, direction, fuse, cooked, inHand } = params\n if (explosive && isPlaced(explosive, fuse, params.rules)) return placedUse({ ...params, explosive })\n const velocity: Vec3 = inHand ? [0, 0, 0] : [direction[0] * action.throwSpeed, direction[1] * action.throwSpeed + action.throwSpeed * THROW_LIFT, direction[2] * action.throwSpeed]\n const use: Extract<Use, { kind: 'throw' }> = { kind: 'throw', energy: action.energy, radius: action.radius, fuse, velocity, origin }\n if (cooked !== undefined) use.cooked = cooked\n if (inHand) use.inHand = true\n if (action.fire) use.fire = { ...action.fire }\n if (!explosive) return use\n return {\n ...use,\n ...blastNumbers(explosive),\n radius: action.radius,\n explosive: explosive.id,\n trigger: fuse > 0 || inHand ? 'timer' : 'impact',\n armDistance: 0,\n ...(explosive.stunSeconds !== undefined ? { stunSeconds: explosive.stunSeconds } : {}),\n }\n}\n","import type { CaliberDef, FireMode, FirearmAction, WeaponAction, WeaponRules, WeaponTimings } from './types'\n\nconst EPS = 1e-9\nconst MANUAL_MODES: ReadonlySet<FireMode> = new Set(['pump', 'bolt', 'lever'])\n\nexport const weaponSpeed = (action: FirearmAction, caliber: CaliberDef): number => action.muzzleSpeed ?? caliber.muzzleSpeed * (action.barrel ?? 1)\n\nexport const weaponNoise = (action: FirearmAction, caliber: CaliberDef): number => action.noise ?? caliber.noise ?? 0\n\nexport const timingsOf = (action: WeaponAction): WeaponTimings | undefined => ('timings' in action ? action.timings : undefined)\n\nexport const drawSeconds = (action: WeaponAction, rules: WeaponRules): number => timingsOf(action)?.draw ?? rules.draw\n\nexport const clearSeconds = (action: WeaponAction, rules: WeaponRules): number => timingsOf(action)?.clear ?? rules.clear\n\n/** Seconds a manual action (pump, bolt, lever) needs to cycle after a shot; 0 for every other mode. */\nexport const manualCycleSeconds = (action: FirearmAction, mode: FireMode): number => (MANUAL_MODES.has(mode) ? action.timings?.cycle ?? 0 : 0)\n\n/** When each round of one pull leaves the barrel: a held auto trigger fires through the frame, a burst at the cyclic rate, a volley all at once. */\nexport const planRounds = (action: FirearmAction, mode: FireMode, ammo: number, firstAt: number, frameEnd: number): number[] => {\n const interval = 60 / action.rpm\n const times: number[] = []\n if (mode === 'auto') {\n for (let t = firstAt; times.length < ammo && (times.length === 0 ? t <= frameEnd + EPS : t < frameEnd - EPS); t += interval) times.push(t)\n return times\n }\n if (mode === 'burst') {\n const count = Math.min(action.burst ?? 3, ammo)\n for (let k = 0; k < count; k++) times.push(firstAt + k * interval)\n return times\n }\n if (mode === 'volley') return Array.from({ length: Math.min(action.magazine, ammo) }, () => firstAt)\n return [firstAt]\n}\n","import { weaponSpeed } from './fire'\nimport type { Arsenal, CaliberDef, WeaponAction, WeaponCategory, WeaponDef, WeaponRules } from './types'\n\nconst SUBSTEP_SECONDS = 1 / 60\nconst MAX_ROUNDS_SEARCHED = 100_000\n\ntype HeatRules = WeaponRules['heat']\n\n/** Kg of steel that heat up with the shots: barrel length times kg per metre of the category (or the weapon's own `barrelMass`), times the barrels a rotary gun shares. */\nexport const barrelMassOf = (def: WeaponDef, rules: HeatRules): number => {\n const dimensions = def.dimensions\n const kilogramsPerMetre = rules.barrelKilogramsPerMetre[def.category as WeaponCategory] ?? rules.barrelFallback.kilogramsPerMetre\n const single = dimensions?.barrelMass ?? (dimensions?.barrel ?? rules.barrelFallback.metres) * kilogramsPerMetre\n return single * (dimensions?.barrels ?? 1)\n}\n\n/** Seconds in which the barrel loses 1/e of its excess temperature. */\nexport const coolingTimeConstant = (barrelMass: number, rules: HeatRules): number => rules.cooling.baseSeconds + rules.cooling.secondsPerKilogram * barrelMass\n\n/** Cools a barrel: Newton's law, dT/dt = -T/tau, integrated exactly (the Galeria's linear Euler steps when `rules.gallery` is set). */\nexport const decayHeat = (heat: number, seconds: number, barrelMass: number, rules: HeatRules): number => {\n if (heat <= 0) return 0\n if (rules.gallery) return decayGallery(heat, seconds, rules.gallery)\n return heat * Math.exp(-seconds / coolingTimeConstant(barrelMass, rules))\n}\n\nconst decayGallery = (heat: number, seconds: number, gallery: NonNullable<HeatRules['gallery']>): number => {\n const steps = Math.max(1, Math.ceil(seconds / SUBSTEP_SECONDS - 1e-9))\n const step = seconds / steps\n let current = heat\n for (let i = 0; i < steps && current > 0; i++) current = Math.max(0, current - step * (gallery.decayBase + current * gallery.decayPerPoint))\n return current\n}\n\nexport type HeatPerRoundParams = {\n readonly action: WeaponAction\n readonly caliber: CaliberDef | null\n /** Muzzle energy of the whole round in joules (all the pellets of a shell). */\n readonly energy: number\n readonly barrelMass: number\n readonly rules: HeatRules\n}\n\n/** °C one round adds to the barrel: the share of its muzzle energy that ends in the steel over the heat capacity of the barrel. A rocket adds a fixed amount; a bow has no cartridge and adds none. */\nexport const heatPerRound = ({ action, caliber, energy, barrelMass, rules }: HeatPerRoundParams): number => {\n if (action.kind === 'launcher') return rules.perRocket\n const caseType = caliber?.caseType\n if (!caseType) return 0\n if (rules.gallery) return rules.gallery.perShot[caseType]\n return (rules.barrelShare[caseType] * energy) / (barrelMass * rules.specificHeat)\n}\n\nexport type RoundsToWarningParams = {\n readonly def: WeaponDef\n readonly caliber: CaliberDef\n /** Muzzle energy of one round in joules (one pellet when `caliber.pellets` says more). */\n readonly energy: number\n readonly rpm: number\n readonly rules: HeatRules\n}\n\n/** Rounds fired from cold at `rpm`, with no pause for reloads, before the barrel reaches the warning; Infinity when the cooling holds it below. */\nexport const roundsToWarning = ({ def, caliber, energy, rpm, rules }: RoundsToWarningParams): number => {\n if (def.action.kind !== 'firearm' || rpm <= 0) return Infinity\n const barrelMass = barrelMassOf(def, rules)\n const perRound = heatPerRound({ action: def.action, caliber, energy: energy * (caliber.pellets ?? 1), barrelMass, rules })\n const interval = 60 / rpm\n let heat = 0\n for (let round = 1; round <= MAX_ROUNDS_SEARCHED; round++) {\n heat = decayHeat(heat, round === 1 ? 0 : interval, barrelMass, rules) + perRound\n if (heat >= rules.faultFrom) return round\n }\n return Infinity\n}\n\n/** `roundsToWarning` for a weapon of the arsenal, from the muzzle energy of its own calibre and barrel at its listed rate of fire; Infinity for what has no cartridge or never heats up that far. */\nexport const roundsToWarningOf = (arsenal: Pick<Arsenal, 'weapons' | 'calibers' | 'rules'>, weaponId: string): number => {\n const def = arsenal.weapons.get(weaponId)\n if (!def || def.action.kind !== 'firearm') return Infinity\n const caliber = arsenal.calibers.get(def.action.caliber)\n if (!caliber) return Infinity\n const energy = 0.5 * (caliber.bulletGrams / 1000) * weaponSpeed(def.action, caliber) ** 2\n return roundsToWarning({ def, caliber, energy, rpm: def.action.rpm, rules: arsenal.rules.heat })\n}\n\n/** Each shot in the last few seconds makes the next one louder, up to a cap. */\nexport const burstNoise = (base: number, recentShots: number, rules: WeaponRules['noiseBurst']): number => base * (1 + Math.min(rules.cap, rules.step * recentShots))\n","import type { ReloadFamily, ReloadKind, ReloadStage } from './types'\n\ntype StageTable = Readonly<Record<ReloadKind, readonly ReloadStage[]>>\n\nconst magazineOut = { stage: 'magazine_out', at: 0 } as const\n// 0.45 s of the 0.82 s magazine swap in the gallery\nconst magazineIn = { stage: 'magazine_in', at: 0.549 } as const\n\nconst byMagazine = (chargeAt: number): StageTable => ({\n tactical: [magazineOut, magazineIn],\n empty: [magazineOut, magazineIn, { stage: 'charge', at: chargeAt }],\n one_by_one: [magazineOut, magazineIn],\n})\n\n// A reload that loads rounds one at a time: `round_in` opens the loading and the closing stage comes after the last round.\nconst byTube = (closing: ReloadStage | undefined): StageTable => ({\n tactical: [{ stage: 'round_in', at: 0 }],\n empty: closing ? [{ stage: 'round_in', at: 0 }, closing] : [{ stage: 'round_in', at: 0 }],\n one_by_one: [{ stage: 'round_in', at: 0 }],\n})\n\nconst revolverOpen = { stage: 'cylinder_open', at: 0 } as const\nconst revolverEject = { stage: 'cylinder_eject', at: 0.246 } as const\nconst revolverClose = { stage: 'cylinder_close', at: 0.808 } as const\nconst revolverJet: readonly ReloadStage[] = [revolverOpen, revolverEject, { stage: 'cylinder_load', at: 0.538 }, revolverClose]\nconst revolverRounds: readonly ReloadStage[] = [revolverOpen, revolverEject, revolverClose]\n\nconst breechSwing: readonly ReloadStage[] = [\n { stage: 'barrels_open', at: 0 },\n { stage: 'casings_eject', at: 0.208 },\n { stage: 'rounds_in', at: 0.542 },\n { stage: 'barrels_close', at: 0.833 },\n]\n\n// A grenade launcher under a barrel: the breech opens, the grenade goes in, the breech closes (the same stages for every kind of reload)\nconst breechLoad: readonly ReloadStage[] = [\n { stage: 'breech_open', at: 0 },\n { stage: 'round_in', at: 0.305 },\n { stage: 'breech_close', at: 0.724 },\n]\n\nconst beltSwap: readonly ReloadStage[] = [\n { stage: 'cover_open', at: 0 },\n { stage: 'belt_swap', at: 0.129 },\n { stage: 'cover_close', at: 0.581 },\n { stage: 'charge', at: 0.742 },\n]\n\n/** Families that load an empty tube round by round and then work the action (pump, lever, charging handle) to chamber the first round. */\nexport const LOADS_THEN_WORKS: ReadonlySet<ReloadFamily> = new Set<ReloadFamily>(['top_load_semi', 'tube_semi', 'pump', 'lever'])\n\n/** Where each step of a reload falls, as a fraction of its duration, from the key frames of the gallery animations. The runtime scales them to the duration of the weapon. */\nexport const RELOAD_STAGES: Readonly<Record<ReloadFamily, StageTable>> = {\n pistol: byMagazine(0.872),\n magazine: byMagazine(0.701),\n top_magazine: byMagazine(0.701),\n top_load_semi: byTube({ stage: 'charge', at: 0.893 }),\n tube_semi: byTube({ stage: 'charge', at: 0.88 }),\n pump: byTube({ stage: 'pump_cycle', at: 0.88 }),\n lever: byTube({ stage: 'lever_cycle', at: 0.873 }),\n bolt: {\n tactical: [{ stage: 'bolt_open', at: 0 }, { stage: 'round_in', at: 0.14 }, { stage: 'bolt_close', at: 0.86 }],\n empty: [{ stage: 'bolt_open', at: 0 }, { stage: 'round_in', at: 0.14 }, { stage: 'bolt_close', at: 0.86 }],\n one_by_one: [{ stage: 'bolt_open', at: 0 }, { stage: 'round_in', at: 0.14 }, { stage: 'bolt_close', at: 0.86 }],\n },\n bolt_magazine: {\n tactical: [magazineOut, magazineIn, { stage: 'bolt_open', at: 0.599 }, { stage: 'bolt_close', at: 0.89 }],\n empty: [magazineOut, magazineIn, { stage: 'bolt_open', at: 0.599 }, { stage: 'bolt_close', at: 0.89 }],\n one_by_one: [magazineOut, magazineIn],\n },\n belt: { tactical: beltSwap, empty: beltSwap, one_by_one: beltSwap },\n revolver: { tactical: revolverJet, empty: revolverJet, one_by_one: revolverRounds },\n break: { tactical: breechSwing, empty: breechSwing, one_by_one: breechSwing },\n // tactical: reusable launcher takes a rocket; empty: disposable tube is dropped and a new one seated; one_by_one: breech-loaded grenade\n rocket: {\n tactical: [{ stage: 'rocket_seat', at: 0 }],\n empty: [{ stage: 'tube_drop', at: 0 }, { stage: 'tube_seat', at: 0.522 }],\n one_by_one: [\n { stage: 'breech_open', at: 0 },\n { stage: 'round_in', at: 0.305 },\n { stage: 'breech_close', at: 0.724 },\n ],\n },\n underbarrel: { tactical: breechLoad, empty: breechLoad, one_by_one: breechLoad },\n flame: {\n tactical: [{ stage: 'tank_swap', at: 0 }],\n empty: [{ stage: 'tank_swap', at: 0 }],\n one_by_one: [{ stage: 'tank_swap', at: 0 }],\n },\n}\n","import { LOADS_THEN_WORKS, RELOAD_STAGES } from './reload-stages'\nimport type { ReloadKind, ReloadRequest, ReloadStageId, WeaponAction } from './types'\n\nexport type ReloadableAction = Extract<WeaponAction, { kind: 'firearm' | 'launcher' }>\n\nexport interface ReloadPlan {\n readonly kind: ReloadKind\n /** Seconds per round when the weapon loads one at a time, null when the whole magazine goes in at once. */\n readonly step: number | null\n /** Seconds until the first round (or the whole magazine) is in. */\n readonly first: number\n /** Seconds of the whole reload; the stages are placed along it. */\n readonly total: number\n /** Rounds that go in one at a time (0 when the whole magazine goes in at once). */\n readonly rounds: number\n /** Seconds after the last round for the action to be worked (the pump, the lever, the charging handle of an empty tube), 0 when there is none. */\n readonly tail: number\n}\n\n/** Seconds the action takes to be worked after an empty tube is loaded when the rule gives no `timings.cycle`. */\nexport const ACTION_WORK_SECONDS = 0.5\n/** Seconds the last round of an empty tube takes to be seated (the hand puts it in, leaves the port and is back on the grip) before the action is worked. */\nexport const ACTION_DELAY_SECONDS = 0.6\n\nexport const isReloadable = (action: WeaponAction): action is ReloadableAction => action.kind === 'firearm' || action.kind === 'launcher'\n\nconst baseSeconds = (action: ReloadableAction): number => action.timings?.reload ?? action.reload\n\nconst secondsPerRound = (action: ReloadableAction): number | undefined => {\n if (action.kind !== 'firearm') return undefined\n return action.timings?.perRound ?? (action.perRound ? baseSeconds(action) : undefined)\n}\n\nconst pickKind = (action: ReloadableAction, ammo: number, oneAtATime: boolean, request: ReloadRequest): ReloadKind => {\n if (action.kind === 'launcher') return action.disposable ? 'empty' : 'tactical'\n if (request === 'one_by_one' && oneAtATime) return 'one_by_one'\n if (request === 'full') return ammo === 0 ? 'empty' : 'tactical'\n if (oneAtATime && (action.family === 'revolver' || ammo > 0)) return 'one_by_one'\n return ammo === 0 ? 'empty' : 'tactical'\n}\n\n/** How a reload goes: tactical (a magazine swap), empty (with the action to work after) or one by one; `full` loads a revolver all at once with a speed loader. */\nexport const planReload = (action: ReloadableAction, ammo: number, capacity: number, reserve: number, request: ReloadRequest): ReloadPlan => {\n const perRound = secondsPerRound(action)\n const revolver = action.kind === 'firearm' && action.family === 'revolver'\n const oneAtATime = perRound !== undefined && request !== 'full'\n const kind = pickKind(action, ammo, oneAtATime, request)\n if (perRound !== undefined && oneAtATime && (kind === 'one_by_one' || (kind === 'empty' && action.kind === 'firearm' && !revolver))) {\n const rounds = Math.max(1, Math.min(capacity - ammo, reserve))\n const loading = rounds * perRound\n const works = kind === 'empty' && action.kind === 'firearm' && action.family !== undefined && LOADS_THEN_WORKS.has(action.family)\n // the last round needs `ACTION_DELAY_SECONDS` to be seated before the action is worked, and the closing stage sits at a fraction of the reload (the tables, 0.87 to 0.89): the\n // action never starts before the last round is in and seated\n const closingAt = works && action.family ? RELOAD_STAGES[action.family].empty.find((entry) => entry.stage !== 'round_in')?.at ?? 0.88 : 0.88\n const tail = works ? Math.max(ACTION_DELAY_SECONDS + (action.timings?.cycle ?? ACTION_WORK_SECONDS), (loading + ACTION_DELAY_SECONDS) / closingAt - loading) : 0\n return { kind, step: perRound, first: perRound, total: loading + tail, rounds, tail }\n }\n const seconds = kind === 'empty' ? action.timings?.reloadEmpty ?? baseSeconds(action) : baseSeconds(action)\n return { kind, step: null, first: seconds, total: seconds, rounds: 0, tail: 0 }\n}\n\n/** The steps of a reload with the time they happen, scaled to the duration of this weapon's reload. */\nexport const reloadStages = (action: ReloadableAction, plan: ReloadPlan, startAt: number): { stage: ReloadStageId; at: number }[] => {\n if (!action.family) return []\n return RELOAD_STAGES[action.family][plan.kind].map((entry) => ({ stage: entry.stage, at: startAt + entry.at * plan.total }))\n}\n","import type { AmmoQualityDef, CaliberDef, ConditionDef, FaultId, ReloadFamily, WeaponDef, WeaponRules } from './types'\n\nconst MISFIRE_ONLY: ReadonlySet<ReloadFamily | undefined> = new Set(['revolver', 'break'])\nconst MANUAL: ReadonlySet<ReloadFamily | undefined> = new Set(['pump', 'bolt', 'bolt_magazine', 'lever'])\nconst MISFIRE_SHARE = 0.35\nconst STOVEPIPE_UPTO = 0.8\n\nexport interface FaultRoll {\n readonly def: WeaponDef\n readonly caliber: CaliberDef | null\n readonly condition: ConditionDef\n readonly ammoQuality: AmmoQualityDef\n readonly heat: number\n readonly rules: WeaponRules\n readonly random: () => number\n}\n\n/** Whether the round about to fire jams, and how. Only a weapon that fires cartridges can. */\nexport const rollFault = (roll: FaultRoll): FaultId | null => {\n const action = roll.def.action\n if (!roll.rules.faults || action.kind !== 'firearm' || !roll.caliber?.caseType) return null\n if (roll.random() < roll.rules.faultChance({ def: roll.def, condition: roll.condition, heat: roll.heat })) {\n const kind = roll.random()\n if (MISFIRE_ONLY.has(action.family) || kind < MISFIRE_SHARE) return 'misfire'\n if (MANUAL.has(action.family)) return 'failure_to_extract'\n return kind < STOVEPIPE_UPTO ? 'stovepipe' : 'double_feed'\n }\n return roll.ammoQuality.faultChance > 0 && roll.random() < roll.ammoQuality.faultChance ? 'misfire' : null\n}\n\n/** A dud in a revolver or a break-action just spends the round; anywhere else the round stays in the chamber and the weapon jams. */\nexport const isDudWithoutJam = (action: WeaponDef['action'], fault: FaultId): boolean => fault === 'misfire' && action.kind === 'firearm' && MISFIRE_ONLY.has(action.family)\n","import type { AttachmentDef, AttachmentId, FittedAttachment, StatModifier, WeaponStat } from './attachment-types'\nimport type { CaliberDef, FirearmAction, WeaponAction, WeaponDef, WeaponRules } from './types'\n\n/** How the weapon is held and what it is in: what the conditional effects (`aiming`, `hip`, `supported`, `subsonic`, `collapsed`) ask. */\nexport interface LoadoutContext {\n readonly aiming: boolean\n readonly supported: boolean\n readonly stock: 'collapsed' | 'extended'\n readonly caliber: CaliberDef | null\n readonly rules: Pick<WeaponRules, 'attachments' | 'aim' | 'stock'> & Partial<Pick<WeaponRules, 'dualWield'>>\n /** One hand with another weapon in the other: `rules.dualWield` makes the spread and the recoil worse. */\n readonly dualWield?: boolean\n}\n\nexport interface Loadout {\n /** The action with every effect applied; the very object of the def when nothing differs from the weapon as it ships. */\n readonly action: WeaponAction\n /** Kg: the weapon with what is on it. */\n readonly mass: number\n /** Seconds to raise the weapon to the sights. */\n readonly aimSeconds: number\n /** Times the spread when not aiming. */\n readonly hipFactor: number\n readonly suppressed: boolean\n readonly drawFactor: number\n readonly heatFactor: number\n readonly faultFactor: number\n /** What a dual coupler does to the reload of every second magazine change (1: nothing). */\n readonly secondReloadFactor: number\n readonly optic: AttachmentDef['optic'] | undefined\n readonly light: (NonNullable<AttachmentDef['light']> & { readonly id: AttachmentId }) | undefined\n readonly laser: (NonNullable<AttachmentDef['laser']> & { readonly id: AttachmentId }) | undefined\n}\n\n/** No weapon in the other hand: the numbers as they are. */\nconst ONE_HAND = { spread: 1, recoil: 1 } as const\n\ntype Catalogue = ReadonlyMap<AttachmentId, AttachmentDef>\ntype Condition = NonNullable<StatModifier['when']>\ntype Effects = readonly (readonly StatModifier[])[]\n\n/** The accessories that count: a light or a laser only while it is on. */\nconst activeParts = (fitted: readonly FittedAttachment[], catalogue: Catalogue): AttachmentDef[] =>\n fitted.flatMap((part) => {\n const def = catalogue.get(part.id)\n const isOn = def?.kind !== 'light' && def?.kind !== 'laser' ? true : part.on === true\n return def && isOn ? [def] : []\n })\n\nconst holds = (when: Condition | undefined, active: ReadonlySet<Condition>): boolean => when === undefined || when === 'always' || active.has(when)\n\nconst modifiersOf = (name: WeaponStat, sources: Effects, active: ReadonlySet<Condition>): StatModifier[] =>\n sources.flatMap((effects) => effects.filter((effect) => effect.stat === name && holds(effect.when, active)))\n\nconst sum = (modifiers: readonly StatModifier[]): number => modifiers.reduce((total, modifier) => total + (modifier.add ?? 0), 0)\nconst product = (modifiers: readonly StatModifier[]): number => modifiers.reduce((total, modifier) => total * (modifier.mul ?? 1), 1)\n\ninterface StatSources {\n readonly now: Effects\n /** The effects of what the weapon ships with: they are in the base numbers already. */\n readonly shipped: Effects\n /** What already held when the base numbers were made: only `subsonic`, for a weapon that is subsonic with its factory parts on (the MP5SD). */\n readonly shippedActive?: ReadonlySet<Condition>\n}\n\n/** Takes out of both lists the very same modifier objects (one for one), so a factory part that is still on cancels exactly whatever order the parts are in. */\nconst cancelShipped = (current: readonly StatModifier[], shipped: readonly StatModifier[]): [StatModifier[], StatModifier[]] => {\n const added = [...current]\n const taken: StatModifier[] = []\n for (const modifier of shipped) {\n const index = added.indexOf(modifier)\n if (index === -1) taken.push(modifier)\n else added.splice(index, 1)\n }\n return [added, taken]\n}\n\n/**\n * One number of the weapon with everything on it: every `set` first (the last wins), then the sum of the `add`s, then the product of the `mul`s.\n * The factory parts' effects that always count are in `base` already, so they are taken back out: with the same parts on, the result is `base`\n * itself, and without one of them it is what the weapon would be without it.\n */\nconst stat = (name: WeaponStat, base: number, sources: StatSources, active: ReadonlySet<Condition>): number => {\n const current = modifiersOf(name, sources.now, active)\n const lastSet = [...current].reverse().find((modifier) => modifier.set !== undefined)?.set\n if (lastSet !== undefined) return (lastSet + sum(current)) * product(current)\n const [added, taken] = cancelShipped(current, modifiersOf(name, sources.shipped, sources.shippedActive ?? new Set<Condition>()))\n return (base + (sum(added) - sum(taken))) * (product(added) / product(taken))\n}\n\nconst baseSpeedOf = (action: FirearmAction, caliber: CaliberDef | null): number => action.muzzleSpeed ?? (caliber?.muzzleSpeed ?? 0) * (action.barrel ?? 1)\n\nconst scaleTimings = (timings: NonNullable<FirearmAction['timings']>, reload: number, empty: number): NonNullable<FirearmAction['timings']> => ({\n ...timings,\n reload: timings.reload * reload,\n ...(timings.reloadEmpty === undefined ? {} : { reloadEmpty: timings.reloadEmpty * reload * empty }),\n ...(timings.perRound === undefined ? {} : { perRound: timings.perRound * reload }),\n})\n\ninterface ActionEffects {\n readonly spread: number\n readonly recoil: [number, number]\n readonly range: number\n readonly noise: number | undefined\n readonly speed: number\n readonly magazine: number\n readonly reload: number\n readonly empty: number\n}\n\nconst isUnchanged = (action: FirearmAction, effects: ActionEffects, context: LoadoutContext): boolean =>\n effects.spread === action.spreadDeg &&\n effects.recoil[0] === action.recoil[0] &&\n effects.recoil[1] === action.recoil[1] &&\n effects.range === action.range &&\n effects.noise === (action.noise ?? context.caliber?.noise) &&\n effects.speed === baseSpeedOf(action, context.caliber) &&\n effects.magazine === action.magazine &&\n effects.reload === 1 &&\n effects.empty === 1\n\nconst applyEffects = (action: FirearmAction, effects: ActionEffects): FirearmAction => ({\n ...action,\n spreadDeg: effects.spread,\n recoil: effects.recoil,\n range: effects.range,\n ...(effects.noise === undefined ? {} : { noise: effects.noise }),\n muzzleSpeed: effects.speed,\n magazine: effects.magazine,\n reload: action.reload * effects.reload,\n ...(action.timings ? { timings: scaleTimings(action.timings, effects.reload, effects.empty) } : {}),\n})\n\n/** The weapon with what is on it: the numbers of the action, the mass, the time to aim, and the lights, laser and optic that are on. */\nexport const resolveLoadout = (def: WeaponDef, fitted: readonly FittedAttachment[], catalogue: Catalogue, context: LoadoutContext): Loadout => {\n const parts = activeParts(fitted, catalogue)\n const factory = activeParts(def.fitted ?? [], catalogue)\n const isRegular = (part: AttachmentDef): boolean => part.secondReload !== true\n const collapsedStock = context.stock === 'collapsed' ? [context.rules.stock.collapsed] : []\n const shipsSubsonic = def.action.kind === 'firearm' && baseSpeedOf(def.action, context.caliber) < context.rules.attachments.speedOfSound\n const sources: StatSources = {\n now: [...parts.filter(isRegular).map((part) => part.effects), ...collapsedStock],\n shipped: factory.filter(isRegular).map((part) => part.effects),\n ...(shipsSubsonic ? { shippedActive: new Set<Condition>(['subsonic']) } : {}),\n }\n const baseActive = new Set<Condition>([context.aiming ? 'aiming' : 'hip'])\n if (context.supported || parts.some((part) => part.kind === 'mount')) baseActive.add('supported')\n if (context.stock === 'collapsed') baseActive.add('collapsed')\n\n const firearm = def.action.kind === 'firearm' ? def.action : undefined\n const speed = firearm ? stat('muzzleSpeed', baseSpeedOf(firearm, context.caliber), sources, baseActive) : 0\n const active = new Set(baseActive)\n if (firearm && speed < context.rules.attachments.speedOfSound) active.add('subsonic')\n const read = (name: WeaponStat, base: number): number => stat(name, base, sources, active)\n\n const mass = read('mass', def.mass + parts.reduce((total, part) => total + part.mass, 0) - factory.reduce((total, part) => total + part.mass, 0))\n const hipFactor = context.aiming ? 1 : 1 + (context.rules.aim.hipSpread - 1) * read('hipSpreadExcess', 1)\n const dual = context.dualWield && context.rules.dualWield ? context.rules.dualWield : ONE_HAND\n let action: WeaponAction = def.action\n if (firearm) {\n const baseNoise = firearm.noise ?? context.caliber?.noise\n const effects: ActionEffects = {\n spread: read('spread', firearm.spreadDeg) * hipFactor * dual.spread,\n recoil: [read('recoilVertical', firearm.recoil[0]) * dual.recoil, read('recoilHorizontal', firearm.recoil[1]) * dual.recoil],\n range: read('range', firearm.range),\n noise: baseNoise === undefined ? undefined : read('noise', baseNoise),\n speed,\n magazine: Math.max(1, Math.round(read('capacity', firearm.magazine))),\n reload: read('reload', 1),\n empty: read('reloadEmpty', 1),\n }\n if (!isUnchanged(firearm, effects, context)) action = applyEffects(firearm, effects)\n }\n const lit = parts.find((part) => part.light)\n const beam = parts.find((part) => part.laser)\n return {\n action,\n mass,\n aimSeconds: read('aim', context.rules.aim.base + context.rules.aim.perKg * mass),\n hipFactor,\n suppressed: parts.some((part) => part.kind === 'suppressor'),\n drawFactor: read('draw', 1),\n heatFactor: read('heatPerShot', 1),\n faultFactor: read('faultChance', 1),\n secondReloadFactor: stat('reload', 1, { now: parts.filter((part) => !isRegular(part)).map((part) => part.effects), shipped: [] }, active),\n optic: parts.find((part) => part.optic)?.optic,\n light: lit?.light ? { ...lit.light, id: lit.id } : undefined,\n laser: beam?.laser ? { ...beam.laser, id: beam.id } : undefined,\n }\n}\n","import type { AttachmentDef, AttachmentId, WeaponSnapshot } from './attachment-types'\nimport type { IsCompatible } from './attachments'\nimport type {\n AmmoDef,\n AmmoKind,\n CaliberDef,\n ExplosiveDef,\n TriggerResult,\n WeaponDef,\n WeaponId,\n WeaponState,\n WeaponEvent,\n WeaponRules,\n} from './types'\n\nexport const EPS = 1e-9\n/** Total spread (base + bloom) never exceeds this many times the base spread. */\nexport const BLOOM_CAP = 4\n\n/** Muzzle energy in joules of ONE projectile (a bullet, or one pellet): 0.5 × mass × speed², speed scaled by the barrel factor. */\nexport const muzzleEnergy = (caliber: CaliberDef, barrel = 1): number => {\n const v = caliber.muzzleSpeed * barrel\n return 0.5 * (caliber.bulletGrams / 1000) * v * v\n}\n\nexport interface WeaponStateInit {\n def: WeaponDef\n caliber: CaliberDef | null\n seed: number\n reserve?: number\n rules: WeaponRules\n /** What a launcher shoots, or the explosive a throwable carries. */\n explosive?: ExplosiveDef | null\n condition?: string\n ammoQuality?: string\n /** Kind of round loaded (the calibre's own kind when absent) and the ammo table it is looked up in. */\n ammoKind?: AmmoKind\n ammo?: ReadonlyMap<string, AmmoDef>\n /** The accessories of the arsenal, by id (without them the weapon carries only its own numbers). */\n attachments?: ReadonlyMap<AttachmentId, AttachmentDef>\n isCompatible?: IsCompatible\n /** Makes the state of the launcher under the barrel (`attachment.launcher`), from the seed given and, when restoring, its own snapshot. */\n makeUnderbarrel?: (id: WeaponId, seed: number, snapshot?: WeaponSnapshot) => WeaponState\n /** Weapon, with its parts and ammunition, to start from instead of a fresh one. */\n snapshot?: WeaponSnapshot\n}\n\n/** Something that happens at a later time of the weapon clock. */\nexport interface Scheduled {\n readonly at: number\n readonly tag?: 'reload'\n readonly event?: WeaponEvent\n readonly apply?: () => void\n}\n\nexport const FAULT_RNG_SALT = 0x6a09e667\n/** Stream of the fuse sampling: separate from the spread and the faults, so a sampled fuse never shifts a shot. */\nexport const FUSE_RNG_SALT = 0xbb67ae85\n/** Stream that draws the shot a home-made suppressor breaks on: separate, so a break never moves a spread or a fault. */\nexport const BREAK_RNG_SALT = 0x3c6ef372\n/** Seed of the launcher under the barrel: its own streams, so the rifle's spread does not move. */\nexport const UNDERBARREL_SEED_SALT = 0xa54ff53a\n\nexport const findById = <TEntry extends { readonly id: string }>(entries: readonly TEntry[], id: string, label: string): TEntry => {\n const found = entries.find((entry) => entry.id === id)\n if (!found) throw new Error(`game-weapons: unknown ${label} \"${id}\"`)\n return found\n}\n\nexport const result = (status: TriggerResult['status'], extra: Partial<TriggerResult> = {}): TriggerResult => ({\n shots: [],\n uses: [],\n status,\n recoil: [0, 0],\n noise: 0,\n rounds: 0,\n roundTimes: [],\n ...extra,\n})\n\n/** Runtime of one weapon. See `WeaponState` for the contract. */\n","import { barrelMassOf, decayHeat } from './heat'\nimport { isReloadable } from './reload'\nimport { createRng } from './rng'\nimport type { AmmoDef, AmmoKind, AmmoQualityDef, CaliberDef, ConditionDef, ExplosiveDef, FaultId, FireMode, ReloadKind, Vec3, WeaponAction, WeaponDef, WeaponEvent, WeaponPhase, WeaponRules } from './types'\nimport { EPS, FAULT_RNG_SALT, FUSE_RNG_SALT, findById } from './weapon-shared'\nimport type { Scheduled, WeaponStateInit } from './weapon-shared'\n\nconst DEFAULT_THROWABLES = 3\n\n/** State and clock of one weapon: ammunition, phases, scheduled events and reload settling. Commands and firing are layered on top. */\nexport abstract class WeaponCore {\n readonly def: WeaponDef\n readonly caliber: CaliberDef | null\n reserve: number\n mode: FireMode\n protected _ammo: number\n protected _capacity: number\n /** What the weapon does now: the numbers of the def with the effects of the accessories on it (the def's own action when there are none). */\n protected action: WeaponAction\n protected readonly rng: () => number\n protected readonly initialReserve: number\n protected readonly rules: WeaponRules\n protected readonly faultRng: () => number\n protected readonly fuseRng: () => number\n /** Metres of safety fuse set by the host; replaces the `fuseLength` of the explosive. */\n protected fuseLengthOverride: number | undefined\n protected readonly explosive: ExplosiveDef | null\n\n protected clock = 0\n /** Time already advanced by the other of update / trigger in the same frame (so calling both does not count `dt` twice). */\n protected pend: { src: 'update' | 'trigger'; amt: number } | null = null\n protected readyAt = 0\n protected latched = false\n /** A throwable whose pin is pulled: the clock it started at, its whole fuse and the aim of the last frame it was held. */\n protected cook: { readonly start: number; readonly fuse: number; origin: Vec3; direction: Vec3 } | null = null\n\n protected _reloading = false\n protected reloadEnd = 0\n /** Seconds per round while a one-by-one reload runs; null when the magazine goes in at once. */\n protected loadStep: number | null = null\n /** Seconds of the action worked after the last round of an empty tube. */\n protected reloadTail = 0\n protected _locked = false\n protected reloadKind: ReloadKind = 'tactical'\n protected drawEnd = 0\n protected _phase: WeaponPhase | null = null\n protected _fault: FaultId | null = null\n protected _clearing = false\n protected _safety: boolean\n protected _heat = 0\n protected _condition: ConditionDef\n protected _ammoQuality: AmmoQualityDef\n /** Kind of round loaded; undefined = the calibre's own. */\n protected _ammoKind: AmmoKind | undefined\n protected readonly ammoTable: ReadonlyMap<string, AmmoDef> | undefined\n /** Times of the shots that still count for the noise of a burst. */\n protected recentShots: number[] = []\n protected events: WeaponEvent[] = []\n protected scheduled: Scheduled[] = []\n\n /** Bloom degrees at `extraClock`. */\n protected extra = 0\n protected extraClock = 0\n\n constructor(init: WeaponStateInit) {\n this.def = init.def\n this.caliber = init.caliber\n this.action = init.def.action\n this.rules = init.rules\n this.rng = createRng(init.seed)\n this.faultRng = createRng((init.seed ^ FAULT_RNG_SALT) >>> 0)\n this.fuseRng = createRng((init.seed ^ FUSE_RNG_SALT) >>> 0)\n this.explosive = init.explosive ?? null\n this.ammoTable = init.ammo\n this._ammoKind = init.ammoKind ?? (init.snapshot?.ammoKind as AmmoKind | undefined)\n this._safety = init.rules.startSafe\n this._condition = findById(init.rules.conditions, init.condition ?? init.rules.defaultCondition, 'condition')\n this._ammoQuality = findById(init.rules.ammoQualities, init.ammoQuality ?? init.rules.defaultAmmoQuality, 'ammo quality')\n const a = this.action\n this.mode = a.kind === 'firearm' ? a.modes[0] ?? 'single' : 'single'\n switch (a.kind) {\n case 'firearm':\n case 'launcher':\n this._capacity = a.magazine\n break\n case 'flame':\n case 'heat':\n this._capacity = a.fuel\n break\n case 'extinguisher':\n this._capacity = a.charge\n break\n case 'throwable':\n this._capacity = a.count ?? DEFAULT_THROWABLES\n break\n default:\n this._capacity = 0\n }\n this._ammo = this._capacity\n this.initialReserve = init.reserve ?? (isReloadable(a) ? a.magazine * 3 : 0)\n this.reserve = this.initialReserve\n }\n\n get ammo(): number {\n return this._ammo\n }\n get capacity(): number {\n return this._capacity\n }\n /** True while a throwable's pin is pulled and the trigger is held. */\n get cooking(): boolean {\n return this.cook !== null\n }\n get reloading(): boolean {\n return this._reloading\n }\n get locked(): boolean {\n return this._locked\n }\n get phase(): WeaponPhase | null {\n const phase = this._phase\n return phase && this.clock < phase.end - EPS ? phase : null\n }\n get fault(): FaultId | null {\n return this._fault\n }\n get clearing(): boolean {\n return this._clearing\n }\n get safety(): boolean {\n return this._safety\n }\n /** Kg of steel that heat up with the shots. */\n protected get barrelMass(): number {\n return barrelMassOf(this.def, this.rules.heat)\n }\n get heat(): number {\n return this._heat\n }\n get heatLevel(): number {\n return Math.min(1, this._heat / this.rules.heat.displayMax)\n }\n get condition(): string {\n return this._condition.id\n }\n get ammoKind(): AmmoKind | undefined {\n return this._ammoKind ?? this.caliber?.kind\n }\n get ammoQuality(): string {\n return this._ammoQuality.id\n }\n get spread(): number {\n if (this.action.kind !== 'firearm') return 0\n return this.action.spreadDeg + this.extraAt(this.clock)\n }\n\n protected extraAt(t: number): number {\n if (this.action.kind !== 'firearm') return 0\n const rec = this.action.recoveryDegPerS ?? 4\n return Math.max(0, this.extra - rec * Math.max(0, t - this.extraClock))\n }\n\n // --- time -----------------------------------------------------------------------------------------------------------------------\n\n update(dt: number): void {\n const d = Math.max(0, dt)\n let eff = d\n if (this.pend && this.pend.src === 'trigger') {\n eff = Math.max(0, d - this.pend.amt)\n this.pend = null\n } else {\n this.pend = { src: 'update', amt: d }\n }\n this.advance(eff)\n this.settle(this.clock)\n }\n\n protected emit(event: WeaponEvent): void {\n this.events.push(event)\n }\n\n protected schedule(item: Scheduled): void {\n const index = this.scheduled.findIndex((other) => other.at > item.at)\n if (index < 0) this.scheduled.push(item)\n else this.scheduled.splice(index, 0, item)\n }\n\n drain(): WeaponEvent[] {\n const drained = this.events.sort((a, b) => a.at - b.at)\n this.events = []\n return drained\n }\n\n protected advance(seconds: number): void {\n if (seconds <= 0) return\n this._heat = decayHeat(this._heat, seconds, this.barrelMass, this.rules.heat)\n this.clock += seconds\n }\n\n /** Complete what falls at or before `t`: scheduled events and the reload steps. */\n protected settle(t: number): void {\n while (this.scheduled[0] && this.scheduled[0].at <= t + EPS) {\n const item = this.scheduled.shift() as Scheduled\n item.apply?.()\n if (item.event) this.emit(item.event)\n }\n const a = this.action\n if (!isReloadable(a)) return\n while (this._reloading && this.reloadEnd <= t + EPS) {\n const doneAt = this.reloadEnd\n if (this.loadStep !== null) {\n if (this.reserve > 0 && this._ammo < this._capacity) {\n this._ammo += 1\n this.reserve -= 1\n this.emit({ type: 'feed', at: doneAt })\n }\n if (this._ammo >= this._capacity || this.reserve <= 0) {\n // an empty tube: the action is worked after the last round, then the reload is over\n this.loadStep = null\n if (this.reloadTail > 0) {\n this.reloadEnd = doneAt + this.reloadTail\n this.reloadTail = 0\n } else this.finishReload(doneAt)\n } else this.reloadEnd += this.loadStep\n } else {\n const take = Math.min(this._capacity - this._ammo, this.reserve)\n this._ammo += take\n this.reserve -= take\n this.finishReload(doneAt)\n }\n }\n }\n\n protected finishReload(at: number): void {\n this._reloading = false\n this._locked = false\n this.emit({ type: 'reload', phase: 'end', kind: this.reloadKind, at })\n }\n\n protected stopReload(at: number): void {\n this._reloading = false\n this._phase = null\n this.scheduled = this.scheduled.filter((item) => item.tag !== 'reload')\n this.emit({ type: 'reload', phase: 'end', kind: this.reloadKind, at })\n }\n\n release(): void {\n this.latched = false\n }\n}\n","import { ammoId } from './ammo'\nimport { clearSeconds, drawSeconds } from './fire'\nimport { isReloadable, planReload, reloadStages } from './reload'\nimport type { AmmoKind, FireMode, ReloadRequest } from './types'\nimport { WeaponCore } from './weapon-core'\nimport { EPS, findById } from './weapon-shared'\n\n/** Commands that change the state of a weapon: safety, fault clearing, condition, draw, reload, fire mode and refill. */\nexport abstract class WeaponCommands extends WeaponCore {\n setSafety(on: boolean): boolean {\n if (!isReloadable(this.action) || on === this._safety) return this._safety\n this._safety = on\n this.emit({ type: 'safety', on, at: this.clock })\n return on\n }\n\n clearFault(): boolean {\n const fault = this._fault\n if (!fault || this._clearing) return false\n const endAt = this.clock + clearSeconds(this.action, this.rules)\n this._clearing = true\n this._phase = { id: 'clear', start: this.clock, end: endAt }\n this.emit({ type: 'clear', fault, phase: 'start', at: this.clock })\n const finish = (): void => {\n this._fault = null\n this._clearing = false\n if (fault === 'misfire') this._ammo = Math.max(0, this._ammo - 1) // the dud is ejected\n }\n this.schedule({ at: endAt, event: { type: 'clear', fault, phase: 'end', at: endAt }, apply: finish })\n return true\n }\n\n setCondition(id: string): void {\n this._condition = findById(this.rules.conditions, id, 'condition')\n }\n\n setAmmoQuality(id: string): void {\n this._ammoQuality = findById(this.rules.ammoQualities, id, 'ammo quality')\n }\n\n setAmmoKind(kind: AmmoKind): void {\n const cal = this.caliber\n if (!cal) throw new Error(`game-weapons: \"${this.def.id}\" has no calibre to load`)\n if (!this.ammoTable?.has(ammoId(cal.id, kind))) throw new Error(`game-weapons: no ammo \"${ammoId(cal.id, kind)}\" in the table`)\n this._ammoKind = kind\n }\n\n setFuseLength(metres: number | undefined): void {\n this.fuseLengthOverride = metres\n }\n\n /** Seconds to put the weapon in hand. */\n protected drawDuration(): number {\n return drawSeconds(this.action, this.rules)\n }\n\n draw(): void {\n const seconds = this.drawDuration()\n this.drawEnd = this.clock + seconds\n this._phase = { id: 'draw', start: this.clock, end: this.drawEnd }\n this.emit({ type: 'draw', phase: 'start', at: this.clock })\n this.schedule({ at: this.drawEnd, event: { type: 'draw', phase: 'end', at: this.drawEnd } })\n }\n\n reload(request: ReloadRequest = 'auto'): boolean {\n const a = this.action\n if (a.kind === 'throwable') {\n if (this._ammo >= this._capacity || this.reserve <= 0) return false\n this._ammo += 1\n this.reserve -= 1\n return true\n }\n if (!isReloadable(a) || this._reloading || this._fault || this._clearing || this.clock < this.drawEnd - EPS) return false\n if ((this._ammo >= this._capacity && !this._locked) || this.reserve <= 0) return false\n const plan = planReload(a, this._ammo, this._capacity, this.reserve, request)\n this._reloading = true\n this.loadStep = plan.step\n this.reloadTail = plan.tail\n this.reloadKind = plan.kind\n this.reloadEnd = this.clock + plan.first\n this._phase = { id: 'reload', start: this.clock, end: this.clock + plan.total }\n this.emit({ type: 'reload', phase: 'start', kind: plan.kind, at: this.clock })\n for (const { stage, at } of reloadStages(a, plan, this.clock)) this.schedule({ at, tag: 'reload', event: { type: 'reload_stage', stage, at } })\n return true\n }\n\n cycleMode(): FireMode {\n if (this.action.kind !== 'firearm') return this.mode\n const modes = this.action.modes\n const i = modes.indexOf(this.mode)\n this.mode = modes[(i + 1) % modes.length] ?? this.mode\n this.emit({ type: 'mode', mode: this.mode, at: this.clock })\n return this.mode\n }\n\n refill(): void {\n this._ammo = this._capacity\n this.reserve = this.initialReserve\n this._reloading = false\n this._locked = false\n this._fault = null\n this._clearing = false\n this._phase = null\n this.scheduled = []\n this.readyAt = this.clock\n this.latched = false\n this.cook = null\n this.extra = 0\n }\n}\n","import type { AttachmentDef, AttachmentId, FittedAttachment, MountKind, StockState, WeaponSnapshot } from './attachment-types'\nimport { resolveLoadout } from './attachment-effects'\nimport type { Loadout } from './attachment-effects'\nimport { canFit, canInstallWith } from './attachments'\nimport type { CanFit } from './attachments'\nimport { createRng } from './rng'\nimport type { FitOptions, FitResult, ReloadRequest, WeaponEvent, WeaponState, WeaponStance } from './types'\nimport { WeaponCommands } from './weapon-commands'\nimport { BREAK_RNG_SALT, EPS, UNDERBARREL_SEED_SALT } from './weapon-shared'\nimport type { WeaponStateInit } from './weapon-shared'\n\nconst NO_ATTACHMENTS: ReadonlyMap<AttachmentId, AttachmentDef> = new Map()\n\nconst copyOf = (part: FittedAttachment): FittedAttachment => ({ ...part })\n\n/** What is on the weapon: fitting and removing accessories, the stock, how it is held, and the numbers all of that changes. */\nexport abstract class WeaponAttachments extends WeaponCommands {\n protected fitted: FittedAttachment[]\n protected load: Loadout\n protected stockState: StockState = 'extended'\n protected aiming = false\n protected supportedStance = false\n /** In one hand with another weapon in the other (`rules.dualWield`). */\n protected dualStance = false\n /** Magazine changes so far: a dual coupler makes every second one fast. */\n protected reloadCount = 0\n protected readonly catalogue: ReadonlyMap<AttachmentId, AttachmentDef>\n protected readonly isCompatible: WeaponStateInit['isCompatible']\n protected readonly breakRng: () => number\n protected under: WeaponState | null = null\n /** The accessory the launcher state belongs to. */\n private underOwner: AttachmentId | null = null\n /** Launchers whose accessory is off the weapon, by accessory id, with the clock they were put away at: the same accessory brings its own rounds back (grenades are conserved). */\n private readonly shelvedLaunchers = new Map<AttachmentId, { readonly state: WeaponState; readonly at: number }>()\n protected underActive = false\n /** Seconds the weapon has run since the launcher under the barrel was last brought up to its clock (it idles while the rifle is in use). */\n protected underBehind = 0\n private readonly makeUnderbarrel: WeaponStateInit['makeUnderbarrel']\n private readonly seed: number\n\n constructor(init: WeaponStateInit) {\n super(init)\n this.catalogue = init.attachments ?? NO_ATTACHMENTS\n this.isCompatible = init.isCompatible\n this.makeUnderbarrel = init.makeUnderbarrel\n this.seed = init.seed\n this.breakRng = createRng((init.seed ^ BREAK_RNG_SALT) >>> 0)\n this.fitted = (init.snapshot?.attachments ?? init.def.fitted ?? []).map(copyOf)\n if (init.snapshot) this.stockState = init.snapshot.stock\n this.fitted = this.fitted.map((part) => (part.shotsLeft === undefined ? this.withDurability(part) : part))\n this.load = this.resolve()\n this.applyLoad()\n this.syncUnderbarrel(init.snapshot?.underbarrel)\n if (init.snapshot) this.applySnapshot(init.snapshot)\n }\n\n get underbarrel(): WeaponState | null {\n return this.under\n }\n get underbarrelActive(): boolean {\n return this.underActive\n }\n\n get attachments(): readonly FittedAttachment[] {\n return this.fitted.map(copyOf)\n }\n get mass(): number {\n return this.load.mass\n }\n get aimSeconds(): number {\n return this.load.aimSeconds\n }\n get suppressed(): boolean {\n return this.load.suppressed\n }\n get stock(): StockState {\n return this.stockState\n }\n\n private resolve(): Loadout {\n const supported = this.supportedStance\n return resolveLoadout(this.def, this.fitted, this.catalogue, { aiming: this.aiming, supported, stock: this.stockState, caliber: this.caliber, rules: this.rules, dualWield: this.dualStance })\n }\n\n /** Takes the numbers of the accessories on the weapon: the action, the capacity (what no longer fits goes back to the reserve) and the draw time. */\n protected applyLoad(): void {\n this.load = this.resolve()\n this.action = this.load.action\n const capacity = this.action.kind === 'firearm' ? this.action.magazine : this._capacity\n if (capacity === this._capacity) return\n this._capacity = capacity\n if (this._ammo <= capacity) return\n this.reserve += this._ammo - capacity\n this._ammo = capacity\n }\n\n /** Makes the launcher state when a fitted accessory is one; when it comes off the state is kept for that accessory, and a re-fit gets it back as it was. */\n private syncUnderbarrel(snapshot?: WeaponSnapshot): void {\n const owner = this.fitted.find((part) => this.catalogue.get(part.id)?.launcher !== undefined)\n const launcher = owner ? this.catalogue.get(owner.id)?.launcher : undefined\n if (!owner || launcher === undefined || !this.makeUnderbarrel) {\n this.shelveUnderbarrel()\n this.underActive = false\n return\n }\n if (this.underOwner === owner.id) return\n this.shelveUnderbarrel()\n const kept = this.shelvedLaunchers.get(owner.id)\n this.shelvedLaunchers.delete(owner.id)\n this.under = kept?.state ?? this.makeUnderbarrel(launcher, (this.seed ^ UNDERBARREL_SEED_SALT) >>> 0, snapshot)\n this.underOwner = owner.id\n this.underBehind = this.clock - (kept?.at ?? 0)\n this.flushUnderbarrel()\n }\n\n private shelveUnderbarrel(): void {\n if (this.under && this.underOwner !== null) this.shelvedLaunchers.set(this.underOwner, { state: this.under, at: this.clock })\n this.under = null\n this.underOwner = null\n }\n\n /** Brings the idle launcher up to the clock of the weapon (its phases and events keep the same time). */\n private flushUnderbarrel(): void {\n if (!this.under) return\n if (this.underBehind > 0) {\n this.under.update(this.underBehind)\n this.under.update(0)\n }\n this.underBehind = 0\n }\n\n protected advance(seconds: number): void {\n super.advance(seconds)\n if (!this.underActive) this.underBehind += Math.max(0, seconds)\n }\n\n update(dt: number): void {\n super.update(dt)\n if (this.underActive) this.under?.update(dt)\n }\n\n drain(): WeaponEvent[] {\n const own = super.drain()\n const launcher = this.under?.drain() ?? []\n return launcher.length === 0 ? own : [...own, ...launcher].sort((a, b) => a.at - b.at)\n }\n\n refill(): void {\n super.refill()\n this.under?.refill()\n }\n\n useUnderbarrel(on: boolean): boolean {\n if (!this.under || on === this.underActive || this.isWorking() || this._reloading || this.under.reloading) return false\n const seconds = this.rules.attachments.switchSeconds\n this.emit({ type: 'underbarrel', on, at: this.clock })\n const apply = (): void => {\n if (on) this.flushUnderbarrel()\n this.underActive = on\n }\n if (seconds <= EPS) {\n apply()\n return true\n }\n this._phase = { id: 'switch', start: this.clock, end: this.clock + seconds }\n this.schedule({ at: this.clock + seconds, apply })\n return true\n }\n\n /** The weapon is busy fitting, folding or switching: nothing else answers. */\n protected workGate(): boolean {\n return this.isWorking()\n }\n\n private applySnapshot(snapshot: WeaponSnapshot): void {\n this._ammo = Math.min(snapshot.ammo, this._capacity)\n this.reserve = snapshot.reserve\n this.mode = snapshot.mode\n }\n\n private withDurability(part: FittedAttachment): FittedAttachment {\n const shots = this.catalogue.get(part.id)?.durability?.shots\n if (!shots) return part\n return { ...part, shotsLeft: shots[0] + Math.floor(this.breakRng() * (shots[1] - shots[0] + 1)) }\n }\n\n protected isWorking(): boolean {\n const phase = this.phase\n return phase !== null && (phase.id === 'fit' || phase.id === 'stock' || phase.id === 'switch')\n }\n\n protected drawDuration(): number {\n return super.drawDuration() * this.load.drawFactor\n }\n\n canFit(id: AttachmentId, mount?: MountKind): CanFit {\n const attachment = this.catalogue.get(id)\n if (!attachment) return { ok: false, reason: 'no_mount' }\n return canFit(this.def, attachment, this.fitted, { caliber: this.caliber, catalogue: this.catalogue, isCompatible: this.isCompatible }, mount)\n }\n\n /** Starts the work: the phase and the event now, the change when the phase ends. */\n private startWork(action: 'fit' | 'remove', attachment: AttachmentDef, mount: MountKind, apply: () => void): FitResult {\n const seconds = this.rules.attachments.fitSeconds[attachment.install]\n this.emit({ type: 'attachment', action, id: attachment.id, mount, at: this.clock })\n if (seconds <= EPS) {\n apply()\n return { ok: true, seconds: 0 }\n }\n this._phase = { id: 'fit', start: this.clock, end: this.clock + seconds }\n this.schedule({ at: this.clock + seconds, apply })\n return { ok: true, seconds }\n }\n\n fit(id: AttachmentId, options: FitOptions = {}): FitResult {\n const attachment = this.catalogue.get(id)\n if (!attachment) return { ok: false, reason: 'unknown' }\n if (this.isWorking() || this._reloading) return { ok: false, reason: 'busy' }\n if (!canInstallWith(options.install ?? 'field', attachment.install)) return { ok: false, reason: 'install' }\n const check = canFit(this.def, attachment, this.fitted, { caliber: this.caliber, catalogue: this.catalogue, isCompatible: this.isCompatible }, options.mount)\n if (!check.ok) return check\n return this.startWork('fit', attachment, check.mount, () => {\n this.fitted.push(this.withDurability({ id, mount: check.mount }))\n this.applyLoad()\n this.syncUnderbarrel()\n })\n }\n\n remove(id: AttachmentId, options: FitOptions = {}): FitResult {\n const part = this.fitted.find((candidate) => candidate.id === id)\n const attachment = this.catalogue.get(id)\n if (!part || !attachment) return { ok: false, reason: 'not_fitted' }\n if (part.integral === true || attachment.removable === false) return { ok: false, reason: 'fixed' }\n if (this.isWorking() || this._reloading) return { ok: false, reason: 'busy' }\n if (!canInstallWith(options.install ?? 'field', attachment.install)) return { ok: false, reason: 'install' }\n return this.startWork('remove', attachment, part.mount, () => {\n this.fitted = this.fitted.filter((candidate) => candidate !== part)\n this.applyLoad()\n this.syncUnderbarrel()\n })\n }\n\n toggle(id: AttachmentId): boolean | null {\n const index = this.fitted.findIndex((part) => part.id === id)\n const kind = this.catalogue.get(id)?.kind\n const part = this.fitted[index]\n if (!part || (kind !== 'light' && kind !== 'laser')) return null\n const on = part.on !== true\n this.fitted[index] = { ...part, on }\n this.emit({ type: 'toggle', id, on, at: this.clock })\n this.applyLoad()\n return on\n }\n\n setStock(state: StockState): boolean {\n const kind = this.def.stock?.kind\n if (kind === undefined || kind === 'fixed' || kind === 'none' || state === this.stockState || this.isWorking() || this._reloading) return false\n const seconds = this.rules.stock.seconds\n this.emit({ type: 'stock', state, kind, at: this.clock })\n const apply = (): void => {\n this.stockState = state\n this.applyLoad()\n }\n if (seconds <= EPS) {\n apply()\n return true\n }\n this._phase = { id: 'stock', start: this.clock, end: this.clock + seconds }\n this.schedule({ at: this.clock + seconds, apply })\n return true\n }\n\n setStance(stance: WeaponStance): void {\n const aiming = stance.aiming ?? this.aiming\n const supported = stance.supported ?? this.supportedStance\n const dual = stance.dualWield ?? this.dualStance\n // a weapon in each hand is held out, never to the eye\n const aimed = dual ? false : aiming\n if (aimed === this.aiming && supported === this.supportedStance && dual === this.dualStance) return\n this.aiming = aimed\n this.supportedStance = supported\n this.dualStance = dual\n this.applyLoad()\n }\n\n snapshot(): WeaponSnapshot {\n const launcher = this.under?.snapshot()\n return {\n id: this.def.id,\n attachments: this.fitted.map(copyOf),\n stock: this.stockState,\n ammo: this._ammo,\n reserve: this.reserve,\n mode: this.mode,\n condition: this._condition.id,\n ammoQuality: this._ammoQuality.id,\n ...(this._ammoKind !== undefined ? { ammoKind: this._ammoKind } : {}),\n ...(launcher ? { underbarrel: launcher } : {}),\n }\n }\n\n /** A home-made accessory wears out with the shots: when the drawn number is spent it breaks and comes off. */\n protected wearAttachments(at: number): void {\n if (!this.fitted.some((part) => part.shotsLeft !== undefined)) return\n let broke = false\n this.fitted = this.fitted.flatMap((part) => {\n if (part.shotsLeft === undefined) return [part]\n if (part.shotsLeft > 1) return [{ ...part, shotsLeft: part.shotsLeft - 1 }]\n this.emit({ type: 'attachment', action: 'break', id: part.id, mount: part.mount, at })\n broke = true\n return []\n })\n if (broke) this.applyLoad()\n }\n\n reload(request: ReloadRequest = 'auto'): boolean {\n if (this.isWorking()) return false\n if (this.underActive && this.under) return this.under.reload(request)\n const base = this.action\n const factor = this.load.secondReloadFactor\n const isFast = factor !== 1 && this.reloadCount % 2 === 1 && base.kind === 'firearm'\n if (isFast && base.kind === 'firearm') this.action = { ...base, reload: base.reload * factor, ...(base.timings ? { timings: { ...base.timings, reload: base.timings.reload * factor, ...(base.timings.reloadEmpty === undefined ? {} : { reloadEmpty: base.timings.reloadEmpty * factor }) } } : {}) }\n const started = super.reload(request)\n this.action = base\n if (started) this.reloadCount += 1\n return started\n }\n}\n\n","import { ammoIgnition, resolveLoad } from './ammo'\nimport { isDudWithoutJam, rollFault } from './faults'\nimport { manualCycleSeconds, planRounds, weaponNoise, weaponSpeed } from './fire'\nimport { burstNoise, heatPerRound } from './heat'\nimport { sampleCone } from './rng'\nimport type { CaliberDef, FaultId, FirearmAction, Shot, TriggerResult, Vec3, WeaponRules } from './types'\nimport { WeaponAttachments } from './weapon-attachments'\nimport { BLOOM_CAP, EPS, result } from './weapon-shared'\n\n// frames of one pull follow each other closely; a longer gap means the trigger was let go and the barrels start from rest again\nconst SPIN_PULL_GAP = 0.1\n\n/** Pulling the trigger of a firearm: rounds, faults, heat, bloom and noise. */\nexport abstract class WeaponFirearm extends WeaponAttachments {\n /** Semi-style gating: a held trigger that already fired does nothing until `release()` or a new pull (`held` false). */\n private spinSince: number | undefined\n private spinFrameEnd = Number.NEGATIVE_INFINITY\n private lastRoundAt = Number.NEGATIVE_INFINITY\n\n /** When the barrels of a rotary gun are at speed: `upSeconds` after the pull began, and at once while they still spin from the last round. */\n private spunUpAt(spin: FirearmAction['spin'], start: number, end: number): number {\n if (!spin || start - this.lastRoundAt <= spin.holdSeconds + EPS) return 0\n if (this.spinSince === undefined || start - this.spinFrameEnd > SPIN_PULL_GAP) this.spinSince = start\n this.spinFrameEnd = end\n return this.spinSince + spin.upSeconds\n }\n\n protected oncePerPull(held: boolean): boolean {\n if (!held) this.latched = false\n if (this.latched) return false\n this.latched = true\n return true\n }\n\n protected fireFirearm(a: FirearmAction, origin: Vec3, dir: Vec3, start: number, end: number, held: boolean, source?: string): TriggerResult {\n if (this._reloading) {\n if (this.loadStep !== null && this._ammo > 0) this.stopReload(start) // a tube reload is interrupted by the trigger\n else return result('reloading')\n }\n if (this.mode !== 'auto' && !this.oncePerPull(held)) return result('cooldown')\n if (this._ammo <= 0) {\n this.emit({ type: 'empty', at: start })\n return result('empty')\n }\n\n const t0 = Math.max(start, this.readyAt, this.spunUpAt(a.spin, start, end))\n if (t0 > end + EPS) return result('cooldown')\n\n const res = result('ok')\n const times = planRounds(a, this.mode, this._ammo, t0, end)\n let lastAt = t0\n for (const t of times) {\n const fault = rollFault({ def: this.def, caliber: this.caliber, condition: this._condition, ammoQuality: this._ammoQuality, heat: this._heat, rules: this.faultRules(), random: this.faultRng })\n if (fault === 'misfire') {\n this.misfire(a, t, start, res)\n lastAt = t\n break\n }\n this.fireOne(this.action.kind === 'firearm' ? this.action : a, origin, dir, t, res, source)\n res.roundTimes.push(t - start)\n res.rounds += 1\n lastAt = t\n if (fault) {\n this.jam(fault, t, res)\n break\n }\n }\n if (res.shots.length === 0) res.status = res.fault ? 'fault' : 'misfire'\n else this.emit({ type: 'shot', shots: res.shots.length, rounds: res.rounds, mode: this.mode, at: t0, ...(res.suppressed ? { suppressed: true } : {}) })\n if (res.rounds > 0) {\n this.lastRoundAt = lastAt\n this.spinSince = undefined\n this.afterRounds(a, lastAt)\n }\n return res\n }\n\n /** The rules with the chance of a fault scaled by the accessories (a drum magazine jams more); the very rules when nothing scales it. */\n private faultRules(): WeaponRules {\n const factor = this.load.faultFactor\n if (factor === 1) return this.rules\n return { ...this.rules, faultChance: (context) => this.rules.faultChance(context) * factor }\n }\n\n protected jam(fault: FaultId, at: number, res: TriggerResult): void {\n this._fault = fault\n res.fault = fault\n this.emit({ type: 'fault', fault, at })\n }\n\n protected misfire(a: FirearmAction, at: number, start: number, res: TriggerResult): void {\n if (!isDudWithoutJam(a, 'misfire')) {\n this.jam('misfire', at, res)\n return\n }\n this._ammo -= 1\n res.rounds += 1\n res.roundTimes.push(at - start)\n this.emit({ type: 'misfire', at })\n }\n\n /** Cooldown, the cycle of a manual action and the pistol slide that stays back on the last round. */\n protected afterRounds(a: FirearmAction, lastAt: number): void {\n const cycle = manualCycleSeconds(a, this.mode)\n if (cycle > 0) {\n this.readyAt = Math.max(this.readyAt, lastAt + cycle)\n this._phase = { id: 'cycle', start: lastAt, end: lastAt + cycle }\n this.emit({ type: 'cycle', phase: 'start', at: lastAt })\n this.schedule({ at: lastAt + cycle, event: { type: 'cycle', phase: 'end', at: lastAt + cycle } })\n }\n if (this._ammo === 0 && a.family === 'pistol') this._locked = true\n }\n\n protected fireOne(a: FirearmAction, origin: Vec3, dir: Vec3, t: number, res: TriggerResult, source?: string): void {\n const cal = this.caliber as CaliberDef\n const isFirstRound = res.shots.length === 0\n // the load in the weapon: a round of the table may weigh and leave at other numbers than the calibre's own\n const load = this.ammoTable ? resolveLoad(cal, this.ammoTable, this._ammoKind) : null\n const speed = load && load.speed !== cal.muzzleSpeed ? weaponSpeed(a, cal) * (load.speed / cal.muzzleSpeed) : weaponSpeed(a, cal)\n const grams = load ? load.grams : cal.bulletGrams\n const energy = 0.5 * (grams / 1000) * speed * speed\n const drag = cal.dragPer100m ?? 0.1\n const energyAt = (distance: number): number => {\n const f = Math.pow(1 - drag, Math.max(0, distance) / 100)\n return energy * f * f\n }\n const bloomNow = this.extraAt(t)\n const spread = a.spreadDeg + bloomNow\n const aim = sampleCone(dir, spread, this.rng)\n const pellets = cal.pellets ?? 1\n const pelletSpread = pellets > 1 ? a.pelletSpreadDeg ?? 3 : 0\n for (let p = 0; p < pellets; p++) {\n const shot: Shot = {\n origin: [origin[0], origin[1], origin[2]],\n direction: sampleCone(aim, pelletSpread, this.rng),\n energy,\n caliber: cal.diameter,\n caliberId: cal.id,\n speed,\n mass: grams,\n energyAt,\n pellet: p,\n weapon: this.def.id,\n }\n if (source !== undefined) shot.source = source\n if (load) {\n shot.ammo = load.kind\n shot.penetration = { ...load.penetration }\n if (load.def.incendiary) shot.incendiary = true\n if (load.def.tracer) shot.tracer = true\n shot.ignition = ammoIgnition(load.def, this.rules.ignition)\n }\n res.shots.push(shot)\n }\n this._ammo -= 1\n this._heat = Math.min(this.rules.heat.cap, this._heat + heatPerRound({ action: a, caliber: cal, energy: energy * pellets, barrelMass: this.barrelMass, rules: this.rules.heat }) * this.load.heatFactor)\n this.readyAt = t + 60 / a.rpm\n this.extra = Math.min(bloomNow + (a.bloomDeg ?? 0), a.spreadDeg * (BLOOM_CAP - 1))\n this.extraClock = t\n res.recoil = [res.recoil[0] + a.recoil[0], res.recoil[1] + (this.rng() * 2 - 1) * a.recoil[1]]\n const { window } = this.rules.noiseBurst\n this.recentShots = this.recentShots.filter((shotAt) => shotAt > t - window)\n res.noise = burstNoise(weaponNoise(a, cal), this.recentShots.length, this.rules.noiseBurst)\n this.recentShots.push(t)\n if (!this.load.suppressed) delete res.suppressed\n else if (isFirstRound) res.suppressed = true\n this.wearAttachments(t)\n }\n\n}\n","import { isPlaced, launcherUses, sampleArmDistance, throwableUse } from './explosive-use'\nimport { sampleFuse } from './fuse'\nimport { heatPerRound } from './heat'\nimport { isReloadable } from './reload'\nimport { normalize } from './rng'\nimport type { TriggerResult, Use, Vec3, WeaponAction, WeaponState } from './types'\nimport { WeaponFirearm } from './weapon-firearm'\nimport type { WeaponCore } from './weapon-core'\nimport { EPS, result } from './weapon-shared'\n\nexport { BLOOM_CAP, muzzleEnergy } from './weapon-shared'\nexport type { WeaponStateInit } from './weapon-shared'\n\n/** Runtime of one weapon. See `WeaponState` for the contract. */\nexport class WeaponRuntime extends WeaponFirearm implements WeaponState {\n trigger(origin: Vec3, direction: Vec3, dt: number, held = false, source?: string): TriggerResult {\n const d = Math.max(0, dt)\n let overlap = 0\n if (this.pend && this.pend.src === 'update') {\n overlap = Math.min(this.pend.amt, d)\n this.pend = null\n } else {\n this.pend = { src: 'trigger', amt: d }\n }\n const start = this.clock - overlap\n const end = start + d\n this.settle(start)\n const dir = normalize(direction)\n let res: TriggerResult\n const a = this.action\n const launcher = this.underActive ? this.under : null\n const gate = launcher ? this.launcherGate(start) : this.gateStatus(start)\n if (gate) res = gate\n else if (launcher) res = launcher.trigger(origin, dir, d, held, source)\n else switch (a.kind) {\n case 'firearm':\n res = this.fireFirearm(a, origin, dir, start, end, held, source)\n break\n case 'melee':\n res = this.fireMelee(a, origin, dir, start, end)\n break\n case 'flame':\n case 'heat':\n res = this.fireFuel(a, origin, dir, d)\n break\n case 'extinguisher':\n res = this.fireExtinguisher(a, origin, dir, d)\n break\n case 'throwable':\n res = this.fireThrowable(a, origin, dir, held, start, end)\n break\n case 'launcher':\n res = this.fireLauncher(a, origin, dir, start, held)\n break\n case 'tool':\n res = d > 0 ? result('ok', { uses: [{ kind: 'tool', tool: a.tool, reach: a.reach, duration: d, origin, direction: dir }], noise: a.noise }) : result('ok')\n break\n case 'hand':\n res = this.oncePerPull(held)\n ? result('ok', { uses: [{ kind: 'hand', reach: a.reach, origin, direction: dir }] })\n : result('cooldown')\n break\n }\n this.advance(Math.max(0, end - this.clock))\n this.settle(this.clock)\n return res\n }\n\n /** The launcher under the barrel answers for itself; the weapon only says when it is busy putting it in hand. */\n protected launcherGate(start: number): TriggerResult | null {\n if (start < this.drawEnd - EPS) return result('drawing')\n return this.workGate() ? result('busy') : null\n }\n\n /** Why the trigger does nothing before the action even looks at it. */\n protected gateStatus(start: number): TriggerResult | null {\n if (start < this.drawEnd - EPS) return result('drawing')\n if (this.isWorking()) return result('busy')\n if (!isReloadable(this.action)) return null\n if (this._safety) return result('safe')\n if (this._clearing) return result('clearing')\n if (this._fault) return result('fault', { fault: this._fault })\n return null\n }\n\n protected fireLauncher(a: Extract<WeaponAction, { kind: 'launcher' }>, origin: Vec3, dir: Vec3, start: number, held: boolean): TriggerResult {\n if (this._reloading) return result('reloading')\n if (!this.oncePerPull(held)) return result('cooldown')\n if (this._ammo <= 0) {\n this.emit({ type: 'empty', at: start })\n return result('empty')\n }\n const t = Math.max(start, this.readyAt)\n this._ammo -= 1\n this._heat = Math.min(this.rules.heat.cap, this._heat + heatPerRound({ action: a, caliber: null, energy: 0, barrelMass: this.barrelMass, rules: this.rules.heat }))\n this.emit({ type: 'shot', shots: 0, rounds: 1, mode: this.mode, at: t })\n return result('ok', { uses: launcherUses({ action: a, explosive: this.explosive, origin, direction: dir, armDistance: sampleArmDistance(a, this.explosive, this.fuseRng) }), recoil: [a.recoil[0], a.recoil[1]], noise: a.noise ?? 0, rounds: 1, roundTimes: [t - start] })\n }\n\n protected fireMelee(a: Extract<WeaponAction, { kind: 'melee' }>, origin: Vec3, dir: Vec3, start: number, end: number): TriggerResult {\n const t0 = Math.max(start, this.readyAt)\n if (t0 > end + EPS) return result('cooldown')\n this.readyAt = t0 + 60 / a.rpm\n const use: Use = { kind: 'melee', damage: a.damage, energy: a.energy, radius: a.radius, reach: a.reach, origin, direction: dir }\n return result('ok', { uses: [use], noise: a.noise })\n }\n\n protected fireFuel(a: Extract<WeaponAction, { kind: 'flame' | 'heat' }>, origin: Vec3, dir: Vec3, dt: number): TriggerResult {\n if (this._ammo <= EPS) return result('no_fuel')\n if (dt <= 0) return result('ok')\n const need = a.fuelPerSecond * dt\n let duration = dt\n if (need > this._ammo) {\n duration = dt * (this._ammo / need)\n this._ammo = 0\n } else {\n this._ammo -= need\n }\n const use: Use =\n a.kind === 'flame'\n ? { kind: 'flame', temperature: a.temperature, radius: a.radius, range: a.range, cone: a.cone ?? false, duration, origin, direction: dir }\n : { kind: 'heat', temperature: a.temperature, radius: a.radius, range: a.range, duration, origin, direction: dir }\n return result('ok', { uses: [use], noise: a.noise })\n }\n\n protected fireExtinguisher(a: Extract<WeaponAction, { kind: 'extinguisher' }>, origin: Vec3, dir: Vec3, dt: number): TriggerResult {\n if (this._ammo <= EPS) return result('no_fuel')\n if (dt <= 0) return result('ok')\n const duration = Math.min(dt, this._ammo)\n this._ammo -= duration\n return result('ok', { uses: [{ kind: 'extinguish', range: a.range, coolC: a.coolC, duration, origin, direction: dir }], noise: a.noise })\n }\n\n /** The fuse of this throw: sampled from the explosive when it has a range or a burn, else the fixed one of the action. */\n protected sampleThrowFuse(a: Extract<WeaponAction, { kind: 'throwable' }>): number {\n return (this.explosive ? sampleFuse(this.explosive, this.fuseRng, this.fuseLengthOverride) : undefined) ?? a.fuse\n }\n\n protected throwUse(a: Extract<WeaponAction, { kind: 'throwable' }>, origin: Vec3, dir: Vec3, fuse: number, extra: { cooked?: number; inHand?: boolean } = {}): TriggerResult {\n return result('ok', { uses: [throwableUse({ action: a, explosive: this.explosive, origin, direction: dir, fuse, rules: this.rules.explosives, ...extra })], noise: a.noise })\n }\n\n /** A timer throwable is cooked from the pull; impact, remote and wire ones (and a long fuse that sets down) act at once. */\n protected fireThrowable(a: Extract<WeaponAction, { kind: 'throwable' }>, origin: Vec3, dir: Vec3, held: boolean, start: number, end: number): TriggerResult {\n if (this.cook) return this.cookStep(a, origin, dir, end)\n if (!this.oncePerPull(held)) return result('cooldown')\n if (this._ammo <= 0) return result('empty')\n const fuse = this.sampleThrowFuse(a)\n if (fuse <= 0 || isPlaced(this.explosive, fuse, this.rules.explosives)) {\n this._ammo -= 1\n return this.throwUse(a, origin, dir, fuse)\n }\n this.cook = { start, fuse, origin, direction: dir }\n this.emit({ type: 'cook', phase: 'start', fuse, at: start })\n return this.cookStep(a, origin, dir, end)\n }\n\n /** The trigger stays down on a cooked throwable: nothing happens until the fuse runs out in the hand. */\n protected cookStep(a: Extract<WeaponAction, { kind: 'throwable' }>, origin: Vec3, dir: Vec3, now: number): TriggerResult {\n const cook = this.cook as NonNullable<WeaponCore['cook']>\n cook.origin = origin\n cook.direction = dir\n if (now - cook.start < cook.fuse - EPS) return result('ok')\n return this.burstInHand(a, cook, origin, dir)\n }\n\n protected burstInHand(a: Extract<WeaponAction, { kind: 'throwable' }>, cook: NonNullable<WeaponCore['cook']>, origin: Vec3, dir: Vec3): TriggerResult {\n this.cook = null\n this._ammo -= 1\n this.emit({ type: 'cook', phase: 'burst', fuse: 0, at: cook.start + cook.fuse })\n return this.throwUse(a, origin, dir, 0, { cooked: cook.fuse, inHand: true })\n }\n\n release(origin?: Vec3, direction?: Vec3): TriggerResult | null {\n super.release()\n const cook = this.cook\n const a = this.action\n if (!cook || a.kind !== 'throwable') return null\n const from = origin ?? cook.origin\n const dir = direction ? normalize(direction) : cook.direction\n const held = this.clock - cook.start\n if (held >= cook.fuse - EPS) return this.burstInHand(a, cook, from, dir)\n this.cook = null\n this._ammo -= 1\n const remaining = cook.fuse - held\n this.emit({ type: 'cook', phase: 'throw', fuse: remaining, at: this.clock })\n return this.throwUse(a, from, dir, remaining, { cooked: held })\n }\n}\n","import { AMMO, resolveLoad } from './ammo'\nimport attachmentsJson from './data/attachments.json'\nimport { applyPatches, deepMerge, mergeById, removeIds } from '@adatechnology/game-contracts'\nimport archetypesJson from './data/archetypes.json'\nimport calibersJson from './data/calibers.json'\nimport explosivesJson from './data/explosives.json'\nimport explosiveWeaponsJson from './data/explosive-weapons.json'\nimport firearmsJson from './data/firearms.json'\nimport launchersJson from './data/launchers.json'\nimport { canFit as canFitAttachment } from './attachments'\nimport meleeWeaponsJson from './data/melee-weapons.json'\nimport { checkArsenal, findDuplicateIds } from './check-arsenal'\nimport { resolveStrings } from './locale'\nimport { resolveThrowables } from './registry'\nimport { DEFAULT_RULES } from './rules'\nimport type { AttachmentDef, FittedAttachment, MountKind, WeaponSnapshot } from './attachment-types'\nimport type { AmmoKind, Arsenal, ArsenalOptions, CaliberDef, CaliberId, ExplosiveDef, WeaponCategory, WeaponDef, WeaponId, WeaponState } from './types'\nimport { createExplosiveBody } from './explosive-body'\nimport { muzzleEnergy, WeaponRuntime } from './weapon'\n\nexport const CALIBERS = calibersJson as unknown as CaliberDef[]\nexport const ATTACHMENTS = attachmentsJson as unknown as AttachmentDef[]\nexport const EXPLOSIVES = explosivesJson as unknown as ExplosiveDef[]\n/** The generic weapons: handling numbers (spread, bloom, range, recoil) by type, which the real models point to through `archetype`. */\nconst ARCHETYPES = archetypesJson as unknown as WeaponDef[]\nexport const ARCHETYPE_IDS: readonly WeaponId[] = ARCHETYPES.map((def) => def.id)\nexport const WEAPONS: WeaponDef[] = [...ARCHETYPES, ...(firearmsJson as unknown as WeaponDef[]), ...(launchersJson as unknown as WeaponDef[]), ...(explosiveWeaponsJson as unknown as WeaponDef[]), ...(meleeWeaponsJson as unknown as WeaponDef[])]\n\n/** A reasonable starting kit for a test room or a sandbox. */\nexport const DEFAULT_LOADOUT: WeaponId[] = [\n 'hand', 'kick', 'shove', 'pistol_9mm', 'revolver_357', 'shotgun_pump_12', 'rifle_5_56', 'rifle_bolt_308', 'hammer', 'axe', 'machete', 'utility_knife', 'crowbar', 'lighter', 'flamethrower',\n 'cutting_torch', 'molotov', 'frag_grenade', 'screwdriver', 'wrench', 'pry_bar', 'hacksaw', 'extinguisher',\n]\n\nexport { muzzleEnergy, checkArsenal }\n\nconst explosiveOf = (def: WeaponDef, explosives: ReadonlyMap<string, ExplosiveDef>): ExplosiveDef | null => {\n const id = def.action.kind === 'launcher' ? def.action.projectile : def.action.kind === 'throwable' ? def.action.explosive : undefined\n return id === undefined ? null : explosives.get(id) ?? null\n}\n\nconst energyOf = (def: WeaponDef, calibers: ReadonlyMap<CaliberId, CaliberDef>, explosives: ReadonlyMap<string, ExplosiveDef>): number => {\n const action = def.action\n if (action.kind === 'firearm') {\n const caliber = calibers.get(action.caliber)\n const speed = action.muzzleSpeed ?? (caliber?.muzzleSpeed ?? 0) * (action.barrel ?? 1)\n return 0.5 * ((caliber?.bulletGrams ?? 0) / 1000) * speed * speed\n }\n if (action.kind === 'launcher') return explosives.get(action.projectile)?.energy ?? 0\n return action.kind === 'throwable' || action.kind === 'melee' ? action.energy : 0\n}\n\n/** A shipped grenade launcher accessory goes when its launcher was removed or filtered out (one the game added itself is left for `checkArsenal` to report). */\nconst dropOrphanLaunchers = (attachments: Map<string, AttachmentDef>, weapons: ReadonlyMap<WeaponId, WeaponDef>, added: readonly AttachmentDef[] | undefined): void => {\n const addedIds = new Set((added ?? []).map((attachment) => attachment.id))\n for (const [id, attachment] of attachments) if (attachment.launcher !== undefined && !addedIds.has(id) && !weapons.has(attachment.launcher)) attachments.delete(id)\n}\n\n/**\n * Create an arsenal. Order: the shipped entries, then `calibers`/`weapons`/`explosives` (added or replaced by id), then `patch`, then `remove`, then `include`;\n * a throwable that names an explosive follows that explosive. Every inconsistency found is reported in one error.\n */\nexport const createArsenal = (options: ArsenalOptions = {}): Arsenal => {\n const calibers = mergeById(CALIBERS, options.calibers)\n const explosives = mergeById(EXPLOSIVES, options.explosives)\n const ammo = mergeById(AMMO, options.ammo)\n const weapons = mergeById(WEAPONS, options.weapons)\n const attachments = mergeById(ATTACHMENTS, options.attachments)\n applyPatches(calibers, options.patch?.calibers)\n applyPatches(explosives, options.patch?.explosives)\n applyPatches(ammo, options.patch?.ammo)\n applyPatches(attachments, options.patch?.attachments)\n resolveThrowables(weapons, explosives)\n applyPatches(weapons, options.patch?.weapons)\n removeIds(calibers, options.remove?.calibers)\n removeIds(explosives, options.remove?.explosives)\n removeIds(ammo, options.remove?.ammo)\n removeIds(attachments, options.remove?.attachments)\n removeIds(weapons, options.remove?.weapons)\n if (options.include) for (const [id, def] of weapons) if (!options.include(def)) weapons.delete(id)\n dropOrphanLaunchers(attachments, weapons, options.attachments)\n\n const rules = deepMerge(DEFAULT_RULES, options.rules)\n const problems = [\n ...findDuplicateIds('calibre', options.calibers),\n ...findDuplicateIds('weapon', options.weapons),\n ...findDuplicateIds('explosive', options.explosives),\n ...findDuplicateIds('ammo', options.ammo),\n ...findDuplicateIds('attachment', options.attachments),\n ...checkArsenal({ weapons, calibers, explosives, attachments, ammo, rules }),\n ]\n if (problems.length > 0) throw new Error(`game-weapons: the arsenal is not consistent:\\n${problems.map((problem) => ` - ${problem}`).join('\\n')}`)\n\n const strings = resolveStrings(options.locale, options.strings)\n const baseSeed = options.seed ?? 1\n let counter = 0\n\n const create = (id: WeaponId, opts: { seed?: number; reserve?: number; condition?: string; ammoQuality?: string; ammoKind?: AmmoKind; snapshot?: WeaponSnapshot } = {}): WeaponState => {\n const def = weapons.get(id)\n if (!def) throw new Error(`game-weapons: unknown weapon \"${id}\"`)\n const caliber = def.action.kind === 'firearm' ? calibers.get(def.action.caliber) ?? null : null\n counter += 1\n const seed = opts.seed ?? (baseSeed + Math.imul(counter, 0x9e3779b1)) >>> 0\n const explosive = explosiveOf(def, explosives)\n return new WeaponRuntime({ def, caliber, seed, reserve: opts.reserve, rules, explosive, condition: opts.condition, ammoQuality: opts.ammoQuality, ammoKind: opts.ammoKind, ammo, attachments, isCompatible: options.isCompatible, snapshot: opts.snapshot, makeUnderbarrel: (launcherId, launcherSeed, launcherSnapshot) => create(launcherId, { seed: launcherSeed, snapshot: launcherSnapshot }) })\n }\n\n return {\n calibers,\n weapons,\n explosives,\n ammo,\n attachments,\n rules,\n create,\n canFit(weapon, attachment, opts = {}) {\n const def = weapons.get(weapon)\n if (!def) throw new Error(`game-weapons: unknown weapon \"${weapon}\"`)\n const part = attachments.get(attachment)\n if (!part) throw new Error(`game-weapons: unknown attachment \"${attachment}\"`)\n const caliber = def.action.kind === 'firearm' ? calibers.get(def.action.caliber) ?? null : null\n const fitted: readonly FittedAttachment[] = opts.fitted ?? def.fitted ?? []\n return canFitAttachment(def, part, fitted, { caliber, catalogue: attachments, isCompatible: options.isCompatible }, opts.mount as MountKind | undefined)\n },\n restore(snapshot, opts = {}) {\n return create(snapshot.id, { seed: opts.seed, reserve: snapshot.reserve, condition: snapshot.condition, ammoQuality: snapshot.ammoQuality, ammoKind: snapshot.ammoKind as AmmoKind | undefined, snapshot })\n },\n loadOf(caliber, kind) {\n const c = calibers.get(caliber)\n if (!c) throw new Error(`game-weapons: unknown calibre \"${caliber}\"`)\n const load = resolveLoad(c, ammo, kind)\n if (!load) throw new Error(`game-weapons: no ammo \"${caliber}:${kind ?? c.kind ?? ''}\" in the table`)\n return load\n },\n muzzleEnergy(caliber, barrel = 1) {\n const c = calibers.get(caliber)\n if (!c) throw new Error(`game-weapons: unknown calibre \"${caliber}\"`)\n return muzzleEnergy(c, barrel)\n },\n explosiveBody(use) {\n return createExplosiveBody(use, explosives, rules.explosives)\n },\n energy(id) {\n const def = weapons.get(id)\n if (!def) throw new Error(`game-weapons: unknown weapon \"${id}\"`)\n return energyOf(def, calibers, explosives)\n },\n name(id) {\n const weapon = weapons.get(id)\n if (weapon) return strings.weapons[id] ?? weapon.name ?? id\n return strings.explosives[id] ?? explosives.get(id)?.name ?? strings.modes[id] ?? strings.categories[id] ?? strings.faults[id] ?? strings.conditions[id] ?? calibers.get(id)?.label ?? attachments.get(id)?.name ?? id\n },\n list(category?: WeaponCategory) {\n const all = [...weapons.values()]\n return category ? all.filter((w) => w.category === category) : all\n },\n }\n}\n","import type { Vec3 } from './types'\n\n/** The height of the ground under a point of the plane (a terrain, a floor, a heap): the surface an explosive in flight must not pass through. */\nexport type GroundHeight = (x: number, z: number) => number\n\nexport type GroundSweepOptions = {\n /** Metres above the ground the body counts as touching it (its radius). Default 0. */\n readonly clearance?: number\n /** Most metres between two heights read along the way. Default 0.1 (a cell of the terrain): a bump or the rim of a crater shorter than a fast round's step is still met. */\n readonly spacing?: number\n}\n\nexport type GroundSweepHit = { readonly point: Vec3; readonly normal: Vec3; readonly ground: true; readonly distance: number }\n\nconst BISECTIONS = 10\nconst SLOPE_STEP = 0.1\n\nconst lerp = (from: Vec3, to: Vec3, k: number): Vec3 => [from[0] + (to[0] - from[0]) * k, from[1] + (to[1] - from[1]) * k, from[2] + (to[2] - from[2]) * k]\n\nconst groundNormal = (groundAt: GroundHeight, x: number, z: number): Vec3 => {\n const slopeX = (groundAt(x + SLOPE_STEP, z) - groundAt(x - SLOPE_STEP, z)) / (2 * SLOPE_STEP)\n const slopeZ = (groundAt(x, z + SLOPE_STEP) - groundAt(x, z - SLOPE_STEP)) / (2 * SLOPE_STEP)\n const size = Math.hypot(slopeX, 1, slopeZ)\n return [-slopeX / size, 1 / size, -slopeZ / size]\n}\n\n/**\n * Where the segment `from` to `to` first goes under the ground, read every `spacing` metres along it and narrowed by halving, or null when it stays\n * above. Only the end of a step is not enough: a round that crosses a heap, a kerb or a crater rim within one frame would go through it.\n */\nexport function sweepGround(from: Vec3, to: Vec3, groundAt: GroundHeight, options: GroundSweepOptions = {}): GroundSweepHit | null {\n const clearance = options.clearance ?? 0\n const below = (point: Vec3): boolean => point[1] < groundAt(point[0], point[2]) + clearance\n const length = Math.hypot(to[0] - from[0], to[1] - from[1], to[2] - from[2])\n const samples = Math.max(1, Math.ceil(length / (options.spacing ?? 0.1)))\n let above = 0\n if (below(from)) return hitAt(from, from, groundAt, clearance)\n for (let index = 1; index <= samples; index++) {\n const k = index / samples\n if (!below(lerp(from, to, k))) {\n above = k\n continue\n }\n let high = k\n for (let step = 0; step < BISECTIONS; step++) {\n const middle = (above + high) / 2\n if (below(lerp(from, to, middle))) high = middle\n else above = middle\n }\n return hitAt(from, lerp(from, to, high), groundAt, clearance)\n }\n return null\n}\n\nconst hitAt = (from: Vec3, at: Vec3, groundAt: GroundHeight, clearance: number): GroundSweepHit => {\n const point: Vec3 = [at[0], groundAt(at[0], at[2]) + clearance, at[2]]\n return { point, normal: groundNormal(groundAt, at[0], at[2]), ground: true, distance: Math.hypot(point[0] - from[0], point[1] - from[1], point[2] - from[2]) }\n}\n","import type { Detonation } from './explosive-body'\nimport { normalize } from './rng'\nimport type { Use, Vec3 } from './types'\nimport { dot, length, subtract } from './vec'\n\nexport interface BlastEffect {\n /** `lethal` kills and dismembers, `injury` wounds, `none` is out of reach (or behind a directional charge). */\n readonly zone: 'lethal' | 'injury' | 'none'\n readonly distance: number\n /** 1 in the lethal zone, falling linearly to 0 at the edge of the injury zone. */\n readonly falloff: number\n /** Seconds of stun for whoever is in reach (flashbang). */\n readonly stunSeconds: number\n}\n\nconst OUT_OF_REACH: BlastEffect = { zone: 'none', distance: Infinity, falloff: 0, stunSeconds: 0 }\n\nconst insideCone = (offset: Vec3, facing: Vec3, halfAngleDeg: number): boolean => {\n const distance = length(offset)\n if (distance <= 1e-9) return true\n return dot(offset, normalize(facing)) / distance >= Math.cos((halfAngleDeg * Math.PI) / 180)\n}\n\n/** What a detonation does to something at `target`: the zone, how hard, and the stun. A directional charge only reaches inside its cone. */\nexport const blastEffect = (detonation: Detonation, target: Vec3): BlastEffect => {\n const offset = subtract(target, detonation.point)\n const distance = length(offset)\n const { lethalRadius, injuryRadius, cone } = detonation\n const reach = cone ? Math.min(injuryRadius, cone.length) : injuryRadius\n if (distance > reach) return OUT_OF_REACH\n if (cone && !insideCone(offset, detonation.direction, cone.halfAngleDeg)) return OUT_OF_REACH\n const stunSeconds = detonation.stunSeconds ?? 0\n if (distance <= lethalRadius) return { zone: 'lethal', distance, falloff: 1, stunSeconds }\n const span = reach - lethalRadius\n return { zone: 'injury', distance, falloff: span > 0 ? 1 - (distance - lethalRadius) / span : 1, stunSeconds }\n}\n\n/** How much of the blast behind a launcher reaches `target`: 0 outside the cone or the radius, falling linearly from 1 at the tube. */\nexport const backblastEffect = (use: Extract<Use, { kind: 'backblast' }>, target: Vec3): number => {\n const offset = subtract(target, use.origin)\n const distance = length(offset)\n if (distance > use.radius || !insideCone(offset, use.direction, use.halfAngleDeg)) return 0\n return 1 - distance / use.radius\n}\n\nexport interface TripwireSegment {\n readonly from: Vec3\n readonly to: Vec3\n}\n\n/**\n * Where the wire of a charge set down with `use` runs: from the charge, `length` metres along the horizontal facing turned by `angleDeg`\n * (counter-clockwise seen from above), `height` metres above it. Null for a charge with no wire.\n */\nexport const tripwireSegment = (use: Extract<Use, { kind: 'place' }>): TripwireSegment | null => {\n const wire = use.tripwire\n if (!wire) return null\n const facing = normalize([use.direction[0], 0, use.direction[2]])\n const angle = (wire.angleDeg * Math.PI) / 180\n const dx = facing[0] * Math.cos(angle) + facing[2] * Math.sin(angle)\n const dz = -facing[0] * Math.sin(angle) + facing[2] * Math.cos(angle)\n const from: Vec3 = [use.origin[0], use.origin[1] + wire.height, use.origin[2]]\n return { from, to: [from[0] + dx * wire.length, from[1], from[2] + dz * wire.length] }\n}\n","{\n \"smokeless\": {\n \"puffs\": 2,\n \"radius\": 0.01,\n \"opacity\": 0.14,\n \"life\": 0.7,\n \"drift\": 0.2,\n \"rise\": 0.06,\n \"growth\": 2.1,\n \"flash\": 1.0\n },\n \"black_powder\": {\n \"puffs\": 8,\n \"radius\": 0.022,\n \"opacity\": 0.55,\n \"life\": 5.5,\n \"drift\": 0.12,\n \"rise\": 0.04,\n \"growth\": 2.8,\n \"flash\": 1.0\n },\n \"suppressed\": {\n \"puffs\": 1,\n \"radius\": 0.006,\n \"opacity\": 0.08,\n \"life\": 0.5,\n \"drift\": 0.15,\n \"rise\": 0.05,\n \"growth\": 2.1,\n \"flash\": 0.15\n },\n \"none\": {\n \"puffs\": 0,\n \"radius\": 0.0,\n \"opacity\": 0.0,\n \"life\": 0.0,\n \"drift\": 0.0,\n \"rise\": 0.0,\n \"growth\": 0.0,\n \"flash\": 0.0\n },\n \"gallery\": {\n \"puffs\": 6,\n \"radius\": 0.013,\n \"opacity\": 0.45,\n \"life\": 1.3,\n \"lifeSpread\": 0.6,\n \"drift\": 0.15,\n \"driftSpread\": 0.35,\n \"rise\": 0.03,\n \"riseSpread\": 0.12,\n \"sideSpread\": 0.14,\n \"growth\": 2.1,\n \"flash\": 1\n }\n}\n","// Copyright Ada Technology 2026 — MIT\n/**\n * Muzzle smoke profiles and resolver for @adatechnology/game-weapons.\n *\n * Each profile controls the puff count, radius, opacity, lifetime, drift (forward speed),\n * rise speed, growth factor, and flash scale of the muzzle flash effect emitted on each shot.\n * The resolver picks the right profile from the calibre's propellant type, the weapon's own\n * override, and whether a suppressor is fitted.\n */\nimport type { CaliberDef, WeaponDef } from './types'\nimport PROFILES_JSON from './data/muzzle-smoke.json'\n\n/** The visual profile of the muzzle smoke for one shot. */\nexport interface MuzzleSmokeProfile {\n /** Number of smoke puffs spawned. */\n readonly puffs: number\n /** Radius of each puff at spawn (multiplied by the flash-size factor). */\n readonly radius: number\n /** Starting opacity of each puff (0 = invisible, 1 = fully opaque). */\n readonly opacity: number\n /** Life of each puff in seconds. */\n readonly life: number\n /** Forward drift speed of the cloud (m/s, along the barrel). */\n readonly drift: number\n /** Upward rise speed of the cloud (m/s, world-space). */\n readonly rise: number\n /** Growth factor per second applied to each puff. */\n readonly growth: number\n /** Flash scale multiplier (0 = no flash/light, 1 = full). */\n readonly flash: number\n /** Random extra forward speed per puff (m/s); the recipe defaults to 0.1. */\n readonly driftSpread?: number\n /** Random extra rise speed per puff (m/s); the recipe defaults to 0.04. */\n readonly riseSpread?: number\n /** Total sideways speed range per puff (m/s); the recipe defaults to 0.06. */\n readonly sideSpread?: number\n /** Random extra life per puff in seconds; the recipe defaults to 0.3 times `life`. */\n readonly lifeSpread?: number\n}\n\n/** Profile id — corresponds to a top-level key of `muzzle-smoke.json`. */\nexport type MuzzleSmokeProfileId = 'smokeless' | 'black_powder' | 'suppressed' | 'none' | 'gallery'\n\n/** All built-in muzzle smoke profiles, indexed by id. */\nexport const MUZZLE_SMOKE: Readonly<Record<MuzzleSmokeProfileId, MuzzleSmokeProfile>> = PROFILES_JSON as Readonly<Record<MuzzleSmokeProfileId, MuzzleSmokeProfile>>\n\nexport interface MuzzleSmokeParams {\n /** The calibre of the shot being fired. */\n caliber?: CaliberDef | null | undefined\n /** The weapon def (may carry a `muzzleSmoke` override). */\n weapon?: WeaponDef | undefined\n /** Whether a suppressor is fitted for this shot. */\n suppressed?: boolean | undefined\n}\n\n/**\n * Returns the muzzle smoke profile for a given shot context.\n *\n * Priority (highest first):\n * 1. `suppressed` → always returns the `suppressed` profile.\n * 2. `weapon.muzzleSmoke` → explicit weapon-level override (profile id).\n * 3. `caliber.propellant` → derived from the calibre's propellant type.\n * 4. Default: `smokeless`.\n *\n * The `gallery` profile (the Arsenal gallery's original look) is only reachable through `weapon.muzzleSmoke: 'gallery'`.\n */\nexport function muzzleSmokeOf({ caliber, weapon, suppressed }: MuzzleSmokeParams): MuzzleSmokeProfile {\n if (suppressed) return MUZZLE_SMOKE.suppressed\n const override = weapon?.muzzleSmoke as MuzzleSmokeProfileId | undefined\n if (override && override in MUZZLE_SMOKE) return MUZZLE_SMOKE[override]\n const id: MuzzleSmokeProfileId =\n caliber?.propellant === 'black_powder' ? 'black_powder' : caliber?.propellant === 'none' ? 'none' : 'smokeless'\n return MUZZLE_SMOKE[id]\n}\n","import type { Arsenal, AttachmentId, WeaponId } from './types'\n\n/**\n * How much the view closes in while a weapon aims: the magnification of the optic fitted on it (the lowest of a variable one, the AUG's integral 1.5x), else the iron-sight zoom\n * of its category (`rules.aim.ironSightZoom`); 1 for a weapon that does not aim (a knife, a grenade).\n */\nexport function aimZoomOf(arsenal: Arsenal, weaponId: WeaponId, attachments: readonly AttachmentId[] = arsenal.weapons.get(weaponId)?.fitted?.map((part) => part.id) ?? []): number {\n const def = arsenal.weapons.get(weaponId)\n if (!def) return 1\n const optic = attachments.map((id) => arsenal.attachments.get(id)?.optic).find((entry) => entry !== undefined)\n if (optic) return optic.zoom[0]\n return arsenal.rules.aim.ironSightZoom[def.category] ?? 1\n}\n","import type { Arsenal, WeaponId, WeaponRules } from './types'\n\n/**\n * Whether a body can hold one of this weapon in each hand (`rules.dualWield`): its category is listed or its id is, and it is not excluded. A game changes the lists through\n * `ArsenalOptions.rules`; an unknown id answers false.\n */\nexport function canDualWield(arsenal: Pick<Arsenal, 'weapons' | 'rules'>, weaponId: WeaponId): boolean {\n const def = arsenal.weapons.get(weaponId)\n if (!def) return false\n return isDualWieldable(arsenal.rules.dualWield, weaponId, def.category)\n}\n\nconst isDualWieldable = (rule: WeaponRules['dualWield'], weaponId: WeaponId, category: string): boolean => {\n if (rule.exclude.includes(weaponId)) return false\n return rule.weapons.includes(weaponId) || (rule.categories as readonly string[]).includes(category)\n}\n","import { ARCHETYPE_IDS } from './arsenal'\nimport type { Arsenal, WeaponId } from './types'\n\n// the archetypes that are a generic gun (\"pistola 9 mm\"): a firearm, or a flamethrower a real one stands for; the bows, the melee weapons and the throwables are the real object\nconst isGenericKind = (kind: string, category: string): boolean => (kind === 'firearm' && category !== 'bow' && category !== 'crossbow') || kind === 'flame'\n\n/**\n * The generic guns of the arsenal (the `9 mm service pistol`, the `5.56 mm assault rifle`...) and the real weapon that stands for each: the brand weapon of lowest id that names\n * it as its `archetype` and fires the same way, the one whose model it wears; `undefined` for a generic no real weapon stands for (the `.22 LR pistol`).\n */\nexport function genericWeapons(arsenal: Arsenal): ReadonlyMap<WeaponId, WeaponId | undefined> {\n const archetypes = new Set<string>(ARCHETYPE_IDS)\n const generics = new Map<WeaponId, WeaponId | undefined>()\n for (const def of arsenal.weapons.values()) if (archetypes.has(def.id) && isGenericKind(def.action.kind, def.category) && !def.maker) generics.set(def.id, undefined)\n for (const def of [...arsenal.weapons.values()].sort((a, b) => (a.id < b.id ? -1 : 1))) {\n const { archetype } = def\n if (!archetype || archetypes.has(def.id) || !generics.has(archetype) || generics.get(archetype)) continue\n if (arsenal.weapons.get(archetype)?.action.kind === def.action.kind) generics.set(archetype, def.id)\n }\n // a flame no real weapon stands for is the object itself (the lighter)\n for (const [id, brand] of generics) if (!brand && arsenal.weapons.get(id)?.action.kind === 'flame') generics.delete(id)\n return generics\n}\n\n/** A loadout with each generic gun swapped for the real weapon that stands for it (dropped when none does), and no id twice. */\nexport function realLoadout(arsenal: Arsenal, loadout: readonly WeaponId[]): WeaponId[] {\n const generics = genericWeapons(arsenal)\n const real = loadout.flatMap((id) => (generics.has(id) ? [generics.get(id)].filter((brand): brand is WeaponId => brand !== undefined) : [id]))\n return [...new Set(real)]\n}\n","import { genericWeapons } from './generics'\nimport type { Arsenal, WeaponCategory, WeaponDef, WeaponId } from './types'\n\n/** One group of the weapon menu as a game declares it: the categories it lists, in order, each a section of its own. */\nexport interface WeaponMenuGroupDef {\n readonly id: string\n /** Name by locale (`en`, `pt-BR`...); the id when the locale has none. */\n readonly name: Readonly<Record<string, string>>\n readonly categories: readonly string[]\n}\n\nexport interface WeaponMenuEntry {\n readonly id: WeaponId\n readonly name: string\n /** The maker of a brand weapon (Glock, Taurus, Heckler & Koch...), so a search by maker finds it. */\n readonly maker?: string\n /** The tags of the weapon (`pdw`, `explosive`...), so a search by them finds it. */\n readonly tags?: readonly string[]\n /** The section it is listed in (its category, or `flame` for a flamethrower filed as a launcher). */\n readonly category: string\n}\n\nexport interface WeaponMenuSection {\n /** The category. */\n readonly id: string\n readonly name: string\n readonly weapons: readonly WeaponMenuEntry[]\n}\n\nexport interface WeaponMenuGroup {\n readonly id: string\n readonly name: string\n readonly sections: readonly WeaponMenuSection[]\n}\n\nexport interface WeaponMenuOptions {\n /** Locale of the group names (default `en`); the weapon and category names are the arsenal's own. */\n readonly locale?: string\n /** The groups and their categories (default `WEAPON_MENU_GROUPS`). A category no group lists goes to a last `other` group. */\n readonly groups?: readonly WeaponMenuGroupDef[]\n /** Weapons left out of the menu (default none). */\n readonly exclude?: (def: WeaponDef) => boolean\n /** List the generic guns too (`genericWeapons`: the `9 mm service pistol` that wears the Beretta's model); default false, the real weapons stand for them. */\n readonly generics?: boolean\n}\n\n/** The groups of the menu: firearms, bladed and blunt weapons, explosives (throwables and launchers), tools (and the flames). */\nexport const WEAPON_MENU_GROUPS: readonly WeaponMenuGroupDef[] = [\n {\n id: 'firearms',\n name: { en: 'Firearms', 'pt-BR': 'Armas de fogo' },\n categories: ['pistol', 'revolver', 'smg', 'pdw', 'carbine', 'rifle', 'dmr', 'hunting', 'sniper', 'shotgun', 'machine_gun', 'bow', 'crossbow'],\n },\n { id: 'melee', name: { en: 'Melee weapons', 'pt-BR': 'Armas brancas' }, categories: ['melee_blade', 'melee_blunt', 'hand'] },\n { id: 'explosives', name: { en: 'Explosives', 'pt-BR': 'Explosivos' }, categories: ['throwable', 'launcher'] },\n { id: 'tools', name: { en: 'Tools', 'pt-BR': 'Ferramentas' }, categories: ['tool', 'heat', 'flame', 'extinguisher'] },\n]\n\nconst OTHER_GROUP: WeaponMenuGroupDef = { id: 'other', name: { en: 'Other', 'pt-BR': 'Outros' }, categories: [] }\n\n// a flamethrower is filed as a launcher (it is carried like one) but fires a flame: it is listed with the flames; a personal defence weapon (tag `pdw`: the P90, the MP7) has a section of its own\nconst sectionOf = (def: WeaponDef): string => {\n if (def.category === 'launcher' && def.action.kind === 'flame') return 'flame'\n return def.tags?.includes('pdw') ? 'pdw' : def.category\n}\n\nconst nameIn = (def: WeaponMenuGroupDef, locale: string): string => def.name[locale] ?? def.name.en ?? def.id\n\nconst capitalize = (text: string): string => text.charAt(0).toLocaleUpperCase() + text.slice(1)\n\n/** The whole arsenal by group and section, each section sorted by name: what a weapon picker lists. */\nexport function weaponMenu(arsenal: Arsenal, options: WeaponMenuOptions = {}): WeaponMenuGroup[] {\n const locale = options.locale ?? 'en'\n const groups = options.groups ?? WEAPON_MENU_GROUPS\n const bySection = new Map<string, WeaponMenuEntry[]>()\n const generics = options.generics ? new Map<WeaponId, WeaponId | undefined>() : genericWeapons(arsenal)\n for (const def of arsenal.weapons.values()) {\n if (options.exclude?.(def) || generics.has(def.id)) continue\n const category = sectionOf(def)\n const list = bySection.get(category) ?? []\n list.push({ id: def.id, name: capitalize(arsenal.name(def.id)), category, ...(def.maker ? { maker: def.maker } : {}), ...(def.tags?.length ? { tags: def.tags } : {}) })\n bySection.set(category, list)\n }\n const listed = new Set(groups.flatMap((group) => group.categories))\n const other: WeaponMenuGroupDef = { ...OTHER_GROUP, categories: [...bySection.keys()].filter((category) => !listed.has(category)) }\n const sectionsOf = (group: WeaponMenuGroupDef): WeaponMenuSection[] =>\n group.categories.flatMap((category) => {\n const weapons = bySection.get(category)\n if (!weapons?.length) return []\n const sorted = [...weapons].sort((a, b) => a.name.localeCompare(b.name, locale))\n return [{ id: category, name: capitalize(arsenal.name(category as WeaponCategory)), weapons: sorted }]\n })\n return [...groups, other].flatMap((group) => {\n const sections = sectionsOf(group)\n return sections.length ? [{ id: group.id, name: nameIn(group, locale), sections }] : []\n })\n}\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AA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AAC,EAAE;AAClI,UAAM,aAAa,CAAC,UAClB,MAAM,WAAW,QAAQ,CAAC,aAAa;AACrC,YAAM,UAAU,UAAU,IAAI,QAAQ;AACtC,UAAI,CAAC,SAAS,OAAQ,QAAO,CAAC;AAC9B,YAAM,SAAS,CAAC,GAAG,OAAO,EAAE,KAAK,CAAC,GAAG,MAAM,EAAE,KAAK,cAAc,EAAE,MAAM,MAAM,CAAC;AAC/E,aAAO,CAAC,EAAE,IAAI,UAAU,MAAM,WAAW,QAAQ,KAAK,QAA0B,CAAC,GAAG,SAAS,OAAO,CAAC;AAAA,IACvG,CAAC;AACH,WAAO,CAAC,GAAG,QAAQ,KAAK,EAAE,QAAQ,CAAC,UAAU;AAC3C,YAAM,WAAW,WAAW,KAAK;AACjC,aAAO,SAAS,SAAS,CAAC,EAAE,IAAI,MAAM,IAAI,MAAM,OAAO,OAAO,MAAM,GAAG,SAAS,CAAC,IAAI,CAAC;AAAA,IACxF,CAAC;AAAA,EACH;","names":["result","place","length","hitAt","explosive","EPS","EPS","EPS","EPS","EPS","part","EPS","distance","EPS","length","distance"]}
|
|
1
|
+
{"version":3,"sources":["../src/index.ts","../src/rng.ts","../src/data/ammo.json","../src/ammo.ts","../src/data/attachments.json","../../game-contracts/src/blast-shove.ts","../../game-contracts/src/blast-impulse.ts","../../game-contracts/src/blast-knock.ts","../../game-contracts/src/impact-cost.ts","../../game-contracts/src/impact.ts","../../game-contracts/src/body.ts","../../game-contracts/src/spec.ts","../../game-contracts/src/weapons.ts","../../game-contracts/src/ignition.ts","../../game-contracts/src/seal.ts","../../game-contracts/src/hands.ts","../../game-contracts/src/twist.ts","../../game-contracts/src/animation.ts","../../game-contracts/src/tool-animation.ts","../../game-contracts/src/frame.ts","../../game-contracts/src/warn.ts","../../game-contracts/src/registry.ts","../../game-contracts/src/bench.ts","../../game-contracts/src/environment.ts","../../game-contracts/src/categories.ts","../../game-contracts/src/origin.ts","../../game-contracts/src/footprint.ts","../../game-contracts/src/foley.ts","../../game-contracts/src/index.ts","../src/data/archetypes.json","../src/data/calibers.json","../src/data/explosives.json","../src/data/explosive-weapons.json","../src/data/firearms.json","../src/data/launchers.json","../src/attachments.ts","../src/data/melee-weapons.json","../src/check-arsenal.ts","../src/locale.ts","../src/fuse.ts","../src/registry.ts","../src/rules.ts","../src/vec.ts","../src/explosive-body.ts","../src/explosive-use.ts","../src/fire.ts","../src/heat.ts","../src/reload-stages.ts","../src/reload.ts","../src/faults.ts","../src/attachment-effects.ts","../src/weapon-shared.ts","../src/weapon-core.ts","../src/weapon-commands.ts","../src/weapon-attachments.ts","../src/weapon-firearm.ts","../src/weapon.ts","../src/arsenal.ts","../src/ground-sweep.ts","../src/explosive-effect.ts","../src/data/muzzle-smoke.json","../src/muzzle-smoke.ts","../src/aim-zoom.ts","../src/dual-wield.ts","../src/generics.ts","../src/menu.ts"],"sourcesContent":["export { createRng } from './rng'\nexport { AMMO, ammoId, ammoIgnition, resolveLoad } from './ammo'\nexport { createArsenal, CALIBERS, WEAPONS, EXPLOSIVES, ATTACHMENTS, ARCHETYPE_IDS, DEFAULT_LOADOUT, muzzleEnergy, checkArsenal } from './arsenal'\nexport { DEFAULT_RULES, GALLERY_HEAT } from './rules'\nexport { barrelMassOf, coolingTimeConstant, decayHeat, roundsToWarning, roundsToWarningOf } from './heat'\nexport type { RoundsToWarningParams } from './heat'\nexport { canFit, canInstallWith } from './attachments'\nexport type { CanFit, CanFitContext, FitRefusal, IsCompatible } from './attachments'\nexport { resolveLoadout } from './attachment-effects'\nexport type { Loadout, LoadoutContext } from './attachment-effects'\nexport { ExplosiveBody, createExplosiveBody } from './explosive-body'\nexport type { Detonation, ExplosiveBodyInit, ExplosiveEvent, SurfaceProbe } from './explosive-body'\nexport { sweepGround } from './ground-sweep'\nexport type { GroundHeight, GroundSweepHit, GroundSweepOptions } from './ground-sweep'\nexport { backblastEffect, blastEffect, tripwireSegment } from './explosive-effect'\nexport type { BlastEffect, TripwireSegment } from './explosive-effect'\nexport { nominalFuse, sampleFuse } from './fuse'\nexport { RELOAD_STAGES } from './reload-stages'\nexport { resolveStrings, locales } from './locale'\nexport type { WeaponsLocale, WeaponsStrings } from './locale'\nexport { MUZZLE_SMOKE, muzzleSmokeOf } from './muzzle-smoke'\nexport type { MuzzleSmokeProfile, MuzzleSmokeProfileId, MuzzleSmokeParams } from './muzzle-smoke'\nexport type * from './types'\nexport { aimZoomOf } from './aim-zoom'\nexport { canDualWield } from './dual-wield'\nexport { weaponMenu, WEAPON_MENU_GROUPS } from './menu'\nexport { genericWeapons, realLoadout } from './generics'\nexport type { WeaponMenuEntry, WeaponMenuGroup, WeaponMenuGroupDef, WeaponMenuOptions, WeaponMenuSection } from './menu'\n","import type { Vec3 } from './types'\n\n/** Deterministic mulberry32 generator; returns floats in [0, 1). */\nexport const createRng = (seed: number): (() => number) => {\n let a = seed >>> 0\n return () => {\n a = (a + 0x6d2b79f5) >>> 0\n let t = a\n t = Math.imul(t ^ (t >>> 15), t | 1)\n t ^= t + Math.imul(t ^ (t >>> 7), t | 61)\n return ((t ^ (t >>> 14)) >>> 0) / 4294967296\n }\n}\n\nexport const normalize = (v: Vec3): Vec3 => {\n const l = Math.hypot(v[0], v[1], v[2])\n return l > 1e-12 ? [v[0] / l, v[1] / l, v[2] / l] : [0, 0, -1]\n}\n\nconst cross = (a: Vec3, b: Vec3): Vec3 => [a[1] * b[2] - a[2] * b[1], a[2] * b[0] - a[0] * b[2], a[0] * b[1] - a[1] * b[0]]\n\n/** Uniform direction inside a cone of half-angle `deg` around the unit vector `dir` (uniform over the solid angle). */\nexport const sampleCone = (dir: Vec3, deg: number, rng: () => number): Vec3 => {\n if (deg <= 0) return dir\n const cosMax = Math.cos((deg * Math.PI) / 180)\n const cosT = 1 - rng() * (1 - cosMax)\n const sinT = Math.sqrt(Math.max(0, 1 - cosT * cosT))\n const phi = rng() * Math.PI * 2\n const helper: Vec3 = Math.abs(dir[1]) < 0.9 ? [0, 1, 0] : [1, 0, 0]\n const u = normalize(cross(helper, dir))\n const v = cross(dir, u)\n const cx = Math.cos(phi) * sinT\n const cy = Math.sin(phi) * sinT\n return normalize([\n u[0] * cx + v[0] * cy + dir[0] * cosT,\n u[1] * cx + v[1] * cy + dir[1] * cosT,\n u[2] * cx + v[2] * cy + dir[2] * cosT,\n ])\n}\n","{\n \"_notes\": [\n \"Penetration of a projectile at close range (muzzle to about 100 m), at normal incidence, in millimetres of: steel = RHA-equivalent (about 300 HB); concrete = unreinforced structural concrete; brick = fired clay brick masonry; wood = dry hardwood (oak). A game scales it by the energy left at the hit (shotToHit does).\",\n \"basis 'published' = taken from a manufacturer figure quoted in sources. basis 'estimated' = our estimate from published orders of magnitude (ball ammunition defeats 4 to 6 mm of RHA, steel-core 6 to 8 mm, AP 10 to 22 mm, .50 BMG ball about 14 mm), muzzle energy and bullet construction; the concrete, brick and wood columns scale with penetrator energy and hardness the way test firings against masonry and timber do. They are meant to be refined with datasheets: override any entry with ArsenalOptions.ammo / patch.ammo.\",\n \"Anchors: Nammo 7.62 mm x 51 Armor Piercing 8 (M993): 18 mm RHA at 100 m, 7 mm at 500 m (https://www.nammo.com/products/ammunition/small-caliber-ammunition/7-62mm-series/7-62-mm-x-51-armor-piercing-8-m993/). Constructions (M80 lead core with gilding-metal jacket, M43 and 7N6 steel cores, M995 and M993 tungsten carbide, M33 lead with steel insert, M2 hardened steel, BZ and B-32 steel core API) follow the usual military ammunition references (TM 43-0001-27, Army small-arms ammunition tables).\",\n \"core: lead, lead_steel (lead with a steel tip or insert), steel, hardened_steel, tungsten_carbide, copper, none. jacket: gilding_metal, copper, brass, steel (copper-washed or lacquered steel), none. They only feed the ignition rules (rules.ignition.spark).\",\n \"bulletGrams and muzzleSpeed, when present, replace those of the calibre for this load; absent they are the calibre's.\"\n ],\n \"loads\": [\n {\n \"id\": \"22lr:rimfire\",\n \"caliber\": \"22lr\",\n \"kind\": \"rimfire\",\n \"label\": \".22 LR lead round nose\",\n \"core\": \"lead\",\n \"jacket\": \"none\",\n \"penetration\": {\n \"steel\": 1.4,\n \"concrete\": 12,\n \"brick\": 25,\n \"wood\": 60\n },\n \"basis\": \"estimated\",\n \"sources\": [\n \"Estimated from muzzle energy, bullet construction and the published anchors of this file (see _notes); refine with a datasheet.\"\n ]\n },\n {\n \"id\": \"380acp:fmj\",\n \"caliber\": \"380acp\",\n \"kind\": \"fmj\",\n \"label\": \".380 ACP FMJ\",\n \"core\": \"lead\",\n \"jacket\": \"gilding_metal\",\n \"penetration\": {\n \"steel\": 2.2,\n \"concrete\": 20,\n \"brick\": 40,\n \"wood\": 80\n },\n \"basis\": \"estimated\",\n \"sources\": [\n \"Estimated from muzzle energy, bullet construction and the published anchors of this file (see _notes); refine with a datasheet.\"\n ]\n },\n {\n \"id\": \"9x18:fmj\",\n \"caliber\": \"9x18\",\n \"kind\": \"fmj\",\n \"label\": \"9x18 Makarov FMJ\",\n \"core\": \"lead\",\n \"jacket\": \"steel\",\n \"penetration\": {\n \"steel\": 2.6,\n \"concrete\": 22,\n \"brick\": 45,\n \"wood\": 85\n },\n \"basis\": \"estimated\",\n \"sources\": [\n \"Estimated from muzzle energy, bullet construction and the published anchors of this file (see _notes); refine with a datasheet.\"\n ]\n },\n {\n \"id\": \"9x19:fmj\",\n \"caliber\": \"9x19\",\n \"kind\": \"fmj\",\n \"label\": \"9x19 FMJ 124 gr\",\n \"core\": \"lead\",\n \"jacket\": \"gilding_metal\",\n \"penetration\": {\n \"steel\": 3.0,\n \"concrete\": 25,\n \"brick\": 50,\n \"wood\": 80\n },\n \"basis\": \"estimated\",\n \"sources\": [\n \"Estimated from muzzle energy, bullet construction and the published anchors of this file (see _notes); refine with a datasheet.\"\n ]\n },\n {\n \"id\": \"9x19:hp\",\n \"caliber\": \"9x19\",\n \"kind\": \"hp\",\n \"label\": \"9x19 JHP\",\n \"core\": \"lead\",\n \"jacket\": \"gilding_metal\",\n \"penetration\": {\n \"steel\": 2.0,\n \"concrete\": 15,\n \"brick\": 35,\n \"wood\": 55\n },\n \"basis\": \"estimated\",\n \"sources\": [\n \"Estimated from muzzle energy, bullet construction and the published anchors of this file (see _notes); refine with a datasheet.\"\n ]\n },\n {\n \"id\": \"40sw:fmj\",\n \"caliber\": \"40sw\",\n \"kind\": \"fmj\",\n \"label\": \".40 S&W FMJ\",\n \"core\": \"lead\",\n \"jacket\": \"gilding_metal\",\n \"penetration\": {\n \"steel\": 3.0,\n \"concrete\": 28,\n \"brick\": 55,\n \"wood\": 85\n },\n \"basis\": \"estimated\",\n \"sources\": [\n \"Estimated from muzzle energy, bullet construction and the published anchors of this file (see _notes); refine with a datasheet.\"\n ]\n },\n {\n \"id\": \"45acp:fmj\",\n \"caliber\": \"45acp\",\n \"kind\": \"fmj\",\n \"label\": \".45 ACP FMJ 230 gr\",\n \"core\": \"lead\",\n \"jacket\": \"gilding_metal\",\n \"penetration\": {\n \"steel\": 2.8,\n \"concrete\": 28,\n \"brick\": 55,\n \"wood\": 85\n },\n \"basis\": \"estimated\",\n \"sources\": [\n \"Estimated from muzzle energy, bullet construction and the published anchors of this file (see _notes); refine with a datasheet.\"\n ]\n },\n {\n \"id\": \"45acp:hp\",\n \"caliber\": \"45acp\",\n \"kind\": \"hp\",\n \"label\": \".45 ACP JHP\",\n \"core\": \"lead\",\n \"jacket\": \"gilding_metal\",\n \"penetration\": {\n \"steel\": 1.8,\n \"concrete\": 18,\n \"brick\": 40,\n \"wood\": 60\n },\n \"basis\": \"estimated\",\n \"sources\": [\n \"Estimated from muzzle energy, bullet construction and the published anchors of this file (see _notes); refine with a datasheet.\"\n ]\n },\n {\n \"id\": \"5_7x28:fmj\",\n \"caliber\": \"5_7x28\",\n \"kind\": \"fmj\",\n \"label\": \"5.7x28 SS190\",\n \"core\": \"lead_steel\",\n \"jacket\": \"gilding_metal\",\n \"penetration\": {\n \"steel\": 4.0,\n \"concrete\": 25,\n \"brick\": 50,\n \"wood\": 100\n },\n \"basis\": \"estimated\",\n \"sources\": [\n \"Estimated from muzzle energy, bullet construction and the published anchors of this file (see _notes); refine with a datasheet.\"\n ]\n },\n {\n \"id\": \"38spl:fmj\",\n \"caliber\": \"38spl\",\n \"kind\": \"fmj\",\n \"label\": \".38 Special lead round nose\",\n \"core\": \"lead\",\n \"jacket\": \"none\",\n \"penetration\": {\n \"steel\": 2.0,\n \"concrete\": 20,\n \"brick\": 40,\n \"wood\": 70\n },\n \"basis\": \"estimated\",\n \"sources\": [\n \"Estimated from muzzle energy, bullet construction and the published anchors of this file (see _notes); refine with a datasheet.\"\n ]\n },\n {\n \"id\": \"357mag:hp\",\n \"caliber\": \"357mag\",\n \"kind\": \"hp\",\n \"label\": \".357 Magnum JHP\",\n \"core\": \"lead\",\n \"jacket\": \"gilding_metal\",\n \"penetration\": {\n \"steel\": 3.0,\n \"concrete\": 25,\n \"brick\": 45,\n \"wood\": 90\n },\n \"basis\": \"estimated\",\n \"sources\": [\n \"Estimated from muzzle energy, bullet construction and the published anchors of this file (see _notes); refine with a datasheet.\"\n ]\n },\n {\n \"id\": \"44mag:fmj\",\n \"caliber\": \"44mag\",\n \"kind\": \"fmj\",\n \"label\": \".44 Magnum FMJ\",\n \"core\": \"lead\",\n \"jacket\": \"gilding_metal\",\n \"penetration\": {\n \"steel\": 4.0,\n \"concrete\": 40,\n \"brick\": 70,\n \"wood\": 150\n },\n \"basis\": \"estimated\",\n \"sources\": [\n \"Estimated from muzzle energy, bullet construction and the published anchors of this file (see _notes); refine with a datasheet.\"\n ]\n },\n {\n \"id\": \"50ae:fmj\",\n \"caliber\": \"50ae\",\n \"kind\": \"fmj\",\n \"label\": \".50 AE FMJ\",\n \"core\": \"lead\",\n \"jacket\": \"gilding_metal\",\n \"penetration\": {\n \"steel\": 4.0,\n \"concrete\": 38,\n \"brick\": 65,\n \"wood\": 130\n },\n \"basis\": \"estimated\",\n \"sources\": [\n \"Estimated from muzzle energy, bullet construction and the published anchors of this file (see _notes); refine with a datasheet.\"\n ]\n },\n {\n \"id\": \"12ga_00buck:buck\",\n \"caliber\": \"12ga_00buck\",\n \"kind\": \"buck\",\n \"label\": \"12 ga 00 buck (one pellet)\",\n \"core\": \"lead\",\n \"jacket\": \"none\",\n \"penetration\": {\n \"steel\": 0.8,\n \"concrete\": 10,\n \"brick\": 25,\n \"wood\": 60\n },\n \"basis\": \"estimated\",\n \"sources\": [\n \"Estimated from muzzle energy, bullet construction and the published anchors of this file (see _notes); refine with a datasheet.\"\n ]\n },\n {\n \"id\": \"12ga_slug:slug\",\n \"caliber\": \"12ga_slug\",\n \"kind\": \"slug\",\n \"label\": \"12 ga rifled slug\",\n \"core\": \"lead\",\n \"jacket\": \"none\",\n \"penetration\": {\n \"steel\": 4.0,\n \"concrete\": 60,\n \"brick\": 100,\n \"wood\": 250\n },\n \"basis\": \"estimated\",\n \"sources\": [\n \"Estimated from muzzle energy, bullet construction and the published anchors of this file (see _notes); refine with a datasheet.\"\n ]\n },\n {\n \"id\": \"12ga_birdshot:birdshot\",\n \"caliber\": \"12ga_birdshot\",\n \"kind\": \"birdshot\",\n \"label\": \"12 ga birdshot (one pellet)\",\n \"core\": \"lead\",\n \"jacket\": \"none\",\n \"penetration\": {\n \"steel\": 0.2,\n \"concrete\": 3,\n \"brick\": 8,\n \"wood\": 20\n },\n \"basis\": \"estimated\",\n \"sources\": [\n \"Estimated from muzzle energy, bullet construction and the published anchors of this file (see _notes); refine with a datasheet.\"\n ]\n },\n {\n \"id\": \"20ga_buck:buck\",\n \"caliber\": \"20ga_buck\",\n \"kind\": \"buck\",\n \"label\": \"20 ga buck (one pellet)\",\n \"core\": \"lead\",\n \"jacket\": \"none\",\n \"penetration\": {\n \"steel\": 0.6,\n \"concrete\": 8,\n \"brick\": 20,\n \"wood\": 50\n },\n \"basis\": \"estimated\",\n \"sources\": [\n \"Estimated from muzzle energy, bullet construction and the published anchors of this file (see _notes); refine with a datasheet.\"\n ]\n },\n {\n \"id\": \"5_56x45:fmj\",\n \"caliber\": \"5_56x45\",\n \"kind\": \"fmj\",\n \"label\": \"5.56x45 M855 (steel tip, lead core)\",\n \"core\": \"lead_steel\",\n \"jacket\": \"gilding_metal\",\n \"penetration\": {\n \"steel\": 4.5,\n \"concrete\": 90,\n \"brick\": 180,\n \"wood\": 280\n },\n \"basis\": \"estimated\",\n \"sources\": [\n \"Estimated from muzzle energy, bullet construction and the published anchors of this file (see _notes); refine with a datasheet.\"\n ]\n },\n {\n \"id\": \"5_45x39:fmj\",\n \"caliber\": \"5_45x39\",\n \"kind\": \"fmj\",\n \"label\": \"5.45x39 7N6 (steel core)\",\n \"core\": \"steel\",\n \"jacket\": \"steel\",\n \"penetration\": {\n \"steel\": 5.5,\n \"concrete\": 90,\n \"brick\": 180,\n \"wood\": 280\n },\n \"basis\": \"estimated\",\n \"sources\": [\n \"Estimated from muzzle energy, bullet construction and the published anchors of this file (see _notes); refine with a datasheet.\"\n ]\n },\n {\n \"id\": \"7_62x39:fmj\",\n \"caliber\": \"7_62x39\",\n \"kind\": \"fmj\",\n \"label\": \"7.62x39 M43 (steel core)\",\n \"core\": \"steel\",\n \"jacket\": \"steel\",\n \"penetration\": {\n \"steel\": 6.5,\n \"concrete\": 110,\n \"brick\": 220,\n \"wood\": 300\n },\n \"basis\": \"estimated\",\n \"sources\": [\n \"Estimated from muzzle energy, bullet construction and the published anchors of this file (see _notes); refine with a datasheet.\"\n ]\n },\n {\n \"id\": \"30_30:fmj\",\n \"caliber\": \"30_30\",\n \"kind\": \"fmj\",\n \"label\": \".30-30 Winchester flat nose\",\n \"core\": \"lead\",\n \"jacket\": \"gilding_metal\",\n \"penetration\": {\n \"steel\": 3.0,\n \"concrete\": 80,\n \"brick\": 160,\n \"wood\": 250\n },\n \"basis\": \"estimated\",\n \"sources\": [\n \"Estimated from muzzle energy, bullet construction and the published anchors of this file (see _notes); refine with a datasheet.\"\n ]\n },\n {\n \"id\": \"7_62x51:fmj\",\n \"caliber\": \"7_62x51\",\n \"kind\": \"fmj\",\n \"label\": \"7.62x51 M80 ball\",\n \"core\": \"lead\",\n \"jacket\": \"gilding_metal\",\n \"penetration\": {\n \"steel\": 5.0,\n \"concrete\": 120,\n \"brick\": 250,\n \"wood\": 330\n },\n \"basis\": \"estimated\",\n \"sources\": [\n \"Estimated from muzzle energy, bullet construction and the published anchors of this file (see _notes); refine with a datasheet.\"\n ]\n },\n {\n \"id\": \"7_62x54r:fmj\",\n \"caliber\": \"7_62x54r\",\n \"kind\": \"fmj\",\n \"label\": \"7.62x54R LPS (steel core)\",\n \"core\": \"steel\",\n \"jacket\": \"steel\",\n \"penetration\": {\n \"steel\": 6.5,\n \"concrete\": 130,\n \"brick\": 260,\n \"wood\": 330\n },\n \"basis\": \"estimated\",\n \"sources\": [\n \"Estimated from muzzle energy, bullet construction and the published anchors of this file (see _notes); refine with a datasheet.\"\n ]\n },\n {\n \"id\": \"30_06:fmj\",\n \"caliber\": \"30_06\",\n \"kind\": \"fmj\",\n \"label\": \".30-06 M1 ball\",\n \"core\": \"lead\",\n \"jacket\": \"gilding_metal\",\n \"penetration\": {\n \"steel\": 5.5,\n \"concrete\": 130,\n \"brick\": 260,\n \"wood\": 340\n },\n \"basis\": \"estimated\",\n \"sources\": [\n \"Estimated from muzzle energy, bullet construction and the published anchors of this file (see _notes); refine with a datasheet.\"\n ]\n },\n {\n \"id\": \"300wm:fmj\",\n \"caliber\": \"300wm\",\n \"kind\": \"fmj\",\n \"label\": \".300 Win Mag FMJ\",\n \"core\": \"lead\",\n \"jacket\": \"gilding_metal\",\n \"penetration\": {\n \"steel\": 6.5,\n \"concrete\": 150,\n \"brick\": 290,\n \"wood\": 360\n },\n \"basis\": \"estimated\",\n \"sources\": [\n \"Estimated from muzzle energy, bullet construction and the published anchors of this file (see _notes); refine with a datasheet.\"\n ]\n },\n {\n \"id\": \"338lapua:fmj\",\n \"caliber\": \"338lapua\",\n \"kind\": \"fmj\",\n \"label\": \".338 Lapua Magnum FMJ\",\n \"core\": \"lead\",\n \"jacket\": \"gilding_metal\",\n \"penetration\": {\n \"steel\": 8.0,\n \"concrete\": 190,\n \"brick\": 360,\n \"wood\": 450\n },\n \"basis\": \"estimated\",\n \"sources\": [\n \"Estimated from muzzle energy, bullet construction and the published anchors of this file (see _notes); refine with a datasheet.\"\n ]\n },\n {\n \"id\": \"408cheytac:fmj\",\n \"caliber\": \"408cheytac\",\n \"kind\": \"fmj\",\n \"label\": \".408 CheyTac solid\",\n \"core\": \"copper\",\n \"jacket\": \"none\",\n \"penetration\": {\n \"steel\": 12.0,\n \"concrete\": 250,\n \"brick\": 450,\n \"wood\": 550\n },\n \"basis\": \"estimated\",\n \"sources\": [\n \"Estimated from muzzle energy, bullet construction and the published anchors of this file (see _notes); refine with a datasheet.\"\n ]\n },\n {\n \"id\": \"arrow:arrow\",\n \"caliber\": \"arrow\",\n \"kind\": \"arrow\",\n \"label\": \"Arrow (steel broadhead)\",\n \"core\": \"steel\",\n \"jacket\": \"none\",\n \"penetration\": {\n \"steel\": 0.5,\n \"concrete\": 5,\n \"brick\": 15,\n \"wood\": 100\n },\n \"basis\": \"estimated\",\n \"sources\": [\n \"Estimated from muzzle energy, bullet construction and the published anchors of this file (see _notes); refine with a datasheet.\"\n ]\n },\n {\n \"id\": \"crossbow_bolt:bolt\",\n \"caliber\": \"crossbow_bolt\",\n \"kind\": \"bolt\",\n \"label\": \"Crossbow bolt\",\n \"core\": \"steel\",\n \"jacket\": \"none\",\n \"penetration\": {\n \"steel\": 0.8,\n \"concrete\": 8,\n \"brick\": 20,\n \"wood\": 120\n },\n \"basis\": \"estimated\",\n \"sources\": [\n \"Estimated from muzzle energy, bullet construction and the published anchors of this file (see _notes); refine with a datasheet.\"\n ]\n },\n {\n \"id\": \"4_6x30:fmj\",\n \"caliber\": \"4_6x30\",\n \"kind\": \"fmj\",\n \"label\": \"4.6x30 DM11\",\n \"core\": \"steel\",\n \"jacket\": \"gilding_metal\",\n \"penetration\": {\n \"steel\": 3.5,\n \"concrete\": 25,\n \"brick\": 50,\n \"wood\": 100\n },\n \"basis\": \"estimated\",\n \"sources\": [\n \"Estimated from muzzle energy, bullet construction and the published anchors of this file (see _notes); refine with a datasheet.\"\n ]\n },\n {\n \"id\": \"32acp:fmj\",\n \"caliber\": \"32acp\",\n \"kind\": \"fmj\",\n \"label\": \".32 ACP FMJ\",\n \"core\": \"lead\",\n \"jacket\": \"gilding_metal\",\n \"penetration\": {\n \"steel\": 1.8,\n \"concrete\": 15,\n \"brick\": 30,\n \"wood\": 60\n },\n \"basis\": \"estimated\",\n \"sources\": [\n \"Estimated from muzzle energy, bullet construction and the published anchors of this file (see _notes); refine with a datasheet.\"\n ]\n },\n {\n \"id\": \"9x19:tracer\",\n \"caliber\": \"9x19\",\n \"kind\": \"tracer\",\n \"label\": \"9x19 tracer\",\n \"core\": \"lead\",\n \"jacket\": \"gilding_metal\",\n \"tracer\": true,\n \"penetration\": {\n \"steel\": 2.8,\n \"concrete\": 22,\n \"brick\": 45,\n \"wood\": 75\n },\n \"basis\": \"estimated\",\n \"sources\": [\n \"Estimated from muzzle energy, bullet construction and the published anchors of this file (see _notes); refine with a datasheet.\"\n ]\n },\n {\n \"id\": \"5_56x45:ap\",\n \"caliber\": \"5_56x45\",\n \"kind\": \"ap\",\n \"label\": \"5.56x45 M995 AP (tungsten carbide)\",\n \"bulletGrams\": 3.6,\n \"muzzleSpeed\": 1013,\n \"core\": \"tungsten_carbide\",\n \"jacket\": \"gilding_metal\",\n \"penetration\": {\n \"steel\": 10.0,\n \"concrete\": 110,\n \"brick\": 210,\n \"wood\": 300\n },\n \"basis\": \"estimated\",\n \"sources\": [\n \"Estimated from muzzle energy, bullet construction and the published anchors of this file (see _notes); refine with a datasheet.\"\n ]\n },\n {\n \"id\": \"5_56x45:tracer\",\n \"caliber\": \"5_56x45\",\n \"kind\": \"tracer\",\n \"label\": \"5.56x45 M856 tracer\",\n \"bulletGrams\": 3.95,\n \"muzzleSpeed\": 914,\n \"core\": \"lead\",\n \"jacket\": \"gilding_metal\",\n \"tracer\": true,\n \"penetration\": {\n \"steel\": 3.5,\n \"concrete\": 80,\n \"brick\": 160,\n \"wood\": 260\n },\n \"basis\": \"estimated\",\n \"sources\": [\n \"Estimated from muzzle energy, bullet construction and the published anchors of this file (see _notes); refine with a datasheet.\"\n ]\n },\n {\n \"id\": \"5_45x39:tracer\",\n \"caliber\": \"5_45x39\",\n \"kind\": \"tracer\",\n \"label\": \"5.45x39 7T3M tracer\",\n \"core\": \"lead\",\n \"jacket\": \"steel\",\n \"tracer\": true,\n \"penetration\": {\n \"steel\": 4.0,\n \"concrete\": 80,\n \"brick\": 160,\n \"wood\": 260\n },\n \"basis\": \"estimated\",\n \"sources\": [\n \"Estimated from muzzle energy, bullet construction and the published anchors of this file (see _notes); refine with a datasheet.\"\n ]\n },\n {\n \"id\": \"7_62x39:incendiary\",\n \"caliber\": \"7_62x39\",\n \"kind\": \"incendiary\",\n \"label\": \"7.62x39 BZ API\",\n \"bulletGrams\": 7.7,\n \"muzzleSpeed\": 720,\n \"core\": \"hardened_steel\",\n \"jacket\": \"steel\",\n \"incendiary\": true,\n \"penetration\": {\n \"steel\": 8.0,\n \"concrete\": 110,\n \"brick\": 220,\n \"wood\": 300\n },\n \"basis\": \"estimated\",\n \"sources\": [\n \"Estimated from muzzle energy, bullet construction and the published anchors of this file (see _notes); refine with a datasheet.\"\n ]\n },\n {\n \"id\": \"7_62x39:tracer\",\n \"caliber\": \"7_62x39\",\n \"kind\": \"tracer\",\n \"label\": \"7.62x39 T-45 tracer\",\n \"core\": \"lead\",\n \"jacket\": \"steel\",\n \"tracer\": true,\n \"penetration\": {\n \"steel\": 4.5,\n \"concrete\": 100,\n \"brick\": 200,\n \"wood\": 280\n },\n \"basis\": \"estimated\",\n \"sources\": [\n \"Estimated from muzzle energy, bullet construction and the published anchors of this file (see _notes); refine with a datasheet.\"\n ]\n },\n {\n \"id\": \"7_62x51:ap\",\n \"caliber\": \"7_62x51\",\n \"kind\": \"ap\",\n \"label\": \"7.62x51 M993 AP (tungsten carbide)\",\n \"bulletGrams\": 8.2,\n \"muzzleSpeed\": 930,\n \"core\": \"tungsten_carbide\",\n \"jacket\": \"gilding_metal\",\n \"penetration\": {\n \"steel\": 18.0,\n \"concrete\": 160,\n \"brick\": 300,\n \"wood\": 360\n },\n \"basis\": \"published\",\n \"sources\": [\n \"Nammo, 7.62 mm x 51 Armor Piercing 8 (M993) product page: 18 mm RHA (300 HB) at 100 m, 7 mm at 500 m.\"\n ]\n },\n {\n \"id\": \"7_62x51:tracer\",\n \"caliber\": \"7_62x51\",\n \"kind\": \"tracer\",\n \"label\": \"7.62x51 M62 tracer\",\n \"core\": \"lead\",\n \"jacket\": \"gilding_metal\",\n \"tracer\": true,\n \"penetration\": {\n \"steel\": 4.0,\n \"concrete\": 110,\n \"brick\": 230,\n \"wood\": 320\n },\n \"basis\": \"estimated\",\n \"sources\": [\n \"Estimated from muzzle energy, bullet construction and the published anchors of this file (see _notes); refine with a datasheet.\"\n ]\n },\n {\n \"id\": \"7_62x54r:ap\",\n \"caliber\": \"7_62x54r\",\n \"kind\": \"ap\",\n \"label\": \"7.62x54R 7N37 AP\",\n \"core\": \"hardened_steel\",\n \"jacket\": \"steel\",\n \"penetration\": {\n \"steel\": 11.0,\n \"concrete\": 140,\n \"brick\": 270,\n \"wood\": 340\n },\n \"basis\": \"estimated\",\n \"sources\": [\n \"Estimated from muzzle energy, bullet construction and the published anchors of this file (see _notes); refine with a datasheet.\"\n ]\n },\n {\n \"id\": \"7_62x54r:incendiary\",\n \"caliber\": \"7_62x54r\",\n \"kind\": \"incendiary\",\n \"label\": \"7.62x54R B-32 API\",\n \"bulletGrams\": 10.0,\n \"muzzleSpeed\": 830,\n \"core\": \"hardened_steel\",\n \"jacket\": \"steel\",\n \"incendiary\": true,\n \"penetration\": {\n \"steel\": 10.0,\n \"concrete\": 130,\n \"brick\": 260,\n \"wood\": 330\n },\n \"basis\": \"estimated\",\n \"sources\": [\n \"Estimated from muzzle energy, bullet construction and the published anchors of this file (see _notes); refine with a datasheet.\"\n ]\n },\n {\n \"id\": \"7_62x54r:tracer\",\n \"caliber\": \"7_62x54r\",\n \"kind\": \"tracer\",\n \"label\": \"7.62x54R T-46 tracer\",\n \"core\": \"lead\",\n \"jacket\": \"steel\",\n \"tracer\": true,\n \"penetration\": {\n \"steel\": 4.5,\n \"concrete\": 110,\n \"brick\": 220,\n \"wood\": 300\n },\n \"basis\": \"estimated\",\n \"sources\": [\n \"Estimated from muzzle energy, bullet construction and the published anchors of this file (see _notes); refine with a datasheet.\"\n ]\n },\n {\n \"id\": \"30_06:ap\",\n \"caliber\": \"30_06\",\n \"kind\": \"ap\",\n \"label\": \".30-06 M2 AP (hardened steel)\",\n \"bulletGrams\": 10.8,\n \"muzzleSpeed\": 860,\n \"core\": \"hardened_steel\",\n \"jacket\": \"gilding_metal\",\n \"penetration\": {\n \"steel\": 10.0,\n \"concrete\": 140,\n \"brick\": 270,\n \"wood\": 340\n },\n \"basis\": \"estimated\",\n \"sources\": [\n \"Estimated from muzzle energy, bullet construction and the published anchors of this file (see _notes); refine with a datasheet.\"\n ]\n },\n {\n \"id\": \"30_06:tracer\",\n \"caliber\": \"30_06\",\n \"kind\": \"tracer\",\n \"label\": \".30-06 M25 tracer\",\n \"core\": \"lead\",\n \"jacket\": \"gilding_metal\",\n \"tracer\": true,\n \"penetration\": {\n \"steel\": 4.0,\n \"concrete\": 110,\n \"brick\": 230,\n \"wood\": 320\n },\n \"basis\": \"estimated\",\n \"sources\": [\n \"Estimated from muzzle energy, bullet construction and the published anchors of this file (see _notes); refine with a datasheet.\"\n ]\n },\n {\n \"id\": \"338lapua:ap\",\n \"caliber\": \"338lapua\",\n \"kind\": \"ap\",\n \"label\": \".338 Lapua AP (tungsten)\",\n \"core\": \"tungsten_carbide\",\n \"jacket\": \"gilding_metal\",\n \"penetration\": {\n \"steel\": 16.0,\n \"concrete\": 200,\n \"brick\": 380,\n \"wood\": 470\n },\n \"basis\": \"estimated\",\n \"sources\": [\n \"Estimated from muzzle energy, bullet construction and the published anchors of this file (see _notes); refine with a datasheet.\"\n ]\n },\n {\n \"id\": \"50bmg:fmj\",\n \"caliber\": \"50bmg\",\n \"kind\": \"fmj\",\n \"label\": \".50 BMG M33 ball\",\n \"core\": \"lead_steel\",\n \"jacket\": \"gilding_metal\",\n \"penetration\": {\n \"steel\": 14.0,\n \"concrete\": 330,\n \"brick\": 560,\n \"wood\": 600\n },\n \"basis\": \"estimated\",\n \"sources\": [\n \"Estimated from muzzle energy, bullet construction and the published anchors of this file (see _notes); refine with a datasheet.\"\n ]\n },\n {\n \"id\": \"50bmg:ap\",\n \"caliber\": \"50bmg\",\n \"kind\": \"ap\",\n \"label\": \".50 BMG M2 AP (hardened steel)\",\n \"core\": \"hardened_steel\",\n \"jacket\": \"gilding_metal\",\n \"penetration\": {\n \"steel\": 22.0,\n \"concrete\": 350,\n \"brick\": 580,\n \"wood\": 600\n },\n \"basis\": \"estimated\",\n \"sources\": [\n \"Estimated from muzzle energy, bullet construction and the published anchors of this file (see _notes); refine with a datasheet.\"\n ]\n },\n {\n \"id\": \"50bmg:incendiary\",\n \"caliber\": \"50bmg\",\n \"kind\": \"incendiary\",\n \"label\": \".50 BMG M8 API\",\n \"core\": \"hardened_steel\",\n \"jacket\": \"gilding_metal\",\n \"incendiary\": true,\n \"penetration\": {\n \"steel\": 18.0,\n \"concrete\": 340,\n \"brick\": 570,\n \"wood\": 600\n },\n \"basis\": \"estimated\",\n \"sources\": [\n \"Estimated from muzzle energy, bullet construction and the published anchors of this file (see _notes); refine with a datasheet.\"\n ]\n },\n {\n \"id\": \"50bmg:tracer\",\n \"caliber\": \"50bmg\",\n \"kind\": \"tracer\",\n \"label\": \".50 BMG M17 tracer\",\n \"core\": \"lead\",\n \"jacket\": \"gilding_metal\",\n \"tracer\": true,\n \"penetration\": {\n \"steel\": 9.0,\n \"concrete\": 300,\n \"brick\": 520,\n \"wood\": 580\n },\n \"basis\": \"estimated\",\n \"sources\": [\n \"Estimated from muzzle energy, bullet construction and the published anchors of this file (see _notes); refine with a datasheet.\"\n ]\n },\n {\n \"id\": \"12ga_00buck:incendiary\",\n \"caliber\": \"12ga_00buck\",\n \"kind\": \"incendiary\",\n \"label\": \"12 ga incendiary shell (one pellet, magnesium)\",\n \"core\": \"none\",\n \"jacket\": \"none\",\n \"incendiary\": true,\n \"penetration\": {\n \"steel\": 0.1,\n \"concrete\": 3,\n \"brick\": 8,\n \"wood\": 15\n },\n \"basis\": \"estimated\",\n \"sources\": [\n \"Estimated from muzzle energy, bullet construction and the published anchors of this file (see _notes); refine with a datasheet.\"\n ]\n },\n {\n \"id\": \"45_70_bp:fmj\",\n \"caliber\": \"45_70_bp\",\n \"kind\": \"fmj\",\n \"label\": \".45-70 Government 405 gr lead\",\n \"core\": \"lead\",\n \"jacket\": \"none\",\n \"penetration\": {\n \"steel\": 2.5,\n \"concrete\": 75,\n \"brick\": 150,\n \"wood\": 240\n },\n \"basis\": \"estimated\",\n \"sources\": [\n \"Estimated from muzzle energy, bullet construction and the published anchors of this file (see _notes); refine with a datasheet.\"\n ]\n },\n {\n \"id\": \"7_62x25:fmj\",\n \"caliber\": \"7_62x25\",\n \"kind\": \"fmj\",\n \"label\": \"7.62x25 Tokarev FMJ\",\n \"core\": \"lead\",\n \"jacket\": \"steel\",\n \"penetration\": {\n \"steel\": 3.5,\n \"concrete\": 30,\n \"brick\": 60,\n \"wood\": 100\n },\n \"basis\": \"estimated\",\n \"sources\": [\n \"Estimated from muzzle energy, bullet construction and the published anchors of this file (see _notes); refine with a datasheet.\"\n ]\n },\n {\n \"id\": \"7_92x57:fmj\",\n \"caliber\": \"7_92x57\",\n \"kind\": \"fmj\",\n \"label\": \"7.92x57 s.S. ball\",\n \"core\": \"lead\",\n \"jacket\": \"gilding_metal\",\n \"penetration\": {\n \"steel\": 5.5,\n \"concrete\": 125,\n \"brick\": 250,\n \"wood\": 330\n },\n \"basis\": \"estimated\",\n \"sources\": [\n \"Estimated from muzzle energy, bullet construction and the published anchors of this file (see _notes); refine with a datasheet.\"\n ]\n },\n {\n \"id\": \"9x39:fmj\",\n \"caliber\": \"9x39\",\n \"kind\": \"fmj\",\n \"label\": \"9x39 SP-5\",\n \"core\": \"lead\",\n \"jacket\": \"gilding_metal\",\n \"penetration\": {\n \"steel\": 3.0,\n \"concrete\": 30,\n \"brick\": 70,\n \"wood\": 130\n },\n \"basis\": \"estimated\",\n \"sources\": [\n \"Estimated from muzzle energy, bullet construction and the published anchors of this file (see _notes); refine with a datasheet.\"\n ]\n }\n ]\n}","import type { HitIgnition } from '@adatechnology/game-contracts'\nimport ammoJson from './data/ammo.json'\nimport type { WeaponRules } from './rule-types'\nimport type { AmmoDef, AmmoKind, AmmoLoad, CaliberDef } from './types'\n\n/**\n * The ammo table: per calibre and kind of round, the construction (core, jacket, tracer, incendiary) and how far it goes through steel, concrete,\n * brick and wood. The notes of `data/ammo.json` say where the numbers come from (one is published, the rest are estimates to be refined).\n */\nexport const AMMO = ammoJson.loads as unknown as AmmoDef[]\n\n/** Id of a load in the table. */\nexport const ammoId = (caliber: string, kind: string): string => `${caliber}:${kind}`\n\n/** Resolves a load of `caliber` (its own kind when `kind` is left out) against the table, or null when the table has none. */\nexport const resolveLoad = (caliber: CaliberDef, ammo: ReadonlyMap<string, AmmoDef>, kind?: AmmoKind): AmmoLoad | null => {\n const k = kind ?? caliber.kind\n if (k === undefined) return null\n const def = ammo.get(ammoId(caliber.id, k))\n if (!def) return null\n const grams = def.bulletGrams ?? caliber.bulletGrams\n const speed = def.muzzleSpeed ?? caliber.muzzleSpeed\n return { def, kind: k, grams, speed, energy: 0.5 * (grams / 1000) * speed * speed, penetration: def.penetration }\n}\n\n/**\n * Chances that a round lights flammable fluid, from its construction and `rules.ignition`: the spark of the hard core and jacket on steel (they are\n * independent, 1 - (1 - core) x (1 - jacket)) and the flame of an incendiary or tracer. A lead round with a copper jacket gives about 1 percent.\n */\nexport const ammoIgnition = (def: AmmoDef, rules: WeaponRules['ignition']): HitIgnition => {\n const core = rules.core[def.core] ?? 0\n const jacket = rules.jacket[def.jacket] ?? 0\n const flame = Math.max(def.incendiary ? rules.flame.incendiary : 0, def.tracer ? rules.flame.tracer : 0)\n return { spark: 1 - (1 - core) * (1 - jacket), flame }\n}\n","[\n {\n \"id\": \"suppressor\",\n \"name\": \"Suppressor\",\n \"kind\": \"suppressor\",\n \"mounts\": [\n \"muzzle\"\n ],\n \"interfaces\": [\n \"thread_1/2x28\",\n \"thread_5/8x24\",\n \"thread_14x1lh\",\n \"thread_24x1.5\",\n \"hk_3lug\"\n ],\n \"mass\": 0.45,\n \"install\": \"tool\",\n \"model\": \"suppressor\",\n \"sources\": [\n \"arsenal\",\n \"derived\"\n ],\n \"calibers\": {\n \"maxDiameter\": 12.7,\n \"maxEnergy\": 6500\n },\n \"dims\": {\n \"length\": 0.2,\n \"diameter\": 0.045\n },\n \"removable\": true,\n \"effects\": [\n {\n \"stat\": \"noise\",\n \"mul\": 0.4\n },\n {\n \"stat\": \"noise\",\n \"mul\": 0.625,\n \"when\": \"subsonic\"\n },\n {\n \"stat\": \"muzzleSpeed\",\n \"mul\": 0.97468\n },\n {\n \"stat\": \"heatPerShot\",\n \"mul\": 1.5\n }\n ]\n },\n {\n \"id\": \"oil_filter_suppressor\",\n \"name\": \"Improvised oil filter suppressor\",\n \"kind\": \"suppressor\",\n \"mounts\": [\n \"muzzle\"\n ],\n \"interfaces\": [\n \"thread_1/2x28\",\n \"thread_5/8x24\",\n \"thread_14x1lh\",\n \"thread_24x1.5\",\n \"hk_3lug\"\n ],\n \"mass\": 0.35,\n \"install\": \"tool\",\n \"model\": \"oil_filter_suppressor\",\n \"sources\": [\n \"arsenal\",\n \"derived\"\n ],\n \"calibers\": {\n \"maxDiameter\": 9,\n \"maxEnergy\": 2500\n },\n \"dims\": {\n \"length\": 0.17,\n \"diameter\": 0.07\n },\n \"durability\": {\n \"shots\": [\n 30,\n 60\n ]\n },\n \"effects\": [\n {\n \"stat\": \"noise\",\n \"mul\": 0.6\n },\n {\n \"stat\": \"heatPerShot\",\n \"mul\": 1.5\n }\n ]\n },\n {\n \"id\": \"muzzle_brake\",\n \"name\": \"Muzzle brake\",\n \"kind\": \"muzzle_device\",\n \"mounts\": [\n \"muzzle\"\n ],\n \"interfaces\": [\n \"thread_1/2x28\",\n \"thread_5/8x24\",\n \"thread_14x1lh\",\n \"thread_24x1.5\",\n \"hk_3lug\",\n \"fixed_muzzle_device\"\n ],\n \"mass\": 0.15,\n \"install\": \"tool\",\n \"model\": \"muzzle_brake\",\n \"sources\": [\n \"arsenal\",\n \"derived\"\n ],\n \"effects\": [\n {\n \"stat\": \"recoilVertical\",\n \"mul\": 0.75\n },\n {\n \"stat\": \"recoilHorizontal\",\n \"mul\": 0.75\n },\n {\n \"stat\": \"noise\",\n \"mul\": 1.1\n }\n ]\n },\n {\n \"id\": \"muzzle_brake_heavy\",\n \"name\": \"Heavy muzzle brake\",\n \"kind\": \"muzzle_device\",\n \"mounts\": [\n \"muzzle\"\n ],\n \"interfaces\": [\n \"thread_1/2x28\",\n \"thread_5/8x24\",\n \"thread_14x1lh\",\n \"thread_24x1.5\",\n \"hk_3lug\",\n \"fixed_muzzle_device\"\n ],\n \"mass\": 0.35,\n \"install\": \"tool\",\n \"model\": \"muzzle_brake_heavy\",\n \"sources\": [\n \"arsenal\",\n \"derived\"\n ],\n \"effects\": [\n {\n \"stat\": \"recoilVertical\",\n \"mul\": 0.75\n },\n {\n \"stat\": \"recoilHorizontal\",\n \"mul\": 0.75\n },\n {\n \"stat\": \"noise\",\n \"mul\": 1.1\n }\n ]\n },\n {\n \"id\": \"compensator\",\n \"name\": \"Compensator\",\n \"kind\": \"muzzle_device\",\n \"mounts\": [\n \"muzzle\"\n ],\n \"interfaces\": [\n \"thread_1/2x28\",\n \"thread_5/8x24\",\n \"thread_14x1lh\",\n \"thread_24x1.5\",\n \"hk_3lug\",\n \"fixed_muzzle_device\"\n ],\n \"mass\": 0.1,\n \"install\": \"tool\",\n \"model\": \"compensator\",\n \"sources\": [\n \"arsenal\",\n \"derived\"\n ],\n \"effects\": [\n {\n \"stat\": \"recoilVertical\",\n \"mul\": 0.75\n },\n {\n \"stat\": \"recoilHorizontal\",\n \"mul\": 0.75\n },\n {\n \"stat\": \"noise\",\n \"mul\": 1.1\n }\n ]\n },\n {\n \"id\": \"red_dot\",\n \"name\": \"Red dot sight\",\n \"kind\": \"optic\",\n \"mounts\": [\n \"rail_top\",\n \"rail_left\"\n ],\n \"interfaces\": [\n \"picatinny\",\n \"ak_side\"\n ],\n \"mass\": 0.15,\n \"install\": \"tool\",\n \"model\": \"red_dot\",\n \"sources\": [\n \"arsenal\",\n \"derived\"\n ],\n \"optic\": {\n \"zoom\": [\n 1,\n 1\n ],\n \"reticle\": \"dot\"\n },\n \"effects\": [\n {\n \"stat\": \"aim\",\n \"mul\": 0.8\n }\n ]\n },\n {\n \"id\": \"holographic_sight\",\n \"name\": \"Holographic sight\",\n \"kind\": \"optic\",\n \"mounts\": [\n \"rail_top\",\n \"rail_left\"\n ],\n \"interfaces\": [\n \"picatinny\",\n \"ak_side\"\n ],\n \"mass\": 0.3,\n \"install\": \"tool\",\n \"model\": \"holographic_sight\",\n \"sources\": [\n \"arsenal\",\n \"derived\"\n ],\n \"optic\": {\n \"zoom\": [\n 1,\n 1\n ],\n \"reticle\": \"holo\"\n },\n \"effects\": [\n {\n \"stat\": \"aim\",\n \"mul\": 0.8\n }\n ]\n },\n {\n \"id\": \"acog_4x\",\n \"name\": \"ACOG 4x\",\n \"kind\": \"optic\",\n \"mounts\": [\n \"rail_top\",\n \"rail_left\"\n ],\n \"interfaces\": [\n \"picatinny\",\n \"ak_side\"\n ],\n \"mass\": 0.4,\n \"install\": \"tool\",\n \"model\": \"acog_4x\",\n \"sources\": [\n \"arsenal\",\n \"derived\"\n ],\n \"optic\": {\n \"zoom\": [\n 4,\n 4\n ],\n \"reticle\": \"chevron\"\n },\n \"effects\": [\n {\n \"stat\": \"aim\",\n \"mul\": 1.1\n }\n ]\n },\n {\n \"id\": \"scope_3_9x\",\n \"name\": \"Rifle scope 3-9x\",\n \"kind\": \"optic\",\n \"mounts\": [\n \"rail_top\",\n \"rail_left\"\n ],\n \"interfaces\": [\n \"picatinny\",\n \"ak_side\",\n \"dovetail\"\n ],\n \"mass\": 0.6,\n \"install\": \"tool\",\n \"model\": \"scope_3_9x\",\n \"sources\": [\n \"arsenal\",\n \"derived\"\n ],\n \"optic\": {\n \"zoom\": [\n 3,\n 9\n ],\n \"reticle\": \"duplex\"\n },\n \"effects\": [\n {\n \"stat\": \"aim\",\n \"mul\": 1.15\n }\n ]\n },\n {\n \"id\": \"scope_6_24x\",\n \"name\": \"Rifle scope 6-24x\",\n \"kind\": \"optic\",\n \"mounts\": [\n \"rail_top\",\n \"rail_left\"\n ],\n \"interfaces\": [\n \"picatinny\",\n \"ak_side\",\n \"dovetail\"\n ],\n \"mass\": 1.1,\n \"install\": \"tool\",\n \"model\": \"scope_6_24x\",\n \"sources\": [\n \"arsenal\",\n \"derived\"\n ],\n \"optic\": {\n \"zoom\": [\n 6,\n 24\n ],\n \"reticle\": \"mildot\"\n },\n \"effects\": [\n {\n \"stat\": \"aim\",\n \"mul\": 1.25\n }\n ]\n },\n {\n \"id\": \"night_vision_scope\",\n \"name\": \"Night vision scope\",\n \"kind\": \"optic\",\n \"mounts\": [\n \"rail_top\",\n \"rail_left\"\n ],\n \"interfaces\": [\n \"picatinny\",\n \"ak_side\",\n \"dovetail\"\n ],\n \"mass\": 0.9,\n \"install\": \"tool\",\n \"model\": \"night_vision_scope\",\n \"sources\": [\n \"arsenal\",\n \"derived\"\n ],\n \"optic\": {\n \"zoom\": [\n 1,\n 4\n ],\n \"reticle\": \"duplex\",\n \"vision\": \"night\",\n \"batteryHours\": 40\n },\n \"effects\": [\n {\n \"stat\": \"aim\",\n \"mul\": 1.2\n }\n ]\n },\n {\n \"id\": \"thermal_scope\",\n \"name\": \"Thermal scope\",\n \"kind\": \"optic\",\n \"mounts\": [\n \"rail_top\",\n \"rail_left\"\n ],\n \"interfaces\": [\n \"picatinny\",\n \"ak_side\",\n \"dovetail\"\n ],\n \"mass\": 1.2,\n \"install\": \"tool\",\n \"model\": \"thermal_scope\",\n \"sources\": [\n \"arsenal\",\n \"derived\"\n ],\n \"optic\": {\n \"zoom\": [\n 1,\n 4\n ],\n \"reticle\": \"duplex\",\n \"vision\": \"thermal\",\n \"batteryHours\": 8\n },\n \"effects\": [\n {\n \"stat\": \"aim\",\n \"mul\": 1.2\n }\n ]\n },\n {\n \"id\": \"integral_optic_1_5x\",\n \"name\": \"Integral 1.5x optic of the AUG\",\n \"kind\": \"optic\",\n \"mounts\": [\n \"rail_top\"\n ],\n \"interfaces\": [\n \"integral\",\n \"pso_1_side\"\n ],\n \"mass\": 0.2,\n \"install\": \"bench\",\n \"model\": \"integral_optic_1_5x\",\n \"sources\": [\n \"gallery\",\n \"reference\"\n ],\n \"optic\": {\n \"zoom\": [\n 1.5,\n 1.5\n ],\n \"reticle\": \"duplex\"\n },\n \"removable\": false,\n \"effects\": []\n },\n {\n \"id\": \"pso_1\",\n \"name\": \"PSO-1 scope\",\n \"kind\": \"optic\",\n \"mounts\": [\n \"rail_top\"\n ],\n \"interfaces\": [\n \"integral\",\n \"pso_1_side\"\n ],\n \"mass\": 0.6,\n \"install\": \"bench\",\n \"model\": \"pso_1\",\n \"sources\": [\n \"gallery\",\n \"reference\"\n ],\n \"optic\": {\n \"zoom\": [\n 4,\n 4\n ],\n \"reticle\": \"chevron\"\n },\n \"removable\": false,\n \"effects\": []\n },\n {\n \"id\": \"fixed_scope_10x\",\n \"name\": \"Fixed 10x scope of the M24\",\n \"kind\": \"optic\",\n \"mounts\": [\n \"rail_top\"\n ],\n \"interfaces\": [\n \"integral\",\n \"pso_1_side\"\n ],\n \"mass\": 0.8,\n \"install\": \"bench\",\n \"model\": \"fixed_scope_10x\",\n \"sources\": [\n \"gallery\",\n \"reference\"\n ],\n \"optic\": {\n \"zoom\": [\n 10,\n 10\n ],\n \"reticle\": \"mildot\"\n },\n \"removable\": false,\n \"effects\": []\n },\n {\n \"id\": \"vertical_grip\",\n \"name\": \"Vertical foregrip\",\n \"kind\": \"grip\",\n \"mounts\": [\n \"rail_bottom\"\n ],\n \"interfaces\": [\n \"picatinny\",\n \"mlok\"\n ],\n \"mass\": 0.15,\n \"install\": \"field\",\n \"model\": \"vertical_grip\",\n \"sources\": [\n \"arsenal\",\n \"derived\"\n ],\n \"dims\": {\n \"length\": 0.1\n },\n \"effects\": [\n {\n \"stat\": \"recoilVertical\",\n \"mul\": 0.85\n }\n ]\n },\n {\n \"id\": \"bipod\",\n \"name\": \"Bipod\",\n \"kind\": \"bipod\",\n \"mounts\": [\n \"rail_bottom\"\n ],\n \"interfaces\": [\n \"picatinny\",\n \"bipod_stud\"\n ],\n \"mass\": 0.4,\n \"install\": \"field\",\n \"model\": \"bipod\",\n \"sources\": [\n \"gallery\",\n \"arsenal\",\n \"derived\"\n ],\n \"effects\": [\n {\n \"stat\": \"recoilVertical\",\n \"mul\": 0.4,\n \"when\": \"supported\"\n },\n {\n \"stat\": \"recoilHorizontal\",\n \"mul\": 0.4,\n \"when\": \"supported\"\n }\n ]\n },\n {\n \"id\": \"m203\",\n \"name\": \"M203 grenade launcher\",\n \"kind\": \"underbarrel\",\n \"mounts\": [\n \"underbarrel\"\n ],\n \"interfaces\": [\n \"m203\"\n ],\n \"mass\": 1.36,\n \"install\": \"bench\",\n \"model\": \"m203\",\n \"sources\": [\n \"arsenal\",\n \"reference\"\n ],\n \"blocks\": [\n \"rail_bottom\"\n ],\n \"categories\": [\n \"rifle\",\n \"carbine\",\n \"dmr\"\n ],\n \"launcher\": \"m203\",\n \"dims\": {\n \"length\": 0.38\n },\n \"effects\": []\n },\n {\n \"id\": \"gp_25\",\n \"name\": \"GP-25 grenade launcher\",\n \"kind\": \"underbarrel\",\n \"mounts\": [\n \"underbarrel\"\n ],\n \"interfaces\": [\n \"gp25\"\n ],\n \"mass\": 1.5,\n \"install\": \"bench\",\n \"model\": \"gp_25\",\n \"sources\": [\n \"reference\"\n ],\n \"blocks\": [\n \"rail_bottom\"\n ],\n \"categories\": [\n \"rifle\",\n \"carbine\",\n \"dmr\"\n ],\n \"launcher\": \"gp_25\",\n \"dims\": {\n \"length\": 0.323\n },\n \"effects\": []\n },\n {\n \"id\": \"ag36\",\n \"name\": \"AG36 grenade launcher\",\n \"kind\": \"underbarrel\",\n \"mounts\": [\n \"underbarrel\"\n ],\n \"interfaces\": [\n \"ag36\"\n ],\n \"mass\": 1.5,\n \"install\": \"bench\",\n \"model\": \"ag36\",\n \"sources\": [\n \"reference\"\n ],\n \"blocks\": [\n \"rail_bottom\"\n ],\n \"categories\": [\n \"rifle\",\n \"carbine\",\n \"dmr\"\n ],\n \"launcher\": \"ag36\",\n \"dims\": {\n \"length\": 0.35\n },\n \"effects\": []\n },\n {\n \"id\": \"weapon_light\",\n \"name\": \"Weapon light\",\n \"kind\": \"light\",\n \"mounts\": [\n \"rail_left\",\n \"rail_right\",\n \"rail_bottom\"\n ],\n \"interfaces\": [\n \"picatinny\",\n \"mlok\"\n ],\n \"mass\": 0.12,\n \"install\": \"field\",\n \"model\": \"weapon_light\",\n \"sources\": [\n \"arsenal\",\n \"derived\"\n ],\n \"light\": {\n \"coneDeg\": 30,\n \"range\": 60,\n \"visibleFrom\": 40,\n \"batteryHours\": 20\n },\n \"dims\": {\n \"length\": 0.1,\n \"diameter\": 0.03\n },\n \"effects\": []\n },\n {\n \"id\": \"laser_sight\",\n \"name\": \"Laser sight\",\n \"kind\": \"laser\",\n \"mounts\": [\n \"rail_left\",\n \"rail_right\",\n \"rail_bottom\"\n ],\n \"interfaces\": [\n \"picatinny\",\n \"mlok\"\n ],\n \"mass\": 0.1,\n \"install\": \"field\",\n \"model\": \"laser_sight\",\n \"sources\": [\n \"arsenal\",\n \"derived\"\n ],\n \"laser\": {\n \"color\": 16711680,\n \"range\": 120,\n \"visibleFrom\": 30\n },\n \"dims\": {\n \"length\": 0.08,\n \"diameter\": 0.025\n },\n \"effects\": [\n {\n \"stat\": \"hipSpreadExcess\",\n \"mul\": 0.5,\n \"when\": \"hip\"\n }\n ]\n },\n {\n \"id\": \"extended_magazine\",\n \"name\": \"Extended magazine\",\n \"kind\": \"magazine\",\n \"mounts\": [\n \"magazine\"\n ],\n \"interfaces\": [\n \"mag_box\",\n \"mag_curved\",\n \"mag_pistol\"\n ],\n \"mass\": 0.15,\n \"install\": \"field\",\n \"model\": \"extended_magazine\",\n \"sources\": [\n \"arsenal\",\n \"derived\"\n ],\n \"categories\": [\n \"pistol\",\n \"smg\",\n \"rifle\",\n \"carbine\",\n \"dmr\",\n \"machine_gun\"\n ],\n \"effects\": [\n {\n \"stat\": \"capacity\",\n \"mul\": 1.5\n },\n {\n \"stat\": \"reload\",\n \"mul\": 1.15\n }\n ]\n },\n {\n \"id\": \"drum_magazine\",\n \"name\": \"Drum magazine\",\n \"kind\": \"magazine\",\n \"mounts\": [\n \"magazine\"\n ],\n \"interfaces\": [\n \"mag_box\",\n \"mag_curved\"\n ],\n \"mass\": 1.2,\n \"install\": \"field\",\n \"model\": \"drum_magazine\",\n \"sources\": [\n \"arsenal\",\n \"derived\"\n ],\n \"categories\": [\n \"smg\",\n \"rifle\",\n \"carbine\",\n \"dmr\",\n \"machine_gun\"\n ],\n \"effects\": [\n {\n \"stat\": \"capacity\",\n \"set\": 75\n },\n {\n \"stat\": \"faultChance\",\n \"mul\": 1.5\n },\n {\n \"stat\": \"reload\",\n \"mul\": 1.3\n }\n ]\n },\n {\n \"id\": \"dual_coupler\",\n \"name\": \"Dual magazine coupler\",\n \"kind\": \"magazine\",\n \"mounts\": [\n \"magazine\"\n ],\n \"interfaces\": [\n \"mag_box\",\n \"mag_curved\"\n ],\n \"mass\": 0.1,\n \"install\": \"field\",\n \"model\": \"dual_coupler\",\n \"sources\": [\n \"arsenal\",\n \"derived\"\n ],\n \"secondReload\": true,\n \"categories\": [\n \"smg\",\n \"rifle\",\n \"carbine\",\n \"dmr\",\n \"machine_gun\"\n ],\n \"effects\": [\n {\n \"stat\": \"reload\",\n \"mul\": 0.5\n }\n ]\n },\n {\n \"id\": \"sawn_off_barrel\",\n \"name\": \"Sawn-off barrel\",\n \"kind\": \"barrel\",\n \"mounts\": [\n \"barrel\"\n ],\n \"interfaces\": [\n \"barrel_swap\"\n ],\n \"mass\": -0.4,\n \"install\": \"bench\",\n \"model\": \"sawn_off_barrel\",\n \"sources\": [\n \"arsenal\",\n \"derived\"\n ],\n \"categories\": [\n \"shotgun\"\n ],\n \"effects\": [\n {\n \"stat\": \"spread\",\n \"mul\": 1.6\n },\n {\n \"stat\": \"range\",\n \"mul\": 0.6\n },\n {\n \"stat\": \"draw\",\n \"mul\": 0.8\n }\n ]\n },\n {\n \"id\": \"long_barrel\",\n \"name\": \"Long barrel\",\n \"kind\": \"barrel\",\n \"mounts\": [\n \"barrel\"\n ],\n \"interfaces\": [\n \"barrel_swap\"\n ],\n \"mass\": 0.4,\n \"install\": \"bench\",\n \"model\": \"long_barrel\",\n \"sources\": [\n \"arsenal\",\n \"derived\"\n ],\n \"categories\": [\n \"shotgun\"\n ],\n \"effects\": [\n {\n \"stat\": \"range\",\n \"mul\": 1.2\n },\n {\n \"stat\": \"muzzleSpeed\",\n \"mul\": 1.03\n }\n ]\n },\n {\n \"id\": \"sling\",\n \"name\": \"Sling\",\n \"kind\": \"sling\",\n \"mounts\": [\n \"sling\"\n ],\n \"interfaces\": [\n \"swivel\"\n ],\n \"mass\": 0.15,\n \"install\": \"field\",\n \"model\": \"sling\",\n \"sources\": [\n \"derived\"\n ],\n \"stowable\": true,\n \"categories\": [\n \"smg\",\n \"rifle\",\n \"carbine\",\n \"sniper\",\n \"dmr\",\n \"hunting\",\n \"machine_gun\",\n \"shotgun\"\n ],\n \"effects\": [\n {\n \"stat\": \"draw\",\n \"mul\": 0.85\n }\n ]\n },\n {\n \"id\": \"ammo_backpack\",\n \"name\": \"Ammunition backpack\",\n \"kind\": \"feed\",\n \"mounts\": [\n \"feed\"\n ],\n \"interfaces\": [\n \"belt\"\n ],\n \"mass\": 1.5,\n \"install\": \"field\",\n \"model\": \"ammo_backpack\",\n \"sources\": [\n \"derived\"\n ],\n \"carry\": \"back\",\n \"categories\": [\n \"machine_gun\",\n \"rifle\"\n ],\n \"effects\": [\n {\n \"stat\": \"capacity\",\n \"set\": 500\n }\n ]\n },\n {\n \"id\": \"tripod\",\n \"name\": \"Tripod mount\",\n \"kind\": \"mount\",\n \"mounts\": [\n \"underbarrel\"\n ],\n \"interfaces\": [\n \"tripod\"\n ],\n \"mass\": 6,\n \"install\": \"bench\",\n \"model\": \"tripod\",\n \"sources\": [\n \"derived\"\n ],\n \"categories\": [\n \"machine_gun\"\n ],\n \"effects\": [\n {\n \"stat\": \"recoilVertical\",\n \"mul\": 0.4\n },\n {\n \"stat\": \"recoilHorizontal\",\n \"mul\": 0.4\n },\n {\n \"stat\": \"spread\",\n \"mul\": 0.7\n }\n ]\n },\n {\n \"id\": \"integral_suppressor\",\n \"name\": \"Integral suppressor\",\n \"kind\": \"suppressor\",\n \"mounts\": [\n \"muzzle\"\n ],\n \"interfaces\": [\n \"integral\"\n ],\n \"mass\": 0.45,\n \"install\": \"bench\",\n \"model\": \"integral_suppressor\",\n \"sources\": [\n \"reference\",\n \"derived\"\n ],\n \"dims\": {\n \"length\": 0.2,\n \"diameter\": 0.045\n },\n \"removable\": false,\n \"effects\": [\n {\n \"stat\": \"noise\",\n \"mul\": 0.4\n },\n {\n \"stat\": \"noise\",\n \"mul\": 0.625,\n \"when\": \"subsonic\"\n },\n {\n \"stat\": \"muzzleSpeed\",\n \"mul\": 0.97468\n },\n {\n \"stat\": \"heatPerShot\",\n \"mul\": 1.5\n }\n ]\n },\n {\n \"id\": \"integral_optic_3x\",\n \"name\": \"Integral 3x optic of the G36\",\n \"kind\": \"optic\",\n \"mounts\": [\n \"rail_top\"\n ],\n \"interfaces\": [\n \"integral\"\n ],\n \"mass\": 0.3,\n \"install\": \"bench\",\n \"model\": \"integral_optic_3x\",\n \"sources\": [\n \"reference\",\n \"derived\"\n ],\n \"optic\": {\n \"zoom\": [\n 3,\n 3\n ],\n \"reticle\": \"duplex\"\n },\n \"removable\": false,\n \"effects\": []\n }\n]\n","import type { Vec3 } from './destruction'\n\n/**\n * The numbers of the shove a blast gives to a body that moves (a loose item, a piece of furniture, a person): all of them a game value, with a default that reads well in a room,\n * not a physical table. A host reads them once and lends them to the modules that move their own bodies (`ModuleHost.blastShove`).\n */\nexport interface BlastShoveOptions {\n /**\n * The share of the blast energy that reaches a body as motion: the speed at the centre is `sqrt(2 * energy * coupling / mass)`, before the falloff (default 0.02).\n */\n readonly coupling?: number\n /** Fastest a body is thrown, in m/s, at the centre of the blast (default 20). */\n readonly maxSpeed?: number\n /** How much of the push goes up: the direction is `(away, lift)` normalised from the horizontal outward direction (default 0.3). */\n readonly lift?: number\n /** Below this speed (m/s) nothing moves: a heavy thing far from a small blast stays where it is (default 0.3). */\n readonly minSpeed?: number\n /** Exponent of the falloff `(1 - distance / radius) ^ power`, the same as the damage of the destruction world (default 2). */\n readonly falloffPower?: number\n}\n\n/** The defaults of `BlastShoveOptions`. */\nexport const DEFAULT_BLAST_SHOVE: Readonly<Required<BlastShoveOptions>> = { coupling: 0.02, maxSpeed: 20, lift: 0.3, minSpeed: 0.3, falloffPower: 2 }\n\n/** A blast as the shove reads it: where, how much energy (J) and how far it reaches (m). `reach` (0..1) is the share that got through what stood in the way. */\nexport interface BlastSource {\n readonly point: Vec3\n readonly energy: number\n readonly radius: number\n readonly reach?: number\n /**\n * Kilograms of TNT equivalent of the charge. With it a body is pushed by the blast wave itself (`blast-impulse`), and the shove of loose items keeps this module's rule; without it the body\n * takes the charge from `energy` by `BlastImpulseOptions.tntPerJoule`.\n */\n readonly tnt?: number\n /** Inside this radius (metres) the blast is lethal: a body there that the blast reaches (not behind cover) goes down, wounded, wherever the wave pushed it. */\n readonly lethalRadius?: number\n}\n\n/** What a blast does to one body: how fast it leaves (m/s), the unit direction it leaves in, and how far from the centre it was. */\nexport interface BlastShove {\n readonly speed: number\n readonly direction: Vec3\n readonly distance: number\n /** The falloff applied, 0..1. */\n readonly falloff: number\n}\n\nconst clampShare = (share: number): number => Math.min(1, Math.max(0, share))\n\n/**\n * The shove a blast gives to a body of `mass` kg whose centre is at `position`: away from the centre, lifted a little, with the speed\n * `sqrt(reach) * min(maxSpeed, sqrt(2 * energy * coupling / mass)) * (1 - distance / radius) ^ 2`. Undefined when the body is outside the radius or the speed is under `minSpeed`.\n * The same rule moves the loose items and furniture of the test room and the people of the characters module, so a game that tunes the options tunes all of them.\n */\nexport function blastShove(blast: BlastSource, target: { readonly position: Vec3; readonly mass: number }, options: BlastShoveOptions = {}): BlastShove | undefined {\n const o = { ...DEFAULT_BLAST_SHOVE, ...options }\n const dx = target.position[0] - blast.point[0]\n const dy = target.position[1] - blast.point[1]\n const dz = target.position[2] - blast.point[2]\n const distance = Math.hypot(dx, dy, dz)\n if (!(blast.radius > 0) || distance > blast.radius) return undefined\n const falloff = (1 - distance / blast.radius) ** o.falloffPower\n const mass = Math.max(target.mass, 0.05)\n // cover takes its share off the push itself, past the cap too: a light thing behind a cupboard is not thrown as fast as one in the open\n const reach = clampShare(blast.reach ?? 1)\n const speed = Math.sqrt(reach) * Math.min(o.maxSpeed, Math.sqrt((2 * blast.energy * o.coupling) / mass)) * falloff\n if (!(speed >= o.minSpeed)) return undefined\n // straight above or below the centre there is no \"away\": the push goes up\n const direction: Vec3 = distance > 1e-4 ? [dx / distance, dy / distance + o.lift, dz / distance] : [0, 1, 0]\n const length = Math.hypot(direction[0], direction[1], direction[2])\n return { speed, direction: [direction[0] / length, direction[1] / length, direction[2] / length], distance, falloff }\n}\n","/**\n * The push a blast gives a standing body, from the physics of the blast wave and not from a game coupling: the impulse of the wave per square metre at a distance from a charge of\n * `tnt` kg of TNT equivalent (Kinney and Graham's fit of the side-on impulse, scaled by the cube root of the charge), reflected on the body, over the area the body shows the wave,\n * divided by its mass. A hand grenade at 3 m gives a person a few tenths of a metre per second; what floors that person is the fragments, not the wave. A big charge close throws.\n */\n\n/** The numbers of the body a blast wave pushes. All have a default for a standing adult. */\nexport interface BlastImpulseOptions {\n /** Square metres of the body the wave meets: about 1.75 m tall by 0.4 m wide (default 0.7). */\n readonly bodyArea?: number\n /** How much of the push goes up: the direction is `(away, lift)` normalised (default 0.15: the wave runs along the ground). */\n readonly lift?: number\n /** Below this speed (m/s) the body does not move (default 0.3). */\n readonly minSpeed?: number\n /**\n * Kilograms of TNT per joule of the blast `energy`, for a blast that does not say its charge (`BlastSource.tnt`). Default 0.24 / 200000: the arsenal's energy scale, where the M67 (180 g\n * of Composition B, 0.24 kg of TNT) is 200 kJ. It is a game equivalence for blasts without a charge, not a physical constant.\n */\n readonly tntPerJoule?: number\n}\n\nexport const DEFAULT_BLAST_IMPULSE: Readonly<Required<BlastImpulseOptions>> = { bodyArea: 0.7, lift: 0.15, minSpeed: 0.3, tntPerJoule: 0.24 / 200000 }\n\n/** Closest distance (m) the fit is read at: inside it the charge is in contact and the body is torn apart anyway. */\nconst NEAREST = 0.3\n\n/**\n * Side-on (incident) specific impulse of the wave, in Pa·s, at `distance` metres from `tnt` kg of TNT in free air: Kinney and Graham, \"Explosive Shocks in Air\" (1985),\n * `I/W^(1/3) = 0.067 sqrt(1 + (Z/0.23)^4) / (Z^2 (1 + (Z/1.55)^3)^(1/3))` bar·ms per kg^(1/3), with the scaled distance `Z = R / W^(1/3)`.\n */\nexport function sideOnImpulse(tnt: number, distance: number): number {\n if (!(tnt > 0)) return 0\n const w3 = Math.cbrt(tnt)\n const z = Math.max(distance, NEAREST) / w3\n const scaled = (0.067 * Math.sqrt(1 + (z / 0.23) ** 4)) / (z * z * Math.cbrt(1 + (z / 1.55) ** 3))\n return scaled * w3 * 100 // bar·ms to Pa·s\n}\n\n/** Sea-level atmospheric pressure, Pa. */\nconst ATMOSPHERE = 101325\n\n/**\n * Peak side-on (incident) overpressure of the wave, in Pa, at `distance` metres from `tnt` kg of TNT in free air: Kinney and Graham, \"Explosive Shocks in Air\" (1985),\n * `Ps/Pa = 808 (1 + (Z/4.5)^2) / (sqrt(1 + (Z/0.048)^2) sqrt(1 + (Z/0.32)^2) sqrt(1 + (Z/1.35)^2))`, with the scaled distance `Z = R / W^(1/3)` (m/kg^(1/3)).\n * What a wall takes from a blast is read against it: about 7 kPa cracks plaster and breaks windows, 14 to 20 kPa knocks parts of a brick wall out, 35 kPa and over brings an\n * unreinforced brick wall down (Glasstone and Dolan, \"The Effects of Nuclear Weapons\", 1977, table 5.139; UFC 3-340-02).\n */\nexport function sideOnOverpressure(tnt: number, distance: number): number {\n if (!(tnt > 0)) return 0\n const z = Math.max(distance, NEAREST) / Math.cbrt(tnt)\n const ratio = (808 * (1 + (z / 4.5) ** 2)) / (Math.sqrt(1 + (z / 0.048) ** 2) * Math.sqrt(1 + (z / 0.32) ** 2) * Math.sqrt(1 + (z / 1.35) ** 2))\n return ratio * ATMOSPHERE\n}\n\n/**\n * The impulse per square metre a body facing the wave takes, Pa·s: the side-on impulse reflected. The reflection doubles a weak wave and grows up to about six times close to the charge,\n * where the wave is strong (the ratio of reflected to side-on impulse of the Kingery-Bulmash charts, fitted as `2 + 4 / (1 + Z^2)`).\n */\nexport function bodyImpulse(tnt: number, distance: number): number {\n if (!(tnt > 0)) return 0\n const z = Math.max(distance, NEAREST) / Math.cbrt(tnt)\n return sideOnImpulse(tnt, distance) * (2 + 4 / (1 + z * z))\n}\n\n/** The speed (m/s) a blast wave gives a free body of `mass` kg at `distance` metres from `tnt` kg of TNT, `reach` (0..1) of it getting through what stands in the way. */\nexport function blastBodySpeed(tnt: number, distance: number, mass: number, reach = 1, options: BlastImpulseOptions = {}): number {\n const area = options.bodyArea ?? DEFAULT_BLAST_IMPULSE.bodyArea\n return (bodyImpulse(tnt, distance) * area * Math.max(0, reach)) / Math.max(mass, 1)\n}\n","import { blastBodySpeed, DEFAULT_BLAST_IMPULSE } from './blast-impulse'\nimport type { BlastImpulseOptions } from './blast-impulse'\nimport type { BlastShoveOptions, BlastSource } from './blast-shove'\nimport type { Vec3 } from './destruction'\n\n/** From this speed (m/s) a blast takes a standing body off its feet. Below it the body is only pushed. */\nexport const KNOCK_DOWN_SPEED = 2.5\n/** The angle of a body lying where it fell (the same tilt a dead body takes). */\nexport const KNOCKED_DOWN_ANGLE = 1.35\n/** Seconds the body lies after it lands: this plus the landing speed times `STAND_UP_PER_SPEED`. */\nconst LIE_SECONDS = 1.6\n/** Seconds a body floored by its wounds (inside the lethal radius) lies before it gets up, when it is not dead. */\nconst WOUNDED_LIE_SECONDS = 6\n/** The share of the blast that has to get through for its fragments to reach a body: behind cover that stops half of it the fragments stop too. */\nexport const FRAGMENT_COVER = 0.5\n/** Seconds a body is stunned at the edge of the lethal radius (the ringing ears, the dizziness); it falls with the square of the way to the edge of the blast. */\nconst STUN_SECONDS = 4\nconst STAND_UP_PER_SPEED = 0.25\nconst FALL_SECONDS = 0.25\nconst RISE_SECONDS = 0.6\n/** m/s squared that slows a body sliding on the ground. */\nconst GROUND_FRICTION = 7\nconst GRAVITY = 9.81\n/** Height of the chest above the feet: where the blast takes the body. */\nexport const KNOCK_CHEST = 1.1\nconst CHEST = KNOCK_CHEST\n\n/** What a blast is doing to one body: its velocity (m/s), whether it is in the air, and how far down it is (0 on its feet, 1 lying). */\nexport interface Knock {\n velocity: [number, number, number]\n airborne: boolean\n /** 0..1 */\n lying: number\n /** Seconds left to lie on the ground after it stopped. */\n lieLeft: number\n /** Knocked off its feet by this blast. */\n down: boolean\n /** Floored by its wounds: inside the lethal radius and not behind cover. It lies longer and falls where it stood. */\n wounded?: boolean\n /** Seconds of stun the blast gave the body: dizziness and ringing ears. */\n stunSeconds?: number\n /** The horizontal unit direction away from the blast, even when the push is too weak to move the body: the way it falls. */\n away?: Vec3\n}\n\n/** The mass of a body in kg from its height (m) and its build (1 = average): 70 kg at 1.75 m. */\nexport const bodyMass = (height: number, build = 1): number => 70 * (height / 1.75) ** 2 * build\n\n/**\n * What a blast does to a body standing at `feet`, of `mass` kg. Undefined when the blast does not reach it or does nothing to it.\n *\n * The body is pushed by the blast wave (`blastBodySpeed`, from the charge `blast.tnt`, or from `energy` by `tntPerJoule`), taken at the chest and cut by `reach`, the share that got through\n * cover. It is floored when that push is `KNOCK_DOWN_SPEED` or more, or when it stands inside `lethalRadius` with the blast reaching it (the fragments and the overpressure fell it where it\n * stands). It is stunned for a while inside the radius. `options` are the shove numbers of the host's loose items; only their `minSpeed` applies to a body.\n */\nexport function knockOf(blast: BlastSource, feet: Vec3, mass: number, options?: BlastShoveOptions, impulse: BlastImpulseOptions = {}): Knock | undefined {\n const o = { ...DEFAULT_BLAST_IMPULSE, ...impulse }\n const chest: Vec3 = [feet[0], feet[1] + CHEST, feet[2]]\n const dx = chest[0] - blast.point[0]\n const dy = chest[1] - blast.point[1]\n const dz = chest[2] - blast.point[2]\n const distance = Math.hypot(dx, dy, dz)\n if (!(blast.radius > 0) || distance > blast.radius) return undefined\n const reach = Math.max(0, Math.min(1, blast.reach ?? 1))\n const tnt = blast.tnt ?? blast.energy * o.tntPerJoule\n let speed = blastBodySpeed(tnt, distance, mass, reach, o)\n const minSpeed = impulse.minSpeed ?? options?.minSpeed ?? o.minSpeed\n if (speed < minSpeed) speed = 0\n const struck = reach >= FRAGMENT_COVER\n const wounded = struck && blast.lethalRadius !== undefined && distance <= blast.lethalRadius\n const edge = 1 - distance / blast.radius\n const stunSeconds = struck ? STUN_SECONDS * edge * edge * reach : 0\n if (speed === 0 && !wounded && stunSeconds < 0.25) return undefined\n // straight above or below the centre there is no \"away\": the push goes up\n const horizontal = Math.hypot(dx, dz)\n const away: Vec3 = horizontal > 1e-4 ? [dx / horizontal, o.lift, dz / horizontal] : [0, 1, 0]\n const length = Math.hypot(away[0], away[1], away[2])\n const velocity: [number, number, number] = [(away[0] / length) * speed, (away[1] / length) * speed, (away[2] / length) * speed]\n return {\n velocity,\n airborne: velocity[1] > 0.5,\n lying: 0,\n lieLeft: wounded ? WOUNDED_LIE_SECONDS : 0,\n away: horizontal > 1e-4 ? [dx / horizontal, 0, dz / horizontal] : [0, 0, 0],\n down: speed >= KNOCK_DOWN_SPEED || wounded,\n ...(wounded ? { wounded } : {}),\n ...(stunSeconds >= 0.25 ? { stunSeconds } : {}),\n }\n}\n\n/**\n * Moves a body one step: it slides on the ground and slows, falls when it was knocked down, lies a while and gets up (a dead body stays down). Moves `position` in place; returns true when the\n * body is on its feet and still, and the knock can be dropped.\n */\nexport function stepKnock(knock: Knock, position: { x: number; y: number; z: number }, dt: number, groundAt: (x: number, z: number) => number, alive: boolean): boolean {\n const v = knock.velocity\n position.x += v[0] * dt\n position.z += v[2] * dt\n const ground = groundAt(position.x, position.z)\n if (knock.airborne || position.y > ground + 1e-4) {\n v[1] -= GRAVITY * dt\n position.y += v[1] * dt\n if (position.y <= ground) {\n position.y = ground\n v[1] = 0\n knock.airborne = false\n }\n } else position.y = ground\n const horizontal = Math.hypot(v[0], v[2])\n if (!knock.airborne && horizontal > 0) {\n const slowed = Math.max(0, horizontal - GROUND_FRICTION * dt)\n v[0] *= slowed / horizontal\n v[2] *= slowed / horizontal\n }\n const moving = horizontal > 0.05 || knock.airborne\n if (knock.down) {\n // a body floored where it stands (its wounds, not the push) still takes the time of a fall to reach the ground\n if (moving || knock.lying < 1) knock.lying = Math.min(1, knock.lying + dt / FALL_SECONDS)\n else if (alive) {\n knock.lieLeft = knock.lieLeft > 0 ? knock.lieLeft : LIE_SECONDS + Math.hypot(v[0], v[2]) * STAND_UP_PER_SPEED\n knock.lieLeft -= dt\n if (knock.lieLeft <= 0) knock.down = false\n }\n } else if (knock.lying > 0) knock.lying = Math.max(0, knock.lying - dt / RISE_SECONDS)\n return !moving && !knock.down && knock.lying === 0\n}\n\n/** Where `launchBody` leaves the throw on the body's root until the module that animates it takes it. */\nconst LAUNCHED = 'launched'\n\n/**\n * Throws a body at `velocity` (m/s, world): an occupant leaving a car through the glass, a pedestrian run over. The module that animates the body\n * takes it on its next frame (`takeLaunch`) and moves it as it moves a body a blast knocked down: flying, landing, sliding, lying, getting up.\n */\nexport function launchBody(root: { userData: Record<string, unknown> }, velocity: Vec3): void {\n root.userData[LAUNCHED] = [velocity[0], velocity[1], velocity[2]]\n}\n\n/** The throw `launchBody` left on the root, as a knock (knocked down, in the air), once; undefined when nothing threw it. */\nexport function takeLaunch(root: { userData: Record<string, unknown> }): Knock | undefined {\n const velocity = root.userData[LAUNCHED] as Vec3 | undefined\n if (!velocity) return undefined\n delete root.userData[LAUNCHED]\n return { velocity: [velocity[0], velocity[1], velocity[2]], airborne: true, lying: 0, lieLeft: 0, down: true }\n}\n","export interface CostOptions {\n /** Reads of `state()` and of `describe()` to time. Default 10 000. */\n reads?: number\n /** Ceiling, in milliseconds, for all the reads of one method. Default 50 (5 microseconds per read). */\n ceilingMs?: number\n /** Ceiling of heap growth, in bytes, over all the reads of one method (only where `process.memoryUsage` exists). Default 1 MiB. */\n allocationBytes?: number\n}\n\nconst DEFAULT_COST_READS = 10_000\nconst DEFAULT_COST_CEILING_MS = 50\nconst DEFAULT_COST_ALLOCATION_BYTES = 1024 * 1024\n\nconst heapUsedBytes = (): number | undefined => {\n const nodeProcess = (globalThis as { process?: { memoryUsage?: () => { heapUsed: number } } }).process\n return nodeProcess?.memoryUsage?.().heapUsed\n}\n\ntype CheckReadCostParams = { readonly name: string; readonly read: () => unknown; readonly options: CostOptions; readonly problems: string[] }\n\nexport const checkReadCost = ({ name, read, options, problems }: CheckReadCostParams): void => {\n const reads = options.reads ?? DEFAULT_COST_READS\n const ceilingMs = options.ceilingMs ?? DEFAULT_COST_CEILING_MS\n const allocationBytes = options.allocationBytes ?? DEFAULT_COST_ALLOCATION_BYTES\n if (read() !== read()) problems.push(`${name}() returns a new object on each read: cache it between changes (cost contract)`)\n // a first pass lets the engine compile and optimise the loop: that code and its feedback are heap too, and would read as the method allocating\n for (let i = 0; i < reads; i++) read()\n const heapBefore = heapUsedBytes()\n const started = performance.now()\n for (let i = 0; i < reads; i++) read()\n const elapsedMs = performance.now() - started\n const heapAfter = heapUsedBytes()\n if (elapsedMs > ceilingMs) problems.push(`${name}() took ${elapsedMs.toFixed(1)} ms for ${reads} reads, over the ${ceilingMs} ms ceiling (cost contract)`)\n if (heapBefore !== undefined && heapAfter !== undefined && heapAfter - heapBefore > allocationBytes)\n problems.push(`${name}() grew the heap by ${heapAfter - heapBefore} bytes over ${reads} reads, over the ${allocationBytes} byte ceiling (cost contract)`)\n}\n","import { checkReadCost } from './impact-cost'\nimport type { CostOptions } from './impact-cost'\nimport type { DamageType, DestructibleSpec, DestructionEvent, Hit, JointSpec, ObjectState, ToolKind, Vec3 } from './destruction'\n\n/**\n * What a game module implements for an object whose behaviour it owns (a vehicle with its own panel deformation, a creature, a machine). The\n * world (`DestructionWorld.register`) hosts it next to its own objects: raycast, shoot, explode, hit, disassemble, extinguish, update, state,\n * reset and `on` all route to it.\n *\n * Space: the impl receives hits in WORLD space and returns events in WORLD space (it owns its transform; the transform given to `register` or\n * `setTransform` is only used by the world for raycasts and blast range). Every event must carry `object === id` and name parts listed by\n * `describe()`.\n */\n/** World-space ray for `DestructibleImpl.surfaceRay`. */\nexport interface SurfaceRay {\n readonly origin: Vec3\n readonly direction: Vec3\n readonly maxDistance: number\n ignored?(part: string): boolean\n}\n\nexport interface SurfaceRayHit {\n readonly part: string\n readonly point: Vec3\n readonly normal: Vec3\n readonly distance: number\n /** Thickness the ray crosses in this part, metres. */\n readonly pathLen: number\n}\n\nexport interface DestructibleImpl {\n readonly id: string\n readonly name?: string\n /**\n * Parts, joints and structure in the impl's local space, for raycast, inspector and log.\n * COST CONTRACT (D8): called per frame by the renderer, so it is O(1), allocation-free and cached between changes: the same object comes\n * back until a hit, tool, fire or pose change alters it. `checkDestructible(impl, { cost: true })` measures it.\n */\n describe(): DestructibleSpec\n /** Apply one hit (see `IMPACT_CONTRACT` for the fields per type) and return the events it caused. */\n hit(hit: Hit): DestructionEvent[]\n /**\n * The real surface a ray meets, for an impl whose drawn shape is not its boxes (a car body): the boxes of `describe()` only say where to look, and a shot that crosses\n * them without touching the drawn surface goes on. `ignored` answers for the parts the round already went through. Null when the ray meets nothing.\n */\n surfaceRay?(ray: SurfaceRay): SurfaceRayHit | null\n /** Advance fire, melting, collapse and other timed behaviour. */\n update?(dt: number): DestructionEvent[]\n /**\n * COST CONTRACT (D8): the host reads it per part per frame, so it is O(1), allocation-free and cached between changes (see `describe()`).\n * The cached object is shared with every reader: treat it as read-only, copy before changing it.\n */\n state(): Readonly<ObjectState>\n reset?(): void\n /** The world took the object out (`DestructionWorld.remove`): the impl lets go of what it joined (shared queues, listeners). */\n dispose?(): void\n /** Same contract as `DestructionWorld.disassemble`: progress 0..1, or -1 when the tool cannot undo the joint. */\n disassemble?(jointId: string, tool: ToolKind, dt: number): number\n extinguish?(partId?: string): void\n /** Optional: an animation moved a part; `position` / `rotation` (Euler XYZ, radians) are object-local. Keep raycast and hit shapes in sync. */\n setPartPose?(partId: string, position: Vec3, rotation?: Vec3): void\n /** Plain JSON of the impl's own state, stored in `DestructionSnapshot.impls`. */\n serialize?(): unknown\n load?(data: unknown): void\n}\n\n/** The fields a weapon or hazard must put in a `Hit`, per damage type. THE impact contract. */\nexport interface ImpactContract {\n required: string[]\n optional: string[]\n note: string\n}\n\nexport const IMPACT_CONTRACT: Record<DamageType, ImpactContract> = {\n ballistic: { required: ['type', 'point', 'direction', 'energy', 'caliber'], optional: ['space', 'source'], note: 'bullets and pellets: joules and diameter in millimetres' },\n blunt: { required: ['type', 'point', 'energy'], optional: ['direction', 'radius', 'space', 'source'], note: 'contact radius in metres (default 3 cm)' },\n slash: { required: ['type', 'point', 'energy'], optional: ['direction', 'radius', 'space', 'source'], note: 'axes, knives, machetes' },\n explosive: { required: ['type', 'point', 'energy', 'radius'], optional: ['lethalRadius', 'space', 'source'], note: 'point is the centre of the blast, radius the range in metres' },\n fire: { required: ['type', 'point', 'temperature', 'radius'], optional: ['duration', 'space', 'source'], note: 'flame temperature in °C; duration in seconds (call every frame with `dt`)' },\n heat: { required: ['type', 'point', 'temperature', 'radius'], optional: ['duration', 'space', 'source'], note: 'heat without flame (cutting torch, hot plate)' },\n}\n\n/** Problems with a hit according to the impact contract (empty when it is valid). */\nexport const checkHit = (hit: Hit): string[] => {\n const c = IMPACT_CONTRACT[hit.type]\n if (!c) return [`unknown damage type \"${String(hit.type)}\"`]\n const out: string[] = []\n for (const f of c.required) {\n const v = (hit as unknown as Record<string, unknown>)[f]\n if (v === undefined || (Array.isArray(v) ? v.some((n) => !Number.isFinite(n)) : typeof v === 'number' && !Number.isFinite(v))) out.push(`${hit.type} hit needs \"${f}\"`)\n }\n return out\n}\n\nexport interface CheckOptions {\n /**\n * Ids of every material the impl may use (the contracts package does not know the materials of your world: pass the ids of\n * `world.materials`, or the built-in plus your own). When omitted, the material check is skipped.\n */\n materials?: Iterable<string>\n /** Opt-in cost measurement (D8): `true` for the defaults, or the limits to use. */\n cost?: boolean | CostOptions\n}\n\nconst finiteJson = (v: unknown, path: string, out: string[]) => {\n if (typeof v === 'number') {\n if (!Number.isFinite(v)) out.push(`${path} is not a finite number`)\n } else if (Array.isArray(v)) v.forEach((x, i) => finiteJson(x, `${path}[${i}]`, out))\n else if (v && typeof v === 'object') for (const [k, x] of Object.entries(v)) finiteJson(x, `${path}.${k}`, out)\n else if (typeof v === 'function' || typeof v === 'symbol' || typeof v === 'bigint') out.push(`${path} is not JSON`)\n}\n\n/**\n * Contract checker for the test room (it needs no world): `describe()` is valid, a 500 J ballistic hit at a part centre returns well-formed events of this impl, `state()`\n * matches `describe()`, hit points never go negative, `update(0.016)` returns an array and every event is JSON-serializable. It hits the impl\n * (and calls `reset()` afterwards when there is one). With `options.cost` it also times `state()` and `describe()` (the cost contract of D8).\n */\nexport const checkDestructible = (impl: DestructibleImpl, options: CheckOptions = {}): { ok: boolean; problems: string[] } => {\n const problems: string[] = []\n const known = options.materials ? new Set(options.materials) : null\n let spec: DestructibleSpec | undefined\n try {\n spec = impl.describe()\n } catch (e) {\n return { ok: false, problems: [`describe() threw: ${String(e)}`] }\n }\n if (!spec || !Array.isArray(spec.parts) || spec.parts.length === 0) return { ok: false, problems: ['describe() must return at least one part'] }\n const ids = new Set<string>()\n for (const p of spec.parts) {\n if (ids.has(p.id)) problems.push(`duplicate part id \"${p.id}\"`)\n ids.add(p.id)\n if (known && !known.has(p.material)) problems.push(`part \"${p.id}\" has unknown material \"${p.material}\"`)\n if (!p.shape || !['box', 'cylinder', 'sphere'].includes(p.shape.kind)) problems.push(`part \"${p.id}\" has no valid shape`)\n if (!Array.isArray(p.position) || p.position.length !== 3) problems.push(`part \"${p.id}\" has no position`)\n }\n const jointIds = new Set<string>()\n for (const j of (spec.joints ?? []) as JointSpec[]) {\n if (!ids.has(j.a) || !ids.has(j.b)) problems.push(`joint \"${j.id ?? `${j.a}~${j.b}`}\" references an unknown part`)\n const jid = j.id ?? `${j.a}~${j.b}`\n if (jointIds.has(jid)) problems.push(`duplicate joint id \"${jid}\"`)\n jointIds.add(jid)\n }\n const checkState = (label: string) => {\n let st: ObjectState\n try {\n st = impl.state()\n } catch (e) {\n problems.push(`state() threw ${label}: ${String(e)}`)\n return\n }\n const sids = st.parts.map((p) => p.id).sort().join(',')\n if (sids !== [...ids].sort().join(',')) problems.push(`state() part ids do not match describe() ${label}`)\n for (const p of st.parts) if (!(p.hp >= 0)) problems.push(`part \"${p.id}\" has negative or invalid hp ${label}`)\n }\n const checkEvents = (events: unknown, label: string) => {\n if (!Array.isArray(events)) {\n problems.push(`${label} must return an array`)\n return\n }\n const evs = events as DestructionEvent[]\n evs.forEach((e, i) => {\n if (e.object !== impl.id) problems.push(`${label} event ${i} (${e.type}) has object \"${String(e.object)}\", expected \"${impl.id}\"`)\n const part = (e as { part?: string }).part\n if (part !== undefined && !ids.has(part)) problems.push(`${label} event ${i} (${e.type}) names unknown part \"${part}\"`)\n })\n const bad: string[] = []\n finiteJson(evs, 'events', bad)\n problems.push(...bad.map((b) => `${label}: ${b}`))\n try {\n const s = JSON.stringify(evs)\n if (JSON.stringify(JSON.parse(s)) !== s) problems.push(`${label} events do not survive a JSON round trip`)\n } catch (e) {\n problems.push(`${label} events are not JSON-serializable: ${String(e)}`)\n }\n }\n checkState('before the hit')\n const target = spec.parts[0]\n try {\n const hit: Hit = { type: 'ballistic', point: [target.position[0], target.position[1], target.position[2]], direction: [0, 0, -1], energy: 500, caliber: 9 }\n checkEvents(impl.hit(hit), 'hit()')\n } catch (e) {\n problems.push(`hit() threw: ${String(e)}`)\n }\n checkState('after the hit')\n if (impl.update) {\n try {\n checkEvents(impl.update(0.016), 'update()')\n } catch (e) {\n problems.push(`update() threw: ${String(e)}`)\n }\n checkState('after update')\n }\n try {\n impl.reset?.()\n } catch (e) {\n problems.push(`reset() threw: ${String(e)}`)\n }\n if (options.cost) {\n const cost = options.cost === true ? {} : options.cost\n try {\n checkReadCost({ name: 'state', read: () => impl.state(), options: cost, problems })\n checkReadCost({ name: 'describe', read: () => impl.describe(), options: cost, problems })\n } catch (e) {\n problems.push(`cost measurement threw: ${String(e)}`)\n }\n }\n return { ok: problems.length === 0, problems }\n}\n","/** The slots of a body an item can cover (the item slot vocabulary: game-items imports it from here). */\nexport type BodySlot = 'head' | 'eyes' | 'torso' | 'arms' | 'hands' | 'legs' | 'feet' | 'over'\n\n/** The 11 segments of the detailed body model (the Arsenal ids). */\nexport type SegmentKind = 'head' | 'jaw' | 'neck' | 'torso' | 'pelvis' | 'upperArm' | 'forearm' | 'hand' | 'thigh' | 'shin' | 'foot'\n\n/** The 6 regions of the crowd model (the game regions 0..5). */\nexport type BodyRegion = 'head' | 'torso' | 'armL' | 'armR' | 'legL' | 'legR'\n\n/** Bits of the `missing` mask of a body. The instanced body shader reads them, so the values are part of the contract. */\nexport const MISSING_BITS = {\n head: 1,\n armL: 2,\n armR: 4,\n legL: 8,\n legR: 16,\n armLBroken: 32,\n armRBroken: 64,\n legLBroken: 128,\n legRBroken: 256,\n jaw: 512,\n} as const\n","import type { DestructibleSpec, PartSpec } from './destruction'\n\nexport interface CheckSpecOptions {\n /** Known material ids. When given, every part's material must be one of them. */\n materials?: Iterable<string>\n}\n\nexport interface SpecReport {\n /** False when there is at least one problem (warnings do not count). */\n ok: boolean\n problems: string[]\n /** Things that are legal but probably wrong, e.g. structural parts that cannot reach an anchored part. */\n warnings: string[]\n}\n\nconst STRUCTURE_ROLES = ['foundation', 'column', 'beam', 'slab', 'wall', 'partition', 'roof', 'stair', 'none']\nconst BEARS = [true, false, 'a_on_b', 'b_on_a']\n\nconst finite = (n: unknown): n is number => typeof n === 'number' && Number.isFinite(n)\nconst positive = (n: unknown): boolean => finite(n) && n > 0\nconst vec3 = (v: unknown): boolean => Array.isArray(v) && v.length === 3 && v.every(finite)\nconst nonNegative = (n: unknown): boolean => n === undefined || (finite(n) && n >= 0)\n\nconst FACES = ['both', '+', '-']\nconst BONDS = ['running', 'stack']\n\n/** Layers, reinforcement, units and breach: known materials, finite positive sizes. */\nconst checkStagedFields = (p: PartSpec | undefined, label: string, materials: Set<string> | null, problems: string[]): void => {\n const known = (m: unknown, what: string): void => {\n if (materials && !materials.has(m as string)) problems.push(`${label} ${what} has unknown material \"${String(m)}\"`)\n }\n ;(p?.layers ?? []).forEach((l, i) => {\n known(l?.material, `layer ${i}`)\n if (!positive(l?.thickness)) problems.push(`${label} layer ${i} thickness must be finite and positive`)\n if (!FACES.includes(l?.faces)) problems.push(`${label} layer ${i} has an invalid faces \"${String(l?.faces)}\"`)\n })\n const r = p?.reinforcement\n if (r) {\n known(r.material, 'reinforcement')\n if (!positive(r.spacing) || !positive(r.diameter)) problems.push(`${label} reinforcement spacing and diameter must be finite and positive`)\n if (r.residualCapacity !== undefined && !(finite(r.residualCapacity) && r.residualCapacity >= 0 && r.residualCapacity <= 1)) problems.push(`${label} reinforcement residualCapacity must be between 0 and 1`)\n }\n const u = p?.units\n if (u) {\n known(u.mortar, 'units mortar')\n if (!vec3(u.size) || !u.size.every(positive)) problems.push(`${label} units size must be three finite positive numbers`)\n if (!BONDS.includes(u.bond)) problems.push(`${label} units has an invalid bond \"${String(u.bond)}\"`)\n }\n if (p?.breach && p.breach.area !== undefined && !positive(p.breach.area)) problems.push(`${label} breach area must be finite and positive`)\n}\n\n/**\n * Static checks on a `DestructibleSpec` (no world needed), for items that give a `spec` instead of an `impl`: unique part ids, known materials\n * (when `options.materials` is given), joints that reference existing, different parts, finite positive sizes, non-negative mass / hp / capacity,\n * valid structure roles and `bears` directions. A structural part with no path of joints to an anchored part is a warning, not a problem: it\n * is allowed, it just falls.\n */\nexport const checkSpec = (spec: DestructibleSpec, options: CheckSpecOptions = {}): SpecReport => {\n const problems: string[] = []\n const warnings: string[] = []\n const materials = options.materials ? new Set(options.materials) : null\n const parts = Array.isArray(spec?.parts) ? spec.parts : []\n if (!Array.isArray(spec?.parts) || parts.length === 0) problems.push('the spec needs at least one part')\n const ids = new Set<string>()\n for (const p of parts) {\n const id = String(p?.id ?? '')\n const label = `part \"${id}\"`\n if (id === '') problems.push('a part has no id')\n else if (ids.has(id)) problems.push(`duplicate part id \"${id}\"`)\n ids.add(id)\n if (materials && !materials.has(p?.material)) problems.push(`${label} has unknown material \"${String(p?.material)}\"`)\n else if (typeof p?.material !== 'string' || p.material === '') problems.push(`${label} needs a material`)\n const s = p?.shape\n if (s?.kind === 'box') {\n if (!Array.isArray(s.size) || s.size.length !== 3 || !s.size.every(positive)) problems.push(`${label} box size must be three finite positive numbers`)\n } else if (s?.kind === 'cylinder') {\n if (!positive(s.radius) || !positive(s.height)) problems.push(`${label} cylinder radius and height must be finite and positive`)\n } else if (s?.kind === 'sphere') {\n if (!positive(s.radius)) problems.push(`${label} sphere radius must be finite and positive`)\n } else problems.push(`${label} has an unknown shape`)\n if (!vec3(p?.position)) problems.push(`${label} needs a finite position [x, y, z]`)\n if (p?.rotation !== undefined && !vec3(p.rotation)) problems.push(`${label} has an invalid rotation`)\n for (const f of ['mass', 'hp', 'thickness'] as const) if (!nonNegative(p?.[f])) problems.push(`${label} ${f} must be a finite number >= 0`)\n if (p?.fill !== undefined && !(finite(p.fill) && p.fill >= 0 && p.fill <= 1)) problems.push(`${label} fill must be between 0 and 1`)\n if (p?.structure) {\n if (!STRUCTURE_ROLES.includes(p.structure.role)) problems.push(`${label} has an invalid structure role \"${String(p.structure.role)}\"`)\n if (!nonNegative(p.structure.capacity)) problems.push(`${label} structure capacity must be a finite number >= 0`)\n }\n if (p?.contains && !nonNegative(p.contains.liters)) problems.push(`${label} contains.liters must be a finite number >= 0`)\n checkStagedFields(p, label, materials, problems)\n }\n\n const jointIds = new Set<string>()\n const edges: Array<[string, string]> = []\n for (const j of spec?.joints ?? []) {\n const id = j.id ?? `${j.a}~${j.b}`\n const label = `joint \"${id}\"`\n if (jointIds.has(id)) problems.push(`duplicate joint id \"${id}\"`)\n jointIds.add(id)\n if (!ids.has(j.a)) problems.push(`${label} references unknown part \"${String(j.a)}\"`)\n if (!ids.has(j.b)) problems.push(`${label} references unknown part \"${String(j.b)}\"`)\n if (j.a === j.b) problems.push(`${label} joins part \"${String(j.a)}\" to itself`)\n if (j.bears !== undefined && !BEARS.includes(j.bears)) problems.push(`${label} has an invalid bears \"${String(j.bears)}\"`)\n if (!nonNegative(j.strength)) problems.push(`${label} strength must be a finite number >= 0`)\n if (!nonNegative(j.seconds)) problems.push(`${label} seconds must be a finite number >= 0`)\n if (j.bears !== false && ids.has(j.a) && ids.has(j.b) && j.a !== j.b) edges.push([j.a, j.b])\n }\n\n // structural parts must reach an anchored part over the joints (only when the spec lists its joints: otherwise they are inferred later)\n const structural = parts.filter((p) => p?.structure && p.structure.role !== 'none')\n if (structural.length && spec.joints) {\n const anchored = parts.filter((p) => p.anchored || p.structure?.role === 'foundation').map((p) => p.id)\n const adj = new Map<string, string[]>()\n for (const [a, b] of edges) {\n adj.set(a, [...(adj.get(a) ?? []), b])\n adj.set(b, [...(adj.get(b) ?? []), a])\n }\n const seen = new Set(anchored)\n const queue = [...anchored]\n while (queue.length) {\n for (const n of adj.get(queue.pop()!) ?? []) {\n if (seen.has(n)) continue\n seen.add(n)\n queue.push(n)\n }\n }\n const lost = structural.filter((p) => !seen.has(p.id)).map((p) => p.id)\n if (lost.length) warnings.push(`structural part(s) ${lost.map((i) => `\"${i}\"`).join(', ')} cannot reach an anchored part, so they will fall`)\n }\n return { ok: problems.length === 0, problems, warnings }\n}\n","import type { BallisticExtras, Hit, HitIgnition, Vec3 } from './destruction'\n\n/**\n * A ballistic shot (one per pellet) as a weapon module produces it. Plain data: any damage model can consume it (`shotToHit` makes the `Hit`).\n */\nexport interface Shot {\n origin: Vec3\n /** Unit vector. */\n direction: Vec3\n /** Muzzle energy in joules. */\n energy: number\n /** Bullet diameter in millimetres. */\n caliber: number\n /** snake_case calibre id, e.g. `9x19`. */\n caliberId: string\n /** Muzzle speed in m/s. */\n speed: number\n /** Projectile mass in grams (one pellet for a shotgun load). */\n mass?: number\n /** Energy at a distance in metres, with the calibre's drag. */\n energyAt(distance: number): number\n pellet: number\n /** snake_case weapon id. */\n weapon: string\n source?: string\n /** Kind of the round that was loaded (`fmj`, `hp`, `ap`, `buck`, `slug`, `incendiary`, `tracer`...). */\n ammo?: string\n /** Millimetres of steel, concrete, brick and wood the round goes through at the muzzle (the ammo table of the weapons module). `shotToHit` scales it by the energy left. */\n penetration?: Readonly<Record<string, number>>\n incendiary?: boolean\n tracer?: boolean\n /** Chances that the round lights flammable vapour or fuel. */\n ignition?: HitIgnition\n}\n\n/**\n * The fields of the round that a damage model takes besides the geometry: the penetration by material scaled by the energy that is left at `distance`\n * (linear in the energy: half the energy goes through half as much), the incendiary and tracer flags and the ignition chances. Pass it as the sixth\n * argument of `DestructionWorld.shoot` or spread it in a `Hit`.\n */\nexport const shotExtras = (shot: Shot, distance = 0): BallisticExtras => {\n const out: { -readonly [K in keyof BallisticExtras]: BallisticExtras[K] } = {}\n if (shot.penetration) {\n const k = shot.energy > 0 ? Math.min(1, Math.max(0, shot.energyAt(distance) / shot.energy)) : 1\n const scaled: Record<string, number> = {}\n for (const key of Object.keys(shot.penetration)) scaled[key] = shot.penetration[key]! * k\n out.penetration = scaled\n }\n if (shot.incendiary) out.incendiary = true\n if (shot.tracer) out.tracer = true\n if (shot.ignition) out.ignition = { spark: shot.ignition.spark, flame: shot.ignition.flame }\n return out\n}\n\n/** One use of a non-firearm (melee swing, flame tick, heat tick, throw, tool tick, extinguisher tick). */\nexport type Use =\n | { kind: 'melee'; damage: 'blunt' | 'slash'; energy: number; radius: number; reach: number; origin: Vec3; direction: Vec3 }\n | { kind: 'flame'; temperature: number; radius: number; range: number; cone: boolean; duration: number; origin: Vec3; direction: Vec3 }\n | { kind: 'heat'; temperature: number; radius: number; range: number; duration: number; origin: Vec3; direction: Vec3 }\n | {\n kind: 'throw'\n energy: number\n radius: number\n fuse: number\n velocity: Vec3\n origin: Vec3\n fire?: { temperature: number; radius: number; seconds: number }\n /** Explosive id (`m67`, `molotov`, `pg7v`...): the host looks the numbers up in the arsenal. Absent on a plain thrown object. */\n explosive?: string\n /** What sets it off: `timer` after `fuse` seconds, `impact` on the first hit once armed. */\n trigger?: 'timer' | 'impact'\n /** Metres the projectile must fly before an impact sets it off; closer, it hits without exploding (rocket launchers). */\n armDistance?: number\n /** Radius in metres of the wounding area (`radius` is the lethal one). */\n injuryRadius?: number\n /** Seconds the blast stuns whoever is inside the injury radius (flashbang). */\n stunSeconds?: number\n /** Seconds the thrower held it after pulling the pin: `fuse` is what was left of the full fuse when it left the hand. */\n cooked?: number\n /** Went off in the thrower's hand (held past the fuse): no velocity, `fuse` is 0 and the blast is at `origin`. */\n inHand?: boolean\n }\n /** An explosive set down where the trigger is pulled (mine, C4, charge): it waits for its trigger instead of flying. */\n | {\n kind: 'place'\n explosive: string\n /** `wire`: something trips it; `remote`: the player fires it; `timer`: after `fuse` seconds. */\n triggers: readonly ('timer' | 'wire' | 'remote')[]\n energy: number\n /** Lethal radius in metres. */\n radius: number\n injuryRadius: number\n /** Cone the blast goes through, in front of `direction` (mine); absent for a blast in every direction. */\n cone?: { halfAngleDeg: number; length: number }\n /** The wire a `wire` charge stretches from where it is set down: metres out, degrees from its facing (counter-clockwise from above) and metres above it. */\n tripwire?: { length: number; angleDeg: number; height: number }\n fuse?: number\n origin: Vec3\n direction: Vec3\n }\n /** The blast behind a rocket launcher: dangerous inside `radius` metres, in the cone around `direction` (pointing away from the target). */\n | { kind: 'backblast'; radius: number; halfAngleDeg: number; origin: Vec3; direction: Vec3 }\n | { kind: 'tool'; tool: string; reach: number; duration: number; origin: Vec3; direction: Vec3 }\n | { kind: 'extinguish'; range: number; coolC: number; duration: number; origin: Vec3; direction: Vec3 }\n | { kind: 'hand'; reach: number; origin: Vec3; direction: Vec3 }\n\n/**\n * The `Hit` a ballistic shot makes at `point` (world space): the energy is what is left of the shot at that distance from its origin\n * (`shot.energyAt`), the direction and calibre come from the shot. `normal` (the surface normal at the point, when the caller knows it) does not\n * change the hit; it is accepted so that callers can pass what their raycast returned and so that a stricter implementation could use it.\n */\nexport const shotToHit = (shot: Shot, point: Vec3, normal?: Vec3): Hit => {\n void normal\n const dx = point[0] - shot.origin[0]\n const dy = point[1] - shot.origin[1]\n const dz = point[2] - shot.origin[2]\n const distance = Math.hypot(dx, dy, dz)\n return {\n type: 'ballistic',\n point: [point[0], point[1], point[2]],\n direction: [shot.direction[0], shot.direction[1], shot.direction[2]],\n energy: shot.energyAt(distance),\n caliber: shot.caliber,\n ...(shot.mass === undefined ? {} : { mass: shot.mass }),\n ...shotExtras(shot, distance),\n source: shot.source ?? shot.weapon,\n }\n}\n\n/**\n * The `Hit` a non-firearm `Use` makes at `point` (world space), or `null` for uses that do not damage by themselves.\n *\n * - `melee` -> `blunt` / `slash` with the swing's `energy`, contact `radius` and `direction`;\n * - `flame` -> `fire` and `heat` -> `heat`, with `temperature`, `duration` and a contact radius of at most 0.3 m (one ray of the cone);\n * - `throw` -> the blast (`explosive`, `energy`, `radius`, centred on `point`, the place it detonates). A thrown item with no blast energy but\n * a `fire` patch (a molotov) gives that patch as a `fire` hit (`temperature`, `radius`, `seconds` as `duration`). No energy and no fire -> `null`;\n * - `tool`, `extinguish` and `hand` -> `null` (tools work on joints, the extinguisher cools, the hand only grabs).\n *\n * `normal` does not change the hit (same as `shotToHit`).\n */\nexport const useToHit = (use: Use, point: Vec3, normal?: Vec3): Hit | null => {\n void normal\n const p: Vec3 = [point[0], point[1], point[2]]\n switch (use.kind) {\n case 'melee':\n return { type: use.damage, point: p, direction: [use.direction[0], use.direction[1], use.direction[2]], energy: use.energy, radius: use.radius }\n case 'flame':\n case 'heat':\n return {\n type: use.kind === 'flame' ? 'fire' : 'heat',\n point: p,\n direction: [use.direction[0], use.direction[1], use.direction[2]],\n temperature: use.temperature,\n radius: Math.min(use.radius, 0.3),\n duration: use.duration,\n }\n case 'throw':\n if (use.energy > 0) return { type: 'explosive', point: p, energy: use.energy, radius: use.radius }\n if (use.fire) return { type: 'fire', point: p, temperature: use.fire.temperature, radius: use.fire.radius, duration: use.fire.seconds }\n return null\n default:\n return null\n }\n}\n","import type { Hit } from './destruction'\n\n/**\n * How a container of flammable fluid (a fuel tank, a jerrycan, a gas bottle) is set alight by what hits it. A normal bullet that goes through only\n * makes a leak; the leak lights when something supplies a flame: a spark of a hard round on metal, an incendiary or tracer round, a fire nearby\n * or a blast. These are the numbers of the target side; the numbers of the round (core, jacket, incendiary, tracer) are in the weapons module\n * (`rules.ignition` of `@adatechnology/game-weapons`) and reach the target in `Hit.ignition`. Every number is a default to be changed per game.\n */\nexport interface IgnitionRules {\n /**\n * How much of the spark and of the flame of a round reaches the vapour, by how full the container is: points `[filled, factor]`, `filled` 0..1\n * (litres over capacity), `factor` 0..1, linear between points. A full container holds a mixture too rich to burn (the vapour has no air) and\n * mostly leaks; a nearly empty one holds the vapour/air mixture of a flammable range and lights the easiest; a dry one has little vapour left.\n * Default: 0.6 empty, 1 at 10 percent, 0.6 at 35, 0.3 at 65, 0.15 at 90 and 0.12 full.\n */\n fillCurve: ReadonlyArray<readonly [number, number]>\n /** 0..1: how much of the fill factor also weighs on the flame of an incendiary or tracer (1: as much as on a spark; 0: not at all). Default 0.5. */\n flameFillInfluence: number\n /** Chance of the flame of a round that is flagged `incendiary` or `tracer` but carries no `ignition` numbers (a host that passes only the flags). */\n flameDefaults: { incendiary: number; tracer: number }\n /**\n * What a spark needs to strike: a factor 0..1 by material id of the struck part. A material that is not listed but is metal takes\n * `sparkMetalDefault`; a part that is not metal never sparks. Default: steel and iron 1, aluminium 0.25.\n */\n sparkTarget: Readonly<Record<string, number>>\n sparkMetalDefault: number\n /**\n * Factor 0..1 on the spark by fluid (default 1): diesel has a flash point of 52 degrees C and more, so a spark that lights petrol vapour does\n * not light it (a flame does). Default: diesel 0.15.\n */\n sparkFluid: Readonly<Record<string, number>>\n /** A leaking container of flammable fluid within `radius` metres of a burning part or a burning fuel stain lights at `chancePerSecond`. */\n fireNear: { radius: number; chancePerSecond: number }\n}\n\n/** Defaults of `IgnitionRules`. */\nexport const DEFAULT_IGNITION_RULES: IgnitionRules = {\n fillCurve: [\n [0, 0.6],\n [0.1, 1],\n [0.35, 0.6],\n [0.65, 0.3],\n [0.9, 0.15],\n [1, 0.12],\n ],\n flameFillInfluence: 0.5,\n flameDefaults: { incendiary: 0.7, tracer: 0.2 },\n sparkTarget: { steel: 1, iron: 1, aluminium: 0.25 },\n sparkMetalDefault: 0.5,\n sparkFluid: { diesel: 0.15 },\n fireNear: { radius: 1.5, chancePerSecond: 0.5 },\n}\n\n/** Merges a partial `IgnitionRules` over the defaults (an object is merged one level deep). */\nexport const resolveIgnitionRules = (rules?: Partial<IgnitionRules>): IgnitionRules => ({\n ...DEFAULT_IGNITION_RULES,\n ...rules,\n flameDefaults: { ...DEFAULT_IGNITION_RULES.flameDefaults, ...rules?.flameDefaults },\n sparkTarget: { ...DEFAULT_IGNITION_RULES.sparkTarget, ...rules?.sparkTarget },\n sparkFluid: { ...DEFAULT_IGNITION_RULES.sparkFluid, ...rules?.sparkFluid },\n fireNear: { ...DEFAULT_IGNITION_RULES.fireNear, ...rules?.fireNear },\n})\n\n/** Linear interpolation of the fill curve at `fill` (0..1); outside the points it keeps the first or the last. */\nexport const fillFactor = (fill: number, curve: IgnitionRules['fillCurve'] = DEFAULT_IGNITION_RULES.fillCurve): number => {\n if (curve.length === 0) return 1\n const f = Math.min(1, Math.max(0, fill))\n if (f <= curve[0]![0]) return curve[0]![1]\n for (let i = 1; i < curve.length; i++) {\n const [x1, y1] = curve[i]!\n const [x0, y0] = curve[i - 1]!\n if (f <= x1) return x1 === x0 ? y1 : y0 + ((y1 - y0) * (f - x0)) / (x1 - x0)\n }\n return curve[curve.length - 1]![1]\n}\n\n/** The factor of what a spark strikes: 0 when the struck part is not metal. */\nexport const sparkTargetFactor = (materialId: string, metal: boolean, rules: IgnitionRules = DEFAULT_IGNITION_RULES): number =>\n !metal ? 0 : rules.sparkTarget[materialId] ?? rules.sparkMetalDefault\n\n/**\n * Chance that one round that went through the wall of a container lights the fluid that leaks: the spark (only on metal) and the flame (any\n * wall), each weighed by the fill of the container; the two are independent. 0 when the round carries nothing (`Hit.ignition` absent and not\n * flagged `incendiary` or `tracer`): a plain bullet on a plain wall only leaks.\n */\nexport const ignitionChance = (hit: Pick<Hit, 'incendiary' | 'tracer' | 'ignition'>, target: { sparkTarget: number; fill: number; fluid?: string }, rules: IgnitionRules = DEFAULT_IGNITION_RULES): number => {\n const k = fillFactor(target.fill, rules.fillCurve)\n const spark = (hit.ignition?.spark ?? 0) * target.sparkTarget * (target.fluid === undefined ? 1 : rules.sparkFluid[target.fluid] ?? 1) * k\n const flameBase = hit.ignition?.flame ?? Math.max(hit.incendiary ? rules.flameDefaults.incendiary : 0, hit.tracer ? rules.flameDefaults.tracer : 0)\n const flame = flameBase * (1 - rules.flameFillInfluence * (1 - k))\n return 1 - (1 - Math.min(1, Math.max(0, spark))) * (1 - Math.min(1, Math.max(0, flame)))\n}\n","/**\n * The seal of a closed container (a food tin, a drink can, a jar, a bottle with a cap): what opens it and whether a breach spoils what is inside.\n * Plain data and one pure check, shared by the item rules (`resolveUse` of game-items) and any host that lets the player open and eat (the test room).\n */\nexport interface SealSpec {\n /** Ids of the tools that open it (items or weapons: `can_opener`, `knife`); any one of them is enough. */\n readonly openWith?: readonly string[]\n /** It opens by hand (a pull tab, a ring pull, a screw cap): no tool needed. */\n readonly byHand?: boolean\n /** A hole through the container or a leak spoils what is inside: it can no longer be eaten or drunk. */\n readonly spoilsWhenBreached?: boolean\n}\n\n/** The state of one container: opened, holed through (a shot, a blade) or leaking. */\nexport interface SealState {\n readonly opened?: boolean\n readonly breached?: boolean\n readonly leaked?: boolean\n}\n\n/** Why a sealed container cannot be eaten or drunk now. */\nexport type SealBlock = 'sealed' | 'breached' | 'leaked'\n\n/** Whether it can be opened with the tools at hand, and with which one (undefined when it opens by hand). */\nexport const sealOpener = (seal: SealSpec, tools: Iterable<string>): { readonly ok: boolean; readonly tool?: string } => {\n if (seal.byHand || !seal.openWith || seal.openWith.length === 0) return { ok: true }\n const have = new Set(tools)\n const tool = seal.openWith.find((id) => have.has(id))\n return tool === undefined ? { ok: false } : { ok: true, tool }\n}\n\n/** What stops eating or drinking it now, or undefined when nothing does. A spoiled container (breached, leaked) is blocked even once open. */\nexport const sealBlock = (seal: SealSpec, state: SealState): SealBlock | undefined => {\n if (seal.spoilsWhenBreached && state.breached) return 'breached'\n if (seal.spoilsWhenBreached && state.leaked) return 'leaked'\n if (!state.opened) return 'sealed'\n return undefined\n}\n","import type { Vec3 } from './destruction'\n\n/**\n * Where a hand should be, in world space. `position` is the middle of the palm; the orientation follows one convention for every hand: the hand-local +x runs from the wrist to the\n * knuckles (the way the fingers point when open), +y is the back of the hand and +z completes the frame (for a right hand the little finger side; the thumb is at -z). A left hand is the\n * mirror image of a right one, so the same numbers describe the same grip: its thumb is at +z.\n */\nexport interface HandPose {\n position: Vec3\n /** Unit quaternion `[x, y, z, w]`, hand-local to world. */\n quaternion: [number, number, number, number]\n}\n\n/**\n * What a tool in the hands asks of the hands that hold it (a weapon asks for a grip on its grip and handguard, a carried item for a hand under it). A side left out or null is not held:\n * the hand stays in its rest stance. Nothing here knows what the tool is.\n */\nexport interface HandTargets {\n R?: HandPose | null\n L?: HandPose | null\n /** How closed the fingers are, 0 open to 1 closed on a grip. Default 1. */\n grip?: number\n /** The same for the left hand, when it differs from `grip` (a hand laid on a forend is looser than the one on the trigger). */\n gripL?: number\n /** The size of the hands against life size (a tool drawn smaller than real takes smaller hands). Default 1. */\n scale?: number\n /** Fingers of the right hand that curl by themselves, 0 extended to 1 fully curled (the index finger of a trigger hand); the others follow `grip`. */\n fingers?: { index?: number }\n /** The same for the left hand (its index on the trigger of a tool of its own, with a tool in each hand); absent, the left hand's fingers all follow `gripL`. */\n fingersL?: { index?: number }\n /**\n * Where the elbows go: `view` puts them on screen beside the hand, out to the side, as a tool held out in front (default); `body` lets them hang down and back by the body, as an item\n * carried close (a can, a bottle), where an elbow out to the side would lift it above the shoulder.\n */\n elbows?: 'view' | 'body'\n}\n\n/** Read every frame by whoever draws the arms; answers null while nothing is held. */\nexport type HandTargetSource = () => HandTargets | null\n\n/** The muzzle of the tool in the hands as it is drawn now (world space): where a shot's flash and tracer leave, and which way the barrel points. */\nexport interface MuzzlePose {\n readonly position: Vec3\n /** Unit vector along the barrel, out of the muzzle. */\n readonly direction: Vec3\n /** The module draws the muzzle flash itself: the host draws none of its own. */\n readonly drawsFlash: boolean\n}\n\n/** A hand of the body: `R` the right, `L` the left. A tool in one hand alone is in the right; the left holds one of its own only with a tool in each hand (`HostTool.offHand`). */\nexport type ToolHand = 'R' | 'L'\n\n/**\n * Read by the host at each shot; null while the tool in the hands has no muzzle (a knife, a bare hand). `hand` is the hand that fired (absent: the right one); a source that draws\n * one tool only answers the same for both.\n */\nexport type MuzzleSource = (hand?: ToolHand) => MuzzlePose | null\n\n/**\n * The layer of what the first-person view draws over the world (three.js `Object3D.layers`): the tool in the hands and the arms that hold it. A host with a first-person view draws\n * the world without this layer, then this layer alone over it with the depth cleared and its own field of view (`ModuleHost.setViewmodelFov`), as shooters draw the weapon in the hands:\n * it never goes into a wall, and the gun and the arms are framed by the lens chosen for them. Seen from outside (third person) nothing is on it.\n */\nexport const FIRST_PERSON_LAYER = 9\n","/** How a hand turns something round in strokes (a screw cap, a tap handle, a knob): what `twistStroke` answers for one moment of the turning. */\nexport interface TwistStroke {\n /** Radians the wrist is turned from the middle of its stroke, positive the way the part turns. */\n readonly angle: number\n /** Radians the part has turned in all, from 0 to `strokes * reach`. */\n readonly turned: number\n /** How closed the fingers are, 0 open to 1 closed: closed on the part while it turns, open while the wrist turns back. */\n readonly grip: number\n /** 0..1, how far the hand rises off the part while the wrist turns back (1 is `TWIST_LIFT` metres). */\n readonly lift: number\n}\n\nexport interface TwistOptions {\n /** Strokes of the wrist. Default 3. */\n readonly strokes?: number\n /** Radians the part turns in one stroke (a wrist turns about a quarter round with its hold). Default 1.6. */\n readonly reach?: number\n}\n\n/** Metres a hand rises off the part between two strokes. */\nexport const TWIST_LIFT = 0.012\n/** Share of each stroke spent turning the part; the rest turns the wrist back open. */\nconst TURNING = 0.7\n\nconst smooth = (k: number): number => k * k * (3 - 2 * k)\n\n/**\n * The hand turning a part round at `share` (0..1) of the whole turning: in each stroke the wrist turns with the part, then lets go, rises a little and turns back.\n * Pure and the same for every host, so first and third person turn the same hand the same way.\n */\nexport const twistStroke = (share: number, options: TwistOptions = {}): TwistStroke => {\n const strokes = Math.max(1, Math.round(options.strokes ?? 3))\n const reach = options.reach ?? 1.6\n const along = Math.min(1, Math.max(0, share)) * strokes\n const index = Math.min(strokes - 1, Math.floor(along))\n const phase = along - index\n if (phase <= TURNING) {\n const k = smooth(phase / TURNING)\n return { angle: reach * (k - 0.5), turned: reach * (index + k), grip: 1, lift: 0 }\n }\n const k = (phase - TURNING) / (1 - TURNING)\n return { angle: reach * (0.5 - smooth(k)), turned: reach * (index + 1), grip: 0.35, lift: Math.sin(k * Math.PI) }\n}\n","import type { Vec3 } from './destruction'\n\n/** Pose of one part (or of the whole item) at a key: position offset in metres and Euler XYZ rotation in radians, both relative to the rest pose. */\nexport interface AnimationPose {\n position?: Vec3\n rotation?: Vec3\n}\n\nexport interface AnimationKey {\n /** Seconds from the start of the clip. */\n t: number\n /** Pose of the item's root. */\n position?: Vec3\n rotation?: Vec3\n /** Poses of named parts: the key is a destruction part id (a pistol `reload` moves `mag`; a car door `open` rotates `door_l`). */\n parts?: Record<string, AnimationPose>\n}\n\nexport interface AnimationEventSpec {\n /** Seconds from the start of the clip. */\n t: number\n /** snake_case type the host maps (`sound`, `eject_casing`, `door_latch`...). */\n type: string\n data?: Record<string, unknown>\n /**\n * Seconds of real time the event fires before `t`, not stretched with the clip: a recorded sound whose hit comes that long after its start\n * (the click of a magazine seating) starts early so the hit lands on `t`. The player passes the lead it could apply as `data.lead`.\n */\n lead?: number\n}\n\n/** A use animation a module brings with its item. Poses between keys are interpolated by the player (the test room does it linearly). */\nexport interface AnimationClipSpec {\n /** snake_case: `reload`, `open`, `drink`... Unique within the item. */\n id: string\n /** Seconds. */\n duration: number\n keys: AnimationKey[]\n events?: AnimationEventSpec[]\n}\n\n/** What an item exposes when it brings its own animations. */\nexport interface ItemAnimationContract {\n animations: AnimationClipSpec[]\n}\n\nconst finite3 = (v: unknown): boolean => Array.isArray(v) && v.length === 3 && v.every((n) => typeof n === 'number' && Number.isFinite(n))\n\n/**\n * Problems with a clip (empty when it is valid): a snake_case id, a positive finite duration, at least one key, key and event times inside\n * `[0, duration]` and not going backwards, finite vectors, every named part one of `partIds`, event types that are non-empty strings and\n * JSON-serializable event data.\n */\nexport const checkAnimation = (clip: AnimationClipSpec, partIds: Iterable<string>): { ok: boolean; problems: string[] } => {\n const problems: string[] = []\n const parts = new Set(partIds)\n const id = String(clip?.id ?? '')\n if (!/^[a-z][a-z0-9_]*$/.test(id)) problems.push(`clip id \"${id}\" must be snake_case`)\n const label = `clip \"${id}\"`\n if (!(typeof clip?.duration === 'number' && Number.isFinite(clip.duration) && clip.duration > 0)) problems.push(`${label} needs a positive finite duration`)\n const dur = typeof clip?.duration === 'number' && clip.duration > 0 ? clip.duration : Infinity\n if (!Array.isArray(clip?.keys) || clip.keys.length === 0) {\n problems.push(`${label} needs at least one key`)\n return { ok: false, problems }\n }\n let prev = -Infinity\n clip.keys.forEach((k, i) => {\n if (!(typeof k.t === 'number' && Number.isFinite(k.t)) || k.t < 0 || k.t > dur + 1e-9) problems.push(`${label} key ${i} has t=${String(k.t)} outside 0..${dur}`)\n else if (k.t < prev) problems.push(`${label} key ${i} goes back in time (${k.t} < ${prev})`)\n else prev = k.t\n for (const f of ['position', 'rotation'] as const) if (k[f] !== undefined && !finite3(k[f])) problems.push(`${label} key ${i} has an invalid ${f}`)\n for (const [pid, pose] of Object.entries(k.parts ?? {})) {\n if (!parts.has(pid)) problems.push(`${label} key ${i} moves unknown part \"${pid}\"`)\n for (const f of ['position', 'rotation'] as const) if (pose?.[f] !== undefined && !finite3(pose[f])) problems.push(`${label} key ${i} part \"${pid}\" has an invalid ${f}`)\n }\n })\n let prevEv = -Infinity\n ;(clip.events ?? []).forEach((e, i) => {\n if (!(typeof e.t === 'number' && Number.isFinite(e.t)) || e.t < 0 || e.t > dur + 1e-9) problems.push(`${label} event ${i} has t=${String(e.t)} outside 0..${dur}`)\n else if (e.t < prevEv) problems.push(`${label} event ${i} goes back in time`)\n else prevEv = e.t\n if (typeof e.type !== 'string' || e.type === '') problems.push(`${label} event ${i} needs a type`)\n try {\n JSON.stringify(e.data ?? {})\n } catch {\n problems.push(`${label} event ${i} data is not JSON`)\n }\n })\n return { ok: problems.length === 0, problems }\n}\n","import type { AnimationClipSpec, AnimationEventSpec, AnimationPose } from './animation'\nimport { checkAnimation } from './animation'\nimport type { HostEvent } from './module'\n\n/** Clips a tool can bring, one per move of its cycle. A tool brings the ones it has; a missing clip is simply not played. */\nexport const TOOL_CLIP = {\n DRAW: 'draw',\n SHOT: 'shot',\n MISFIRE: 'misfire',\n EMPTY: 'empty',\n CYCLE: 'cycle',\n RELOAD: 'reload',\n FEED: 'feed',\n FAULT: 'fault',\n CLEAR: 'clear',\n SAFETY_ON: 'safety_on',\n SAFETY_OFF: 'safety_off',\n MODE: 'mode',\n /** A throwable with the pin out, held until it is thrown. */\n COOK: 'cook',\n /** The stock folds, unfolds, slides in or out (variants `fold`, `unfold`, `collapse`, `extend`). */\n STOCK: 'stock',\n /** A light or a laser is switched (variants `on`, `off`). */\n TOGGLE: 'toggle',\n} as const\nexport type ToolClipId = (typeof TOOL_CLIP)[keyof typeof TOOL_CLIP]\n\n/** What a renderer does when a rule event arrives. `variant` picks `<clip>_<variant>` when the tool has it, else `<clip>`. */\nexport type ToolAnimationStep =\n | { readonly type: 'play'; readonly clip: ToolClipId; readonly variant?: string; readonly duration?: number; readonly repeat?: number }\n /** Move the clip that is playing to the marker (a clip event `stage` with `data.stage`) the rule just reached. */\n | { readonly type: 'sync'; readonly stage: string }\n /** The rule says the phase is over: the clip jumps to its end if it is still running. */\n | { readonly type: 'finish'; readonly clip: ToolClipId }\n\nconst stockVariant = (event: Extract<HostEvent, { type: 'stock' }>): string => {\n const isFolding = event.kind === undefined ? false : event.kind.includes('fold')\n if (event.state === 'collapsed') return isFolding ? 'fold' : 'collapse'\n return isFolding ? 'unfold' : 'extend'\n}\n\n/** The move a host event asks of the tool in hand, or null when it has no motion. */\nexport const toolAnimationStep = (event: HostEvent): ToolAnimationStep | null => {\n switch (event.type) {\n case 'tool':\n return { type: 'play', clip: TOOL_CLIP.DRAW, ...(event.duration === undefined ? {} : { duration: event.duration }) }\n case 'shot':\n return { type: 'play', clip: TOOL_CLIP.SHOT, repeat: Math.max(1, event.rounds ?? 1) }\n case 'misfire':\n return { type: 'play', clip: TOOL_CLIP.MISFIRE }\n case 'empty':\n return { type: 'play', clip: TOOL_CLIP.EMPTY }\n case 'mode':\n return { type: 'play', clip: TOOL_CLIP.MODE, variant: event.mode }\n case 'fault':\n return { type: 'play', clip: TOOL_CLIP.FAULT, variant: event.fault }\n case 'clear':\n if (event.phase === 'end') return { type: 'finish', clip: TOOL_CLIP.CLEAR }\n return { type: 'play', clip: TOOL_CLIP.CLEAR, variant: event.fault, ...(event.duration === undefined ? {} : { duration: event.duration }) }\n case 'safety':\n return { type: 'play', clip: event.on ? TOOL_CLIP.SAFETY_ON : TOOL_CLIP.SAFETY_OFF }\n case 'cycle':\n if (event.phase === 'end') return { type: 'finish', clip: TOOL_CLIP.CYCLE }\n return { type: 'play', clip: TOOL_CLIP.CYCLE, ...(event.duration === undefined ? {} : { duration: event.duration }) }\n case 'reload':\n if (event.phase === 'end') return { type: 'finish', clip: TOOL_CLIP.RELOAD }\n return { type: 'play', clip: TOOL_CLIP.RELOAD, ...(event.kind === undefined ? {} : { variant: event.kind }), ...(event.duration === undefined ? {} : { duration: event.duration }) }\n case 'stage':\n return { type: 'sync', stage: event.stage }\n case 'feed':\n return { type: 'play', clip: TOOL_CLIP.FEED }\n case 'cook':\n if (event.phase === 'start') return { type: 'play', clip: TOOL_CLIP.COOK, duration: event.fuse }\n return { type: 'finish', clip: TOOL_CLIP.COOK }\n case 'stock':\n return { type: 'play', clip: TOOL_CLIP.STOCK, variant: stockVariant(event), ...(event.duration === undefined ? {} : { duration: event.duration }) }\n case 'toggle':\n return { type: 'play', clip: TOOL_CLIP.TOGGLE, variant: event.on ? 'on' : 'off' }\n default:\n return null\n }\n}\n\n/** Where a renderer puts the poses: every part of the tool by id (the ids the clips move), and the whole tool. Poses are offsets from rest. */\nexport interface ToolRig {\n setPartPose(partId: string, pose: AnimationPose): void\n setRootPose?(pose: AnimationPose): void\n}\n\n/** Clips by id, with the variants as `<clip>_<variant>`. */\nexport type ToolClipSet = Readonly<Record<string, AnimationClipSpec>>\n\n/** A renderer's tool animator: feed it the host events and the frame time. */\nexport interface ToolAnimator {\n handle(event: HostEvent): void\n update(dt: number): void\n /** Ids of the clips playing now. */\n readonly playing: readonly string[]\n dispose(): void\n}\n\nexport const STAGE_EVENT = 'stage'\n\n/** The clip with its times (keys and events) scaled so that it lasts `duration` seconds. */\nexport const scaleClip = (clip: AnimationClipSpec, duration: number): AnimationClipSpec => {\n const factor = clip.duration > 0 ? duration / clip.duration : 1\n return {\n ...clip,\n duration,\n keys: clip.keys.map((key) => ({ ...key, t: key.t * factor })),\n ...(clip.events ? { events: clip.events.map((event) => ({ ...event, t: event.t * factor })) } : {}),\n }\n}\n\nconst ZERO: [number, number, number] = [0, 0, 0]\nconst mix = (from: readonly number[], to: readonly number[], fraction: number): [number, number, number] => [\n (from[0] ?? 0) + ((to[0] ?? 0) - (from[0] ?? 0)) * fraction,\n (from[1] ?? 0) + ((to[1] ?? 0) - (from[1] ?? 0)) * fraction,\n (from[2] ?? 0) + ((to[2] ?? 0) - (from[2] ?? 0)) * fraction,\n]\n\n/** Pose of the whole tool (`partId` undefined) or of one part at `time`, linear between keys; a key that does not name it means rest. */\nexport const sampleClip = (clip: AnimationClipSpec, partId: string | undefined, time: number): { position: [number, number, number]; rotation: [number, number, number] } => {\n const points = clip.keys.map((key) => {\n const pose = partId === undefined ? key : key.parts?.[partId]\n return { t: key.t, position: pose?.position ?? ZERO, rotation: pose?.rotation ?? ZERO }\n })\n const first = points[0]\n if (!first || first.t > 0) points.unshift({ t: 0, position: ZERO, rotation: ZERO })\n const last = points[points.length - 1]\n if (!last) return { position: ZERO, rotation: ZERO }\n if (time >= last.t) return { position: mix(last.position, last.position, 0), rotation: mix(last.rotation, last.rotation, 0) }\n const index = Math.max(0, points.findIndex((point, i) => time >= point.t && time < (points[i + 1]?.t ?? Infinity)))\n const from = points[index]\n const to = points[index + 1]\n if (!from || !to) return { position: ZERO, rotation: ZERO }\n const fraction = to.t > from.t ? (time - from.t) / (to.t - from.t) : 0\n return { position: mix(from.position, to.position, fraction), rotation: mix(from.rotation, to.rotation, fraction) }\n}\n\n/** Problems with a clip set (empty when valid): each key is the clip id (or `<clip>_<variant>`), every clip passes `checkAnimation`, and a `stage` event names its stage. */\nexport const checkToolClips = (clips: ToolClipSet, partIds: Iterable<string>): { ok: boolean; problems: string[] } => {\n const parts = [...partIds]\n const problems: string[] = []\n for (const [key, clip] of Object.entries(clips)) {\n if (clip.id !== key) problems.push(`clip \"${key}\" has the id \"${clip.id}\"`)\n if (!(clip.duration > 0)) problems.push(`clip \"${key}\" has no duration`)\n problems.push(...checkAnimation(clip, parts).problems)\n for (const event of clip.events ?? []) if (event.type === STAGE_EVENT && typeof event.data?.stage !== 'string') problems.push(`clip \"${key}\" has a stage event without data.stage`)\n }\n return { ok: problems.length === 0, problems }\n}\n\ninterface Instance {\n readonly name: string\n readonly clip: AnimationClipSpec\n time: number\n delay: number\n fired: number\n}\n\nexport interface ToolClipPlayerOptions {\n clips: ToolClipSet\n rig: ToolRig\n /** Called for each clip event as its time passes (`eject_casing`, `drop_magazine`, `stage`...). */\n onEvent?(event: AnimationEventSpec, clip: string): void\n /** Seconds between the rounds of a `repeat` (a burst): default 0.1. */\n repeatInterval?(): number\n}\n\n/** The default player of a tool's clips: runs the steps of `toolAnimationStep` against a rig, scaled to the duration the rule gives. */\nexport interface ToolClipPlayer {\n apply(step: ToolAnimationStep): void\n update(dt: number): void\n readonly playing: readonly string[]\n /** The clips being played with the time each has reached and the clip itself (scaled to the duration the rule gave), for a renderer that has to follow what the clip does now (the hands working a part). */\n readonly running: ReadonlyArray<{ readonly name: string; readonly time: number; readonly clip: AnimationClipSpec }>\n}\n\n/**\n * The clip with every event that has a `lead` moved that many seconds earlier, the lead it got in `data.lead`. A led event never goes before 0\n * nor before the event written ahead of it (a fast clip keeps its order: the lead shrinks). Run after `scaleClip`: the lead is real time, the\n * clip's stretch does not touch it.\n */\nexport const leadClipEvents = (clip: AnimationClipSpec): AnimationClipSpec => {\n const events = clip.events ?? []\n if (!events.some((event) => (event.lead ?? 0) > 0)) return clip\n let floor = 0\n const led = events.map((event) => {\n const lead = Math.max(0, Math.min(event.t - floor, event.lead ?? 0))\n const t = event.t - lead\n floor = Math.max(floor, t)\n if (event.lead === undefined) return event\n const moved: AnimationEventSpec = { ...event, t, data: lead > 0 ? { ...event.data, lead } : { ...event.data } }\n delete moved.lead\n return moved\n })\n return { ...clip, events: led }\n}\n\nexport const createToolClipPlayer = (options: ToolClipPlayerOptions): ToolClipPlayer => {\n const { clips, rig, onEvent } = options\n let instances: Instance[] = []\n\n const find = (clip: string, variant?: string): { name: string; clip: AnimationClipSpec } | undefined => {\n const name = variant !== undefined && clips[`${clip}_${variant}`] ? `${clip}_${variant}` : clip\n const found = clips[name]\n return found ? { name, clip: found } : undefined\n }\n\n const render = (instance: Instance): void => {\n const time = Math.min(instance.time, instance.clip.duration)\n const root = sampleClip(instance.clip, undefined, time)\n if (instance.clip.keys.some((key) => key.position || key.rotation)) rig.setRootPose?.(root)\n const touched = new Set(instance.clip.keys.flatMap((key) => Object.keys(key.parts ?? {})))\n for (const id of touched) rig.setPartPose(id, sampleClip(instance.clip, id, time))\n }\n\n const fireEvents = (instance: Instance, upTo: number): void => {\n const events = instance.clip.events ?? []\n while (instance.fired < events.length && (events[instance.fired]?.t ?? Infinity) <= upTo + 1e-9) {\n const event = events[instance.fired]\n instance.fired += 1\n if (event) onEvent?.(event, instance.name)\n }\n }\n\n return {\n apply(step) {\n if (step.type === 'sync') {\n for (const instance of instances) {\n const marker = (instance.clip.events ?? []).find((event) => event.type === STAGE_EVENT && event.data?.stage === step.stage)\n if (marker && instance.time < marker.t) instance.time = marker.t\n }\n return\n }\n if (step.type === 'finish') {\n for (const instance of instances) {\n if (instance.name !== step.clip && !instance.name.startsWith(`${step.clip}_`)) continue\n fireEvents(instance, instance.clip.duration)\n instance.time = instance.clip.duration\n }\n return\n }\n const found = find(step.clip, step.variant)\n if (!found) return\n const clip = leadClipEvents(step.duration && step.duration > 0 ? scaleClip(found.clip, step.duration) : found.clip)\n const interval = options.repeatInterval?.() ?? 0.1\n instances = instances.filter((existing) => existing.name !== found.name || existing.delay > 0)\n for (let round = 0; round < (step.repeat ?? 1); round++) {\n instances.push({ name: found.name, clip, time: 0, delay: round * interval, fired: 0 })\n }\n },\n update(dt) {\n for (const instance of instances) {\n const carried = instance.delay > 0 ? dt - instance.delay : dt\n if (instance.delay > 0) {\n instance.delay = Math.max(0, instance.delay - dt)\n if (instance.delay > 0) continue\n }\n instance.time += carried\n fireEvents(instance, instance.time)\n render(instance)\n }\n instances = instances.filter((instance) => instance.delay > 0 || instance.time < instance.clip.duration)\n },\n get playing() {\n return instances.map((instance) => instance.name)\n },\n get running() {\n return instances.filter((instance) => instance.delay <= 0).map((instance) => ({ name: instance.name, time: instance.time, clip: instance.clip }))\n },\n }\n}\n","export const FRAME_PHASES = ['input', 'fixedSimulate', 'lateSimulate', 'present', 'render', 'idle'] as const\nexport type FramePhase = (typeof FRAME_PHASES)[number]\n\n/**\n * Presentation work a system leaves for later frames, run in small units within a shared time budget.\n * Never simulation: nothing that consumes a seeded generator or decides an outcome may wait in a queue.\n */\nexport interface DeferredQueue {\n /** Stable name for stats and logs (see `DEFERRED_QUEUE_ID`). */\n readonly id: string\n /**\n * Units waiting. 0 means idle; the budget skips the queue without calling `run`. `frame` is the budget's frame counter: a queue may\n * report 0 for the rest of a frame (the crease queue does in the frame a panel was torn). Same value for repeated calls in one frame.\n */\n pending(frame?: number): number\n /**\n * Runs units in order until `clock() >= deadline`. Contract: when `pending() > 0` it runs **at least one** unit, even with a deadline\n * already past; it never runs a unit after it saw the deadline pass. Returns how many units it ran.\n */\n run(deadline: number, clock: () => number): number\n /** Runs everything now (synchronous step, clear, dispose). */\n flush(): void\n /**\n * Called by `budget.register`: from now on the owner stops draining on its own (no MessageChannel, no drain inside `update`).\n * Never called by a getter; a queue nobody registered keeps today's internal draining.\n */\n attach?(): void\n /** Called by the unregister function and by `budget.dispose`: the owner goes back to its internal draining. */\n detach?(): void\n}\n\n/** Where a module registers a deferred queue with the host's budget. */\nexport interface DeferredQueueOptions {\n /** Higher runs first. See DEFERRED_PRIORITY. */\n readonly priority: number\n /** `present` runs before the render (the work must show this frame); `idle` runs after it. Default `idle`. */\n readonly phase?: 'present' | 'idle'\n /** Starvation guard: the queue runs at least one unit every this many frames, even with the budget spent. Default 4. */\n readonly minEveryFrames?: number\n /** Milliseconds of every frame kept for this queue before the others share the rest (when it has work). Default 0. */\n readonly reserveMs?: number\n}\n\n/** The ids of the kit's queues: what `DeferredQueue.id` says and what `DEFERRED_PRIORITY` is keyed by. */\nexport const DEFERRED_QUEUE_ID = {\n DESTRUCTION_EVENTS: 'destruction.events',\n BREACH_PAINT: 'floorplan.breach-paint',\n AUDIO_VOICES: 'audio.voices',\n VEHICLE_CREASE: 'vehicles.crease',\n} as const\n\n/** Default priorities and reserves of the kit's queues; a host may override any of them. */\nexport const DEFERRED_PRIORITY = {\n [DEFERRED_QUEUE_ID.DESTRUCTION_EVENTS]: { priority: 300, phase: 'present' },\n [DEFERRED_QUEUE_ID.BREACH_PAINT]: { priority: 250, phase: 'present' },\n [DEFERRED_QUEUE_ID.AUDIO_VOICES]: { priority: 200, phase: 'idle', reserveMs: 1 },\n [DEFERRED_QUEUE_ID.VEHICLE_CREASE]: { priority: 100, phase: 'idle' },\n} as const satisfies Readonly<Record<string, DeferredQueueOptions>>\n\nexport interface DeferredQueueReport {\n readonly ok: boolean\n readonly problems: readonly string[]\n}\n\n/**\n * Checks the `DeferredQueue` contract. `fill` leaves the queue with at least two units waiting (the same call is made on a fresh queue).\n * It cannot prove the queue only carries presentation work: that is a rule of review.\n */\nexport function checkDeferredQueue(queue: DeferredQueue, fill: () => void): DeferredQueueReport {\n const problems: string[] = []\n fill()\n const waiting = queue.pending(1)\n if (waiting < 2) problems.push(`fill() must leave at least 2 units waiting (pending is ${waiting})`)\n if (queue.pending(1) !== waiting) problems.push('pending(frame) changed between two calls in the same frame')\n const ran = queue.run(0, () => 1)\n if (ran !== 1) problems.push(`run with a deadline already past must run exactly one unit (ran ${ran})`)\n if (waiting >= 2 && queue.pending(2) !== waiting - 1) problems.push(`one unit ran but pending went from ${waiting} to ${queue.pending(2)}`)\n try {\n queue.attach?.()\n queue.attach?.()\n queue.detach?.()\n queue.detach?.()\n } catch (error) {\n problems.push(`attach/detach must be idempotent: ${error instanceof Error ? error.message : String(error)}`)\n }\n queue.flush()\n if (queue.pending(3) !== 0) problems.push(`flush must leave nothing pending (pending is ${queue.pending(3)})`)\n if (queue.run(0, () => 1) !== 0) problems.push('run on an empty queue must run no unit')\n return { ok: problems.length === 0, problems }\n}\n","const WARNED_KEY = Symbol.for('@adatechnology/game-contracts.warned')\n\ntype WarnedHolder = { [WARNED_KEY]?: Set<string> }\n\nconst warnedKeys = (): Set<string> => {\n const holder = globalThis as WarnedHolder\n return (holder[WARNED_KEY] ??= new Set<string>())\n}\n\ndeclare const process: { readonly env: { readonly NODE_ENV?: string } }\n\n// The literal `process.env.NODE_ENV` is what bundlers replace; where there is no `process` the reference throws and counts as development.\nconst isProduction = (): boolean => {\n try {\n return process.env.NODE_ENV === 'production'\n } catch {\n return false\n }\n}\n\nconst isQuiet = (): boolean => (globalThis as { __GAME_KIT_QUIET__?: unknown }).__GAME_KIT_QUIET__ === true\n\n/**\n * Warns on the console the first time `key` is seen, and only outside production and when `globalThis.__GAME_KIT_QUIET__` is not `true`: for a silent fallback that keeps working (an adapter that made its own effects\n * world or audio engine because the host lent none). The seen keys live on `globalThis`, so several bundles of the kit on one page warn once together.\n */\nexport const warnOnce = (key: string, message: string): void => {\n if (isQuiet() || isProduction()) return\n const seen = warnedKeys()\n if (seen.has(key)) return\n seen.add(key)\n console.warn(`[game-kit] ${message}`)\n}\n\n/** Forgets what `warnOnce` has seen (tests that count warnings). */\nexport const resetWarnOnce = (): void => warnedKeys().clear()\n","import { warnOnce } from './warn'\n\ntype PlainObject = Record<string, unknown>\ntype Entry = { readonly id: string }\n\n/** Keys that would reach the prototype of the result when a patch comes from parsed JSON. */\nconst UNSAFE_KEYS: ReadonlySet<string> = new Set(['__proto__', 'constructor', 'prototype'])\n\nconst isPlainObject = (value: unknown): value is PlainObject =>\n typeof value === 'object' && value !== null && !Array.isArray(value) && Object.getPrototypeOf(value) === Object.prototype\n\n/** Recursively optional; arrays and functions are replaced as a whole, objects are merged. */\nexport type DeepPartial<TValue> = TValue extends (...args: never[]) => unknown\n ? TValue\n : TValue extends readonly unknown[]\n ? TValue\n : TValue extends object\n ? { [TKey in keyof TValue]?: DeepPartial<TValue[TKey]> }\n : TValue\n\n/** Merges `patch` over `base`: plain objects merge field by field, arrays, functions and primitives replace. `undefined` in the patch is ignored. */\nexport const deepMerge = <TBase extends object>(base: TBase, patch: object | undefined): TBase => {\n if (!patch) return base\n const result: PlainObject = { ...(base as PlainObject) }\n for (const [key, value] of Object.entries(patch)) {\n if (value === undefined || UNSAFE_KEYS.has(key)) continue\n const current = result[key]\n result[key] = isPlainObject(current) && isPlainObject(value) ? deepMerge(current, value) : value\n }\n return result as TBase\n}\n\n/** The shipped entries with the ones from `extra` added or, when the id exists, replaced. */\nexport const mergeById = <TEntry extends Entry>(shipped: readonly TEntry[], extra: readonly TEntry[] | undefined): Map<string, TEntry> => {\n const entries = new Map<string, TEntry>()\n for (const entry of [...shipped, ...(extra ?? [])]) entries.set(entry.id, entry)\n return entries\n}\n\n/** Applies `patch` by id; a patch for an id that does not exist is ignored (and warned about once, in development). */\nexport const applyPatches = <TEntry extends Entry>(entries: Map<string, TEntry>, patches: Readonly<Record<string, DeepPartial<TEntry> | Partial<TEntry>>> | undefined): void => {\n for (const [id, patch] of Object.entries(patches ?? {})) {\n const entry = entries.get(id)\n if (entry) entries.set(id, deepMerge(entry, patch))\n else warnOnce(`registry.patch.${id}`, `patch for \"${id}\" ignored: no entry has that id`)\n }\n}\n\n/** Takes the ids out; an id that does not exist is ignored (and warned about once, in development). */\nexport const removeIds = (entries: Map<string, unknown>, ids: readonly string[] | undefined): void => {\n for (const id of ids ?? []) {\n if (!entries.delete(id)) warnOnce(`registry.remove.${id}`, `remove of \"${id}\" ignored: no entry has that id`)\n }\n}\n","import type { Vec3 } from './destruction'\n\n/**\n * The bench of a module: controls, layers and counters it declares as data. The host keeps the values, draws them in a generic way and hands\n * every change back through `ModuleHost.bench`. Nothing here is specific to a kind of module.\n */\nexport type ControlValue = number | boolean | string\n\nexport interface ChoiceOption {\n readonly id: string\n readonly name: string\n /** Heading the host lists the option under (`optgroup`, a grouped row of buttons). Options of a group must sit next to each other. */\n readonly group?: string\n}\n\ninterface ControlBase {\n /** snake_case, unique across the module's controls, layers and metrics. */\n readonly id: string\n /** Display name, already translated for the locale the host asked for. */\n readonly name: string\n readonly hint?: string\n readonly hidden?: boolean\n /**\n * The change (or the press, for an action) takes a noticeable time, a third of a second or more: the host shows its loading indicator while it works, with this text, or the control's name for `true`.\n * Only the host's own controls panel does it; a change made through `TestRoom.bench().set / act` runs at once.\n */\n readonly slow?: boolean | string\n}\n\nexport interface NumberControl extends ControlBase {\n readonly kind: 'number'\n readonly min: number\n readonly max: number\n readonly step?: number\n readonly unit?: string\n readonly default: number\n}\n\nexport interface BooleanControl extends ControlBase {\n readonly kind: 'boolean'\n readonly default: boolean\n}\n\nexport interface ChoiceControl extends ControlBase {\n readonly kind: 'choice'\n readonly options: readonly ChoiceOption[]\n readonly default: string\n}\n\n/** A button: no value, only the press. */\nexport interface ActionControl extends ControlBase {\n readonly kind: 'action'\n}\n\nexport type ModuleControl = NumberControl | BooleanControl | ChoiceControl | ActionControl\n\n/** Something of the module the viewer turns on or off (smoke, flash, casings). */\nexport interface ModuleLayer {\n readonly id: string\n readonly name: string\n /** On unless `false`. */\n readonly default?: boolean\n}\n\n/** Pulled: the room calls read only when it samples (~4 Hz, or on TestRoom.metrics()). */\nexport interface ModuleMetric {\n readonly id: string\n readonly name: string\n readonly unit?: string\n /** Budget: the host shows a bar and warns past it. */\n readonly max?: number\n readonly digits?: number\n read(): number | string\n}\n\nexport type BenchChange =\n | { readonly kind: 'control'; readonly id: string; readonly value: ControlValue }\n | { readonly kind: 'layer'; readonly id: string; readonly on: boolean }\n | { readonly kind: 'action'; readonly id: string }\n\nexport interface ControlPatch {\n readonly hidden?: boolean\n readonly disabled?: boolean\n readonly options?: readonly ChoiceOption[]\n readonly value?: ControlValue\n}\n\n/** What the host lends a module that declares a bench: the current values and the changes. */\nexport interface ModuleBench {\n value(id: string): ControlValue | undefined\n layer(id: string): boolean\n /** Right after attach returns, the host sends one change per control (not actions) and per layer, in declaration order. */\n onChange(listener: (change: BenchChange) => void): () => void\n /** `value` sets without emitting (no echo loops); `options` falls back to the first option if the value is no longer offered. */\n patch(id: string, patch: ControlPatch): void\n /** Move the host camera (a near / middle / far choice). */\n look(eye: Vec3, target: Vec3): void\n /** Shows a sheet on the host's panel, or takes it down with `null`. A host without a sheet area ignores it. */\n sheet?(sheet: BenchSheet | null): void\n}\n\n/**\n * A card of text the module puts on the host's panel (the sheet of an effect, of a weapon): what it is, its numbers, its steps, its colours and,\n * optionally, a strip of segments over time. Names and texts are already translated for the host's locale.\n */\nexport interface BenchSheet {\n readonly kicker?: string\n readonly title: string\n readonly body?: string\n readonly facts?: readonly { readonly label: string; readonly value: string }[]\n readonly steps?: readonly { readonly at: string; readonly text: string }[]\n readonly swatches?: readonly { readonly color: string; readonly name: string }[]\n readonly note?: string\n /** A picture of the real thing the card is about, with its author and licence: the host shows it on the card, linked to `page`. */\n readonly image?: { readonly url: string; readonly alt: string; readonly credit?: string; readonly page?: string }\n /** A strip of named segments (seconds), with tick marks and a playhead that follows the module metric `metric`. */\n readonly timeline?: {\n readonly segments: readonly { readonly name: string; readonly start: number; readonly end: number; readonly color: string }[]\n readonly ticks: readonly number[]\n readonly metric: string\n }\n}\n\nexport interface BenchReport {\n readonly ok: boolean\n readonly problems: readonly string[]\n}\n\nexport interface BenchDeclaration {\n readonly controls?: readonly ModuleControl[]\n readonly layers?: readonly ModuleLayer[]\n readonly metrics?: readonly ModuleMetric[]\n}\n\nconst SNAKE_CASE = /^[a-z][a-z0-9_]*$/\nconst finite = (n: unknown): n is number => typeof n === 'number' && Number.isFinite(n)\n\nfunction checkControl(control: ModuleControl, problems: string[]): void {\n const label = `control \"${control.id}\"`\n if (control.kind === 'number') {\n if (!finite(control.min) || !finite(control.max) || control.min >= control.max) problems.push(`${label} needs min < max`)\n if (control.step !== undefined && !(finite(control.step) && control.step > 0)) problems.push(`${label} needs a step > 0`)\n if (!finite(control.default) || control.default < control.min || control.default > control.max) problems.push(`${label} default ${String(control.default)} is outside ${control.min}..${control.max}`)\n return\n }\n if (control.kind !== 'choice') return\n if (control.options.length === 0) {\n problems.push(`${label} needs at least one option`)\n return\n }\n const seen = new Set<string>()\n const groups = new Set<string>()\n let previousGroup: string | undefined\n for (const option of control.options) {\n if (seen.has(option.id)) problems.push(`${label} repeats option \"${option.id}\"`)\n seen.add(option.id)\n if (option.group !== undefined && (typeof option.group !== 'string' || option.group === '')) problems.push(`${label} option \"${option.id}\" has an empty group`)\n else if (option.group !== undefined && option.group !== previousGroup && groups.has(option.group)) problems.push(`${label} group \"${option.group}\" is split: its options must be next to each other`)\n if (typeof option.group === 'string' && option.group !== '') groups.add(option.group)\n previousGroup = option.group\n }\n if (!seen.has(control.default)) problems.push(`${label} default \"${control.default}\" is not among its options`)\n}\n\n/** snake_case ids unique across controls, layers and metrics; min < max; step > 0; default in range; options non-empty, unique, default among them, each group in one run; metric max > 0. */\nexport function checkBench(declared: BenchDeclaration): BenchReport {\n const problems: string[] = []\n const ids = new Set<string>()\n const claim = (kind: string, id: string): void => {\n if (!SNAKE_CASE.test(id)) problems.push(`${kind} id \"${id}\" must be snake_case`)\n if (ids.has(id)) problems.push(`duplicate id \"${id}\" across controls, layers and metrics`)\n ids.add(id)\n }\n for (const control of declared.controls ?? []) {\n claim('control', control.id)\n checkControl(control, problems)\n }\n for (const layer of declared.layers ?? []) claim('layer', layer.id)\n for (const metric of declared.metrics ?? []) {\n claim('metric', metric.id)\n if (metric.max !== undefined && !(finite(metric.max) && metric.max > 0)) problems.push(`metric \"${metric.id}\" needs a max > 0`)\n }\n return { ok: problems.length === 0, problems }\n}\n","/** The weather, light and ground as the world is right now. Written by whoever drives the weather, read by whoever reacts to it. */\nexport interface EnvironmentState {\n /** Rain in mm/h; 0 is dry. */\n readonly rain: number\n /** Wind in m/s along x and z, and its strength (the length of that vector). */\n readonly windX: number\n readonly windZ: number\n readonly windSpeed: number\n /** Strongest gust in m/s. */\n readonly gust: number\n /** Render fog far distance in metres. */\n readonly fogFar: number\n /** How far one can see for gameplay, in metres (not the render fog). */\n readonly visibility: number\n /** 0 is full daylight, 1 is the darkest night. */\n readonly nightFactor: number\n readonly temperatureC: number\n /** Wet ground, 0..1: rises with rain and dries after it stops. */\n readonly wetness: number\n}\n\nexport type EnvironmentKey = keyof EnvironmentState\n\n/** A calm dry day (the normal world, before anything went wrong). */\nexport const DEFAULT_ENVIRONMENT: EnvironmentState = {\n rain: 0,\n windX: 0,\n windZ: 0,\n windSpeed: 0,\n gust: 0,\n fogFar: 220,\n visibility: 220,\n nightFactor: 0,\n temperatureC: 20,\n wetness: 0,\n}\n\n/** The host's environment (`ModuleHost.environment`): a store the weather module writes to and the others read. */\nexport interface EnvironmentBus {\n get(): EnvironmentState\n /** Merges `patch` into the state; listeners hear it only when a value really changed. */\n set(patch: Partial<EnvironmentState>): void\n /** Hears every change with the keys that changed. Returns the unsubscribe function. */\n on(listener: (state: EnvironmentState, changed: readonly EnvironmentKey[]) => void): () => void\n}\n\n/** A plain store that implements the bus; the test room and tests use it, a game may bring its own. */\nexport function createEnvironmentBus(initial: Partial<EnvironmentState> = {}): EnvironmentBus {\n let state: EnvironmentState = { ...DEFAULT_ENVIRONMENT, ...initial }\n const listeners = new Set<(state: EnvironmentState, changed: readonly EnvironmentKey[]) => void>()\n return {\n get: () => state,\n set(patch) {\n const changed = (Object.keys(patch) as EnvironmentKey[]).filter((key) => patch[key] !== undefined && patch[key] !== state[key])\n if (changed.length === 0) return\n const next = { ...state } as { -readonly [Key in EnvironmentKey]: number }\n for (const key of changed) next[key] = patch[key] as number\n state = next\n for (const listener of [...listeners]) listener(state, changed)\n },\n on(listener) {\n listeners.add(listener)\n return () => void listeners.delete(listener)\n },\n }\n}\n","import { applyPatches, deepMerge, mergeById, removeIds } from './registry'\nimport type { DeepPartial } from './registry'\n\n/** One category (kind) of items. Defaults and required contracts are inherited from the `extends` chain. */\nexport interface CategoryDef<TDefaults extends object = Record<string, unknown>> {\n readonly id: string\n /** Parent category id; the child inherits its defaults and its required contracts. */\n readonly extends?: string\n /** Field values every entry of this kind starts with; objects merge down the chain, arrays replace. */\n readonly defaults?: DeepPartial<TDefaults>\n /** Contract ids (`ContractChecker.id`) every entry of this kind, or of a descendant, must satisfy. */\n readonly requires?: readonly string[]\n /** An abstract category only groups: entries cannot declare it directly, only its descendants. */\n readonly abstract?: boolean\n}\n\n/** Where a checker is being run: the entry's kind and the chain of categories root first. */\nexport interface ContractContext {\n readonly kind: string\n readonly chain: readonly string[]\n}\n\n/** A named contract: returns the problems of an entry, each a short phrase like `missing leftover.despawnSeconds`. Empty means it holds. */\nexport interface ContractChecker<TEntry> {\n readonly id: string\n check(entry: TEntry, ctx: ContractContext): string[]\n}\n\nexport interface CategoryOptions {\n /** Categories added to the shipped ones; the same id replaces. */\n readonly extra?: readonly CategoryDef[]\n /** Partial changes by id, applied after `extra`. */\n readonly patches?: Readonly<Record<string, DeepPartial<CategoryDef> | Partial<CategoryDef>>>\n /** Ids taken out of the tree (their children are then reported by `check()`). */\n readonly remove?: readonly string[]\n}\n\nexport interface CategoryRegistry {\n get(id: string): CategoryDef | undefined\n has(id: string): boolean\n ids(): string[]\n /** Root first, ending at `id`. Throws on an unknown id, an unknown parent or a cycle. */\n chain(id: string): string[]\n /** `defaults` merged along the chain, root first, so the closest category wins. */\n defaults(id: string): Record<string, unknown>\n /** Union of `requires` along the chain, order kept, without duplicates. */\n requires(id: string): string[]\n /** True when `id` is `ancestorId` or descends from it. */\n isA(id: string, ancestorId: string): boolean\n /** Problems in the tree itself: duplicate ids, unknown `extends`, cycles. */\n check(): string[]\n}\n\nexport interface CategorizedOptions {\n /** Field of the entry that names its category. Default `kind`. */\n readonly kindField?: string\n /** Known gaps by entry id: problems starting with one of these texts go to `allowed`, so the list can shrink over time. */\n readonly allow?: Readonly<Record<string, readonly string[]>>\n}\n\nexport interface CategorizedReport {\n readonly ok: boolean\n readonly problems: string[]\n readonly allowed: string[]\n}\n\nexport const defineCategories = (defs: readonly CategoryDef[], options: CategoryOptions = {}): CategoryRegistry => {\n const problems: string[] = []\n const duplicates = (list: readonly CategoryDef[]): void => {\n const ids = new Set<string>()\n for (const def of list) {\n if (ids.has(def.id)) problems.push(`duplicate category \"${def.id}\"`)\n ids.add(def.id)\n }\n }\n duplicates(defs)\n duplicates(options.extra ?? [])\n\n const entries = mergeById(defs, options.extra)\n applyPatches(entries, options.patches)\n removeIds(entries, options.remove)\n\n const chain = (id: string): string[] => {\n const path: string[] = []\n let current: string | undefined = id\n while (current !== undefined) {\n const def = entries.get(current)\n if (!def) throw new Error(path.length === 0 ? `unknown category \"${current}\"` : `category \"${path[0]}\" has unknown parent \"${current}\"`)\n if (path.includes(current)) throw new Error(`category cycle: ${[...path, current].reverse().join(' -> ')}`)\n path.push(current)\n current = def.extends\n }\n return path.reverse()\n }\n\n const registry: CategoryRegistry = {\n get: (id) => entries.get(id),\n has: (id) => entries.has(id),\n ids: () => [...entries.keys()],\n chain,\n defaults: (id) => chain(id).reduce<Record<string, unknown>>((acc, ancestor) => deepMerge(acc, entries.get(ancestor)?.defaults), {}),\n requires: (id) => {\n const out: string[] = []\n for (const ancestor of chain(id)) for (const contract of entries.get(ancestor)?.requires ?? []) if (!out.includes(contract)) out.push(contract)\n return out\n },\n isA: (id, ancestorId) => {\n try {\n return chain(id).includes(ancestorId)\n } catch {\n return false\n }\n },\n check: () => {\n const found = [...problems]\n for (const [id, def] of entries) {\n if (def.extends !== undefined && !entries.has(def.extends)) found.push(`category \"${id}\" extends unknown \"${def.extends}\"`)\n else {\n try {\n chain(id)\n } catch (error) {\n const message = (error as Error).message\n // The same cycle is found from each of its members; the dedupe keeps one line per distinct message.\n if (message.startsWith('category cycle') && !found.includes(message)) found.push(message)\n }\n }\n }\n return found\n },\n }\n return registry\n}\n\n/** The entry with the defaults of its category underneath: the entry wins, objects merge, arrays replace. */\nexport const resolveEntry = <TEntry extends object>(registry: CategoryRegistry, entry: TEntry, kindField = 'kind'): TEntry =>\n deepMerge(registry.defaults(String((entry as Record<string, unknown>)[kindField])) as TEntry, entry)\n\n/** Checks that each entry has a known, concrete kind and satisfies every contract its chain requires. */\nexport const checkCategorized = <TEntry extends { readonly id: string }>(\n entries: readonly TEntry[],\n registry: CategoryRegistry,\n checkers: readonly ContractChecker<TEntry>[],\n options: CategorizedOptions = {},\n): CategorizedReport => {\n const kindField = options.kindField ?? 'kind'\n const byId = new Map(checkers.map((checker) => [checker.id, checker]))\n const problems: string[] = [...registry.check()]\n const allowed: string[] = []\n\n for (const entry of entries) {\n const kind = String((entry as Record<string, unknown>)[kindField])\n if (!registry.has(kind)) {\n problems.push(`\"${entry.id}\" has unknown kind \"${kind}\"`)\n continue\n }\n if (registry.get(kind)?.abstract) {\n problems.push(`\"${entry.id}\" has abstract kind \"${kind}\"`)\n continue\n }\n let path: string[]\n try {\n path = registry.chain(kind)\n } catch (error) {\n problems.push(`\"${entry.id}\" (${kind}): ${(error as Error).message}`)\n continue\n }\n const resolved = resolveEntry(registry, entry, kindField)\n for (const contract of registry.requires(kind)) {\n const owner = path.find((ancestor) => registry.get(ancestor)?.requires?.includes(contract)) ?? kind\n const checker = byId.get(contract)\n if (!checker) {\n problems.push(`kind \"${kind}\" requires contract \"${contract}\" but no checker is registered`)\n continue\n }\n const prefix = `\"${entry.id}\" (${kind}): `\n for (const problem of checker.check(resolved, { kind, chain: path })) {\n const text = `${prefix}${problem}, required by ${owner}`\n if ((options.allow?.[entry.id] ?? []).some((start) => problem.startsWith(start))) allowed.push(text)\n else problems.push(text)\n }\n }\n }\n return { ok: problems.length === 0, problems: [...new Set(problems)], allowed }\n}\n","/**\n * Where a drawn object comes from. Every builder of the kit that draws a piece (a car of the fleet, a house or a wall, a piece of furniture, a person, an\n * animal, a plant, an item, a weapon) marks the root it returns, and every renderer that draws for the room (effects, debris, liquids, the room itself)\n * marks its own roots, so a host can tell a piece of the kit from something drawn on the spot. Duck-typed on three.js objects (`userData`, `parent`,\n * `children`), so the contracts stay free of three.js.\n */\nexport const KIT_ORIGIN_KEY = 'kitOrigin'\n\n/** What drew an object: the package and the kind of piece (`vehicle`, `structure`, `furniture`, `person`... or `effect`, `room` for what is not a piece). */\nexport interface KitOrigin {\n readonly owner: string\n readonly kind: string\n /** The catalogue id of the piece, when it has one. */\n readonly id?: string\n /** Drawn as a simple stand-in shape because the kit has no model of the piece yet (an item with no team model): a model still to make. */\n readonly standIn?: boolean\n}\n\ninterface Node {\n userData?: Record<string, unknown>\n parent?: Node | null\n children?: readonly Node[]\n name?: string\n visible?: boolean\n isMesh?: boolean\n isPoints?: boolean\n isLine?: boolean\n isSprite?: boolean\n}\n\n/** Marks `object` as drawn by `origin.owner` and returns it. */\nexport function markKitOrigin<T>(object: T, origin: KitOrigin): T {\n const node = object as unknown as Node\n node.userData = node.userData ?? {}\n node.userData[KIT_ORIGIN_KEY] = { ...origin }\n return object\n}\n\n/** The origin of the object or of its nearest marked ancestor; null when nothing up the tree is marked. */\nexport function kitOriginOf(object: unknown): KitOrigin | null {\n for (let node = object as Node | null | undefined; node; node = node.parent) {\n const origin = node.userData?.[KIT_ORIGIN_KEY] as KitOrigin | undefined\n if (origin && typeof origin.owner === 'string') return origin\n }\n return null\n}\n\n/** A drawn thing that no builder of the kit marked: what was drawn on the spot. */\nexport interface UnmarkedDrawing {\n /** The names of the object and its named ancestors, outermost first. */\n readonly path: string\n readonly object: unknown\n}\n\n/** Every visible mesh, line, point cloud or sprite under `root` with no marked ancestor (`root` itself not counted as one). */\nexport function unmarkedDrawings(root: unknown): UnmarkedDrawing[] {\n const out: UnmarkedDrawing[] = []\n const pathOf = (node: Node): string => {\n const names: string[] = []\n for (let n: Node | null | undefined = node; n && n !== root; n = n.parent) if (n.name) names.push(n.name)\n return names.reverse().join(' > ') || '(no name)'\n }\n const walk = (node: Node, marked: boolean): void => {\n if (node.visible === false) return\n const here = marked || (node !== root && Boolean((node.userData?.[KIT_ORIGIN_KEY] as KitOrigin | undefined)?.owner))\n if (!here && (node.isMesh || node.isPoints || node.isLine || node.isSprite)) out.push({ path: pathOf(node), object: node })\n for (const child of node.children ?? []) walk(child, here)\n }\n walk(root as Node, false)\n return out\n}\n","/** A floor rectangle in an object's own space, metres (x across, z along). */\nexport interface Footprint {\n readonly minX: number\n readonly maxX: number\n readonly minZ: number\n readonly maxZ: number\n}\n\n/** What `footprintBlocker` reads of an object: its world matrix (three.js `Object3D`, duck-typed so the contracts stay free of three.js). */\nexport interface FootprintObject {\n readonly matrixWorld: { readonly elements: ArrayLike<number> }\n readonly parent?: unknown\n updateWorldMatrix?(updateParents: boolean, updateChildren: boolean): void\n}\n\n/**\n * The `ModuleHost.addBlocker` function of a solid object standing on the floor: the walking player stays out of `footprint`, a rectangle in the object's own space,\n * so the object blocks turned with it and follows it when it moves. An object out of the scene (no parent) blocks nothing.\n */\nexport function footprintBlocker(object: FootprintObject | (() => FootprintObject | null | undefined), footprint: Footprint | (() => Footprint | null | undefined)): (x: number, z: number, radius: number) => boolean {\n return (x, z, radius) => {\n const o = typeof object === 'function' ? object() : object\n const fp = typeof footprint === 'function' ? footprint() : footprint\n if (!o || !fp || !o.parent) return false\n o.updateWorldMatrix?.(true, false)\n const e = o.matrixWorld.elements\n // the world point in the object's own floor axes: its x and z columns are at right angles, so a projection on each (over its squared length, for a scale) inverts the matrix\n const dx = x - (e[12] as number)\n const dz = z - (e[14] as number)\n const ax = (e[0] as number) ** 2 + (e[1] as number) ** 2 + (e[2] as number) ** 2\n const az = (e[8] as number) ** 2 + (e[9] as number) ** 2 + (e[10] as number) ** 2\n const lx = (dx * (e[0] as number) + dz * (e[2] as number)) / (ax || 1)\n const lz = (dx * (e[8] as number) + dz * (e[10] as number)) / (az || 1)\n return lx > fp.minX - radius && lx < fp.maxX + radius && lz > fp.minZ - radius && lz < fp.maxZ + radius\n }\n}\n","/**\n * The sounds of a body (footsteps, jumps, landings, blows, hurt), as ids every package agrees on: the rule that knows what the body did\n * (`game-player`, a host's own player) names the sound, and the bank that knows how it sounds (`game-audio`'s `BODY_FOLEY_BANK`) answers it.\n * A game swaps the sound of an id (a sample instead of the synthesis) without touching the rule.\n */\n\n/** What the feet touch, by how it sounds (not by what it is made of: a wooden floor and a plywood board both sound `wood`). */\nexport const SURFACE_IDS = ['concrete', 'asphalt', 'wood', 'tile', 'dirt', 'grass', 'gravel', 'sand', 'metal', 'water', 'glass', 'carpet'] as const\nexport type SurfaceId = (typeof SURFACE_IDS)[number]\n\n/** The surface a body stands on when nobody says (the test room's floor is a concrete slab). */\nexport const DEFAULT_SURFACE: SurfaceId = 'concrete'\n\n/** How the feet move: a run hits harder and shorter; a crouched step is the walk, quieter. */\nexport const GAIT_IDS = ['walk', 'run'] as const\nexport type GaitId = (typeof GAIT_IDS)[number]\n\n/** How hard a landing is: `light` for a jump on the spot or a step down (up to about 5 m/s), `heavy` for a drop of more than a metre and a half. */\nexport const LANDING_IDS = ['light', 'heavy'] as const\nexport type LandingId = (typeof LANDING_IDS)[number]\n\n/** The fall speed (m/s) from which a landing is `heavy`. */\nexport const HEAVY_LANDING_SPEED = 5.5\n\nexport type FootstepSoundId = `footstep_${SurfaceId}_${GaitId}`\nexport type LandSoundId = `land_${SurfaceId}_${LandingId}`\n\n/**\n * How a blow is struck, by the body part or the tool that does it. `blade` stabs or slashes, `blunt` is a club, a bat, a pipe or a hammer, `chop` an\n * axe or a machete driven down.\n */\nexport const BLOW_IDS = ['punch', 'kick', 'shove', 'blade', 'blunt', 'chop'] as const\nexport type BlowId = (typeof BLOW_IDS)[number]\n\n/** What the blow meets: a body (flesh and bone, the head apart), something else (the material answers with its own impact), or nothing. */\nexport type BlowTarget = 'body' | 'head' | 'object' | 'air'\n\n/** The sounds of the body that are not a footstep or a landing. */\nexport const BODY_SOUND_IDS = [\n 'jump',\n 'cloth_rustle',\n 'body_fall',\n 'fall_damage',\n 'player_hurt',\n 'player_breath_run',\n 'player_death',\n 'bite',\n 'grab',\n 'punch_swing',\n 'punch_hit_body',\n 'punch_hit_face',\n 'punch_hit_object',\n 'kick_swing',\n 'kick_hit',\n 'kick_hit_object',\n 'shove_two_hands',\n 'knife_swing',\n 'knife_stab',\n 'knife_slash',\n 'knife_hit_object',\n 'blunt_swing',\n 'blunt_hit',\n 'blunt_hit_object',\n 'axe_swing',\n 'axe_chop',\n 'axe_hit_object',\n] as const\nexport type BodySoundId = (typeof BODY_SOUND_IDS)[number]\n\n/** Every sound of a body: what a host plays for the player, a survivor or a zombie. */\nexport type BodyFoleyId = FootstepSoundId | LandSoundId | BodySoundId\n\nexport const footstepSoundId = (surface: SurfaceId, gait: GaitId): FootstepSoundId => `footstep_${surface}_${gait}`\nexport const landSoundId = (surface: SurfaceId, fallSpeed: number): LandSoundId => `land_${surface}_${fallSpeed >= HEAVY_LANDING_SPEED ? 'heavy' : 'light'}`\n\n/** Every footstep and landing id, in the order of the surfaces. */\nexport const FOOTSTEP_SOUND_IDS: readonly FootstepSoundId[] = SURFACE_IDS.flatMap((surface) => GAIT_IDS.map((gait) => footstepSoundId(surface, gait)))\nexport const LAND_SOUND_IDS: readonly LandSoundId[] = SURFACE_IDS.flatMap((surface) => LANDING_IDS.map((landing): LandSoundId => `land_${surface}_${landing}`))\nexport const BODY_FOLEY_IDS: readonly BodyFoleyId[] = [...FOOTSTEP_SOUND_IDS, ...LAND_SOUND_IDS, ...BODY_SOUND_IDS]\n\nconst SWING: Readonly<Record<BlowId, BodySoundId | null>> = {\n punch: 'punch_swing',\n kick: 'kick_swing',\n // two hands pushed out do not whistle: the shove is one sound, at the contact\n shove: null,\n blade: 'knife_swing',\n blunt: 'blunt_swing',\n chop: 'axe_swing',\n}\n\n/**\n * Seconds from the start of a swing's sound to its loudest point (the limb or the tool at full speed, just before the contact). A host that knows when the\n * blow lands starts the swing this long before; one that does not plays the swing now and the hit this long after.\n */\nexport const SWING_LEAD_SECONDS: Readonly<Record<BlowId, number>> = { punch: 0.07, kick: 0.09, shove: 0, blade: 0.05, blunt: 0.1, chop: 0.11 }\n\n/** The swing through the air, played as the blow starts (`null`: the blow has none). */\nexport const swingSoundId = (blow: BlowId): BodySoundId | null => SWING[blow]\n\nconst HIT: Readonly<Record<BlowId, Readonly<Record<Exclude<BlowTarget, 'air'>, BodySoundId>>>> = {\n punch: { body: 'punch_hit_body', head: 'punch_hit_face', object: 'punch_hit_object' },\n kick: { body: 'kick_hit', head: 'kick_hit', object: 'kick_hit_object' },\n shove: { body: 'shove_two_hands', head: 'shove_two_hands', object: 'shove_two_hands' },\n blade: { body: 'knife_stab', head: 'knife_stab', object: 'knife_hit_object' },\n blunt: { body: 'blunt_hit', head: 'blunt_hit', object: 'blunt_hit_object' },\n chop: { body: 'axe_chop', head: 'axe_chop', object: 'axe_hit_object' },\n}\n\n/**\n * The body's side of a blow that lands: the knuckles, the shoe, the blade or the club meeting what it hit. On an object the material's own impact\n * plays too (the wood, the metal); this is the part that says it was a punch and not a shot.\n */\nexport const hitSoundId = (blow: BlowId, target: Exclude<BlowTarget, 'air'>): BodySoundId => HIT[blow][target]\n\n/**\n * The surface a material sounds like underfoot, by the material ids of `game-destruction` and `game-terrain` (unknown ids: `fallback`). Data, so\n * a game with its own materials passes its own table to `surfaceOfMaterial`.\n */\nexport const MATERIAL_SURFACES: Readonly<Record<string, SurfaceId>> = {\n concrete: 'concrete',\n mortar: 'concrete',\n stone: 'concrete',\n brick: 'concrete',\n cobble: 'concrete',\n paver: 'concrete',\n plaster: 'concrete',\n asphalt: 'asphalt',\n wood_soft: 'wood',\n wood_hard: 'wood',\n green_wood: 'wood',\n plywood: 'wood',\n mdf: 'wood',\n ceramic: 'tile',\n plastic: 'tile',\n soil: 'dirt',\n mud: 'dirt',\n clay: 'dirt',\n wax: 'dirt',\n flesh_fruit: 'dirt',\n turf: 'grass',\n foliage: 'grass',\n cactus: 'grass',\n gravel: 'gravel',\n sand: 'sand',\n // no snow surface yet: packed snow crunches closest to sand underfoot\n snow: 'sand',\n steel: 'metal',\n cast_iron: 'metal',\n aluminium: 'metal',\n copper: 'metal',\n water: 'water',\n glass: 'glass',\n tempered_glass: 'glass',\n fabric: 'carpet',\n foam: 'carpet',\n leather: 'carpet',\n rubber: 'carpet',\n paper: 'carpet',\n}\n\nexport const isSurfaceId = (value: unknown): value is SurfaceId => typeof value === 'string' && (SURFACE_IDS as readonly string[]).includes(value)\n\n/** The surface of a material id; a surface id passes through. */\nexport function surfaceOfMaterial(material: string | undefined, table: Readonly<Record<string, SurfaceId>> = MATERIAL_SURFACES, fallback: SurfaceId = DEFAULT_SURFACE): SurfaceId {\n if (material === undefined) return fallback\n if (isSurfaceId(material)) return material\n return table[material] ?? fallback\n}\n","/**\n * @adatechnology/game-contracts: the contracts every game module (vehicles, furniture, plants, houses, weapons) depends on, and nothing else.\n * Types plus tiny pure checkers, no runtime dependencies. The default destruction world, the renderers and the test room are optional.\n */\nexport type {\n ChainDelay,\n Crack,\n DamageStage,\n DamageType,\n DebrisKind,\n Dent,\n DestructibleSpec,\n BlastOptions,\n BlastReport,\n ConfinementOptions,\n ExplosionChain,\n FragmentHitOptions,\n ShelterOptions,\n DestructionEvent,\n DestructionEventType,\n FluidKind,\n Fragment,\n FragmentMark,\n FractureStyle,\n BallisticExtras,\n Hit,\n HitIgnition,\n HitResult,\n Hole,\n JointKind,\n JointSpec,\n JointState,\n MaterialId,\n ObjectState,\n PartAperture,\n PartShape,\n PartSpec,\n PartBreach,\n PartState,\n PartStatus,\n PartUnits,\n Quat,\n RayHit,\n Reinforcement,\n TensionRebar,\n TunedMassDamper,\n WindExposure,\n WindState,\n PileSpec,\n GroundLoss,\n PartSettlement,\n SoilLayer,\n SoilProfile,\n SoilState,\n StructureRole,\n SurfaceLayer,\n ToolKind,\n Vec3,\n} from './destruction'\nexport type { BusyOptions, BusySink, BusyTask } from './busy'\nexport { blastShove, DEFAULT_BLAST_SHOVE } from './blast-shove'\nexport { bodyMass, FRAGMENT_COVER, KNOCK_CHEST, KNOCK_DOWN_SPEED, KNOCKED_DOWN_ANGLE, knockOf, launchBody, stepKnock, takeLaunch } from './blast-knock'\nexport { blastBodySpeed, bodyImpulse, DEFAULT_BLAST_IMPULSE, sideOnImpulse, sideOnOverpressure } from './blast-impulse'\nexport type { BlastImpulseOptions } from './blast-impulse'\nexport type { Knock } from './blast-knock'\nexport type { BlastShove, BlastShoveOptions, BlastSource } from './blast-shove'\nexport { IMPACT_CONTRACT, checkDestructible, checkHit } from './impact'\nexport type { CheckOptions, DestructibleImpl, ImpactContract, SurfaceRay, SurfaceRayHit } from './impact'\nexport type { CostOptions } from './impact-cost'\nexport { MISSING_BITS } from './body'\nexport type { BodyRegion, BodySlot, SegmentKind } from './body'\nexport { checkSpec } from './spec'\nexport type { CheckSpecOptions, SpecReport } from './spec'\nexport { shotToHit, shotExtras, useToHit } from './weapons'\nexport { DEFAULT_IGNITION_RULES, fillFactor, ignitionChance, resolveIgnitionRules, sparkTargetFactor } from './ignition'\nexport type { IgnitionRules } from './ignition'\nexport type { Shot, Use } from './weapons'\nexport type { ContainerSpec, ItemUseDef, LiquidId } from './fluids'\nexport { sealBlock, sealOpener } from './seal'\nexport type { SealBlock, SealSpec, SealState } from './seal'\nexport type { HandPose, HandTargetSource, HandTargets, MuzzlePose, MuzzleSource, ToolHand } from './hands'\nexport { FIRST_PERSON_LAYER } from './hands'\nexport { TWIST_LIFT, twistStroke } from './twist'\nexport type { TwistOptions, TwistStroke } from './twist'\nexport type { EffectHandle, EffectPose, EffectRequest, EffectSink, Enclosure, EnclosureBox } from './effects'\nexport type { WarmUpProbes } from './warm-up'\nexport { checkAnimation } from './animation'\nexport type { AnimationClipSpec, AnimationEventSpec, AnimationKey, AnimationPose, ItemAnimationContract } from './animation'\nexport { STAGE_EVENT, TOOL_CLIP, checkToolClips, createToolClipPlayer, leadClipEvents, sampleClip, scaleClip, toolAnimationStep } from './tool-animation'\nexport type { ToolAnimationStep, ToolAnimator, ToolClipId, ToolClipPlayer, ToolClipPlayerOptions, ToolClipSet, ToolRig } from './tool-animation'\nexport { DEFERRED_PRIORITY, DEFERRED_QUEUE_ID, FRAME_PHASES, checkDeferredQueue } from './frame'\nexport type { DeferredQueue, DeferredQueueOptions, DeferredQueueReport, FramePhase } from './frame'\nexport type { FrameOptions, AreaPlacement, GroundLayout, GroundZone, HostEvent, HostGraphics, HostTool, HostToolAttachment, CornerImage, ModuleArea, ModuleHost, HostMovable, HostShove, ModuleView, ModuleItemFluid, ModuleItemSeal, ModuleScenario, PlayerState, ItemSeat, ItemSounds, TestableItem, TestableModule, Thumbnail, ToolCommand, ToolCommandResult, HostReach } from './module'\nexport { applyPatches, deepMerge, mergeById, removeIds } from './registry'\nexport type { DeepPartial } from './registry'\nimport { resetWarnOnce as resetWarnOnceForTests } from './warn'\n\nexport { warnOnce } from './warn'\n/** @deprecated Import it from `@adatechnology/game-contracts/testing`. */\nexport const resetWarnOnce = resetWarnOnceForTests\nexport { checkBench } from './bench'\nexport type {\n ActionControl,\n BenchChange,\n BenchDeclaration,\n BenchReport,\n BenchSheet,\n BooleanControl,\n ChoiceControl,\n ChoiceOption,\n ControlPatch,\n ControlValue,\n ModuleBench,\n ModuleControl,\n ModuleLayer,\n ModuleMetric,\n NumberControl,\n} from './bench'\nexport type { AudioListener, AudioSink, LoopHandle, SoundHandle, SoundRequest } from './audio'\nexport { DEFAULT_ENVIRONMENT, createEnvironmentBus } from './environment'\nexport type { EnvironmentBus, EnvironmentKey, EnvironmentState } from './environment'\nexport { checkCategorized, defineCategories, resolveEntry } from './categories'\nexport type { CategorizedOptions, CategorizedReport, CategoryDef, CategoryOptions, CategoryRegistry, ContractChecker, ContractContext } from './categories'\nexport { KIT_ORIGIN_KEY, kitOriginOf, markKitOrigin, unmarkedDrawings } from './origin'\nexport type { KitOrigin, UnmarkedDrawing } from './origin'\nexport { footprintBlocker } from './footprint'\nexport type { Footprint, FootprintObject } from './footprint'\nexport {\n BLOW_IDS,\n BODY_FOLEY_IDS,\n BODY_SOUND_IDS,\n DEFAULT_SURFACE,\n FOOTSTEP_SOUND_IDS,\n GAIT_IDS,\n HEAVY_LANDING_SPEED,\n LANDING_IDS,\n LAND_SOUND_IDS,\n MATERIAL_SURFACES,\n SURFACE_IDS,\n SWING_LEAD_SECONDS,\n footstepSoundId,\n hitSoundId,\n isSurfaceId,\n landSoundId,\n surfaceOfMaterial,\n swingSoundId,\n} from './foley'\nexport type { BlowId, BlowTarget, BodyFoleyId, BodySoundId, FootstepSoundId, GaitId, LandSoundId, LandingId, SurfaceId } from './foley'\n","[\n {\n \"id\": \"hand\",\n \"name\": \"Hand\",\n \"category\": \"hand\",\n \"action\": {\n \"kind\": \"hand\",\n \"reach\": 2\n },\n \"mass\": 0,\n \"tags\": [\n \"grab\"\n ]\n },\n {\n \"id\": \"kick\",\n \"name\": \"Kick\",\n \"category\": \"melee_blunt\",\n \"action\": {\n \"kind\": \"melee\",\n \"damage\": \"blunt\",\n \"energy\": 250,\n \"radius\": 0.08,\n \"reach\": 1.1,\n \"rpm\": 60,\n \"noise\": 8\n },\n \"mass\": 0\n },\n {\n \"id\": \"shove\",\n \"name\": \"Shove\",\n \"category\": \"melee_blunt\",\n \"action\": {\n \"kind\": \"melee\",\n \"damage\": \"blunt\",\n \"energy\": 80,\n \"radius\": 0.1,\n \"reach\": 1.5,\n \"rpm\": 90,\n \"noise\": 5\n },\n \"mass\": 0\n },\n {\n \"id\": \"pistol_9mm\",\n \"name\": \"9 mm service pistol\",\n \"category\": \"pistol\",\n \"action\": {\n \"kind\": \"firearm\",\n \"caliber\": \"9x19\",\n \"rpm\": 300,\n \"modes\": [\n \"semi\"\n ],\n \"magazine\": 15,\n \"reload\": 2,\n \"barrel\": 1,\n \"spreadDeg\": 1,\n \"bloomDeg\": 0.6,\n \"recoveryDegPerS\": 4,\n \"recoil\": [\n 1.2,\n 0.4\n ],\n \"range\": 50\n },\n \"mass\": 0.9,\n \"tags\": [\n \"sidearm\"\n ]\n },\n {\n \"id\": \"pistol_45\",\n \"name\": \".45 ACP pistol\",\n \"category\": \"pistol\",\n \"action\": {\n \"kind\": \"firearm\",\n \"caliber\": \"45acp\",\n \"rpm\": 280,\n \"modes\": [\n \"semi\"\n ],\n \"magazine\": 8,\n \"reload\": 2.2,\n \"barrel\": 1,\n \"spreadDeg\": 1.1,\n \"bloomDeg\": 0.8,\n \"recoveryDegPerS\": 4,\n \"recoil\": [\n 1.8,\n 0.6\n ],\n \"range\": 50\n },\n \"mass\": 1.1,\n \"tags\": [\n \"sidearm\"\n ]\n },\n {\n \"id\": \"pistol_22\",\n \"name\": \".22 LR pistol\",\n \"category\": \"pistol\",\n \"action\": {\n \"kind\": \"firearm\",\n \"caliber\": \"22lr\",\n \"rpm\": 360,\n \"modes\": [\n \"semi\"\n ],\n \"magazine\": 10,\n \"reload\": 1.8,\n \"barrel\": 1,\n \"spreadDeg\": 0.9,\n \"bloomDeg\": 0.3,\n \"recoveryDegPerS\": 5,\n \"recoil\": [\n 0.5,\n 0.2\n ],\n \"range\": 40\n },\n \"mass\": 0.7,\n \"tags\": [\n \"sidearm\"\n ]\n },\n {\n \"id\": \"revolver_357\",\n \"name\": \".357 Magnum revolver\",\n \"category\": \"revolver\",\n \"action\": {\n \"kind\": \"firearm\",\n \"caliber\": \"357mag\",\n \"rpm\": 150,\n \"modes\": [\n \"single\"\n ],\n \"magazine\": 6,\n \"reload\": 4,\n \"barrel\": 1.05,\n \"spreadDeg\": 0.8,\n \"bloomDeg\": 1,\n \"recoveryDegPerS\": 3,\n \"recoil\": [\n 3,\n 0.9\n ],\n \"range\": 60\n },\n \"mass\": 1.2,\n \"tags\": [\n \"sidearm\"\n ]\n },\n {\n \"id\": \"revolver_38\",\n \"name\": \".38 Special revolver\",\n \"category\": \"revolver\",\n \"action\": {\n \"kind\": \"firearm\",\n \"caliber\": \"38spl\",\n \"rpm\": 160,\n \"modes\": [\n \"single\"\n ],\n \"magazine\": 6,\n \"reload\": 3.8,\n \"barrel\": 0.95,\n \"spreadDeg\": 0.9,\n \"bloomDeg\": 0.7,\n \"recoveryDegPerS\": 3.5,\n \"recoil\": [\n 1.6,\n 0.5\n ],\n \"range\": 45\n },\n \"mass\": 0.9,\n \"tags\": [\n \"sidearm\"\n ]\n },\n {\n \"id\": \"smg_9mm\",\n \"name\": \"9 mm submachine gun\",\n \"category\": \"smg\",\n \"action\": {\n \"kind\": \"firearm\",\n \"caliber\": \"9x19\",\n \"rpm\": 800,\n \"modes\": [\n \"auto\",\n \"burst\",\n \"semi\"\n ],\n \"burst\": 3,\n \"magazine\": 30,\n \"reload\": 2.4,\n \"barrel\": 1.1,\n \"spreadDeg\": 1.5,\n \"bloomDeg\": 0.35,\n \"recoveryDegPerS\": 6,\n \"recoil\": [\n 0.9,\n 0.5\n ],\n \"range\": 80\n },\n \"mass\": 2.6,\n \"tags\": [\n \"automatic\"\n ]\n },\n {\n \"id\": \"carbine_22\",\n \"name\": \".22 LR carbine\",\n \"category\": \"carbine\",\n \"action\": {\n \"kind\": \"firearm\",\n \"caliber\": \"22lr\",\n \"rpm\": 300,\n \"modes\": [\n \"semi\"\n ],\n \"magazine\": 10,\n \"reload\": 2.2,\n \"barrel\": 1.4,\n \"spreadDeg\": 0.5,\n \"bloomDeg\": 0.15,\n \"recoveryDegPerS\": 5,\n \"recoil\": [\n 0.4,\n 0.15\n ],\n \"range\": 80\n },\n \"mass\": 2.4,\n \"tags\": [\n \"small_game\"\n ]\n },\n {\n \"id\": \"rifle_5_56\",\n \"name\": \"5.56 mm assault rifle\",\n \"category\": \"rifle\",\n \"action\": {\n \"kind\": \"firearm\",\n \"caliber\": \"5_56x45\",\n \"rpm\": 750,\n \"modes\": [\n \"auto\",\n \"burst\",\n \"semi\"\n ],\n \"burst\": 3,\n \"magazine\": 30,\n \"reload\": 2.5,\n \"barrel\": 1,\n \"spreadDeg\": 0.6,\n \"bloomDeg\": 0.25,\n \"recoveryDegPerS\": 5,\n \"recoil\": [\n 1,\n 0.6\n ],\n \"range\": 400\n },\n \"mass\": 3.4,\n \"tags\": [\n \"automatic\"\n ]\n },\n {\n \"id\": \"rifle_7_62x39\",\n \"name\": \"7.62×39 mm assault rifle\",\n \"category\": \"rifle\",\n \"action\": {\n \"kind\": \"firearm\",\n \"caliber\": \"7_62x39\",\n \"rpm\": 600,\n \"modes\": [\n \"auto\",\n \"semi\"\n ],\n \"magazine\": 30,\n \"reload\": 2.8,\n \"barrel\": 1,\n \"spreadDeg\": 0.8,\n \"bloomDeg\": 0.35,\n \"recoveryDegPerS\": 4.5,\n \"recoil\": [\n 1.5,\n 0.8\n ],\n \"range\": 350\n },\n \"mass\": 3.8,\n \"tags\": [\n \"automatic\"\n ]\n },\n {\n \"id\": \"rifle_bolt_308\",\n \"name\": \".308 bolt-action rifle\",\n \"category\": \"rifle\",\n \"action\": {\n \"kind\": \"firearm\",\n \"caliber\": \"7_62x51\",\n \"rpm\": 40,\n \"modes\": [\n \"bolt\"\n ],\n \"magazine\": 5,\n \"reload\": 3.5,\n \"barrel\": 1.05,\n \"spreadDeg\": 0.25,\n \"bloomDeg\": 0.3,\n \"recoveryDegPerS\": 3,\n \"recoil\": [\n 3,\n 0.5\n ],\n \"range\": 800\n },\n \"mass\": 4,\n \"tags\": [\n \"hunting\"\n ]\n },\n {\n \"id\": \"sniper_338\",\n \"name\": \".338 Lapua sniper rifle\",\n \"category\": \"sniper\",\n \"action\": {\n \"kind\": \"firearm\",\n \"caliber\": \"338lapua\",\n \"rpm\": 35,\n \"modes\": [\n \"bolt\"\n ],\n \"magazine\": 5,\n \"reload\": 4,\n \"barrel\": 1.05,\n \"spreadDeg\": 0.1,\n \"bloomDeg\": 0.3,\n \"recoveryDegPerS\": 2.5,\n \"recoil\": [\n 4.5,\n 0.7\n ],\n \"range\": 1500\n },\n \"mass\": 6.5,\n \"tags\": [\n \"long_range\"\n ]\n },\n {\n \"id\": \"anti_materiel_50\",\n \"name\": \".50 BMG anti-materiel rifle\",\n \"category\": \"sniper\",\n \"action\": {\n \"kind\": \"firearm\",\n \"caliber\": \"50bmg\",\n \"rpm\": 30,\n \"modes\": [\n \"semi\"\n ],\n \"magazine\": 10,\n \"reload\": 4.5,\n \"barrel\": 1.05,\n \"spreadDeg\": 0.15,\n \"bloomDeg\": 0.5,\n \"recoveryDegPerS\": 2,\n \"recoil\": [\n 7,\n 1.2\n ],\n \"range\": 1800\n },\n \"mass\": 12.5,\n \"tags\": [\n \"long_range\",\n \"heavy\"\n ]\n },\n {\n \"id\": \"shotgun_pump_12\",\n \"name\": \"12 gauge pump-action shotgun\",\n \"category\": \"shotgun\",\n \"action\": {\n \"kind\": \"firearm\",\n \"caliber\": \"12ga_00buck\",\n \"rpm\": 60,\n \"modes\": [\n \"pump\"\n ],\n \"magazine\": 6,\n \"reload\": 0.6,\n \"perRound\": true,\n \"family\": \"pump\",\n \"barrel\": 1,\n \"spreadDeg\": 1,\n \"bloomDeg\": 0.5,\n \"recoveryDegPerS\": 3,\n \"pelletSpreadDeg\": 3,\n \"recoil\": [\n 4,\n 1\n ],\n \"range\": 40\n },\n \"mass\": 3.2,\n \"tags\": [\n \"shotgun\"\n ]\n },\n {\n \"id\": \"shotgun_double_12\",\n \"name\": \"12 gauge double-barrel shotgun\",\n \"category\": \"shotgun\",\n \"action\": {\n \"kind\": \"firearm\",\n \"caliber\": \"12ga_00buck\",\n \"rpm\": 120,\n \"modes\": [\n \"break\"\n ],\n \"magazine\": 2,\n \"reload\": 3.5,\n \"barrel\": 1,\n \"spreadDeg\": 1,\n \"bloomDeg\": 0.5,\n \"recoveryDegPerS\": 3,\n \"pelletSpreadDeg\": 3,\n \"recoil\": [\n 4.5,\n 1.2\n ],\n \"range\": 35\n },\n \"mass\": 3,\n \"tags\": [\n \"shotgun\"\n ]\n },\n {\n \"id\": \"shotgun_semi_12\",\n \"name\": \"12 gauge semi-automatic shotgun\",\n \"category\": \"shotgun\",\n \"action\": {\n \"kind\": \"firearm\",\n \"caliber\": \"12ga_00buck\",\n \"rpm\": 180,\n \"modes\": [\n \"semi\"\n ],\n \"magazine\": 5,\n \"reload\": 0.7,\n \"perRound\": true,\n \"barrel\": 1,\n \"spreadDeg\": 1,\n \"bloomDeg\": 0.5,\n \"recoveryDegPerS\": 3,\n \"pelletSpreadDeg\": 3,\n \"recoil\": [\n 3.4,\n 1\n ],\n \"range\": 40\n },\n \"mass\": 3.4,\n \"tags\": [\n \"shotgun\"\n ]\n },\n {\n \"id\": \"bow_compound\",\n \"name\": \"Compound bow\",\n \"category\": \"bow\",\n \"action\": {\n \"kind\": \"firearm\",\n \"caliber\": \"arrow\",\n \"rpm\": 20,\n \"modes\": [\n \"single\"\n ],\n \"magazine\": 1,\n \"reload\": 1.5,\n \"barrel\": 1,\n \"spreadDeg\": 0.4,\n \"bloomDeg\": 0.4,\n \"recoveryDegPerS\": 2,\n \"recoil\": [\n 0.3,\n 0.1\n ],\n \"range\": 60\n },\n \"mass\": 1.8,\n \"tags\": [\n \"silent\"\n ]\n },\n {\n \"id\": \"crossbow\",\n \"name\": \"Crossbow\",\n \"category\": \"crossbow\",\n \"action\": {\n \"kind\": \"firearm\",\n \"caliber\": \"crossbow_bolt\",\n \"rpm\": 8,\n \"modes\": [\n \"single\"\n ],\n \"magazine\": 1,\n \"reload\": 4,\n \"barrel\": 1,\n \"spreadDeg\": 0.3,\n \"bloomDeg\": 0.3,\n \"recoveryDegPerS\": 2,\n \"recoil\": [\n 0.5,\n 0.1\n ],\n \"range\": 70\n },\n \"mass\": 3,\n \"tags\": [\n \"silent\"\n ]\n },\n {\n \"id\": \"hammer\",\n \"name\": \"Hammer\",\n \"category\": \"melee_blunt\",\n \"action\": {\n \"kind\": \"melee\",\n \"damage\": \"blunt\",\n \"energy\": 60,\n \"radius\": 0.08,\n \"reach\": 0.7,\n \"rpm\": 70,\n \"noise\": 6\n },\n \"mass\": 1\n },\n {\n \"id\": \"sledgehammer\",\n \"name\": \"Sledgehammer\",\n \"category\": \"melee_blunt\",\n \"action\": {\n \"kind\": \"melee\",\n \"damage\": \"blunt\",\n \"energy\": 300,\n \"radius\": 0.15,\n \"reach\": 1.1,\n \"rpm\": 30,\n \"noise\": 8\n },\n \"mass\": 5.5,\n \"tags\": [\n \"heavy\"\n ]\n },\n {\n \"id\": \"baseball_bat\",\n \"name\": \"Baseball bat\",\n \"category\": \"melee_blunt\",\n \"action\": {\n \"kind\": \"melee\",\n \"damage\": \"blunt\",\n \"energy\": 150,\n \"radius\": 0.1,\n \"reach\": 1,\n \"rpm\": 60,\n \"noise\": 7\n },\n \"mass\": 0.9\n },\n {\n \"id\": \"crowbar\",\n \"name\": \"Crowbar\",\n \"category\": \"melee_blunt\",\n \"action\": {\n \"kind\": \"melee\",\n \"damage\": \"blunt\",\n \"energy\": 120,\n \"radius\": 0.08,\n \"reach\": 0.9,\n \"rpm\": 60,\n \"noise\": 7\n },\n \"mass\": 2,\n \"tags\": [\n \"pry\"\n ]\n },\n {\n \"id\": \"machete\",\n \"name\": \"Machete\",\n \"category\": \"melee_blade\",\n \"action\": {\n \"kind\": \"melee\",\n \"damage\": \"slash\",\n \"energy\": 140,\n \"radius\": 0.06,\n \"reach\": 0.8,\n \"rpm\": 80,\n \"noise\": 6\n },\n \"mass\": 0.8\n },\n {\n \"id\": \"axe\",\n \"name\": \"Axe\",\n \"category\": \"melee_blade\",\n \"action\": {\n \"kind\": \"melee\",\n \"damage\": \"slash\",\n \"energy\": 250,\n \"radius\": 0.08,\n \"reach\": 0.9,\n \"rpm\": 45,\n \"noise\": 8\n },\n \"mass\": 1.6\n },\n {\n \"id\": \"knife\",\n \"name\": \"Knife\",\n \"category\": \"melee_blade\",\n \"action\": {\n \"kind\": \"melee\",\n \"damage\": \"slash\",\n \"energy\": 40,\n \"radius\": 0.03,\n \"reach\": 0.4,\n \"rpm\": 100,\n \"noise\": 5\n },\n \"mass\": 0.2\n },\n {\n \"id\": \"fists\",\n \"name\": \"Fists\",\n \"category\": \"melee_blunt\",\n \"action\": {\n \"kind\": \"melee\",\n \"damage\": \"blunt\",\n \"energy\": 25,\n \"radius\": 0.1,\n \"reach\": 0.6,\n \"rpm\": 120,\n \"noise\": 5\n },\n \"mass\": 0\n },\n {\n \"id\": \"lighter\",\n \"name\": \"Lighter\",\n \"category\": \"flame\",\n \"action\": {\n \"kind\": \"flame\",\n \"temperature\": 400,\n \"radius\": 0.03,\n \"range\": 0.15,\n \"fuelPerSecond\": 0.02,\n \"fuel\": 60,\n \"noise\": 0\n },\n \"mass\": 0.05,\n \"tags\": [\n \"fire\"\n ]\n },\n {\n \"id\": \"flamethrower\",\n \"name\": \"Flamethrower\",\n \"category\": \"flame\",\n \"action\": {\n \"kind\": \"flame\",\n \"temperature\": 900,\n \"radius\": 0.6,\n \"range\": 6,\n \"fuelPerSecond\": 1,\n \"fuel\": 20,\n \"cone\": true,\n \"noise\": 20\n },\n \"mass\": 15,\n \"tags\": [\n \"fire\"\n ]\n },\n {\n \"id\": \"molotov\",\n \"name\": \"Molotov cocktail\",\n \"category\": \"throwable\",\n \"action\": {\n \"kind\": \"throwable\",\n \"explosive\": \"molotov\",\n \"energy\": 500,\n \"radius\": 1.5,\n \"fuse\": 0,\n \"throwSpeed\": 12,\n \"fire\": {\n \"temperature\": 700,\n \"radius\": 1.5,\n \"seconds\": 12\n },\n \"noise\": 40\n },\n \"mass\": 0.8,\n \"tags\": [\n \"fire\",\n \"improvised\"\n ]\n },\n {\n \"id\": \"cutting_torch\",\n \"name\": \"Oxy-fuel cutting torch\",\n \"category\": \"heat\",\n \"action\": {\n \"kind\": \"heat\",\n \"temperature\": 3000,\n \"radius\": 0.02,\n \"range\": 0.25,\n \"fuelPerSecond\": 0.05,\n \"fuel\": 30,\n \"noise\": 15\n },\n \"mass\": 4,\n \"tags\": [\n \"fire\",\n \"cutting\"\n ]\n },\n {\n \"id\": \"blowtorch\",\n \"name\": \"Blowtorch\",\n \"category\": \"heat\",\n \"action\": {\n \"kind\": \"heat\",\n \"temperature\": 1300,\n \"radius\": 0.04,\n \"range\": 0.3,\n \"fuelPerSecond\": 0.04,\n \"fuel\": 30,\n \"noise\": 10\n },\n \"mass\": 0.6,\n \"tags\": [\n \"fire\"\n ]\n },\n {\n \"id\": \"frag_grenade\",\n \"name\": \"Fragmentation grenade\",\n \"category\": \"throwable\",\n \"action\": {\n \"kind\": \"throwable\",\n \"explosive\": \"m67\",\n \"energy\": 200000,\n \"radius\": 5,\n \"fuse\": 4,\n \"throwSpeed\": 15,\n \"noise\": 500\n },\n \"mass\": 0.45,\n \"tags\": [\n \"explosive\"\n ]\n },\n {\n \"id\": \"pipe_bomb\",\n \"name\": \"Pipe bomb\",\n \"category\": \"throwable\",\n \"action\": {\n \"kind\": \"throwable\",\n \"explosive\": \"pipe_bomb\",\n \"energy\": 43200,\n \"radius\": 3,\n \"fuse\": 3,\n \"throwSpeed\": 13,\n \"noise\": 450\n },\n \"mass\": 0.7,\n \"tags\": [\n \"explosive\",\n \"improvised\"\n ]\n },\n {\n \"id\": \"screwdriver\",\n \"name\": \"Screwdriver\",\n \"category\": \"tool\",\n \"action\": {\n \"kind\": \"tool\",\n \"tool\": \"screwdriver\",\n \"reach\": 0.5,\n \"noise\": 5\n },\n \"mass\": 0.15\n },\n {\n \"id\": \"wrench\",\n \"name\": \"Wrench\",\n \"category\": \"tool\",\n \"action\": {\n \"kind\": \"tool\",\n \"tool\": \"wrench\",\n \"reach\": 0.6,\n \"noise\": 6\n },\n \"mass\": 0.5\n },\n {\n \"id\": \"pry_bar\",\n \"name\": \"Pry bar\",\n \"category\": \"tool\",\n \"action\": {\n \"kind\": \"tool\",\n \"tool\": \"pry_bar\",\n \"reach\": 0.8,\n \"noise\": 8\n },\n \"mass\": 0.8\n },\n {\n \"id\": \"hacksaw\",\n \"name\": \"Hacksaw\",\n \"category\": \"tool\",\n \"action\": {\n \"kind\": \"tool\",\n \"tool\": \"saw\",\n \"reach\": 0.7,\n \"noise\": 10\n },\n \"mass\": 0.6\n },\n {\n \"id\": \"utility_knife\",\n \"name\": \"Utility knife\",\n \"category\": \"tool\",\n \"action\": {\n \"kind\": \"tool\",\n \"tool\": \"knife\",\n \"reach\": 0.3,\n \"noise\": 3\n },\n \"mass\": 0.1\n },\n {\n \"id\": \"claw_hammer\",\n \"name\": \"Claw hammer\",\n \"category\": \"tool\",\n \"action\": {\n \"kind\": \"tool\",\n \"tool\": \"hammer\",\n \"reach\": 0.5,\n \"noise\": 8\n },\n \"mass\": 0.7\n },\n {\n \"id\": \"extinguisher\",\n \"name\": \"Fire extinguisher\",\n \"category\": \"extinguisher\",\n \"action\": {\n \"kind\": \"extinguisher\",\n \"range\": 4,\n \"coolC\": 300,\n \"charge\": 12,\n \"noise\": 25\n },\n \"mass\": 5,\n \"tags\": [\n \"safety\"\n ]\n }\n]\n","[\n {\n \"id\": \"22lr\",\n \"label\": \".22 LR\",\n \"diameter\": 5.7,\n \"bulletGrams\": 2.6,\n \"muzzleSpeed\": 350,\n \"dragPer100m\": 0.15,\n \"kind\": \"rimfire\",\n \"noise\": 60,\n \"caseType\": \"tiny\",\n \"rim\": \"rimfire\",\n \"cartridge\": {\n \"caseDiameter\": 5.7,\n \"overallLength\": 25.4,\n \"caseLength\": 15.6,\n \"projectileDiameter\": 5.7\n },\n \"sources\": [\n \"sdk\",\n \"gallery\",\n \"arsenal\"\n ]\n },\n {\n \"id\": \"380acp\",\n \"label\": \".380 ACP\",\n \"diameter\": 9,\n \"bulletGrams\": 6.2,\n \"muzzleSpeed\": 295,\n \"dragPer100m\": 0.22,\n \"kind\": \"fmj\",\n \"noise\": 150,\n \"caseType\": \"pistol\",\n \"rim\": \"rimless\",\n \"cartridge\": {\n \"caseDiameter\": 9.5,\n \"overallLength\": 25,\n \"caseLength\": 17.3,\n \"projectileDiameter\": 9\n },\n \"sources\": [\n \"sdk\",\n \"gallery\",\n \"arsenal\"\n ]\n },\n {\n \"id\": \"9x18\",\n \"label\": \"9×18 mm Makarov\",\n \"diameter\": 9.3,\n \"bulletGrams\": 6.1,\n \"muzzleSpeed\": 315,\n \"dragPer100m\": 0.2,\n \"kind\": \"fmj\",\n \"noise\": 150,\n \"caseType\": \"pistol\",\n \"rim\": \"rimless\",\n \"cartridge\": {\n \"caseDiameter\": 9.9,\n \"overallLength\": 25.3,\n \"caseLength\": 18,\n \"projectileDiameter\": 9.3\n },\n \"sources\": [\n \"reference\",\n \"gallery\",\n \"arsenal\"\n ]\n },\n {\n \"id\": \"9x19\",\n \"label\": \"9×19 mm\",\n \"diameter\": 9,\n \"bulletGrams\": 7.5,\n \"muzzleSpeed\": 365,\n \"dragPer100m\": 0.2,\n \"kind\": \"fmj\",\n \"noise\": 150,\n \"caseType\": \"pistol\",\n \"cartridge\": {\n \"caseDiameter\": 9.9,\n \"overallLength\": 29.7,\n \"caseLength\": 19.15,\n \"projectileDiameter\": 9\n },\n \"sources\": [\n \"sdk\",\n \"gallery\",\n \"arsenal\"\n ]\n },\n {\n \"id\": \"40sw\",\n \"label\": \".40 S&W\",\n \"diameter\": 10.2,\n \"bulletGrams\": 11.7,\n \"muzzleSpeed\": 310,\n \"dragPer100m\": 0.2,\n \"kind\": \"fmj\",\n \"noise\": 150,\n \"caseType\": \"pistol\",\n \"cartridge\": {\n \"caseDiameter\": 10.8,\n \"overallLength\": 28.6,\n \"caseLength\": 21.6,\n \"projectileDiameter\": 10.2\n },\n \"sources\": [\n \"sdk\",\n \"gallery\",\n \"arsenal\"\n ]\n },\n {\n \"id\": \"45acp\",\n \"label\": \".45 ACP\",\n \"diameter\": 11.5,\n \"bulletGrams\": 14.9,\n \"muzzleSpeed\": 254,\n \"dragPer100m\": 0.2,\n \"kind\": \"fmj\",\n \"noise\": 150,\n \"caseType\": \"pistol\",\n \"cartridge\": {\n \"caseDiameter\": 12,\n \"overallLength\": 32.4,\n \"caseLength\": 22.8,\n \"projectileDiameter\": 11.5\n },\n \"sources\": [\n \"sdk\",\n \"gallery\",\n \"arsenal\"\n ]\n },\n {\n \"id\": \"5_7x28\",\n \"label\": \"5.7×28 mm\",\n \"diameter\": 5.7,\n \"bulletGrams\": 2,\n \"muzzleSpeed\": 715,\n \"dragPer100m\": 0.12,\n \"kind\": \"fmj\",\n \"noise\": 150,\n \"caseType\": \"pistol\",\n \"rim\": \"rimless\",\n \"cartridge\": {\n \"caseDiameter\": 7.9,\n \"overallLength\": 40.5,\n \"caseLength\": 28.9,\n \"projectileDiameter\": 5.7\n },\n \"sources\": [\n \"reference\",\n \"gallery\",\n \"arsenal\"\n ]\n },\n {\n \"id\": \"38spl\",\n \"label\": \".38 Special\",\n \"diameter\": 9.1,\n \"bulletGrams\": 10.2,\n \"muzzleSpeed\": 247,\n \"dragPer100m\": 0.2,\n \"kind\": \"fmj\",\n \"noise\": 150,\n \"caseType\": \"pistol\",\n \"rim\": \"rimmed\",\n \"cartridge\": {\n \"caseDiameter\": 9.6,\n \"overallLength\": 39.4,\n \"caseLength\": 29.3,\n \"projectileDiameter\": 9.1\n },\n \"sources\": [\n \"sdk\",\n \"gallery\",\n \"arsenal\"\n ]\n },\n {\n \"id\": \"357mag\",\n \"label\": \".357 Magnum\",\n \"diameter\": 9.1,\n \"bulletGrams\": 10.2,\n \"muzzleSpeed\": 396,\n \"dragPer100m\": 0.18,\n \"kind\": \"hp\",\n \"noise\": 300,\n \"caseType\": \"pistol\",\n \"rim\": \"rimmed\",\n \"cartridge\": {\n \"caseDiameter\": 9.6,\n \"overallLength\": 40,\n \"caseLength\": 33,\n \"projectileDiameter\": 9.1\n },\n \"sources\": [\n \"sdk\",\n \"gallery\",\n \"arsenal\"\n ]\n },\n {\n \"id\": \"44mag\",\n \"label\": \".44 Magnum\",\n \"diameter\": 10.9,\n \"bulletGrams\": 15.6,\n \"muzzleSpeed\": 440,\n \"dragPer100m\": 0.18,\n \"kind\": \"fmj\",\n \"noise\": 420,\n \"caseType\": \"pistol\",\n \"rim\": \"rimmed\",\n \"cartridge\": {\n \"caseDiameter\": 11.6,\n \"overallLength\": 40.9,\n \"caseLength\": 32.6,\n \"projectileDiameter\": 10.9\n },\n \"sources\": [\n \"reference\",\n \"gallery\",\n \"arsenal\"\n ]\n },\n {\n \"id\": \"50ae\",\n \"label\": \".50 AE\",\n \"diameter\": 12.7,\n \"bulletGrams\": 19.4,\n \"muzzleSpeed\": 470,\n \"dragPer100m\": 0.18,\n \"kind\": \"fmj\",\n \"noise\": 420,\n \"caseType\": \"pistol\",\n \"cartridge\": {\n \"caseDiameter\": 13.9,\n \"overallLength\": 40.9,\n \"caseLength\": 32.6,\n \"projectileDiameter\": 12.7\n },\n \"sources\": [\n \"reference\",\n \"gallery\",\n \"arsenal\"\n ]\n },\n {\n \"id\": \"12ga_00buck\",\n \"label\": \"12 ga 00 buck\",\n \"diameter\": 8.4,\n \"bulletGrams\": 3.5,\n \"muzzleSpeed\": 414,\n \"pellets\": 9,\n \"dragPer100m\": 0.45,\n \"kind\": \"buck\",\n \"noise\": 350,\n \"caseType\": \"shell\",\n \"rim\": \"shell\",\n \"cartridge\": {\n \"caseDiameter\": 20,\n \"overallLength\": 70,\n \"caseLength\": 70,\n \"projectileDiameter\": 18.5\n },\n \"sources\": [\n \"sdk\",\n \"gallery\",\n \"arsenal\"\n ]\n },\n {\n \"id\": \"12ga_slug\",\n \"label\": \"12 ga slug\",\n \"diameter\": 18.5,\n \"bulletGrams\": 28,\n \"muzzleSpeed\": 463,\n \"dragPer100m\": 0.3,\n \"kind\": \"slug\",\n \"noise\": 350,\n \"caseType\": \"shell\",\n \"rim\": \"shell\",\n \"cartridge\": {\n \"caseDiameter\": 20,\n \"overallLength\": 70,\n \"caseLength\": 70,\n \"projectileDiameter\": 18.5\n },\n \"sources\": [\n \"sdk\",\n \"gallery\",\n \"arsenal\"\n ]\n },\n {\n \"id\": \"12ga_birdshot\",\n \"label\": \"12 ga birdshot\",\n \"diameter\": 2.4,\n \"bulletGrams\": 0.2,\n \"muzzleSpeed\": 400,\n \"pellets\": 90,\n \"dragPer100m\": 0.6,\n \"kind\": \"birdshot\",\n \"noise\": 350,\n \"caseType\": \"shell\",\n \"rim\": \"shell\",\n \"cartridge\": {\n \"caseDiameter\": 20,\n \"overallLength\": 70,\n \"caseLength\": 70,\n \"projectileDiameter\": 18.5\n },\n \"sources\": [\n \"sdk\",\n \"gallery\",\n \"arsenal\"\n ]\n },\n {\n \"id\": \"20ga_buck\",\n \"label\": \"20 ga buck\",\n \"diameter\": 6.9,\n \"bulletGrams\": 1.3,\n \"muzzleSpeed\": 400,\n \"pellets\": 20,\n \"dragPer100m\": 0.5,\n \"kind\": \"buck\",\n \"noise\": 350,\n \"caseType\": \"shell\",\n \"rim\": \"shell\",\n \"sources\": [\n \"sdk\",\n \"derived\"\n ]\n },\n {\n \"id\": \"5_56x45\",\n \"label\": \"5.56×45 mm\",\n \"diameter\": 5.7,\n \"bulletGrams\": 4,\n \"muzzleSpeed\": 935,\n \"dragPer100m\": 0.1,\n \"kind\": \"fmj\",\n \"noise\": 300,\n \"caseType\": \"rifle\",\n \"cartridge\": {\n \"caseDiameter\": 9.6,\n \"overallLength\": 57.4,\n \"caseLength\": 44.7,\n \"projectileDiameter\": 5.7\n },\n \"sources\": [\n \"sdk\",\n \"gallery\",\n \"arsenal\"\n ]\n },\n {\n \"id\": \"5_45x39\",\n \"label\": \"5.45×39 mm\",\n \"diameter\": 5.6,\n \"bulletGrams\": 3.4,\n \"muzzleSpeed\": 900,\n \"dragPer100m\": 0.1,\n \"kind\": \"fmj\",\n \"noise\": 300,\n \"caseType\": \"rifle\",\n \"cartridge\": {\n \"caseDiameter\": 10,\n \"overallLength\": 57,\n \"caseLength\": 39.8,\n \"projectileDiameter\": 5.6\n },\n \"sources\": [\n \"reference\",\n \"gallery\",\n \"arsenal\"\n ]\n },\n {\n \"id\": \"7_62x39\",\n \"label\": \"7.62×39 mm\",\n \"diameter\": 7.9,\n \"bulletGrams\": 8,\n \"muzzleSpeed\": 725,\n \"dragPer100m\": 0.1,\n \"kind\": \"fmj\",\n \"noise\": 300,\n \"caseType\": \"rifle\",\n \"cartridge\": {\n \"caseDiameter\": 11.3,\n \"overallLength\": 56,\n \"caseLength\": 38.7,\n \"projectileDiameter\": 7.9\n },\n \"sources\": [\n \"sdk\",\n \"gallery\",\n \"arsenal\"\n ]\n },\n {\n \"id\": \"30_30\",\n \"label\": \".30-30 Winchester\",\n \"diameter\": 7.8,\n \"bulletGrams\": 9.7,\n \"muzzleSpeed\": 670,\n \"dragPer100m\": 0.1,\n \"kind\": \"fmj\",\n \"noise\": 300,\n \"caseType\": \"rifle\",\n \"rim\": \"rimmed\",\n \"cartridge\": {\n \"caseDiameter\": 10.7,\n \"overallLength\": 64.8,\n \"caseLength\": 51.8,\n \"projectileDiameter\": 7.8\n },\n \"sources\": [\n \"reference\",\n \"gallery\",\n \"arsenal\"\n ]\n },\n {\n \"id\": \"7_62x51\",\n \"label\": \"7.62×51 mm (.308)\",\n \"diameter\": 7.8,\n \"bulletGrams\": 9.7,\n \"muzzleSpeed\": 850,\n \"dragPer100m\": 0.08,\n \"kind\": \"fmj\",\n \"noise\": 420,\n \"caseType\": \"rifle\",\n \"cartridge\": {\n \"caseDiameter\": 12,\n \"overallLength\": 71.1,\n \"caseLength\": 51.2,\n \"projectileDiameter\": 7.8\n },\n \"sources\": [\n \"sdk\",\n \"gallery\",\n \"arsenal\"\n ]\n },\n {\n \"id\": \"7_62x54r\",\n \"label\": \"7.62×54R\",\n \"diameter\": 7.9,\n \"bulletGrams\": 9.6,\n \"muzzleSpeed\": 865,\n \"dragPer100m\": 0.08,\n \"kind\": \"fmj\",\n \"noise\": 420,\n \"caseType\": \"rifle\",\n \"rim\": \"rimmed\",\n \"cartridge\": {\n \"caseDiameter\": 12.4,\n \"overallLength\": 77.2,\n \"caseLength\": 53.7,\n \"projectileDiameter\": 7.9\n },\n \"sources\": [\n \"reference\",\n \"gallery\",\n \"arsenal\"\n ]\n },\n {\n \"id\": \"30_06\",\n \"label\": \".30-06 Springfield\",\n \"diameter\": 7.8,\n \"bulletGrams\": 9.7,\n \"muzzleSpeed\": 880,\n \"dragPer100m\": 0.08,\n \"kind\": \"fmj\",\n \"noise\": 420,\n \"caseType\": \"rifle\",\n \"cartridge\": {\n \"caseDiameter\": 12,\n \"overallLength\": 84.8,\n \"caseLength\": 63.3,\n \"projectileDiameter\": 7.8\n },\n \"sources\": [\n \"reference\",\n \"gallery\",\n \"arsenal\"\n ]\n },\n {\n \"id\": \"300wm\",\n \"label\": \".300 Winchester Magnum\",\n \"diameter\": 7.8,\n \"bulletGrams\": 11.7,\n \"muzzleSpeed\": 900,\n \"dragPer100m\": 0.07,\n \"kind\": \"fmj\",\n \"noise\": 600,\n \"caseType\": \"rifle\",\n \"cartridge\": {\n \"caseDiameter\": 13,\n \"overallLength\": 84.8,\n \"caseLength\": 66.5,\n \"projectileDiameter\": 7.8\n },\n \"sources\": [\n \"reference\",\n \"gallery\",\n \"arsenal\"\n ]\n },\n {\n \"id\": \"338lapua\",\n \"label\": \".338 Lapua Magnum\",\n \"diameter\": 8.6,\n \"bulletGrams\": 16.2,\n \"muzzleSpeed\": 903,\n \"dragPer100m\": 0.06,\n \"kind\": \"fmj\",\n \"noise\": 600,\n \"caseType\": \"rifle\",\n \"cartridge\": {\n \"caseDiameter\": 14.9,\n \"overallLength\": 93.5,\n \"caseLength\": 69.2,\n \"projectileDiameter\": 8.6\n },\n \"sources\": [\n \"sdk\",\n \"gallery\",\n \"arsenal\"\n ]\n },\n {\n \"id\": \"408cheytac\",\n \"label\": \".408 CheyTac\",\n \"diameter\": 10.4,\n \"bulletGrams\": 27.2,\n \"muzzleSpeed\": 900,\n \"dragPer100m\": 0.05,\n \"kind\": \"fmj\",\n \"noise\": 600,\n \"caseType\": \"big\",\n \"cartridge\": {\n \"caseDiameter\": 16,\n \"overallLength\": 115.6,\n \"caseLength\": 77,\n \"projectileDiameter\": 10.36\n },\n \"sources\": [\n \"reference\",\n \"arsenal\"\n ]\n },\n {\n \"id\": \"50bmg\",\n \"label\": \".50 BMG\",\n \"diameter\": 12.7,\n \"bulletGrams\": 42,\n \"muzzleSpeed\": 925,\n \"dragPer100m\": 0.05,\n \"kind\": \"ap\",\n \"noise\": 600,\n \"caseType\": \"big\",\n \"cartridge\": {\n \"caseDiameter\": 20.4,\n \"overallLength\": 138,\n \"caseLength\": 99,\n \"projectileDiameter\": 12.7\n },\n \"sources\": [\n \"sdk\",\n \"gallery\",\n \"arsenal\"\n ]\n },\n {\n \"id\": \"arrow\",\n \"label\": \"Arrow (compound bow)\",\n \"diameter\": 7,\n \"bulletGrams\": 25,\n \"muzzleSpeed\": 90,\n \"dragPer100m\": 0.12,\n \"kind\": \"arrow\",\n \"noise\": 20,\n \"propellant\": \"none\",\n \"sources\": [\n \"sdk\"\n ]\n },\n {\n \"id\": \"crossbow_bolt\",\n \"label\": \"Crossbow bolt\",\n \"diameter\": 8,\n \"bulletGrams\": 20,\n \"muzzleSpeed\": 122,\n \"dragPer100m\": 0.12,\n \"kind\": \"bolt\",\n \"noise\": 25,\n \"propellant\": \"none\",\n \"sources\": [\n \"sdk\"\n ]\n },\n {\n \"id\": \"4_6x30\",\n \"label\": \"4.6×30 mm\",\n \"diameter\": 4.65,\n \"bulletGrams\": 2,\n \"muzzleSpeed\": 735,\n \"dragPer100m\": 0.12,\n \"kind\": \"fmj\",\n \"noise\": 150,\n \"caseType\": \"pistol\",\n \"rim\": \"rimless\",\n \"cartridge\": {\n \"caseDiameter\": 8,\n \"overallLength\": 38.5,\n \"caseLength\": 30.5,\n \"projectileDiameter\": 4.65\n },\n \"sources\": [\n \"reference\",\n \"derived\"\n ]\n },\n {\n \"id\": \"32acp\",\n \"label\": \".32 ACP\",\n \"diameter\": 7.94,\n \"bulletGrams\": 4.6,\n \"muzzleSpeed\": 276,\n \"dragPer100m\": 0.22,\n \"kind\": \"fmj\",\n \"noise\": 150,\n \"caseType\": \"pistol\",\n \"rim\": \"rimmed\",\n \"cartridge\": {\n \"caseDiameter\": 9.1,\n \"overallLength\": 25,\n \"caseLength\": 17.3,\n \"projectileDiameter\": 7.94\n },\n \"sources\": [\n \"reference\",\n \"derived\"\n ]\n },\n {\n \"id\": \"45_70_bp\",\n \"label\": \".45-70 Government (black powder)\",\n \"diameter\": 11.43,\n \"bulletGrams\": 26.2,\n \"muzzleSpeed\": 400,\n \"dragPer100m\": 0.09,\n \"kind\": \"fmj\",\n \"noise\": 350,\n \"caseType\": \"rifle\",\n \"rim\": \"rimmed\",\n \"propellant\": \"black_powder\",\n \"cartridge\": {\n \"caseDiameter\": 12.07,\n \"overallLength\": 66.5,\n \"caseLength\": 53.3,\n \"projectileDiameter\": 11.43\n },\n \"sources\": [\n \"sdk\"\n ]\n },\n {\n \"id\": \"7_62x25\",\n \"label\": \"7.62×25 mm Tokarev\",\n \"diameter\": 7.85,\n \"bulletGrams\": 5.5,\n \"muzzleSpeed\": 488,\n \"dragPer100m\": 0.12,\n \"kind\": \"fmj\",\n \"noise\": 300,\n \"caseType\": \"pistol\",\n \"rim\": \"rimless\",\n \"cartridge\": {\n \"caseDiameter\": 9.95,\n \"overallLength\": 35.2,\n \"caseLength\": 25,\n \"projectileDiameter\": 7.85\n },\n \"sources\": [\n \"reference\",\n \"derived\"\n ]\n },\n {\n \"id\": \"7_92x57\",\n \"label\": \"7.92×57 mm Mauser\",\n \"diameter\": 8.22,\n \"bulletGrams\": 11.7,\n \"muzzleSpeed\": 760,\n \"dragPer100m\": 0.08,\n \"kind\": \"fmj\",\n \"noise\": 420,\n \"caseType\": \"rifle\",\n \"rim\": \"rimless\",\n \"cartridge\": {\n \"caseDiameter\": 11.95,\n \"overallLength\": 82,\n \"caseLength\": 57,\n \"projectileDiameter\": 8.22\n },\n \"sources\": [\n \"reference\",\n \"derived\"\n ]\n },\n {\n \"id\": \"9x39\",\n \"label\": \"9×39 mm SP-5\",\n \"diameter\": 9.27,\n \"bulletGrams\": 16.1,\n \"muzzleSpeed\": 290,\n \"dragPer100m\": 0.2,\n \"kind\": \"fmj\",\n \"noise\": 300,\n \"caseType\": \"rifle\",\n \"rim\": \"rimless\",\n \"cartridge\": {\n \"caseDiameter\": 11.33,\n \"overallLength\": 56,\n \"caseLength\": 38.7,\n \"projectileDiameter\": 9.27\n },\n \"sources\": [\n \"reference\",\n \"derived\"\n ]\n }\n]\n","[\n {\n \"id\": \"m67\",\n \"name\": \"M67 fragmentation grenade\",\n \"kind\": \"fragmentation\",\n \"lethalRadius\": 5,\n \"injuryRadius\": 15,\n \"energy\": 200000,\n \"tnt\": 0.24,\n \"destructionLevel\": 2,\n \"noise\": 500,\n \"fuse\": 4,\n \"triggers\": [\n \"timer\"\n ],\n \"mass\": 0.4,\n \"sources\": [\n \"arsenal\",\n \"lab\",\n \"game\",\n \"gallery\"\n ]\n },\n {\n \"id\": \"molotov\",\n \"name\": \"Molotov cocktail\",\n \"kind\": \"incendiary\",\n \"lethalRadius\": 0,\n \"injuryRadius\": 4,\n \"energy\": 500,\n \"destructionLevel\": 0,\n \"noise\": 40,\n \"fire\": {\n \"temperature\": 700,\n \"radius\": 4,\n \"seconds\": 9\n },\n \"triggers\": [\n \"impact\"\n ],\n \"sources\": [\n \"arsenal\",\n \"lab\",\n \"game\",\n \"gallery\"\n ]\n },\n {\n \"id\": \"pipe_bomb\",\n \"name\": \"Pipe bomb\",\n \"kind\": \"fragmentation\",\n \"lethalRadius\": 3,\n \"injuryRadius\": 10,\n \"energy\": 43200,\n \"tnt\": 0.15,\n \"destructionLevel\": 2,\n \"noise\": 450,\n \"fuse\": 3,\n \"triggers\": [\n \"timer\"\n ],\n \"sources\": [\n \"arsenal\",\n \"lab\",\n \"gallery\"\n ]\n },\n {\n \"id\": \"propane_p13\",\n \"name\": \"P13 propane cylinder\",\n \"kind\": \"fuel\",\n \"lethalRadius\": 5,\n \"injuryRadius\": 14,\n \"energy\": 200000,\n \"tnt\": 1.5,\n \"destructionLevel\": 2,\n \"noise\": 550,\n \"fire\": {\n \"temperature\": 700,\n \"radius\": 1.4,\n \"seconds\": 7\n },\n \"triggers\": [\n \"shot\",\n \"fire\",\n \"explosion\"\n ],\n \"chain\": {\n \"shot\": 1.4,\n \"fire\": 1.4,\n \"explosion\": [\n 0.25,\n 0.6\n ]\n },\n \"mass\": 28,\n \"leak\": {\n \"fluid\": \"gas\",\n \"liters\": 24,\n \"pressurized\": true,\n \"igniteDelay\": 0.8,\n \"hissSeconds\": 0.8\n },\n \"shell\": {\n \"launchSpeed\": 13,\n \"trailSeconds\": 1.8\n },\n \"sources\": [\n \"arsenal\",\n \"lab\",\n \"game\",\n \"gallery\"\n ]\n },\n {\n \"id\": \"dynamite\",\n \"name\": \"Dynamite\",\n \"kind\": \"blast\",\n \"lethalRadius\": 4,\n \"injuryRadius\": 12,\n \"energy\": 102400,\n \"tnt\": 0.25,\n \"destructionLevel\": 3,\n \"noise\": 600,\n \"fuseLength\": 0.03,\n \"burnRate\": 131,\n \"burnTolerance\": 0.1,\n \"triggers\": [\n \"timer\"\n ],\n \"sources\": [\n \"arsenal\",\n \"lab\",\n \"gallery\",\n \"reference\"\n ]\n },\n {\n \"id\": \"c4\",\n \"name\": \"C4 charge\",\n \"kind\": \"blast\",\n \"lethalRadius\": 6,\n \"injuryRadius\": 18,\n \"energy\": 345600,\n \"tnt\": 0.76,\n \"destructionLevel\": 3,\n \"noise\": 700,\n \"triggers\": [\n \"remote\"\n ],\n \"mass\": 0.57,\n \"sources\": [\n \"arsenal\",\n \"lab\",\n \"gallery\"\n ]\n },\n {\n \"id\": \"claymore\",\n \"name\": \"Claymore mine\",\n \"kind\": \"directional\",\n \"lethalRadius\": 15,\n \"injuryRadius\": 50,\n \"cone\": {\n \"halfAngleDeg\": 30,\n \"length\": 50\n },\n \"energy\": 102400,\n \"tnt\": 0.9,\n \"destructionLevel\": 1,\n \"noise\": 500,\n \"triggers\": [\n \"wire\"\n ],\n \"tripwire\": {\n \"length\": 10,\n \"angleDeg\": 0,\n \"height\": 0.15\n },\n \"sources\": [\n \"arsenal\",\n \"lab\",\n \"gallery\"\n ]\n },\n {\n \"id\": \"flashbang\",\n \"name\": \"Flashbang\",\n \"kind\": \"flash\",\n \"lethalRadius\": 0,\n \"injuryRadius\": 10,\n \"energy\": 0,\n \"tnt\": 0.01,\n \"destructionLevel\": 0,\n \"noise\": 400,\n \"fuseRange\": [\n 1,\n 2.3\n ],\n \"stunSeconds\": 4,\n \"triggers\": [\n \"timer\"\n ],\n \"sources\": [\n \"arsenal\",\n \"lab\",\n \"gallery\",\n \"reference\"\n ]\n },\n {\n \"id\": \"m79_40mm\",\n \"name\": \"40 mm grenade\",\n \"kind\": \"fragmentation\",\n \"lethalRadius\": 4,\n \"injuryRadius\": 12,\n \"energy\": 102400,\n \"tnt\": 0.045,\n \"destructionLevel\": 2,\n \"noise\": 450,\n \"armRange\": [\n 14,\n 27\n ],\n \"triggers\": [\n \"impact\"\n ],\n \"sources\": [\n \"arsenal\",\n \"lab\",\n \"gallery\",\n \"reference\"\n ]\n },\n {\n \"id\": \"m72_66mm\",\n \"name\": \"66 mm HEAT rocket\",\n \"kind\": \"shaped_charge\",\n \"lethalRadius\": 5,\n \"injuryRadius\": 15,\n \"energy\": 200000,\n \"tnt\": 0.45,\n \"destructionLevel\": 3,\n \"noise\": 700,\n \"triggers\": [\n \"impact\"\n ],\n \"sources\": [\n \"arsenal\",\n \"lab\",\n \"gallery\"\n ]\n },\n {\n \"id\": \"at4_84mm\",\n \"name\": \"84 mm HEAT rocket\",\n \"kind\": \"shaped_charge\",\n \"lethalRadius\": 5,\n \"injuryRadius\": 16,\n \"energy\": 200000,\n \"tnt\": 0.7,\n \"destructionLevel\": 3,\n \"noise\": 750,\n \"triggers\": [\n \"impact\"\n ],\n \"sources\": [\n \"arsenal\",\n \"lab\",\n \"gallery\"\n ]\n },\n {\n \"id\": \"pg7v\",\n \"name\": \"PG-7V rocket\",\n \"kind\": \"shaped_charge\",\n \"lethalRadius\": 5,\n \"injuryRadius\": 16,\n \"energy\": 200000,\n \"tnt\": 0.45,\n \"destructionLevel\": 3,\n \"noise\": 750,\n \"triggers\": [\n \"impact\"\n ],\n \"sources\": [\n \"arsenal\",\n \"lab\",\n \"gallery\"\n ]\n },\n {\n \"id\": \"carl_gustaf_84mm\",\n \"name\": \"84 mm HE/HEAT round\",\n \"kind\": \"shaped_charge\",\n \"lethalRadius\": 5,\n \"injuryRadius\": 16,\n \"energy\": 200000,\n \"tnt\": 0.7,\n \"destructionLevel\": 3,\n \"noise\": 750,\n \"triggers\": [\n \"impact\"\n ],\n \"sources\": [\n \"lab\",\n \"gallery\",\n \"derived\"\n ]\n },\n {\n \"id\": \"fuel_barrel\",\n \"name\": \"Fuel barrel\",\n \"kind\": \"fuel\",\n \"lethalRadius\": 4,\n \"injuryRadius\": 12,\n \"energy\": 102400,\n \"tnt\": 1,\n \"destructionLevel\": 2,\n \"noise\": 550,\n \"fire\": {\n \"temperature\": 700,\n \"radius\": 2,\n \"seconds\": 12\n },\n \"triggers\": [\n \"shot\",\n \"fire\",\n \"explosion\"\n ],\n \"chain\": {\n \"shot\": 1.2,\n \"fire\": 1.2,\n \"explosion\": [\n 0.2,\n 0.4\n ]\n },\n \"sources\": [\n \"lab\",\n \"game\",\n \"derived\"\n ]\n },\n {\n \"id\": \"car_fuel_tank\",\n \"name\": \"Car fuel tank\",\n \"kind\": \"fuel\",\n \"lethalRadius\": 5,\n \"injuryRadius\": 14,\n \"energy\": 200000,\n \"tnt\": 0.5,\n \"destructionLevel\": 2,\n \"noise\": 550,\n \"fire\": {\n \"temperature\": 700,\n \"radius\": 2.2,\n \"seconds\": 30\n },\n \"triggers\": [\n \"shot\",\n \"fire\",\n \"explosion\"\n ],\n \"chain\": {\n \"shot\": [\n 3,\n 8\n ],\n \"fire\": [\n 3,\n 8\n ],\n \"explosion\": 0.6,\n \"shotDamageFraction\": 0.5\n },\n \"sources\": [\n \"lab\",\n \"game\",\n \"derived\"\n ]\n },\n {\n \"id\": \"fuel_pump\",\n \"name\": \"Fuel pump\",\n \"kind\": \"fuel\",\n \"lethalRadius\": 4,\n \"injuryRadius\": 12,\n \"energy\": 102400,\n \"tnt\": 0.5,\n \"destructionLevel\": 3,\n \"noise\": 700,\n \"fire\": {\n \"temperature\": 700,\n \"radius\": 1.1,\n \"seconds\": 14\n },\n \"triggers\": [\n \"shot\",\n \"fire\",\n \"explosion\"\n ],\n \"chain\": {\n \"shot\": 1,\n \"fire\": 1,\n \"explosion\": 0.4\n },\n \"sources\": [\n \"lab\",\n \"derived\"\n ]\n },\n {\n \"id\": \"fuel_station_tank\",\n \"name\": \"Fuel station tank\",\n \"kind\": \"fuel\",\n \"lethalRadius\": 12,\n \"injuryRadius\": 30,\n \"energy\": 2764800,\n \"tnt\": 20,\n \"destructionLevel\": 3,\n \"noise\": 700,\n \"fire\": {\n \"temperature\": 700,\n \"radius\": 3.2,\n \"seconds\": 20\n },\n \"triggers\": [\n \"fire\",\n \"explosion\"\n ],\n \"chain\": {\n \"fire\": 2,\n \"explosion\": 2\n },\n \"sources\": [\n \"lab\",\n \"derived\"\n ]\n },\n {\n \"id\": \"vog_25\",\n \"name\": \"VOG-25 40 mm grenade\",\n \"kind\": \"fragmentation\",\n \"lethalRadius\": 4,\n \"injuryRadius\": 12,\n \"energy\": 102400,\n \"tnt\": 0.045,\n \"destructionLevel\": 2,\n \"noise\": 450,\n \"armRange\": [\n 10,\n 40\n ],\n \"triggers\": [\n \"impact\"\n ],\n \"sources\": [\n \"lab\",\n \"reference\",\n \"derived\"\n ]\n },\n {\n \"id\": \"semtex\",\n \"name\": \"Semtex charge\",\n \"kind\": \"blast\",\n \"lethalRadius\": 6,\n \"injuryRadius\": 18,\n \"energy\": 377400,\n \"tnt\": 0.83,\n \"destructionLevel\": 3,\n \"noise\": 700,\n \"fuseLength\": 0.23,\n \"burnRate\": 131,\n \"burnTolerance\": 0.1,\n \"triggers\": [\n \"remote\",\n \"timer\"\n ],\n \"mass\": 0.5,\n \"sources\": [\n \"lab\",\n \"reference\",\n \"derived\"\n ]\n },\n {\n \"id\": \"smoke_grenade\",\n \"name\": \"M18 colored smoke grenade\",\n \"kind\": \"smoke\",\n \"lethalRadius\": 0,\n \"injuryRadius\": 0,\n \"energy\": 0,\n \"destructionLevel\": 0,\n \"noise\": 30,\n \"fuseRange\": [\n 1,\n 2.3\n ],\n \"smoke\": {\n \"color\": 4177738,\n \"seconds\": [\n 50,\n 90\n ]\n },\n \"triggers\": [\n \"timer\"\n ],\n \"mass\": 0.54,\n \"sources\": [\n \"reference\",\n \"derived\"\n ]\n }\n]\n","[\n {\n \"id\": \"flashbang\",\n \"name\": \"Flashbang\",\n \"category\": \"throwable\",\n \"action\": {\n \"kind\": \"throwable\",\n \"explosive\": \"flashbang\",\n \"energy\": 0,\n \"radius\": 0,\n \"fuse\": 0,\n \"throwSpeed\": 15,\n \"noise\": 0\n },\n \"mass\": 0.23,\n \"tags\": [\n \"explosive\"\n ],\n \"archetype\": \"frag_grenade\",\n \"sources\": [\n \"arsenal\",\n \"lab\",\n \"reference\",\n \"derived\"\n ]\n },\n {\n \"id\": \"dynamite\",\n \"name\": \"Dynamite\",\n \"category\": \"throwable\",\n \"action\": {\n \"kind\": \"throwable\",\n \"explosive\": \"dynamite\",\n \"energy\": 0,\n \"radius\": 0,\n \"fuse\": 0,\n \"throwSpeed\": 15,\n \"noise\": 0\n },\n \"mass\": 0.5,\n \"tags\": [\n \"explosive\"\n ],\n \"archetype\": \"frag_grenade\",\n \"sources\": [\n \"arsenal\",\n \"lab\",\n \"reference\",\n \"derived\"\n ]\n },\n {\n \"id\": \"c4\",\n \"name\": \"C4 charge\",\n \"category\": \"throwable\",\n \"action\": {\n \"kind\": \"throwable\",\n \"explosive\": \"c4\",\n \"energy\": 0,\n \"radius\": 0,\n \"fuse\": 0,\n \"throwSpeed\": 0,\n \"noise\": 0\n },\n \"mass\": 0.57,\n \"tags\": [\n \"explosive\",\n \"placed\"\n ],\n \"archetype\": \"frag_grenade\",\n \"sources\": [\n \"arsenal\",\n \"lab\"\n ]\n },\n {\n \"id\": \"claymore\",\n \"name\": \"Claymore mine\",\n \"category\": \"throwable\",\n \"action\": {\n \"kind\": \"throwable\",\n \"explosive\": \"claymore\",\n \"energy\": 0,\n \"radius\": 0,\n \"fuse\": 0,\n \"throwSpeed\": 0,\n \"noise\": 0\n },\n \"mass\": 1.6,\n \"tags\": [\n \"explosive\",\n \"placed\"\n ],\n \"archetype\": \"frag_grenade\",\n \"sources\": [\n \"arsenal\",\n \"lab\",\n \"reference\"\n ]\n },\n {\n \"id\": \"semtex\",\n \"name\": \"Semtex charge\",\n \"category\": \"throwable\",\n \"action\": {\n \"kind\": \"throwable\",\n \"explosive\": \"semtex\",\n \"energy\": 0,\n \"radius\": 0,\n \"fuse\": 0,\n \"throwSpeed\": 0,\n \"noise\": 0\n },\n \"mass\": 0.5,\n \"tags\": [\n \"explosive\",\n \"placed\"\n ],\n \"archetype\": \"frag_grenade\",\n \"sources\": [\n \"reference\",\n \"derived\"\n ]\n },\n {\n \"id\": \"smoke_grenade\",\n \"name\": \"M18 colored smoke grenade\",\n \"category\": \"throwable\",\n \"action\": {\n \"kind\": \"throwable\",\n \"explosive\": \"smoke_grenade\",\n \"energy\": 0,\n \"radius\": 0,\n \"fuse\": 0,\n \"throwSpeed\": 15,\n \"noise\": 0\n },\n \"mass\": 0.54,\n \"tags\": [\n \"explosive\",\n \"smoke\"\n ],\n \"archetype\": \"frag_grenade\",\n \"sources\": [\n \"reference\",\n \"derived\"\n ]\n }\n]\n","[\n {\n \"id\": \"glock_17\",\n \"name\": \"Glock 17\",\n \"maker\": \"Glock\",\n \"category\": \"pistol\",\n \"action\": {\n \"kind\": \"firearm\",\n \"caliber\": \"9x19\",\n \"rpm\": 300,\n \"modes\": [\n \"semi\"\n ],\n \"magazine\": 17,\n \"reload\": 1.8,\n \"muzzleSpeed\": 375,\n \"spreadDeg\": 1,\n \"bloomDeg\": 0.6,\n \"recoveryDegPerS\": 4,\n \"recoil\": [\n 1.63,\n 0.54\n ],\n \"range\": 50,\n \"family\": \"pistol\",\n \"timings\": {\n \"draw\": 0.35,\n \"reload\": 1.8,\n \"clear\": 1.2\n },\n \"faultFactor\": 0.7,\n \"moa\": 4\n },\n \"mass\": 0.7,\n \"dimensions\": {\n \"length\": 0.202,\n \"barrel\": 0.114,\n \"emptyMass\": 0.63\n },\n \"archetype\": \"pistol_9mm\",\n \"sources\": [\n \"gallery\",\n \"arsenal\",\n \"sdk\"\n ],\n \"mounts\": [\n {\n \"kind\": \"magazine\",\n \"interfaces\": [\n \"mag_pistol\"\n ],\n \"sources\": [\n \"derived\"\n ]\n }\n ],\n \"fitted\": []\n },\n {\n \"id\": \"glock_18\",\n \"name\": \"Glock 18\",\n \"maker\": \"Glock\",\n \"category\": \"pistol\",\n \"action\": {\n \"kind\": \"firearm\",\n \"caliber\": \"9x19\",\n \"rpm\": 1200,\n \"modes\": [\n \"semi\",\n \"auto\"\n ],\n \"magazine\": 17,\n \"magazineOptions\": [\n 33\n ],\n \"reload\": 1.8,\n \"muzzleSpeed\": 375,\n \"spreadDeg\": 1,\n \"bloomDeg\": 0.6,\n \"recoveryDegPerS\": 4,\n \"recoil\": [\n 1.63,\n 0.54\n ],\n \"range\": 50,\n \"family\": \"pistol\",\n \"timings\": {\n \"draw\": 0.35,\n \"reload\": 1.8,\n \"clear\": 1.2\n },\n \"faultFactor\": 0.9,\n \"moa\": 4\n },\n \"mass\": 0.7,\n \"dimensions\": {\n \"length\": 0.202,\n \"barrel\": 0.114,\n \"emptyMass\": 0.62\n },\n \"archetype\": \"pistol_9mm\",\n \"sources\": [\n \"gallery\",\n \"arsenal\",\n \"sdk\"\n ],\n \"mounts\": [\n {\n \"kind\": \"magazine\",\n \"interfaces\": [\n \"mag_pistol\"\n ],\n \"sources\": [\n \"derived\"\n ]\n }\n ],\n \"fitted\": []\n },\n {\n \"id\": \"glock_19\",\n \"name\": \"Glock 19\",\n \"maker\": \"Glock\",\n \"category\": \"pistol\",\n \"action\": {\n \"kind\": \"firearm\",\n \"caliber\": \"9x19\",\n \"rpm\": 300,\n \"modes\": [\n \"semi\"\n ],\n \"magazine\": 15,\n \"reload\": 1.7,\n \"muzzleSpeed\": 360,\n \"spreadDeg\": 1,\n \"bloomDeg\": 0.6,\n \"recoveryDegPerS\": 4,\n \"recoil\": [\n 1.75,\n 0.58\n ],\n \"range\": 50,\n \"family\": \"pistol\",\n \"timings\": {\n \"draw\": 0.35,\n \"reload\": 1.7,\n \"clear\": 1.2\n },\n \"faultFactor\": 0.7,\n \"moa\": 4\n },\n \"mass\": 0.6,\n \"dimensions\": {\n \"length\": 0.185,\n \"barrel\": 0.102,\n \"emptyMass\": 0.6\n },\n \"archetype\": \"pistol_9mm\",\n \"sources\": [\n \"gallery\",\n \"arsenal\",\n \"sdk\"\n ],\n \"mounts\": [\n {\n \"kind\": \"magazine\",\n \"interfaces\": [\n \"mag_pistol\"\n ],\n \"sources\": [\n \"derived\"\n ]\n }\n ],\n \"fitted\": []\n },\n {\n \"id\": \"taurus_g2c\",\n \"name\": \"Taurus G2C\",\n \"maker\": \"Taurus\",\n \"category\": \"pistol\",\n \"action\": {\n \"kind\": \"firearm\",\n \"caliber\": \"9x19\",\n \"rpm\": 300,\n \"modes\": [\n \"semi\"\n ],\n \"magazine\": 12,\n \"reload\": 1.7,\n \"muzzleSpeed\": 340,\n \"spreadDeg\": 1,\n \"bloomDeg\": 0.6,\n \"recoveryDegPerS\": 4,\n \"recoil\": [\n 1.56,\n 0.52\n ],\n \"range\": 50,\n \"family\": \"pistol\",\n \"timings\": {\n \"draw\": 0.35,\n \"reload\": 1.7,\n \"clear\": 1.2\n },\n \"faultFactor\": 1.5,\n \"moa\": 5\n },\n \"mass\": 0.6,\n \"dimensions\": {\n \"length\": 0.159,\n \"barrel\": 0.081,\n \"emptyMass\": 0.62\n },\n \"archetype\": \"pistol_9mm\",\n \"sources\": [\n \"gallery\",\n \"arsenal\",\n \"sdk\"\n ],\n \"mounts\": [\n {\n \"kind\": \"magazine\",\n \"interfaces\": [\n \"mag_pistol\"\n ],\n \"sources\": [\n \"derived\"\n ]\n }\n ],\n \"fitted\": []\n },\n {\n \"id\": \"taurus_ts9\",\n \"name\": \"Taurus TS9\",\n \"maker\": \"Taurus\",\n \"category\": \"pistol\",\n \"action\": {\n \"kind\": \"firearm\",\n \"caliber\": \"9x19\",\n \"rpm\": 300,\n \"modes\": [\n \"semi\"\n ],\n \"magazine\": 17,\n \"reload\": 1.8,\n \"muzzleSpeed\": 360,\n \"spreadDeg\": 1,\n \"bloomDeg\": 0.6,\n \"recoveryDegPerS\": 4,\n \"recoil\": [\n 1.5,\n 0.5\n ],\n \"range\": 50,\n \"family\": \"pistol\",\n \"timings\": {\n \"draw\": 0.35,\n \"reload\": 1.8,\n \"clear\": 1.2\n },\n \"faultFactor\": 1.2,\n \"moa\": 4\n },\n \"mass\": 0.7,\n \"dimensions\": {\n \"length\": 0.194,\n \"barrel\": 0.104,\n \"emptyMass\": 0.68\n },\n \"archetype\": \"pistol_9mm\",\n \"sources\": [\n \"gallery\",\n \"arsenal\",\n \"sdk\"\n ],\n \"mounts\": [\n {\n \"kind\": \"magazine\",\n \"interfaces\": [\n \"mag_pistol\"\n ],\n \"sources\": [\n \"derived\"\n ]\n }\n ],\n \"fitted\": []\n },\n {\n \"id\": \"beretta_92fs\",\n \"name\": \"Beretta 92FS\",\n \"maker\": \"Beretta\",\n \"category\": \"pistol\",\n \"action\": {\n \"kind\": \"firearm\",\n \"caliber\": \"9x19\",\n \"rpm\": 300,\n \"modes\": [\n \"semi\"\n ],\n \"magazine\": 15,\n \"reload\": 1.9,\n \"muzzleSpeed\": 381,\n \"spreadDeg\": 1,\n \"bloomDeg\": 0.6,\n \"recoveryDegPerS\": 4,\n \"recoil\": [\n 1.24,\n 0.41\n ],\n \"range\": 50,\n \"family\": \"pistol\",\n \"timings\": {\n \"draw\": 0.35,\n \"reload\": 1.9,\n \"clear\": 1.2\n },\n \"faultFactor\": 0.9,\n \"moa\": 3\n },\n \"mass\": 0.95,\n \"dimensions\": {\n \"length\": 0.217,\n \"barrel\": 0.125,\n \"emptyMass\": 0.95\n },\n \"archetype\": \"pistol_9mm\",\n \"sources\": [\n \"gallery\",\n \"arsenal\",\n \"sdk\"\n ],\n \"mounts\": [\n {\n \"kind\": \"magazine\",\n \"interfaces\": [\n \"mag_pistol\"\n ],\n \"sources\": [\n \"derived\"\n ]\n }\n ],\n \"fitted\": []\n },\n {\n \"id\": \"sig_sauer_p226\",\n \"name\": \"SIG Sauer P226\",\n \"maker\": \"SIG Sauer\",\n \"category\": \"pistol\",\n \"action\": {\n \"kind\": \"firearm\",\n \"caliber\": \"9x19\",\n \"rpm\": 300,\n \"modes\": [\n \"semi\"\n ],\n \"magazine\": 15,\n \"reload\": 1.9,\n \"muzzleSpeed\": 350,\n \"spreadDeg\": 1,\n \"bloomDeg\": 0.6,\n \"recoveryDegPerS\": 4,\n \"recoil\": [\n 1.03,\n 0.34\n ],\n \"range\": 50,\n \"family\": \"pistol\",\n \"timings\": {\n \"draw\": 0.35,\n \"reload\": 1.9,\n \"clear\": 1.2\n },\n \"faultFactor\": 0.8,\n \"moa\": 3\n },\n \"mass\": 0.96,\n \"dimensions\": {\n \"length\": 0.196,\n \"barrel\": 0.112,\n \"emptyMass\": 0.96\n },\n \"archetype\": \"pistol_9mm\",\n \"sources\": [\n \"gallery\",\n \"arsenal\",\n \"sdk\"\n ],\n \"mounts\": [\n {\n \"kind\": \"magazine\",\n \"interfaces\": [\n \"mag_pistol\"\n ],\n \"sources\": [\n \"derived\"\n ]\n }\n ],\n \"fitted\": []\n },\n {\n \"id\": \"cz_75\",\n \"name\": \"CZ 75\",\n \"maker\": \"CZ\",\n \"category\": \"pistol\",\n \"action\": {\n \"kind\": \"firearm\",\n \"caliber\": \"9x19\",\n \"rpm\": 300,\n \"modes\": [\n \"semi\"\n ],\n \"magazine\": 16,\n \"reload\": 1.9,\n \"muzzleSpeed\": 370,\n \"spreadDeg\": 1,\n \"bloomDeg\": 0.6,\n \"recoveryDegPerS\": 4,\n \"recoil\": [\n 1.11,\n 0.37\n ],\n \"range\": 50,\n \"family\": \"pistol\",\n \"timings\": {\n \"draw\": 0.35,\n \"reload\": 1.9,\n \"clear\": 1.2\n },\n \"faultFactor\": 0.9,\n \"moa\": 3\n },\n \"mass\": 1,\n \"dimensions\": {\n \"length\": 0.206,\n \"barrel\": 0.12,\n \"emptyMass\": 1\n },\n \"archetype\": \"pistol_9mm\",\n \"sources\": [\n \"gallery\",\n \"arsenal\",\n \"sdk\"\n ],\n \"mounts\": [\n {\n \"kind\": \"magazine\",\n \"interfaces\": [\n \"mag_pistol\"\n ],\n \"sources\": [\n \"derived\"\n ]\n }\n ],\n \"fitted\": []\n },\n {\n \"id\": \"taurus_pt100\",\n \"name\": \"Taurus PT100\",\n \"maker\": \"Taurus\",\n \"category\": \"pistol\",\n \"action\": {\n \"kind\": \"firearm\",\n \"caliber\": \"40sw\",\n \"rpm\": 300,\n \"modes\": [\n \"semi\"\n ],\n \"magazine\": 11,\n \"reload\": 1.9,\n \"muzzleSpeed\": 300,\n \"spreadDeg\": 1,\n \"bloomDeg\": 0.6,\n \"recoveryDegPerS\": 4,\n \"recoil\": [\n 1.14,\n 0.38\n ],\n \"range\": 50,\n \"family\": \"pistol\",\n \"timings\": {\n \"draw\": 0.35,\n \"reload\": 1.9,\n \"clear\": 1.2\n },\n \"faultFactor\": 1.2,\n \"moa\": 4\n },\n \"mass\": 1,\n \"dimensions\": {\n \"length\": 0.216,\n \"barrel\": 0.127,\n \"emptyMass\": 1\n },\n \"archetype\": \"pistol_9mm\",\n \"sources\": [\n \"gallery\",\n \"arsenal\",\n \"sdk\"\n ],\n \"mounts\": [\n {\n \"kind\": \"magazine\",\n \"interfaces\": [\n \"mag_pistol\"\n ],\n \"sources\": [\n \"derived\"\n ]\n }\n ],\n \"fitted\": []\n },\n {\n \"id\": \"colt_m1911\",\n \"name\": \"Colt M1911\",\n \"maker\": \"Colt\",\n \"category\": \"pistol\",\n \"action\": {\n \"kind\": \"firearm\",\n \"caliber\": \"45acp\",\n \"rpm\": 300,\n \"modes\": [\n \"semi\"\n ],\n \"magazine\": 7,\n \"reload\": 1.8,\n \"muzzleSpeed\": 253,\n \"spreadDeg\": 1.1,\n \"bloomDeg\": 0.8,\n \"recoveryDegPerS\": 4,\n \"recoil\": [\n 1.79,\n 0.6\n ],\n \"range\": 50,\n \"family\": \"pistol\",\n \"timings\": {\n \"draw\": 0.35,\n \"reload\": 1.8,\n \"clear\": 1.2\n },\n \"faultFactor\": 1.1,\n \"moa\": 3\n },\n \"mass\": 1.1,\n \"dimensions\": {\n \"length\": 0.216,\n \"barrel\": 0.127,\n \"emptyMass\": 1.1\n },\n \"archetype\": \"pistol_45\",\n \"sources\": [\n \"gallery\",\n \"arsenal\",\n \"sdk\"\n ],\n \"mounts\": [\n {\n \"kind\": \"magazine\",\n \"interfaces\": [\n \"mag_pistol\"\n ],\n \"sources\": [\n \"derived\"\n ]\n }\n ],\n \"fitted\": []\n },\n {\n \"id\": \"makarov_pm\",\n \"name\": \"Makarov PM\",\n \"category\": \"pistol\",\n \"action\": {\n \"kind\": \"firearm\",\n \"caliber\": \"9x18\",\n \"rpm\": 300,\n \"modes\": [\n \"semi\"\n ],\n \"magazine\": 8,\n \"reload\": 1.7,\n \"muzzleSpeed\": 315,\n \"spreadDeg\": 1,\n \"bloomDeg\": 0.6,\n \"recoveryDegPerS\": 4,\n \"recoil\": [\n 0.9,\n 0.3\n ],\n \"range\": 50,\n \"family\": \"pistol\",\n \"timings\": {\n \"draw\": 0.35,\n \"reload\": 1.7,\n \"clear\": 1.2\n },\n \"faultFactor\": 0.8,\n \"moa\": 5\n },\n \"mass\": 0.73,\n \"dimensions\": {\n \"length\": 0.161,\n \"barrel\": 0.094,\n \"emptyMass\": 0.73\n },\n \"archetype\": \"pistol_9mm\",\n \"sources\": [\n \"gallery\",\n \"arsenal\",\n \"sdk\"\n ],\n \"mounts\": [\n {\n \"kind\": \"magazine\",\n \"interfaces\": [\n \"mag_pistol\"\n ],\n \"sources\": [\n \"derived\"\n ]\n }\n ],\n \"fitted\": []\n },\n {\n \"id\": \"fn_five_seven\",\n \"name\": \"FN Five-seveN\",\n \"maker\": \"FN\",\n \"category\": \"pistol\",\n \"action\": {\n \"kind\": \"firearm\",\n \"caliber\": \"5_7x28\",\n \"rpm\": 300,\n \"modes\": [\n \"semi\"\n ],\n \"magazine\": 20,\n \"reload\": 1.8,\n \"muzzleSpeed\": 650,\n \"spreadDeg\": 1,\n \"bloomDeg\": 0.6,\n \"recoveryDegPerS\": 4,\n \"recoil\": [\n 1.5,\n 0.5\n ],\n \"range\": 50,\n \"family\": \"pistol\",\n \"timings\": {\n \"draw\": 0.35,\n \"reload\": 1.8,\n \"clear\": 1.2\n },\n \"faultFactor\": 0.9,\n \"moa\": 3\n },\n \"mass\": 0.61,\n \"dimensions\": {\n \"length\": 0.208,\n \"barrel\": 0.122,\n \"emptyMass\": 0.61\n },\n \"archetype\": \"pistol_9mm\",\n \"sources\": [\n \"gallery\",\n \"arsenal\",\n \"sdk\"\n ],\n \"mounts\": [\n {\n \"kind\": \"magazine\",\n \"interfaces\": [\n \"mag_pistol\"\n ],\n \"sources\": [\n \"derived\"\n ]\n }\n ],\n \"fitted\": []\n },\n {\n \"id\": \"desert_eagle_mark_xix\",\n \"name\": \"Desert Eagle Mark XIX\",\n \"category\": \"pistol\",\n \"action\": {\n \"kind\": \"firearm\",\n \"caliber\": \"50ae\",\n \"rpm\": 300,\n \"modes\": [\n \"semi\"\n ],\n \"magazine\": 7,\n \"reload\": 2,\n \"muzzleSpeed\": 470,\n \"spreadDeg\": 1.1,\n \"bloomDeg\": 0.8,\n \"recoveryDegPerS\": 4,\n \"recoil\": [\n 4.41,\n 1.47\n ],\n \"range\": 50,\n \"family\": \"pistol\",\n \"timings\": {\n \"draw\": 0.35,\n \"reload\": 2,\n \"clear\": 1.2\n },\n \"faultFactor\": 1.8,\n \"moa\": 3\n },\n \"mass\": 2,\n \"dimensions\": {\n \"length\": 0.27,\n \"barrel\": 0.152,\n \"emptyMass\": 1.99\n },\n \"archetype\": \"pistol_45\",\n \"sources\": [\n \"gallery\",\n \"arsenal\",\n \"sdk\"\n ],\n \"mounts\": [\n {\n \"kind\": \"magazine\",\n \"interfaces\": [\n \"mag_pistol\"\n ],\n \"sources\": [\n \"derived\"\n ]\n }\n ],\n \"fitted\": []\n },\n {\n \"id\": \"taurus_82\",\n \"name\": \"Taurus 82\",\n \"maker\": \"Taurus\",\n \"category\": \"revolver\",\n \"action\": {\n \"kind\": \"firearm\",\n \"caliber\": \"38spl\",\n \"rpm\": 150,\n \"modes\": [\n \"single\"\n ],\n \"magazine\": 6,\n \"reload\": 2.2,\n \"muzzleSpeed\": 260,\n \"spreadDeg\": 0.9,\n \"bloomDeg\": 0.7,\n \"recoveryDegPerS\": 3.5,\n \"recoil\": [\n 1.96,\n 0.61\n ],\n \"range\": 45,\n \"family\": \"revolver\",\n \"timings\": {\n \"draw\": 0.35,\n \"reload\": 2.2,\n \"perRound\": 1,\n \"clear\": 1.2\n },\n \"moa\": 4\n },\n \"mass\": 0.9,\n \"dimensions\": {\n \"length\": 0.24,\n \"barrel\": 0.102,\n \"emptyMass\": 0.95\n },\n \"archetype\": \"revolver_38\",\n \"sources\": [\n \"gallery\",\n \"arsenal\",\n \"sdk\"\n ],\n \"mounts\": [],\n \"fitted\": []\n },\n {\n \"id\": \"sw_686\",\n \"name\": \"S&W 686\",\n \"maker\": \"S&W\",\n \"category\": \"revolver\",\n \"action\": {\n \"kind\": \"firearm\",\n \"caliber\": \"357mag\",\n \"rpm\": 150,\n \"modes\": [\n \"single\"\n ],\n \"magazine\": 7,\n \"reload\": 2.4,\n \"muzzleSpeed\": 430,\n \"spreadDeg\": 0.8,\n \"bloomDeg\": 1,\n \"recoveryDegPerS\": 3,\n \"recoil\": [\n 3.21,\n 0.96\n ],\n \"range\": 60,\n \"family\": \"revolver\",\n \"timings\": {\n \"draw\": 0.35,\n \"reload\": 2.4,\n \"perRound\": 1,\n \"clear\": 1.2\n },\n \"moa\": 3,\n \"acceptsCalibers\": [\n \"38spl\"\n ]\n },\n \"mass\": 1.2,\n \"dimensions\": {\n \"length\": 0.244,\n \"barrel\": 0.102,\n \"emptyMass\": 1.14\n },\n \"archetype\": \"revolver_357\",\n \"sources\": [\n \"gallery\",\n \"arsenal\",\n \"sdk\"\n ],\n \"mounts\": [],\n \"fitted\": []\n },\n {\n \"id\": \"sw_model_29\",\n \"name\": \"S&W Model 29\",\n \"maker\": \"S&W\",\n \"category\": \"revolver\",\n \"action\": {\n \"kind\": \"firearm\",\n \"caliber\": \"44mag\",\n \"rpm\": 150,\n \"modes\": [\n \"single\"\n ],\n \"magazine\": 6,\n \"reload\": 2.6,\n \"muzzleSpeed\": 440,\n \"spreadDeg\": 0.8,\n \"bloomDeg\": 1,\n \"recoveryDegPerS\": 3,\n \"recoil\": [\n 4.4,\n 1.32\n ],\n \"range\": 60,\n \"family\": \"revolver\",\n \"timings\": {\n \"draw\": 0.35,\n \"reload\": 2.6,\n \"perRound\": 1,\n \"clear\": 1.2\n },\n \"moa\": 3\n },\n \"mass\": 1.4,\n \"dimensions\": {\n \"length\": 0.302,\n \"barrel\": 0.165,\n \"emptyMass\": 1.4\n },\n \"archetype\": \"revolver_357\",\n \"sources\": [\n \"gallery\",\n \"arsenal\",\n \"sdk\"\n ],\n \"mounts\": [],\n \"fitted\": []\n },\n {\n \"id\": \"hk_mp5a3\",\n \"name\": \"HK MP5A3\",\n \"maker\": \"HK\",\n \"category\": \"smg\",\n \"action\": {\n \"kind\": \"firearm\",\n \"caliber\": \"9x19\",\n \"rpm\": 800,\n \"modes\": [\n \"auto\",\n \"semi\"\n ],\n \"magazine\": 30,\n \"reload\": 2.6,\n \"muzzleSpeed\": 400,\n \"spreadDeg\": 1.5,\n \"bloomDeg\": 0.35,\n \"recoveryDegPerS\": 6,\n \"recoil\": [\n 0.8,\n 0.44\n ],\n \"range\": 80,\n \"family\": \"magazine\",\n \"timings\": {\n \"draw\": 0.35,\n \"reload\": 2.6,\n \"clear\": 1.2\n },\n \"moa\": 3\n },\n \"mass\": 2.9,\n \"dimensions\": {\n \"length\": 0.7,\n \"barrel\": 0.225,\n \"emptyMass\": 2.54,\n \"lengthCollapsed\": 0.55\n },\n \"archetype\": \"smg_9mm\",\n \"sources\": [\n \"gallery\",\n \"arsenal\",\n \"sdk\"\n ],\n \"mounts\": [\n {\n \"kind\": \"muzzle\",\n \"interfaces\": [\n \"hk_3lug\"\n ],\n \"sources\": [\n \"reference\"\n ]\n },\n {\n \"kind\": \"magazine\",\n \"interfaces\": [\n \"mag_curved\"\n ],\n \"sources\": [\n \"gallery\"\n ]\n },\n {\n \"kind\": \"sling\",\n \"interfaces\": [\n \"swivel\"\n ],\n \"sources\": [\n \"derived\"\n ]\n }\n ],\n \"fitted\": [],\n \"stock\": {\n \"kind\": \"retract\"\n }\n },\n {\n \"id\": \"taurus_smt9\",\n \"name\": \"Taurus SMT9\",\n \"maker\": \"Taurus\",\n \"category\": \"smg\",\n \"action\": {\n \"kind\": \"firearm\",\n \"caliber\": \"9x19\",\n \"rpm\": 750,\n \"modes\": [\n \"auto\",\n \"semi\"\n ],\n \"magazine\": 30,\n \"reload\": 2.5,\n \"muzzleSpeed\": 380,\n \"spreadDeg\": 1.5,\n \"bloomDeg\": 0.35,\n \"recoveryDegPerS\": 6,\n \"recoil\": [\n 0.78,\n 0.43\n ],\n \"range\": 80,\n \"family\": \"magazine\",\n \"timings\": {\n \"draw\": 0.35,\n \"reload\": 2.5,\n \"clear\": 1.2\n },\n \"moa\": 4\n },\n \"mass\": 2.7,\n \"dimensions\": {\n \"length\": 0.66,\n \"barrel\": 0.2,\n \"emptyMass\": 2.5,\n \"lengthCollapsed\": 0.45\n },\n \"archetype\": \"smg_9mm\",\n \"sources\": [\n \"gallery\",\n \"arsenal\",\n \"sdk\"\n ],\n \"mounts\": [\n {\n \"kind\": \"rail_top\",\n \"interfaces\": [\n \"picatinny\"\n ],\n \"sources\": [\n \"gallery\"\n ]\n },\n {\n \"kind\": \"rail_left\",\n \"interfaces\": [\n \"picatinny\"\n ],\n \"sources\": [\n \"gallery\"\n ]\n },\n {\n \"kind\": \"rail_right\",\n \"interfaces\": [\n \"picatinny\"\n ],\n \"sources\": [\n \"gallery\"\n ]\n },\n {\n \"kind\": \"rail_bottom\",\n \"interfaces\": [\n \"picatinny\"\n ],\n \"sources\": [\n \"gallery\"\n ]\n },\n {\n \"kind\": \"magazine\",\n \"interfaces\": [\n \"mag_box\"\n ],\n \"sources\": [\n \"gallery\"\n ]\n },\n {\n \"kind\": \"sling\",\n \"interfaces\": [\n \"swivel\"\n ],\n \"sources\": [\n \"derived\"\n ]\n }\n ],\n \"fitted\": [],\n \"stock\": {\n \"kind\": \"retract\"\n }\n },\n {\n \"id\": \"hk_ump_45\",\n \"name\": \"HK UMP-45\",\n \"maker\": \"HK\",\n \"category\": \"smg\",\n \"action\": {\n \"kind\": \"firearm\",\n \"caliber\": \"45acp\",\n \"rpm\": 600,\n \"modes\": [\n \"auto\",\n \"semi\"\n ],\n \"magazine\": 25,\n \"reload\": 2.7,\n \"muzzleSpeed\": 285,\n \"spreadDeg\": 1.5,\n \"bloomDeg\": 0.35,\n \"recoveryDegPerS\": 6,\n \"recoil\": [\n 1.02,\n 0.57\n ],\n \"range\": 80,\n \"family\": \"magazine\",\n \"timings\": {\n \"draw\": 0.35,\n \"reload\": 2.7,\n \"clear\": 1.2\n },\n \"moa\": 4\n },\n \"mass\": 2.3,\n \"dimensions\": {\n \"length\": 0.69,\n \"barrel\": 0.2,\n \"emptyMass\": 2.3,\n \"lengthCollapsed\": 0.45\n },\n \"archetype\": \"smg_9mm\",\n \"sources\": [\n \"gallery\",\n \"arsenal\",\n \"sdk\"\n ],\n \"mounts\": [\n {\n \"kind\": \"muzzle\",\n \"interfaces\": [\n \"thread_5/8x24\"\n ],\n \"sources\": [\n \"derived\"\n ]\n },\n {\n \"kind\": \"rail_top\",\n \"interfaces\": [\n \"picatinny\"\n ],\n \"sources\": [\n \"gallery\"\n ]\n },\n {\n \"kind\": \"magazine\",\n \"interfaces\": [\n \"mag_box\"\n ],\n \"sources\": [\n \"gallery\"\n ]\n },\n {\n \"kind\": \"sling\",\n \"interfaces\": [\n \"swivel\"\n ],\n \"sources\": [\n \"derived\"\n ]\n }\n ],\n \"fitted\": [],\n \"stock\": {\n \"kind\": \"fold\",\n \"foldAxis\": \"right\"\n }\n },\n {\n \"id\": \"uzi\",\n \"name\": \"Uzi\",\n \"category\": \"smg\",\n \"action\": {\n \"kind\": \"firearm\",\n \"caliber\": \"9x19\",\n \"rpm\": 600,\n \"modes\": [\n \"auto\",\n \"semi\"\n ],\n \"magazine\": 32,\n \"reload\": 2.4,\n \"muzzleSpeed\": 400,\n \"spreadDeg\": 1.5,\n \"bloomDeg\": 0.35,\n \"recoveryDegPerS\": 6,\n \"recoil\": [\n 0.66,\n 0.37\n ],\n \"range\": 80,\n \"family\": \"magazine\",\n \"timings\": {\n \"draw\": 0.35,\n \"reload\": 2.4,\n \"clear\": 1.2\n },\n \"moa\": 6\n },\n \"mass\": 3.5,\n \"dimensions\": {\n \"length\": 0.65,\n \"barrel\": 0.26,\n \"emptyMass\": 3.5,\n \"lengthCollapsed\": 0.47\n },\n \"archetype\": \"smg_9mm\",\n \"sources\": [\n \"gallery\",\n \"arsenal\",\n \"sdk\"\n ],\n \"mounts\": [\n {\n \"kind\": \"magazine\",\n \"interfaces\": [\n \"mag_box\"\n ],\n \"sources\": [\n \"gallery\"\n ]\n },\n {\n \"kind\": \"sling\",\n \"interfaces\": [\n \"swivel\"\n ],\n \"sources\": [\n \"derived\"\n ]\n }\n ],\n \"fitted\": [],\n \"stock\": {\n \"kind\": \"fold\",\n \"foldAxis\": \"under\"\n }\n },\n {\n \"id\": \"fn_p90\",\n \"name\": \"FN P90\",\n \"maker\": \"FN\",\n \"category\": \"smg\",\n \"action\": {\n \"kind\": \"firearm\",\n \"caliber\": \"5_7x28\",\n \"rpm\": 900,\n \"modes\": [\n \"auto\",\n \"semi\"\n ],\n \"magazine\": 50,\n \"reload\": 3,\n \"muzzleSpeed\": 715,\n \"spreadDeg\": 1.5,\n \"bloomDeg\": 0.35,\n \"recoveryDegPerS\": 6,\n \"recoil\": [\n 0.76,\n 0.42\n ],\n \"range\": 80,\n \"family\": \"top_magazine\",\n \"timings\": {\n \"draw\": 0.35,\n \"reload\": 3,\n \"clear\": 1.2\n },\n \"moa\": 3\n },\n \"mass\": 2.6,\n \"dimensions\": {\n \"length\": 0.5,\n \"barrel\": 0.264,\n \"emptyMass\": 2.6\n },\n \"archetype\": \"smg_9mm\",\n \"sources\": [\n \"gallery\",\n \"arsenal\",\n \"sdk\"\n ],\n \"mounts\": [\n {\n \"kind\": \"sling\",\n \"interfaces\": [\n \"swivel\"\n ],\n \"sources\": [\n \"derived\"\n ]\n }\n ],\n \"fitted\": [],\n \"tags\": [\n \"pdw\"\n ]\n },\n {\n \"id\": \"kriss_vector\",\n \"name\": \"Kriss Vector\",\n \"maker\": \"Kriss\",\n \"category\": \"smg\",\n \"action\": {\n \"kind\": \"firearm\",\n \"caliber\": \"45acp\",\n \"rpm\": 1100,\n \"modes\": [\n \"auto\",\n \"semi\"\n ],\n \"magazine\": 25,\n \"reload\": 2.5,\n \"muzzleSpeed\": 290,\n \"spreadDeg\": 1.5,\n \"bloomDeg\": 0.35,\n \"recoveryDegPerS\": 6,\n \"recoil\": [\n 0.9,\n 0.5\n ],\n \"range\": 80,\n \"family\": \"magazine\",\n \"timings\": {\n \"draw\": 0.35,\n \"reload\": 2.5,\n \"clear\": 1.2\n },\n \"moa\": 4\n },\n \"mass\": 2.7,\n \"dimensions\": {\n \"length\": 0.622,\n \"barrel\": 0.14,\n \"emptyMass\": 2.7,\n \"lengthCollapsed\": 0.406\n },\n \"archetype\": \"smg_9mm\",\n \"sources\": [\n \"gallery\",\n \"arsenal\",\n \"sdk\"\n ],\n \"mounts\": [\n {\n \"kind\": \"rail_top\",\n \"interfaces\": [\n \"picatinny\"\n ],\n \"sources\": [\n \"gallery\"\n ]\n },\n {\n \"kind\": \"rail_left\",\n \"interfaces\": [\n \"picatinny\"\n ],\n \"sources\": [\n \"gallery\"\n ]\n },\n {\n \"kind\": \"rail_right\",\n \"interfaces\": [\n \"picatinny\"\n ],\n \"sources\": [\n \"gallery\"\n ]\n },\n {\n \"kind\": \"rail_bottom\",\n \"interfaces\": [\n \"picatinny\"\n ],\n \"sources\": [\n \"gallery\"\n ]\n },\n {\n \"kind\": \"magazine\",\n \"interfaces\": [\n \"mag_box\"\n ],\n \"sources\": [\n \"gallery\"\n ]\n },\n {\n \"kind\": \"sling\",\n \"interfaces\": [\n \"swivel\"\n ],\n \"sources\": [\n \"derived\"\n ]\n }\n ],\n \"fitted\": [\n {\n \"id\": \"red_dot\",\n \"mount\": \"rail_top\"\n }\n ],\n \"stock\": {\n \"kind\": \"fold_retract\",\n \"foldAxis\": \"right\"\n }\n },\n {\n \"id\": \"thompson_m1a1\",\n \"name\": \"Thompson M1A1\",\n \"maker\": \"Thompson\",\n \"category\": \"smg\",\n \"action\": {\n \"kind\": \"firearm\",\n \"caliber\": \"45acp\",\n \"rpm\": 700,\n \"modes\": [\n \"auto\",\n \"semi\"\n ],\n \"magazine\": 30,\n \"reload\": 2.9,\n \"muzzleSpeed\": 285,\n \"spreadDeg\": 1.5,\n \"bloomDeg\": 0.35,\n \"recoveryDegPerS\": 6,\n \"recoil\": [\n 0.49,\n 0.27\n ],\n \"range\": 80,\n \"family\": \"magazine\",\n \"timings\": {\n \"draw\": 0.35,\n \"reload\": 2.9,\n \"clear\": 1.2\n },\n \"moa\": 5\n },\n \"mass\": 4.8,\n \"dimensions\": {\n \"length\": 0.813,\n \"barrel\": 0.267,\n \"emptyMass\": 4.8\n },\n \"archetype\": \"smg_9mm\",\n \"sources\": [\n \"gallery\",\n \"arsenal\",\n \"sdk\"\n ],\n \"mounts\": [\n {\n \"kind\": \"magazine\",\n \"interfaces\": [\n \"mag_box\"\n ],\n \"sources\": [\n \"gallery\"\n ]\n },\n {\n \"kind\": \"sling\",\n \"interfaces\": [\n \"swivel\"\n ],\n \"sources\": [\n \"derived\"\n ]\n }\n ],\n \"fitted\": []\n },\n {\n \"id\": \"cz_scorpion_evo_3\",\n \"name\": \"CZ Scorpion EVO 3\",\n \"maker\": \"CZ\",\n \"category\": \"smg\",\n \"action\": {\n \"kind\": \"firearm\",\n \"caliber\": \"9x19\",\n \"rpm\": 1150,\n \"modes\": [\n \"auto\",\n \"semi\"\n ],\n \"magazine\": 30,\n \"reload\": 2.4,\n \"muzzleSpeed\": 370,\n \"spreadDeg\": 1.5,\n \"bloomDeg\": 0.35,\n \"recoveryDegPerS\": 6,\n \"recoil\": [\n 0.71,\n 0.39\n ],\n \"range\": 80,\n \"family\": \"magazine\",\n \"timings\": {\n \"draw\": 0.35,\n \"reload\": 2.4,\n \"clear\": 1.2\n },\n \"moa\": 4\n },\n \"mass\": 2.8,\n \"dimensions\": {\n \"length\": 0.67,\n \"barrel\": 0.196,\n \"emptyMass\": 2.77,\n \"lengthCollapsed\": 0.41\n },\n \"archetype\": \"smg_9mm\",\n \"sources\": [\n \"gallery\",\n \"arsenal\",\n \"sdk\"\n ],\n \"mounts\": [\n {\n \"kind\": \"rail_top\",\n \"interfaces\": [\n \"picatinny\"\n ],\n \"sources\": [\n \"gallery\"\n ]\n },\n {\n \"kind\": \"rail_left\",\n \"interfaces\": [\n \"picatinny\"\n ],\n \"sources\": [\n \"gallery\"\n ]\n },\n {\n \"kind\": \"rail_right\",\n \"interfaces\": [\n \"picatinny\"\n ],\n \"sources\": [\n \"gallery\"\n ]\n },\n {\n \"kind\": \"rail_bottom\",\n \"interfaces\": [\n \"picatinny\"\n ],\n \"sources\": [\n \"gallery\"\n ]\n },\n {\n \"kind\": \"magazine\",\n \"interfaces\": [\n \"mag_box\"\n ],\n \"sources\": [\n \"gallery\"\n ]\n },\n {\n \"kind\": \"sling\",\n \"interfaces\": [\n \"swivel\"\n ],\n \"sources\": [\n \"derived\"\n ]\n }\n ],\n \"fitted\": [\n {\n \"id\": \"red_dot\",\n \"mount\": \"rail_top\"\n }\n ],\n \"stock\": {\n \"kind\": \"fold\",\n \"foldAxis\": \"right\"\n }\n },\n {\n \"id\": \"mac_10\",\n \"name\": \"MAC-10\",\n \"category\": \"smg\",\n \"action\": {\n \"kind\": \"firearm\",\n \"caliber\": \"45acp\",\n \"rpm\": 1090,\n \"modes\": [\n \"auto\",\n \"semi\"\n ],\n \"magazine\": 30,\n \"reload\": 2.2,\n \"muzzleSpeed\": 280,\n \"spreadDeg\": 1.5,\n \"bloomDeg\": 0.35,\n \"recoveryDegPerS\": 6,\n \"recoil\": [\n 0.81,\n 0.45\n ],\n \"range\": 80,\n \"family\": \"magazine\",\n \"timings\": {\n \"draw\": 0.35,\n \"reload\": 2.2,\n \"clear\": 1.2\n },\n \"faultFactor\": 1.4,\n \"moa\": 8\n },\n \"mass\": 2.8,\n \"dimensions\": {\n \"length\": 0.548,\n \"barrel\": 0.146,\n \"emptyMass\": 2.84,\n \"lengthCollapsed\": 0.296\n },\n \"archetype\": \"smg_9mm\",\n \"sources\": [\n \"gallery\",\n \"arsenal\",\n \"sdk\"\n ],\n \"mounts\": [\n {\n \"kind\": \"muzzle\",\n \"interfaces\": [\n \"fixed_muzzle_device\"\n ],\n \"sources\": [\n \"derived\"\n ]\n },\n {\n \"kind\": \"magazine\",\n \"interfaces\": [\n \"mag_box\"\n ],\n \"sources\": [\n \"gallery\"\n ]\n },\n {\n \"kind\": \"sling\",\n \"interfaces\": [\n \"swivel\"\n ],\n \"sources\": [\n \"derived\"\n ]\n }\n ],\n \"fitted\": [\n {\n \"id\": \"muzzle_brake_heavy\",\n \"mount\": \"muzzle\"\n }\n ],\n \"stock\": {\n \"kind\": \"retract\"\n }\n },\n {\n \"id\": \"remington_870\",\n \"name\": \"Remington 870\",\n \"maker\": \"Remington\",\n \"category\": \"shotgun\",\n \"action\": {\n \"kind\": \"firearm\",\n \"caliber\": \"12ga_00buck\",\n \"rpm\": 120,\n \"modes\": [\n \"pump\"\n ],\n \"magazine\": 6,\n \"chamber\": 1,\n \"reload\": 0.55,\n \"perRound\": true,\n \"muzzleSpeed\": 400,\n \"spreadDeg\": 1,\n \"bloomDeg\": 0.5,\n \"recoveryDegPerS\": 3,\n \"pelletSpreadDeg\": 3,\n \"recoil\": [\n 3.32,\n 0.83\n ],\n \"range\": 40,\n \"family\": \"pump\",\n \"timings\": {\n \"draw\": 0.35,\n \"reload\": 0.55,\n \"perRound\": 0.55,\n \"cycle\": 0.5,\n \"clear\": 1.2\n },\n \"patternCm\": 60\n },\n \"mass\": 3.6,\n \"dimensions\": {\n \"length\": 0.99,\n \"barrel\": 0.47,\n \"emptyMass\": 3.6\n },\n \"archetype\": \"shotgun_pump_12\",\n \"sources\": [\n \"gallery\",\n \"arsenal\",\n \"sdk\"\n ],\n \"mounts\": [\n {\n \"kind\": \"barrel\",\n \"interfaces\": [\n \"barrel_swap\"\n ],\n \"sources\": [\n \"derived\"\n ]\n },\n {\n \"kind\": \"sling\",\n \"interfaces\": [\n \"swivel\"\n ],\n \"sources\": [\n \"derived\"\n ]\n }\n ],\n \"fitted\": []\n },\n {\n \"id\": \"mossberg_500\",\n \"name\": \"Mossberg 500\",\n \"maker\": \"Mossberg\",\n \"category\": \"shotgun\",\n \"action\": {\n \"kind\": \"firearm\",\n \"caliber\": \"12ga_00buck\",\n \"rpm\": 120,\n \"modes\": [\n \"pump\"\n ],\n \"magazine\": 5,\n \"chamber\": 1,\n \"reload\": 0.55,\n \"perRound\": true,\n \"muzzleSpeed\": 400,\n \"spreadDeg\": 1,\n \"bloomDeg\": 0.5,\n \"recoveryDegPerS\": 3,\n \"pelletSpreadDeg\": 3,\n \"recoil\": [\n 3.73,\n 0.93\n ],\n \"range\": 40,\n \"family\": \"pump\",\n \"timings\": {\n \"draw\": 0.35,\n \"reload\": 0.55,\n \"perRound\": 0.55,\n \"cycle\": 0.5,\n \"clear\": 1.2\n },\n \"patternCm\": 60\n },\n \"mass\": 3.2,\n \"dimensions\": {\n \"length\": 0.99,\n \"barrel\": 0.47,\n \"emptyMass\": 3.2\n },\n \"archetype\": \"shotgun_pump_12\",\n \"sources\": [\n \"gallery\",\n \"arsenal\",\n \"sdk\"\n ],\n \"mounts\": [\n {\n \"kind\": \"barrel\",\n \"interfaces\": [\n \"barrel_swap\"\n ],\n \"sources\": [\n \"derived\"\n ]\n },\n {\n \"kind\": \"sling\",\n \"interfaces\": [\n \"swivel\"\n ],\n \"sources\": [\n \"derived\"\n ]\n }\n ],\n \"fitted\": []\n },\n {\n \"id\": \"cbc_pump_military_3_0\",\n \"name\": \"CBC Pump Military 3.0\",\n \"maker\": \"CBC\",\n \"category\": \"shotgun\",\n \"action\": {\n \"kind\": \"firearm\",\n \"caliber\": \"12ga_00buck\",\n \"rpm\": 120,\n \"modes\": [\n \"pump\"\n ],\n \"magazine\": 7,\n \"chamber\": 1,\n \"reload\": 0.6,\n \"perRound\": true,\n \"muzzleSpeed\": 400,\n \"spreadDeg\": 1,\n \"bloomDeg\": 0.5,\n \"recoveryDegPerS\": 3,\n \"pelletSpreadDeg\": 3,\n \"recoil\": [\n 3.41,\n 0.85\n ],\n \"range\": 40,\n \"family\": \"pump\",\n \"timings\": {\n \"draw\": 0.35,\n \"reload\": 0.6,\n \"perRound\": 0.6,\n \"cycle\": 0.5,\n \"clear\": 1.2\n },\n \"patternCm\": 60\n },\n \"mass\": 3.5,\n \"dimensions\": {\n \"length\": 1,\n \"barrel\": 0.48,\n \"emptyMass\": 3.4\n },\n \"archetype\": \"shotgun_pump_12\",\n \"sources\": [\n \"gallery\",\n \"arsenal\",\n \"sdk\"\n ],\n \"mounts\": [\n {\n \"kind\": \"rail_top\",\n \"interfaces\": [\n \"picatinny\"\n ],\n \"sources\": [\n \"gallery\"\n ]\n },\n {\n \"kind\": \"barrel\",\n \"interfaces\": [\n \"barrel_swap\"\n ],\n \"sources\": [\n \"derived\"\n ]\n },\n {\n \"kind\": \"sling\",\n \"interfaces\": [\n \"swivel\"\n ],\n \"sources\": [\n \"derived\"\n ]\n }\n ],\n \"fitted\": []\n },\n {\n \"id\": \"benelli_m4\",\n \"name\": \"Benelli M4\",\n \"maker\": \"Benelli\",\n \"category\": \"shotgun\",\n \"action\": {\n \"kind\": \"firearm\",\n \"caliber\": \"12ga_00buck\",\n \"rpm\": 180,\n \"modes\": [\n \"semi\"\n ],\n \"magazine\": 7,\n \"chamber\": 1,\n \"reload\": 0.5,\n \"perRound\": true,\n \"muzzleSpeed\": 400,\n \"spreadDeg\": 1,\n \"bloomDeg\": 0.5,\n \"recoveryDegPerS\": 3,\n \"pelletSpreadDeg\": 3,\n \"recoil\": [\n 2.84,\n 0.84\n ],\n \"range\": 40,\n \"family\": \"tube_semi\",\n \"timings\": {\n \"draw\": 0.35,\n \"reload\": 0.5,\n \"perRound\": 0.5,\n \"clear\": 1.2\n },\n \"patternCm\": 60\n },\n \"mass\": 3.8,\n \"dimensions\": {\n \"length\": 1.01,\n \"barrel\": 0.47,\n \"emptyMass\": 3.82,\n \"lengthCollapsed\": 0.889\n },\n \"archetype\": \"shotgun_semi_12\",\n \"sources\": [\n \"gallery\",\n \"arsenal\",\n \"sdk\"\n ],\n \"mounts\": [\n {\n \"kind\": \"rail_top\",\n \"interfaces\": [\n \"picatinny\"\n ],\n \"sources\": [\n \"gallery\"\n ]\n },\n {\n \"kind\": \"barrel\",\n \"interfaces\": [\n \"barrel_swap\"\n ],\n \"sources\": [\n \"derived\"\n ]\n },\n {\n \"kind\": \"sling\",\n \"interfaces\": [\n \"swivel\"\n ],\n \"sources\": [\n \"derived\"\n ]\n }\n ],\n \"fitted\": [\n {\n \"id\": \"red_dot\",\n \"mount\": \"rail_top\"\n }\n ],\n \"stock\": {\n \"kind\": \"retract\"\n }\n },\n {\n \"id\": \"franchi_spas_12\",\n \"name\": \"Franchi SPAS-12\",\n \"maker\": \"Franchi\",\n \"category\": \"shotgun\",\n \"action\": {\n \"kind\": \"firearm\",\n \"caliber\": \"12ga_00buck\",\n \"rpm\": 120,\n \"modes\": [\n \"pump\",\n \"semi\"\n ],\n \"magazine\": 8,\n \"chamber\": 1,\n \"reload\": 0.55,\n \"perRound\": true,\n \"muzzleSpeed\": 400,\n \"spreadDeg\": 1,\n \"bloomDeg\": 0.5,\n \"recoveryDegPerS\": 3,\n \"pelletSpreadDeg\": 3,\n \"recoil\": [\n 2.72,\n 0.68\n ],\n \"range\": 40,\n \"family\": \"pump\",\n \"timings\": {\n \"draw\": 0.35,\n \"reload\": 0.55,\n \"perRound\": 0.55,\n \"cycle\": 0.5,\n \"clear\": 1.2\n },\n \"patternCm\": 55\n },\n \"mass\": 4.4,\n \"dimensions\": {\n \"length\": 1.041,\n \"barrel\": 0.546,\n \"emptyMass\": 4.4,\n \"lengthCollapsed\": 0.82\n },\n \"archetype\": \"shotgun_pump_12\",\n \"sources\": [\n \"gallery\",\n \"arsenal\",\n \"sdk\"\n ],\n \"mounts\": [\n {\n \"kind\": \"barrel\",\n \"interfaces\": [\n \"barrel_swap\"\n ],\n \"sources\": [\n \"derived\"\n ]\n },\n {\n \"kind\": \"sling\",\n \"interfaces\": [\n \"swivel\"\n ],\n \"sources\": [\n \"derived\"\n ]\n }\n ],\n \"fitted\": [],\n \"stock\": {\n \"kind\": \"fold\",\n \"foldAxis\": \"over\"\n }\n },\n {\n \"id\": \"kel_tec_ksg\",\n \"name\": \"Kel-Tec KSG\",\n \"maker\": \"Kel-Tec\",\n \"category\": \"shotgun\",\n \"action\": {\n \"kind\": \"firearm\",\n \"caliber\": \"12ga_00buck\",\n \"rpm\": 120,\n \"modes\": [\n \"pump\"\n ],\n \"magazine\": 14,\n \"chamber\": 1,\n \"tubes\": 2,\n \"reload\": 0.55,\n \"perRound\": true,\n \"muzzleSpeed\": 400,\n \"spreadDeg\": 1,\n \"bloomDeg\": 0.5,\n \"recoveryDegPerS\": 3,\n \"pelletSpreadDeg\": 3,\n \"recoil\": [\n 3.85,\n 0.96\n ],\n \"range\": 40,\n \"family\": \"pump\",\n \"timings\": {\n \"draw\": 0.35,\n \"reload\": 0.55,\n \"perRound\": 0.55,\n \"cycle\": 0.5,\n \"clear\": 1.2\n },\n \"patternCm\": 60\n },\n \"mass\": 3.1,\n \"dimensions\": {\n \"length\": 0.66,\n \"barrel\": 0.47,\n \"emptyMass\": 3.1\n },\n \"archetype\": \"shotgun_pump_12\",\n \"sources\": [\n \"gallery\",\n \"arsenal\",\n \"sdk\"\n ],\n \"mounts\": [\n {\n \"kind\": \"barrel\",\n \"interfaces\": [\n \"barrel_swap\"\n ],\n \"sources\": [\n \"derived\"\n ]\n },\n {\n \"kind\": \"sling\",\n \"interfaces\": [\n \"swivel\"\n ],\n \"sources\": [\n \"derived\"\n ]\n }\n ],\n \"fitted\": []\n },\n {\n \"id\": \"saiga_12\",\n \"name\": \"Saiga-12\",\n \"category\": \"shotgun\",\n \"action\": {\n \"kind\": \"firearm\",\n \"caliber\": \"12ga_00buck\",\n \"rpm\": 180,\n \"modes\": [\n \"semi\"\n ],\n \"magazine\": 8,\n \"magazineOptions\": [\n 20\n ],\n \"reload\": 2.8,\n \"muzzleSpeed\": 400,\n \"spreadDeg\": 1,\n \"bloomDeg\": 0.5,\n \"recoveryDegPerS\": 3,\n \"pelletSpreadDeg\": 3,\n \"recoil\": [\n 3,\n 0.88\n ],\n \"range\": 40,\n \"family\": \"magazine\",\n \"timings\": {\n \"draw\": 0.35,\n \"reload\": 2.8,\n \"clear\": 1.2\n },\n \"faultFactor\": 1.3,\n \"patternCm\": 65\n },\n \"mass\": 3.6,\n \"dimensions\": {\n \"length\": 1,\n \"barrel\": 0.43,\n \"emptyMass\": 3.6\n },\n \"archetype\": \"shotgun_semi_12\",\n \"sources\": [\n \"gallery\",\n \"arsenal\",\n \"sdk\"\n ],\n \"mounts\": [\n {\n \"kind\": \"magazine\",\n \"interfaces\": [\n \"mag_box\"\n ],\n \"sources\": [\n \"gallery\"\n ]\n },\n {\n \"kind\": \"barrel\",\n \"interfaces\": [\n \"barrel_swap\"\n ],\n \"sources\": [\n \"derived\"\n ]\n },\n {\n \"kind\": \"sling\",\n \"interfaces\": [\n \"swivel\"\n ],\n \"sources\": [\n \"derived\"\n ]\n }\n ],\n \"fitted\": []\n },\n {\n \"id\": \"aa_12\",\n \"name\": \"AA-12\",\n \"category\": \"shotgun\",\n \"action\": {\n \"kind\": \"firearm\",\n \"caliber\": \"12ga_00buck\",\n \"rpm\": 300,\n \"modes\": [\n \"auto\",\n \"semi\"\n ],\n \"magazine\": 8,\n \"magazineOptions\": [\n 20\n ],\n \"reload\": 3,\n \"muzzleSpeed\": 400,\n \"spreadDeg\": 1,\n \"bloomDeg\": 0.5,\n \"recoveryDegPerS\": 3,\n \"pelletSpreadDeg\": 3,\n \"recoil\": [\n 2.08,\n 0.61\n ],\n \"range\": 40,\n \"family\": \"magazine\",\n \"timings\": {\n \"draw\": 0.35,\n \"reload\": 3,\n \"clear\": 1.2\n },\n \"patternCm\": 65\n },\n \"mass\": 5.2,\n \"dimensions\": {\n \"length\": 0.966,\n \"barrel\": 0.457,\n \"emptyMass\": 5.2\n },\n \"archetype\": \"shotgun_semi_12\",\n \"sources\": [\n \"gallery\",\n \"arsenal\",\n \"sdk\"\n ],\n \"mounts\": [\n {\n \"kind\": \"magazine\",\n \"interfaces\": [\n \"mag_drum\"\n ],\n \"sources\": [\n \"gallery\"\n ]\n },\n {\n \"kind\": \"barrel\",\n \"interfaces\": [\n \"barrel_swap\"\n ],\n \"sources\": [\n \"derived\"\n ]\n },\n {\n \"kind\": \"sling\",\n \"interfaces\": [\n \"swivel\"\n ],\n \"sources\": [\n \"derived\"\n ]\n }\n ],\n \"fitted\": []\n },\n {\n \"id\": \"boito_double_barrel\",\n \"name\": \"Boito double-barrel\",\n \"category\": \"shotgun\",\n \"action\": {\n \"kind\": \"firearm\",\n \"caliber\": \"12ga_00buck\",\n \"rpm\": 180,\n \"modes\": [\n \"break\",\n \"volley\"\n ],\n \"magazine\": 2,\n \"reload\": 2,\n \"muzzleSpeed\": 410,\n \"spreadDeg\": 1,\n \"bloomDeg\": 0.5,\n \"recoveryDegPerS\": 3,\n \"pelletSpreadDeg\": 3,\n \"recoil\": [\n 4.14,\n 1.1\n ],\n \"range\": 35,\n \"family\": \"break\",\n \"timings\": {\n \"draw\": 0.35,\n \"reload\": 2,\n \"clear\": 1.2\n },\n \"patternCm\": 45\n },\n \"mass\": 3.2,\n \"dimensions\": {\n \"length\": 1.13,\n \"barrel\": 0.71,\n \"emptyMass\": 3.2\n },\n \"archetype\": \"shotgun_double_12\",\n \"sources\": [\n \"gallery\",\n \"arsenal\",\n \"sdk\"\n ],\n \"mounts\": [\n {\n \"kind\": \"barrel\",\n \"interfaces\": [\n \"barrel_swap\"\n ],\n \"sources\": [\n \"derived\"\n ]\n },\n {\n \"kind\": \"sling\",\n \"interfaces\": [\n \"swivel\"\n ],\n \"sources\": [\n \"derived\"\n ]\n }\n ],\n \"fitted\": []\n },\n {\n \"id\": \"ak_47\",\n \"name\": \"AK-47\",\n \"category\": \"rifle\",\n \"action\": {\n \"kind\": \"firearm\",\n \"caliber\": \"7_62x39\",\n \"rpm\": 600,\n \"modes\": [\n \"auto\",\n \"semi\"\n ],\n \"magazine\": 30,\n \"reload\": 2.6,\n \"muzzleSpeed\": 715,\n \"spreadDeg\": 0.8,\n \"bloomDeg\": 0.35,\n \"recoveryDegPerS\": 4.5,\n \"recoil\": [\n 1.29,\n 0.69\n ],\n \"range\": 350,\n \"family\": \"magazine\",\n \"timings\": {\n \"draw\": 0.35,\n \"reload\": 2.6,\n \"reloadEmpty\": 3.4,\n \"clear\": 1.2\n },\n \"faultFactor\": 0.4,\n \"moa\": 4\n },\n \"mass\": 4.3,\n \"dimensions\": {\n \"length\": 0.88,\n \"barrel\": 0.415,\n \"emptyMass\": 4.3\n },\n \"archetype\": \"rifle_7_62x39\",\n \"sources\": [\n \"gallery\",\n \"arsenal\",\n \"sdk\"\n ],\n \"mounts\": [\n {\n \"kind\": \"muzzle\",\n \"interfaces\": [\n \"thread_14x1lh\"\n ],\n \"sources\": [\n \"reference\"\n ]\n },\n {\n \"kind\": \"rail_left\",\n \"interfaces\": [\n \"ak_side\"\n ],\n \"sources\": [\n \"arsenal\"\n ]\n },\n {\n \"kind\": \"underbarrel\",\n \"interfaces\": [\n \"gp25\"\n ],\n \"sources\": [\n \"gallery\"\n ]\n },\n {\n \"kind\": \"magazine\",\n \"interfaces\": [\n \"mag_curved\"\n ],\n \"sources\": [\n \"gallery\"\n ]\n },\n {\n \"kind\": \"sling\",\n \"interfaces\": [\n \"swivel\"\n ],\n \"sources\": [\n \"derived\"\n ]\n }\n ],\n \"fitted\": []\n },\n {\n \"id\": \"akm\",\n \"name\": \"AKM\",\n \"category\": \"rifle\",\n \"action\": {\n \"kind\": \"firearm\",\n \"caliber\": \"7_62x39\",\n \"rpm\": 600,\n \"modes\": [\n \"auto\",\n \"semi\"\n ],\n \"magazine\": 30,\n \"reload\": 2.6,\n \"muzzleSpeed\": 715,\n \"spreadDeg\": 0.8,\n \"bloomDeg\": 0.35,\n \"recoveryDegPerS\": 4.5,\n \"recoil\": [\n 1.54,\n 0.82\n ],\n \"range\": 350,\n \"family\": \"magazine\",\n \"timings\": {\n \"draw\": 0.35,\n \"reload\": 2.6,\n \"reloadEmpty\": 3.4,\n \"clear\": 1.2\n },\n \"faultFactor\": 0.45,\n \"moa\": 4\n },\n \"mass\": 3.6,\n \"dimensions\": {\n \"length\": 0.88,\n \"barrel\": 0.415,\n \"emptyMass\": 3.1\n },\n \"archetype\": \"rifle_7_62x39\",\n \"sources\": [\n \"gallery\",\n \"arsenal\",\n \"sdk\"\n ],\n \"mounts\": [\n {\n \"kind\": \"muzzle\",\n \"interfaces\": [\n \"thread_14x1lh\"\n ],\n \"sources\": [\n \"reference\"\n ]\n },\n {\n \"kind\": \"rail_left\",\n \"interfaces\": [\n \"ak_side\"\n ],\n \"sources\": [\n \"arsenal\"\n ]\n },\n {\n \"kind\": \"underbarrel\",\n \"interfaces\": [\n \"gp25\"\n ],\n \"sources\": [\n \"arsenal\"\n ]\n },\n {\n \"kind\": \"magazine\",\n \"interfaces\": [\n \"mag_curved\"\n ],\n \"sources\": [\n \"gallery\"\n ]\n },\n {\n \"kind\": \"sling\",\n \"interfaces\": [\n \"swivel\"\n ],\n \"sources\": [\n \"derived\"\n ]\n }\n ],\n \"fitted\": []\n },\n {\n \"id\": \"ak_74\",\n \"name\": \"AK-74\",\n \"category\": \"rifle\",\n \"action\": {\n \"kind\": \"firearm\",\n \"caliber\": \"5_45x39\",\n \"rpm\": 650,\n \"modes\": [\n \"auto\",\n \"semi\"\n ],\n \"magazine\": 30,\n \"reload\": 2.6,\n \"muzzleSpeed\": 900,\n \"spreadDeg\": 0.6,\n \"bloomDeg\": 0.25,\n \"recoveryDegPerS\": 5,\n \"recoil\": [\n 0.81,\n 0.49\n ],\n \"range\": 400,\n \"family\": \"magazine\",\n \"timings\": {\n \"draw\": 0.35,\n \"reload\": 2.6,\n \"reloadEmpty\": 3.4,\n \"clear\": 1.2\n },\n \"moa\": 3\n },\n \"mass\": 3.3,\n \"dimensions\": {\n \"length\": 0.943,\n \"barrel\": 0.415,\n \"emptyMass\": 3.3\n },\n \"archetype\": \"rifle_5_56\",\n \"sources\": [\n \"gallery\",\n \"arsenal\",\n \"sdk\"\n ],\n \"mounts\": [\n {\n \"kind\": \"muzzle\",\n \"interfaces\": [\n \"thread_24x1.5\"\n ],\n \"sources\": [\n \"reference\"\n ]\n },\n {\n \"kind\": \"underbarrel\",\n \"interfaces\": [\n \"gp25\"\n ],\n \"sources\": [\n \"reference\"\n ]\n },\n {\n \"kind\": \"magazine\",\n \"interfaces\": [\n \"mag_curved\"\n ],\n \"sources\": [\n \"gallery\"\n ]\n },\n {\n \"kind\": \"sling\",\n \"interfaces\": [\n \"swivel\"\n ],\n \"sources\": [\n \"derived\"\n ]\n }\n ],\n \"fitted\": [\n {\n \"id\": \"muzzle_brake\",\n \"mount\": \"muzzle\"\n }\n ]\n },\n {\n \"id\": \"ak_12\",\n \"name\": \"AK-12\",\n \"category\": \"rifle\",\n \"action\": {\n \"kind\": \"firearm\",\n \"caliber\": \"5_45x39\",\n \"rpm\": 700,\n \"modes\": [\n \"auto\",\n \"semi\"\n ],\n \"magazine\": 30,\n \"reload\": 2.5,\n \"muzzleSpeed\": 880,\n \"spreadDeg\": 0.6,\n \"bloomDeg\": 0.25,\n \"recoveryDegPerS\": 5,\n \"recoil\": [\n 0.73,\n 0.44\n ],\n \"range\": 400,\n \"family\": \"magazine\",\n \"timings\": {\n \"draw\": 0.35,\n \"reload\": 2.5,\n \"reloadEmpty\": 3.3,\n \"clear\": 1.2\n },\n \"moa\": 2.5\n },\n \"mass\": 3.5,\n \"dimensions\": {\n \"length\": 0.945,\n \"barrel\": 0.415,\n \"emptyMass\": 3.5,\n \"lengthCollapsed\": 0.725\n },\n \"archetype\": \"rifle_5_56\",\n \"sources\": [\n \"gallery\",\n \"arsenal\",\n \"sdk\"\n ],\n \"mounts\": [\n {\n \"kind\": \"muzzle\",\n \"interfaces\": [\n \"thread_24x1.5\"\n ],\n \"sources\": [\n \"reference\"\n ]\n },\n {\n \"kind\": \"rail_top\",\n \"interfaces\": [\n \"picatinny\"\n ],\n \"sources\": [\n \"gallery\",\n \"arsenal\"\n ]\n },\n {\n \"kind\": \"rail_left\",\n \"interfaces\": [\n \"picatinny\"\n ],\n \"sources\": [\n \"gallery\",\n \"arsenal\"\n ]\n },\n {\n \"kind\": \"rail_right\",\n \"interfaces\": [\n \"picatinny\"\n ],\n \"sources\": [\n \"gallery\",\n \"arsenal\"\n ]\n },\n {\n \"kind\": \"rail_bottom\",\n \"interfaces\": [\n \"picatinny\"\n ],\n \"sources\": [\n \"gallery\",\n \"arsenal\"\n ]\n },\n {\n \"kind\": \"underbarrel\",\n \"interfaces\": [\n \"gp25\"\n ],\n \"sources\": [\n \"arsenal\"\n ]\n },\n {\n \"kind\": \"magazine\",\n \"interfaces\": [\n \"mag_curved\"\n ],\n \"sources\": [\n \"gallery\"\n ]\n },\n {\n \"kind\": \"sling\",\n \"interfaces\": [\n \"swivel\"\n ],\n \"sources\": [\n \"derived\"\n ]\n }\n ],\n \"fitted\": [\n {\n \"id\": \"muzzle_brake\",\n \"mount\": \"muzzle\"\n },\n {\n \"id\": \"red_dot\",\n \"mount\": \"rail_top\"\n }\n ],\n \"stock\": {\n \"kind\": \"retract\"\n }\n },\n {\n \"id\": \"imbel_ia2\",\n \"name\": \"IMBEL IA2\",\n \"maker\": \"IMBEL\",\n \"category\": \"rifle\",\n \"action\": {\n \"kind\": \"firearm\",\n \"caliber\": \"5_56x45\",\n \"rpm\": 700,\n \"modes\": [\n \"auto\",\n \"semi\"\n ],\n \"magazine\": 30,\n \"reload\": 2.4,\n \"muzzleSpeed\": 860,\n \"spreadDeg\": 0.6,\n \"bloomDeg\": 0.25,\n \"recoveryDegPerS\": 5,\n \"recoil\": [\n 0.85,\n 0.51\n ],\n \"range\": 400,\n \"family\": \"magazine\",\n \"timings\": {\n \"draw\": 0.35,\n \"reload\": 2.4,\n \"reloadEmpty\": 3.1,\n \"clear\": 1.2\n },\n \"moa\": 3\n },\n \"mass\": 3.4,\n \"dimensions\": {\n \"length\": 0.85,\n \"barrel\": 0.33,\n \"emptyMass\": 3.4,\n \"lengthCollapsed\": 0.6\n },\n \"archetype\": \"rifle_5_56\",\n \"sources\": [\n \"gallery\",\n \"arsenal\",\n \"sdk\"\n ],\n \"mounts\": [\n {\n \"kind\": \"muzzle\",\n \"interfaces\": [\n \"thread_1/2x28\"\n ],\n \"sources\": [\n \"derived\"\n ]\n },\n {\n \"kind\": \"rail_top\",\n \"interfaces\": [\n \"picatinny\"\n ],\n \"sources\": [\n \"gallery\"\n ]\n },\n {\n \"kind\": \"magazine\",\n \"interfaces\": [\n \"mag_box\"\n ],\n \"sources\": [\n \"gallery\"\n ]\n },\n {\n \"kind\": \"sling\",\n \"interfaces\": [\n \"swivel\"\n ],\n \"sources\": [\n \"derived\"\n ]\n }\n ],\n \"fitted\": [],\n \"stock\": {\n \"kind\": \"fold\",\n \"foldAxis\": \"right\"\n }\n },\n {\n \"id\": \"taurus_t4\",\n \"name\": \"Taurus T4\",\n \"maker\": \"Taurus\",\n \"category\": \"rifle\",\n \"action\": {\n \"kind\": \"firearm\",\n \"caliber\": \"5_56x45\",\n \"rpm\": 750,\n \"modes\": [\n \"auto\",\n \"semi\"\n ],\n \"magazine\": 30,\n \"reload\": 2.4,\n \"muzzleSpeed\": 880,\n \"spreadDeg\": 0.6,\n \"bloomDeg\": 0.25,\n \"recoveryDegPerS\": 5,\n \"recoil\": [\n 1,\n 0.6\n ],\n \"range\": 400,\n \"family\": \"magazine\",\n \"timings\": {\n \"draw\": 0.35,\n \"reload\": 2.4,\n \"reloadEmpty\": 3.1,\n \"clear\": 1.2\n },\n \"moa\": 2\n },\n \"mass\": 3,\n \"dimensions\": {\n \"length\": 0.84,\n \"barrel\": 0.368,\n \"emptyMass\": 3,\n \"lengthCollapsed\": 0.767\n },\n \"archetype\": \"rifle_5_56\",\n \"sources\": [\n \"gallery\",\n \"arsenal\",\n \"sdk\"\n ],\n \"mounts\": [\n {\n \"kind\": \"muzzle\",\n \"interfaces\": [\n \"thread_1/2x28\"\n ],\n \"sources\": [\n \"derived\"\n ]\n },\n {\n \"kind\": \"rail_top\",\n \"interfaces\": [\n \"picatinny\"\n ],\n \"sources\": [\n \"gallery\"\n ]\n },\n {\n \"kind\": \"rail_left\",\n \"interfaces\": [\n \"picatinny\"\n ],\n \"sources\": [\n \"gallery\"\n ]\n },\n {\n \"kind\": \"rail_right\",\n \"interfaces\": [\n \"picatinny\"\n ],\n \"sources\": [\n \"gallery\"\n ]\n },\n {\n \"kind\": \"rail_bottom\",\n \"interfaces\": [\n \"picatinny\"\n ],\n \"sources\": [\n \"gallery\"\n ]\n },\n {\n \"kind\": \"magazine\",\n \"interfaces\": [\n \"mag_box\"\n ],\n \"sources\": [\n \"gallery\"\n ]\n },\n {\n \"kind\": \"sling\",\n \"interfaces\": [\n \"swivel\"\n ],\n \"sources\": [\n \"derived\"\n ]\n }\n ],\n \"fitted\": [\n {\n \"id\": \"red_dot\",\n \"mount\": \"rail_top\"\n }\n ],\n \"stock\": {\n \"kind\": \"retract\"\n }\n },\n {\n \"id\": \"colt_m4a1\",\n \"name\": \"Colt M4A1\",\n \"maker\": \"Colt\",\n \"category\": \"rifle\",\n \"action\": {\n \"kind\": \"firearm\",\n \"caliber\": \"5_56x45\",\n \"rpm\": 800,\n \"modes\": [\n \"auto\",\n \"semi\"\n ],\n \"magazine\": 30,\n \"reload\": 2.3,\n \"muzzleSpeed\": 880,\n \"spreadDeg\": 0.6,\n \"bloomDeg\": 0.25,\n \"recoveryDegPerS\": 5,\n \"recoil\": [\n 1,\n 0.6\n ],\n \"range\": 400,\n \"family\": \"magazine\",\n \"timings\": {\n \"draw\": 0.35,\n \"reload\": 2.3,\n \"reloadEmpty\": 3,\n \"clear\": 1.2\n },\n \"moa\": 2\n },\n \"mass\": 3,\n \"dimensions\": {\n \"length\": 0.84,\n \"barrel\": 0.368,\n \"emptyMass\": 2.9,\n \"lengthCollapsed\": 0.757\n },\n \"archetype\": \"rifle_5_56\",\n \"sources\": [\n \"gallery\",\n \"arsenal\",\n \"sdk\"\n ],\n \"mounts\": [\n {\n \"kind\": \"muzzle\",\n \"interfaces\": [\n \"thread_1/2x28\"\n ],\n \"sources\": [\n \"reference\"\n ]\n },\n {\n \"kind\": \"rail_top\",\n \"interfaces\": [\n \"picatinny\",\n \"mlok\"\n ],\n \"sources\": [\n \"gallery\",\n \"arsenal\"\n ]\n },\n {\n \"kind\": \"rail_left\",\n \"interfaces\": [\n \"picatinny\",\n \"mlok\"\n ],\n \"sources\": [\n \"gallery\",\n \"arsenal\"\n ]\n },\n {\n \"kind\": \"rail_right\",\n \"interfaces\": [\n \"picatinny\",\n \"mlok\"\n ],\n \"sources\": [\n \"gallery\",\n \"arsenal\"\n ]\n },\n {\n \"kind\": \"rail_bottom\",\n \"interfaces\": [\n \"picatinny\",\n \"mlok\"\n ],\n \"sources\": [\n \"gallery\",\n \"arsenal\"\n ]\n },\n {\n \"kind\": \"underbarrel\",\n \"interfaces\": [\n \"m203\"\n ],\n \"sources\": [\n \"arsenal\"\n ]\n },\n {\n \"kind\": \"magazine\",\n \"interfaces\": [\n \"mag_box\"\n ],\n \"sources\": [\n \"gallery\"\n ]\n },\n {\n \"kind\": \"sling\",\n \"interfaces\": [\n \"swivel\"\n ],\n \"sources\": [\n \"derived\"\n ]\n }\n ],\n \"fitted\": [\n {\n \"id\": \"acog_4x\",\n \"mount\": \"rail_top\"\n }\n ],\n \"stock\": {\n \"kind\": \"retract\"\n }\n },\n {\n \"id\": \"colt_m16a2\",\n \"name\": \"Colt M16A2\",\n \"maker\": \"Colt\",\n \"category\": \"rifle\",\n \"action\": {\n \"kind\": \"firearm\",\n \"caliber\": \"5_56x45\",\n \"rpm\": 800,\n \"modes\": [\n \"semi\",\n \"burst\"\n ],\n \"burst\": 3,\n \"magazine\": 30,\n \"reload\": 2.4,\n \"muzzleSpeed\": 948,\n \"spreadDeg\": 0.6,\n \"bloomDeg\": 0.25,\n \"recoveryDegPerS\": 5,\n \"recoil\": [\n 1.03,\n 0.62\n ],\n \"range\": 400,\n \"family\": \"magazine\",\n \"timings\": {\n \"draw\": 0.35,\n \"reload\": 2.4,\n \"reloadEmpty\": 3.1,\n \"clear\": 1.2\n },\n \"moa\": 2\n },\n \"mass\": 3.4,\n \"dimensions\": {\n \"length\": 1,\n \"barrel\": 0.508,\n \"emptyMass\": 3.4\n },\n \"archetype\": \"rifle_5_56\",\n \"sources\": [\n \"gallery\",\n \"arsenal\",\n \"sdk\"\n ],\n \"mounts\": [\n {\n \"kind\": \"muzzle\",\n \"interfaces\": [\n \"thread_1/2x28\"\n ],\n \"sources\": [\n \"reference\"\n ]\n },\n {\n \"kind\": \"underbarrel\",\n \"interfaces\": [\n \"m203\"\n ],\n \"sources\": [\n \"reference\"\n ]\n },\n {\n \"kind\": \"magazine\",\n \"interfaces\": [\n \"mag_box\"\n ],\n \"sources\": [\n \"gallery\"\n ]\n },\n {\n \"kind\": \"sling\",\n \"interfaces\": [\n \"swivel\"\n ],\n \"sources\": [\n \"derived\"\n ]\n }\n ],\n \"fitted\": []\n },\n {\n \"id\": \"hk416\",\n \"name\": \"HK416\",\n \"category\": \"rifle\",\n \"action\": {\n \"kind\": \"firearm\",\n \"caliber\": \"5_56x45\",\n \"rpm\": 850,\n \"modes\": [\n \"auto\",\n \"semi\"\n ],\n \"magazine\": 30,\n \"reload\": 2.3,\n \"muzzleSpeed\": 880,\n \"spreadDeg\": 0.6,\n \"bloomDeg\": 0.25,\n \"recoveryDegPerS\": 5,\n \"recoil\": [\n 0.86,\n 0.52\n ],\n \"range\": 400,\n \"family\": \"magazine\",\n \"timings\": {\n \"draw\": 0.35,\n \"reload\": 2.3,\n \"reloadEmpty\": 3,\n \"clear\": 1.2\n },\n \"moa\": 1.5\n },\n \"mass\": 3.5,\n \"dimensions\": {\n \"length\": 0.9,\n \"barrel\": 0.368,\n \"emptyMass\": 3.5,\n \"lengthCollapsed\": 0.8\n },\n \"archetype\": \"rifle_5_56\",\n \"sources\": [\n \"gallery\",\n \"arsenal\",\n \"sdk\"\n ],\n \"mounts\": [\n {\n \"kind\": \"muzzle\",\n \"interfaces\": [\n \"thread_1/2x28\"\n ],\n \"sources\": [\n \"reference\"\n ]\n },\n {\n \"kind\": \"rail_top\",\n \"interfaces\": [\n \"picatinny\"\n ],\n \"sources\": [\n \"gallery\"\n ]\n },\n {\n \"kind\": \"rail_left\",\n \"interfaces\": [\n \"picatinny\"\n ],\n \"sources\": [\n \"gallery\"\n ]\n },\n {\n \"kind\": \"rail_right\",\n \"interfaces\": [\n \"picatinny\"\n ],\n \"sources\": [\n \"gallery\"\n ]\n },\n {\n \"kind\": \"rail_bottom\",\n \"interfaces\": [\n \"picatinny\"\n ],\n \"sources\": [\n \"gallery\"\n ]\n },\n {\n \"kind\": \"underbarrel\",\n \"interfaces\": [\n \"ag36\"\n ],\n \"sources\": [\n \"reference\"\n ]\n },\n {\n \"kind\": \"magazine\",\n \"interfaces\": [\n \"mag_box\"\n ],\n \"sources\": [\n \"gallery\"\n ]\n },\n {\n \"kind\": \"sling\",\n \"interfaces\": [\n \"swivel\"\n ],\n \"sources\": [\n \"derived\"\n ]\n }\n ],\n \"fitted\": [\n {\n \"id\": \"red_dot\",\n \"mount\": \"rail_top\"\n }\n ],\n \"stock\": {\n \"kind\": \"retract\"\n }\n },\n {\n \"id\": \"steyr_aug_a1\",\n \"name\": \"Steyr AUG A1\",\n \"maker\": \"Steyr\",\n \"category\": \"rifle\",\n \"action\": {\n \"kind\": \"firearm\",\n \"caliber\": \"5_56x45\",\n \"rpm\": 680,\n \"modes\": [\n \"auto\",\n \"semi\"\n ],\n \"magazine\": 30,\n \"reload\": 2.8,\n \"muzzleSpeed\": 970,\n \"spreadDeg\": 0.6,\n \"bloomDeg\": 0.25,\n \"recoveryDegPerS\": 5,\n \"recoil\": [\n 1.02,\n 0.61\n ],\n \"range\": 400,\n \"family\": \"magazine\",\n \"timings\": {\n \"draw\": 0.35,\n \"reload\": 2.8,\n \"reloadEmpty\": 3.4,\n \"clear\": 1.2\n },\n \"moa\": 2\n },\n \"mass\": 3.6,\n \"dimensions\": {\n \"length\": 0.79,\n \"barrel\": 0.508,\n \"emptyMass\": 3.6\n },\n \"archetype\": \"rifle_5_56\",\n \"sources\": [\n \"gallery\",\n \"arsenal\",\n \"sdk\"\n ],\n \"mounts\": [\n {\n \"kind\": \"rail_top\",\n \"interfaces\": [\n \"integral\"\n ],\n \"sources\": [\n \"reference\"\n ]\n },\n {\n \"kind\": \"magazine\",\n \"interfaces\": [\n \"mag_box\"\n ],\n \"sources\": [\n \"derived\"\n ]\n },\n {\n \"kind\": \"sling\",\n \"interfaces\": [\n \"swivel\"\n ],\n \"sources\": [\n \"derived\"\n ]\n }\n ],\n \"fitted\": [\n {\n \"id\": \"integral_optic_1_5x\",\n \"mount\": \"rail_top\",\n \"integral\": true\n }\n ]\n },\n {\n \"id\": \"fn_fal\",\n \"name\": \"FN FAL\",\n \"maker\": \"FN\",\n \"category\": \"rifle\",\n \"action\": {\n \"kind\": \"firearm\",\n \"caliber\": \"7_62x51\",\n \"rpm\": 650,\n \"modes\": [\n \"auto\",\n \"semi\"\n ],\n \"magazine\": 20,\n \"reload\": 2.7,\n \"muzzleSpeed\": 840,\n \"spreadDeg\": 0.8,\n \"bloomDeg\": 0.35,\n \"recoveryDegPerS\": 4.5,\n \"recoil\": [\n 2.16,\n 1.15\n ],\n \"range\": 350,\n \"family\": \"magazine\",\n \"timings\": {\n \"draw\": 0.35,\n \"reload\": 2.7,\n \"reloadEmpty\": 3.5,\n \"clear\": 1.2\n },\n \"moa\": 3\n },\n \"mass\": 4.3,\n \"dimensions\": {\n \"length\": 1.09,\n \"barrel\": 0.533,\n \"emptyMass\": 4.3\n },\n \"archetype\": \"rifle_7_62x39\",\n \"sources\": [\n \"gallery\",\n \"arsenal\",\n \"sdk\"\n ],\n \"mounts\": [\n {\n \"kind\": \"muzzle\",\n \"interfaces\": [\n \"fixed_muzzle_device\"\n ],\n \"sources\": [\n \"derived\"\n ]\n },\n {\n \"kind\": \"magazine\",\n \"interfaces\": [\n \"mag_box\"\n ],\n \"sources\": [\n \"gallery\"\n ]\n },\n {\n \"kind\": \"sling\",\n \"interfaces\": [\n \"swivel\"\n ],\n \"sources\": [\n \"derived\"\n ]\n }\n ],\n \"fitted\": [\n {\n \"id\": \"muzzle_brake\",\n \"mount\": \"muzzle\"\n }\n ]\n },\n {\n \"id\": \"hk_g3a3\",\n \"name\": \"HK G3A3\",\n \"maker\": \"HK\",\n \"category\": \"rifle\",\n \"action\": {\n \"kind\": \"firearm\",\n \"caliber\": \"7_62x51\",\n \"rpm\": 550,\n \"modes\": [\n \"auto\",\n \"semi\"\n ],\n \"magazine\": 20,\n \"reload\": 2.7,\n \"muzzleSpeed\": 800,\n \"spreadDeg\": 0.8,\n \"bloomDeg\": 0.35,\n \"recoveryDegPerS\": 4.5,\n \"recoil\": [\n 1.91,\n 1.02\n ],\n \"range\": 350,\n \"family\": \"magazine\",\n \"timings\": {\n \"draw\": 0.35,\n \"reload\": 2.7,\n \"reloadEmpty\": 3.6,\n \"clear\": 1.2\n },\n \"moa\": 2.5\n },\n \"mass\": 4.4,\n \"dimensions\": {\n \"length\": 1.025,\n \"barrel\": 0.45,\n \"emptyMass\": 4.4\n },\n \"archetype\": \"rifle_7_62x39\",\n \"sources\": [\n \"gallery\",\n \"arsenal\",\n \"sdk\"\n ],\n \"mounts\": [\n {\n \"kind\": \"magazine\",\n \"interfaces\": [\n \"mag_box\"\n ],\n \"sources\": [\n \"gallery\"\n ]\n },\n {\n \"kind\": \"sling\",\n \"interfaces\": [\n \"swivel\"\n ],\n \"sources\": [\n \"derived\"\n ]\n }\n ],\n \"fitted\": []\n },\n {\n \"id\": \"sks\",\n \"name\": \"SKS\",\n \"category\": \"rifle\",\n \"action\": {\n \"kind\": \"firearm\",\n \"caliber\": \"7_62x39\",\n \"rpm\": 120,\n \"modes\": [\n \"semi\"\n ],\n \"magazine\": 10,\n \"reload\": 2.2,\n \"muzzleSpeed\": 735,\n \"spreadDeg\": 0.8,\n \"bloomDeg\": 0.35,\n \"recoveryDegPerS\": 4.5,\n \"recoil\": [\n 1.54,\n 0.82\n ],\n \"range\": 350,\n \"family\": \"top_load_semi\",\n \"timings\": {\n \"draw\": 0.35,\n \"reload\": 2.2,\n \"clear\": 1.2\n },\n \"moa\": 3\n },\n \"mass\": 3.8,\n \"dimensions\": {\n \"length\": 1.02,\n \"barrel\": 0.52,\n \"emptyMass\": 3.85\n },\n \"archetype\": \"rifle_7_62x39\",\n \"sources\": [\n \"gallery\",\n \"arsenal\",\n \"sdk\"\n ],\n \"mounts\": [\n {\n \"kind\": \"sling\",\n \"interfaces\": [\n \"swivel\"\n ],\n \"sources\": [\n \"derived\"\n ]\n }\n ],\n \"fitted\": []\n },\n {\n \"id\": \"m14_ebr\",\n \"name\": \"M14 EBR\",\n \"category\": \"dmr\",\n \"action\": {\n \"kind\": \"firearm\",\n \"caliber\": \"7_62x51\",\n \"rpm\": 120,\n \"modes\": [\n \"semi\"\n ],\n \"magazine\": 20,\n \"reload\": 2.8,\n \"muzzleSpeed\": 850,\n \"spreadDeg\": 0.25,\n \"bloomDeg\": 0.3,\n \"recoveryDegPerS\": 3,\n \"recoil\": [\n 2.13,\n 0.36\n ],\n \"range\": 800,\n \"family\": \"magazine\",\n \"timings\": {\n \"draw\": 0.35,\n \"reload\": 2.8,\n \"clear\": 1.2\n },\n \"moa\": 1.5\n },\n \"mass\": 5.1,\n \"dimensions\": {\n \"length\": 1,\n \"barrel\": 0.457,\n \"emptyMass\": 5.1,\n \"lengthCollapsed\": 0.81\n },\n \"archetype\": \"rifle_bolt_308\",\n \"sources\": [\n \"gallery\",\n \"arsenal\",\n \"sdk\"\n ],\n \"mounts\": [\n {\n \"kind\": \"rail_top\",\n \"interfaces\": [\n \"picatinny\"\n ],\n \"sources\": [\n \"gallery\"\n ]\n },\n {\n \"kind\": \"rail_left\",\n \"interfaces\": [\n \"picatinny\"\n ],\n \"sources\": [\n \"gallery\"\n ]\n },\n {\n \"kind\": \"rail_right\",\n \"interfaces\": [\n \"picatinny\"\n ],\n \"sources\": [\n \"gallery\"\n ]\n },\n {\n \"kind\": \"rail_bottom\",\n \"interfaces\": [\n \"picatinny\"\n ],\n \"sources\": [\n \"gallery\"\n ]\n },\n {\n \"kind\": \"magazine\",\n \"interfaces\": [\n \"mag_box\"\n ],\n \"sources\": [\n \"gallery\"\n ]\n },\n {\n \"kind\": \"sling\",\n \"interfaces\": [\n \"swivel\"\n ],\n \"sources\": [\n \"derived\"\n ]\n }\n ],\n \"fitted\": [\n {\n \"id\": \"scope_3_9x\",\n \"mount\": \"rail_top\"\n }\n ],\n \"stock\": {\n \"kind\": \"retract\"\n }\n },\n {\n \"id\": \"svd_dragunov\",\n \"name\": \"SVD Dragunov\",\n \"category\": \"dmr\",\n \"action\": {\n \"kind\": \"firearm\",\n \"caliber\": \"7_62x54r\",\n \"rpm\": 120,\n \"modes\": [\n \"semi\"\n ],\n \"magazine\": 10,\n \"reload\": 2.9,\n \"muzzleSpeed\": 830,\n \"spreadDeg\": 0.25,\n \"bloomDeg\": 0.3,\n \"recoveryDegPerS\": 3,\n \"recoil\": [\n 2.39,\n 0.4\n ],\n \"range\": 800,\n \"family\": \"magazine\",\n \"timings\": {\n \"draw\": 0.35,\n \"reload\": 2.9,\n \"clear\": 1.2\n },\n \"moa\": 1.5\n },\n \"mass\": 4.3,\n \"dimensions\": {\n \"length\": 1.225,\n \"barrel\": 0.62,\n \"emptyMass\": 4.3\n },\n \"archetype\": \"rifle_bolt_308\",\n \"sources\": [\n \"gallery\",\n \"arsenal\",\n \"sdk\"\n ],\n \"mounts\": [\n {\n \"kind\": \"muzzle\",\n \"interfaces\": [\n \"fixed_muzzle_device\"\n ],\n \"sources\": [\n \"derived\"\n ]\n },\n {\n \"kind\": \"rail_top\",\n \"interfaces\": [\n \"pso_1_side\"\n ],\n \"sources\": [\n \"reference\"\n ]\n },\n {\n \"kind\": \"magazine\",\n \"interfaces\": [\n \"mag_box\"\n ],\n \"sources\": [\n \"gallery\"\n ]\n },\n {\n \"kind\": \"sling\",\n \"interfaces\": [\n \"swivel\"\n ],\n \"sources\": [\n \"derived\"\n ]\n }\n ],\n \"fitted\": [\n {\n \"id\": \"muzzle_brake\",\n \"mount\": \"muzzle\"\n },\n {\n \"id\": \"pso_1\",\n \"mount\": \"rail_top\",\n \"integral\": true\n }\n ]\n },\n {\n \"id\": \"fn_scar_h\",\n \"name\": \"FN SCAR-H\",\n \"maker\": \"FN\",\n \"category\": \"dmr\",\n \"action\": {\n \"kind\": \"firearm\",\n \"caliber\": \"7_62x51\",\n \"rpm\": 600,\n \"modes\": [\n \"auto\",\n \"semi\"\n ],\n \"magazine\": 20,\n \"reload\": 2.6,\n \"muzzleSpeed\": 770,\n \"spreadDeg\": 0.25,\n \"bloomDeg\": 0.3,\n \"recoveryDegPerS\": 3,\n \"recoil\": [\n 2.48,\n 0.41\n ],\n \"range\": 800,\n \"family\": \"magazine\",\n \"timings\": {\n \"draw\": 0.35,\n \"reload\": 2.6,\n \"clear\": 1.2\n },\n \"moa\": 1.5\n },\n \"mass\": 3.6,\n \"dimensions\": {\n \"length\": 0.965,\n \"barrel\": 0.4,\n \"emptyMass\": 3.6,\n \"lengthCollapsed\": 0.71\n },\n \"archetype\": \"rifle_bolt_308\",\n \"sources\": [\n \"gallery\",\n \"arsenal\",\n \"sdk\"\n ],\n \"mounts\": [\n {\n \"kind\": \"muzzle\",\n \"interfaces\": [\n \"thread_5/8x24\"\n ],\n \"sources\": [\n \"reference\"\n ]\n },\n {\n \"kind\": \"rail_top\",\n \"interfaces\": [\n \"picatinny\"\n ],\n \"sources\": [\n \"gallery\"\n ]\n },\n {\n \"kind\": \"rail_left\",\n \"interfaces\": [\n \"picatinny\"\n ],\n \"sources\": [\n \"gallery\"\n ]\n },\n {\n \"kind\": \"rail_right\",\n \"interfaces\": [\n \"picatinny\"\n ],\n \"sources\": [\n \"gallery\"\n ]\n },\n {\n \"kind\": \"rail_bottom\",\n \"interfaces\": [\n \"picatinny\"\n ],\n \"sources\": [\n \"gallery\"\n ]\n },\n {\n \"kind\": \"magazine\",\n \"interfaces\": [\n \"mag_box\"\n ],\n \"sources\": [\n \"gallery\"\n ]\n },\n {\n \"kind\": \"sling\",\n \"interfaces\": [\n \"swivel\"\n ],\n \"sources\": [\n \"derived\"\n ]\n }\n ],\n \"fitted\": [\n {\n \"id\": \"acog_4x\",\n \"mount\": \"rail_top\"\n }\n ],\n \"stock\": {\n \"kind\": \"fold\",\n \"foldAxis\": \"right\"\n }\n },\n {\n \"id\": \"knights_sr_25_mk11\",\n \"name\": \"Knight's SR-25 (Mk 11)\",\n \"maker\": \"Knight's\",\n \"category\": \"dmr\",\n \"action\": {\n \"kind\": \"firearm\",\n \"caliber\": \"7_62x51\",\n \"rpm\": 120,\n \"modes\": [\n \"semi\"\n ],\n \"magazine\": 20,\n \"reload\": 2.7,\n \"muzzleSpeed\": 800,\n \"spreadDeg\": 0.25,\n \"bloomDeg\": 0.3,\n \"recoveryDegPerS\": 3,\n \"recoil\": [\n 2.14,\n 0.36\n ],\n \"range\": 800,\n \"family\": \"magazine\",\n \"timings\": {\n \"draw\": 0.35,\n \"reload\": 2.7,\n \"clear\": 1.2\n },\n \"moa\": 1\n },\n \"mass\": 4.5,\n \"dimensions\": {\n \"length\": 1.156,\n \"barrel\": 0.508,\n \"emptyMass\": 4.5\n },\n \"archetype\": \"rifle_bolt_308\",\n \"sources\": [\n \"gallery\",\n \"arsenal\",\n \"sdk\"\n ],\n \"mounts\": [\n {\n \"kind\": \"rail_top\",\n \"interfaces\": [\n \"picatinny\"\n ],\n \"sources\": [\n \"gallery\"\n ]\n },\n {\n \"kind\": \"rail_left\",\n \"interfaces\": [\n \"picatinny\"\n ],\n \"sources\": [\n \"gallery\"\n ]\n },\n {\n \"kind\": \"rail_right\",\n \"interfaces\": [\n \"picatinny\"\n ],\n \"sources\": [\n \"gallery\"\n ]\n },\n {\n \"kind\": \"rail_bottom\",\n \"interfaces\": [\n \"picatinny\",\n \"bipod_stud\"\n ],\n \"sources\": [\n \"gallery\"\n ]\n },\n {\n \"kind\": \"magazine\",\n \"interfaces\": [\n \"mag_box\"\n ],\n \"sources\": [\n \"gallery\"\n ]\n },\n {\n \"kind\": \"sling\",\n \"interfaces\": [\n \"swivel\"\n ],\n \"sources\": [\n \"derived\"\n ]\n }\n ],\n \"fitted\": [\n {\n \"id\": \"scope_3_9x\",\n \"mount\": \"rail_top\"\n },\n {\n \"id\": \"bipod\",\n \"mount\": \"rail_bottom\"\n }\n ]\n },\n {\n \"id\": \"hk_psg_1\",\n \"name\": \"HK PSG-1\",\n \"maker\": \"HK\",\n \"category\": \"dmr\",\n \"action\": {\n \"kind\": \"firearm\",\n \"caliber\": \"7_62x51\",\n \"rpm\": 120,\n \"modes\": [\n \"semi\"\n ],\n \"magazine\": 5,\n \"magazineOptions\": [\n 20\n ],\n \"reload\": 2.7,\n \"spreadDeg\": 0.25,\n \"bloomDeg\": 0.3,\n \"recoveryDegPerS\": 3,\n \"recoil\": [\n 1.51,\n 0.25\n ],\n \"range\": 800,\n \"family\": \"magazine\",\n \"timings\": {\n \"draw\": 0.35,\n \"reload\": 2.7,\n \"reloadEmpty\": 3.6,\n \"clear\": 1.2\n },\n \"faultFactor\": 0.7\n },\n \"mass\": 7.2,\n \"dimensions\": {\n \"length\": 1.208,\n \"barrel\": 0.65,\n \"emptyMass\": 7.2\n },\n \"archetype\": \"rifle_bolt_308\",\n \"sources\": [\n \"gallery\",\n \"sdk\",\n \"derived\"\n ],\n \"mounts\": [\n {\n \"kind\": \"rail_top\",\n \"interfaces\": [\n \"dovetail\"\n ],\n \"sources\": [\n \"derived\"\n ]\n },\n {\n \"kind\": \"magazine\",\n \"interfaces\": [\n \"mag_box\"\n ],\n \"sources\": [\n \"gallery\"\n ]\n },\n {\n \"kind\": \"sling\",\n \"interfaces\": [\n \"swivel\"\n ],\n \"sources\": [\n \"derived\"\n ]\n }\n ],\n \"fitted\": [\n {\n \"id\": \"scope_3_9x\",\n \"mount\": \"rail_top\"\n }\n ]\n },\n {\n \"id\": \"steyr_ssg_69\",\n \"name\": \"Steyr SSG 69\",\n \"maker\": \"Steyr\",\n \"category\": \"sniper\",\n \"action\": {\n \"kind\": \"firearm\",\n \"caliber\": \"7_62x51\",\n \"rpm\": 73.17,\n \"modes\": [\n \"bolt\"\n ],\n \"magazine\": 5,\n \"reload\": 0.7,\n \"perRound\": true,\n \"spreadDeg\": 0.25,\n \"bloomDeg\": 0.3,\n \"recoveryDegPerS\": 3,\n \"recoil\": [\n 2.79,\n 0.47\n ],\n \"range\": 800,\n \"family\": \"bolt\",\n \"timings\": {\n \"draw\": 0.35,\n \"reload\": 0.7,\n \"perRound\": 0.7,\n \"cycle\": 0.82,\n \"clear\": 1.2\n },\n \"faultFactor\": 0.6\n },\n \"mass\": 3.9,\n \"dimensions\": {\n \"length\": 1.14,\n \"barrel\": 0.65,\n \"emptyMass\": 3.9\n },\n \"archetype\": \"rifle_bolt_308\",\n \"sources\": [\n \"gallery\",\n \"sdk\",\n \"derived\"\n ],\n \"mounts\": [\n {\n \"kind\": \"rail_top\",\n \"interfaces\": [\n \"dovetail\"\n ],\n \"sources\": [\n \"derived\"\n ]\n },\n {\n \"kind\": \"sling\",\n \"interfaces\": [\n \"swivel\"\n ],\n \"sources\": [\n \"derived\"\n ]\n }\n ],\n \"fitted\": [\n {\n \"id\": \"scope_3_9x\",\n \"mount\": \"rail_top\"\n }\n ]\n },\n {\n \"id\": \"barrett_mrad\",\n \"name\": \"Barrett MRAD\",\n \"maker\": \"Barrett\",\n \"category\": \"sniper\",\n \"action\": {\n \"kind\": \"firearm\",\n \"caliber\": \"338lapua\",\n \"rpm\": 73.17,\n \"modes\": [\n \"bolt\"\n ],\n \"magazine\": 10,\n \"reload\": 3.2,\n \"spreadDeg\": 0.1,\n \"bloomDeg\": 0.3,\n \"recoveryDegPerS\": 2.5,\n \"recoil\": [\n 3.85,\n 0.6\n ],\n \"range\": 1500,\n \"family\": \"bolt_magazine\",\n \"timings\": {\n \"draw\": 0.35,\n \"reload\": 3.2,\n \"cycle\": 0.82,\n \"clear\": 1.2\n }\n },\n \"mass\": 6.9,\n \"dimensions\": {\n \"length\": 1.26,\n \"barrel\": 0.686,\n \"emptyMass\": 6.9,\n \"lengthCollapsed\": 1.055\n },\n \"archetype\": \"sniper_338\",\n \"sources\": [\n \"gallery\",\n \"sdk\",\n \"derived\"\n ],\n \"mounts\": [\n {\n \"kind\": \"muzzle\",\n \"interfaces\": [\n \"fixed_muzzle_device\"\n ],\n \"sources\": [\n \"derived\"\n ]\n },\n {\n \"kind\": \"rail_top\",\n \"interfaces\": [\n \"picatinny\"\n ],\n \"sources\": [\n \"gallery\"\n ]\n },\n {\n \"kind\": \"rail_left\",\n \"interfaces\": [\n \"picatinny\"\n ],\n \"sources\": [\n \"gallery\"\n ]\n },\n {\n \"kind\": \"rail_right\",\n \"interfaces\": [\n \"picatinny\"\n ],\n \"sources\": [\n \"gallery\"\n ]\n },\n {\n \"kind\": \"rail_bottom\",\n \"interfaces\": [\n \"picatinny\",\n \"bipod_stud\"\n ],\n \"sources\": [\n \"gallery\"\n ]\n },\n {\n \"kind\": \"magazine\",\n \"interfaces\": [\n \"mag_box\"\n ],\n \"sources\": [\n \"gallery\"\n ]\n },\n {\n \"kind\": \"sling\",\n \"interfaces\": [\n \"swivel\"\n ],\n \"sources\": [\n \"derived\"\n ]\n }\n ],\n \"fitted\": [\n {\n \"id\": \"muzzle_brake\",\n \"mount\": \"muzzle\"\n },\n {\n \"id\": \"scope_3_9x\",\n \"mount\": \"rail_top\"\n },\n {\n \"id\": \"bipod\",\n \"mount\": \"rail_bottom\"\n }\n ],\n \"stock\": {\n \"kind\": \"fold\",\n \"foldAxis\": \"right\"\n }\n },\n {\n \"id\": \"cheytac_m200\",\n \"name\": \"CheyTac M200\",\n \"maker\": \"CheyTac\",\n \"category\": \"sniper\",\n \"action\": {\n \"kind\": \"firearm\",\n \"caliber\": \"408cheytac\",\n \"rpm\": 73.17,\n \"modes\": [\n \"bolt\"\n ],\n \"magazine\": 7,\n \"reload\": 3.2,\n \"spreadDeg\": 0.1,\n \"bloomDeg\": 0.3,\n \"recoveryDegPerS\": 2.5,\n \"recoil\": [\n 3.16,\n 0.49\n ],\n \"range\": 1500,\n \"family\": \"bolt_magazine\",\n \"timings\": {\n \"draw\": 0.35,\n \"reload\": 3.2,\n \"cycle\": 0.82,\n \"clear\": 1.2\n }\n },\n \"mass\": 14,\n \"dimensions\": {\n \"length\": 1.397,\n \"barrel\": 0.737,\n \"emptyMass\": 14,\n \"lengthCollapsed\": 1.187\n },\n \"archetype\": \"sniper_338\",\n \"sources\": [\n \"gallery\",\n \"sdk\",\n \"derived\"\n ],\n \"mounts\": [\n {\n \"kind\": \"muzzle\",\n \"interfaces\": [\n \"fixed_muzzle_device\"\n ],\n \"sources\": [\n \"derived\"\n ]\n },\n {\n \"kind\": \"rail_top\",\n \"interfaces\": [\n \"dovetail\"\n ],\n \"sources\": [\n \"derived\"\n ]\n },\n {\n \"kind\": \"rail_bottom\",\n \"interfaces\": [\n \"bipod_stud\"\n ],\n \"sources\": [\n \"gallery\"\n ]\n },\n {\n \"kind\": \"magazine\",\n \"interfaces\": [\n \"mag_box\"\n ],\n \"sources\": [\n \"gallery\"\n ]\n },\n {\n \"kind\": \"sling\",\n \"interfaces\": [\n \"swivel\"\n ],\n \"sources\": [\n \"derived\"\n ]\n }\n ],\n \"fitted\": [\n {\n \"id\": \"muzzle_brake\",\n \"mount\": \"muzzle\"\n },\n {\n \"id\": \"scope_6_24x\",\n \"mount\": \"rail_top\"\n },\n {\n \"id\": \"bipod\",\n \"mount\": \"rail_bottom\"\n }\n ],\n \"stock\": {\n \"kind\": \"retract\"\n }\n },\n {\n \"id\": \"remington_700\",\n \"name\": \"Remington 700\",\n \"maker\": \"Remington\",\n \"category\": \"sniper\",\n \"action\": {\n \"kind\": \"firearm\",\n \"caliber\": \"7_62x51\",\n \"rpm\": 73.17,\n \"modes\": [\n \"bolt\"\n ],\n \"magazine\": 4,\n \"reload\": 0.7,\n \"perRound\": true,\n \"muzzleSpeed\": 790,\n \"spreadDeg\": 0.25,\n \"bloomDeg\": 0.3,\n \"recoveryDegPerS\": 3,\n \"recoil\": [\n 2.35,\n 0.39\n ],\n \"range\": 800,\n \"family\": \"bolt\",\n \"timings\": {\n \"draw\": 0.35,\n \"reload\": 0.7,\n \"perRound\": 0.7,\n \"cycle\": 0.82,\n \"clear\": 1.2\n },\n \"moa\": 1\n },\n \"mass\": 4,\n \"dimensions\": {\n \"length\": 1.1,\n \"barrel\": 0.61,\n \"emptyMass\": 3.6\n },\n \"archetype\": \"rifle_bolt_308\",\n \"sources\": [\n \"gallery\",\n \"arsenal\",\n \"sdk\"\n ],\n \"mounts\": [\n {\n \"kind\": \"rail_top\",\n \"interfaces\": [\n \"dovetail\"\n ],\n \"sources\": [\n \"derived\"\n ]\n },\n {\n \"kind\": \"sling\",\n \"interfaces\": [\n \"swivel\"\n ],\n \"sources\": [\n \"derived\"\n ]\n }\n ],\n \"fitted\": [\n {\n \"id\": \"scope_3_9x\",\n \"mount\": \"rail_top\"\n }\n ]\n },\n {\n \"id\": \"m24_sws\",\n \"name\": \"M24 SWS\",\n \"category\": \"sniper\",\n \"action\": {\n \"kind\": \"firearm\",\n \"caliber\": \"7_62x51\",\n \"rpm\": 73.17,\n \"modes\": [\n \"bolt\"\n ],\n \"magazine\": 5,\n \"reload\": 0.7,\n \"perRound\": true,\n \"muzzleSpeed\": 790,\n \"spreadDeg\": 0.25,\n \"bloomDeg\": 0.3,\n \"recoveryDegPerS\": 3,\n \"recoil\": [\n 1.74,\n 0.29\n ],\n \"range\": 800,\n \"family\": \"bolt\",\n \"timings\": {\n \"draw\": 0.35,\n \"reload\": 0.7,\n \"perRound\": 0.7,\n \"cycle\": 0.82,\n \"clear\": 1.2\n },\n \"moa\": 0.75\n },\n \"mass\": 5.4,\n \"dimensions\": {\n \"length\": 1.092,\n \"barrel\": 0.61,\n \"emptyMass\": 5.4\n },\n \"archetype\": \"rifle_bolt_308\",\n \"sources\": [\n \"gallery\",\n \"arsenal\",\n \"sdk\"\n ],\n \"mounts\": [\n {\n \"kind\": \"rail_top\",\n \"interfaces\": [\n \"integral\"\n ],\n \"sources\": [\n \"reference\"\n ]\n },\n {\n \"kind\": \"rail_bottom\",\n \"interfaces\": [\n \"bipod_stud\"\n ],\n \"sources\": [\n \"gallery\"\n ]\n },\n {\n \"kind\": \"sling\",\n \"interfaces\": [\n \"swivel\"\n ],\n \"sources\": [\n \"derived\"\n ]\n }\n ],\n \"fitted\": [\n {\n \"id\": \"bipod\",\n \"mount\": \"rail_bottom\"\n },\n {\n \"id\": \"fixed_scope_10x\",\n \"mount\": \"rail_top\",\n \"integral\": true\n }\n ]\n },\n {\n \"id\": \"mosin_nagant_91_30\",\n \"name\": \"Mosin-Nagant 91/30\",\n \"category\": \"sniper\",\n \"action\": {\n \"kind\": \"firearm\",\n \"caliber\": \"7_62x54r\",\n \"rpm\": 73.17,\n \"modes\": [\n \"bolt\"\n ],\n \"magazine\": 5,\n \"reload\": 2.4,\n \"muzzleSpeed\": 865,\n \"spreadDeg\": 0.25,\n \"bloomDeg\": 0.3,\n \"recoveryDegPerS\": 3,\n \"recoil\": [\n 2.79,\n 0.46\n ],\n \"range\": 800,\n \"family\": \"bolt\",\n \"timings\": {\n \"draw\": 0.35,\n \"reload\": 2.4,\n \"cycle\": 0.82,\n \"clear\": 1.2\n },\n \"moa\": 2.5\n },\n \"mass\": 4,\n \"dimensions\": {\n \"length\": 1.232,\n \"barrel\": 0.73,\n \"emptyMass\": 4\n },\n \"archetype\": \"rifle_bolt_308\",\n \"sources\": [\n \"gallery\",\n \"arsenal\",\n \"sdk\"\n ],\n \"mounts\": [\n {\n \"kind\": \"sling\",\n \"interfaces\": [\n \"swivel\"\n ],\n \"sources\": [\n \"derived\"\n ]\n }\n ],\n \"fitted\": []\n },\n {\n \"id\": \"accuracy_awm\",\n \"name\": \"Accuracy AWM\",\n \"maker\": \"Accuracy\",\n \"category\": \"sniper\",\n \"action\": {\n \"kind\": \"firearm\",\n \"caliber\": \"338lapua\",\n \"rpm\": 73.17,\n \"modes\": [\n \"bolt\"\n ],\n \"magazine\": 5,\n \"reload\": 3.2,\n \"muzzleSpeed\": 936,\n \"spreadDeg\": 0.1,\n \"bloomDeg\": 0.3,\n \"recoveryDegPerS\": 2.5,\n \"recoil\": [\n 4.13,\n 0.64\n ],\n \"range\": 1500,\n \"family\": \"bolt_magazine\",\n \"timings\": {\n \"draw\": 0.35,\n \"reload\": 3.2,\n \"cycle\": 0.82,\n \"clear\": 1.2\n },\n \"moa\": 0.5\n },\n \"mass\": 6.9,\n \"dimensions\": {\n \"length\": 1.23,\n \"barrel\": 0.686,\n \"emptyMass\": 6.9\n },\n \"archetype\": \"sniper_338\",\n \"sources\": [\n \"gallery\",\n \"arsenal\",\n \"sdk\"\n ],\n \"mounts\": [\n {\n \"kind\": \"muzzle\",\n \"interfaces\": [\n \"fixed_muzzle_device\"\n ],\n \"sources\": [\n \"derived\"\n ]\n },\n {\n \"kind\": \"rail_top\",\n \"interfaces\": [\n \"dovetail\"\n ],\n \"sources\": [\n \"derived\"\n ]\n },\n {\n \"kind\": \"rail_bottom\",\n \"interfaces\": [\n \"bipod_stud\"\n ],\n \"sources\": [\n \"gallery\"\n ]\n },\n {\n \"kind\": \"magazine\",\n \"interfaces\": [\n \"mag_box\"\n ],\n \"sources\": [\n \"gallery\"\n ]\n },\n {\n \"kind\": \"sling\",\n \"interfaces\": [\n \"swivel\"\n ],\n \"sources\": [\n \"derived\"\n ]\n }\n ],\n \"fitted\": [\n {\n \"id\": \"muzzle_brake\",\n \"mount\": \"muzzle\"\n },\n {\n \"id\": \"scope_3_9x\",\n \"mount\": \"rail_top\"\n },\n {\n \"id\": \"bipod\",\n \"mount\": \"rail_bottom\"\n }\n ]\n },\n {\n \"id\": \"sako_trg_42\",\n \"name\": \"Sako TRG-42\",\n \"maker\": \"Sako\",\n \"category\": \"sniper\",\n \"action\": {\n \"kind\": \"firearm\",\n \"caliber\": \"338lapua\",\n \"rpm\": 73.17,\n \"modes\": [\n \"bolt\"\n ],\n \"magazine\": 5,\n \"reload\": 3,\n \"muzzleSpeed\": 900,\n \"spreadDeg\": 0.1,\n \"bloomDeg\": 0.3,\n \"recoveryDegPerS\": 2.5,\n \"recoil\": [\n 5.17,\n 0.8\n ],\n \"range\": 1500,\n \"family\": \"bolt_magazine\",\n \"timings\": {\n \"draw\": 0.35,\n \"reload\": 3,\n \"cycle\": 0.82,\n \"clear\": 1.2\n },\n \"moa\": 0.5\n },\n \"mass\": 5.1,\n \"dimensions\": {\n \"length\": 1.2,\n \"barrel\": 0.69,\n \"emptyMass\": 5.1\n },\n \"archetype\": \"sniper_338\",\n \"sources\": [\n \"gallery\",\n \"arsenal\",\n \"sdk\"\n ],\n \"mounts\": [\n {\n \"kind\": \"muzzle\",\n \"interfaces\": [\n \"fixed_muzzle_device\"\n ],\n \"sources\": [\n \"derived\"\n ]\n },\n {\n \"kind\": \"rail_top\",\n \"interfaces\": [\n \"dovetail\"\n ],\n \"sources\": [\n \"derived\"\n ]\n },\n {\n \"kind\": \"rail_bottom\",\n \"interfaces\": [\n \"bipod_stud\"\n ],\n \"sources\": [\n \"gallery\"\n ]\n },\n {\n \"kind\": \"magazine\",\n \"interfaces\": [\n \"mag_box\"\n ],\n \"sources\": [\n \"gallery\"\n ]\n },\n {\n \"kind\": \"sling\",\n \"interfaces\": [\n \"swivel\"\n ],\n \"sources\": [\n \"derived\"\n ]\n }\n ],\n \"fitted\": [\n {\n \"id\": \"muzzle_brake\",\n \"mount\": \"muzzle\"\n },\n {\n \"id\": \"scope_3_9x\",\n \"mount\": \"rail_top\"\n },\n {\n \"id\": \"bipod\",\n \"mount\": \"rail_bottom\"\n }\n ]\n },\n {\n \"id\": \"barrett_m82a1\",\n \"name\": \"Barrett M82A1\",\n \"maker\": \"Barrett\",\n \"category\": \"sniper\",\n \"action\": {\n \"kind\": \"firearm\",\n \"caliber\": \"50bmg\",\n \"rpm\": 30,\n \"modes\": [\n \"semi\"\n ],\n \"magazine\": 10,\n \"reload\": 4,\n \"muzzleSpeed\": 853,\n \"spreadDeg\": 0.15,\n \"bloomDeg\": 0.5,\n \"recoveryDegPerS\": 2,\n \"recoil\": [\n 4.82,\n 0.83\n ],\n \"range\": 1800,\n \"family\": \"magazine\",\n \"timings\": {\n \"draw\": 0.35,\n \"reload\": 4,\n \"clear\": 1.2\n },\n \"moa\": 1.5\n },\n \"mass\": 14,\n \"dimensions\": {\n \"length\": 1.448,\n \"barrel\": 0.737,\n \"emptyMass\": 14\n },\n \"archetype\": \"anti_materiel_50\",\n \"sources\": [\n \"gallery\",\n \"arsenal\",\n \"sdk\"\n ],\n \"mounts\": [\n {\n \"kind\": \"muzzle\",\n \"interfaces\": [\n \"fixed_muzzle_device\"\n ],\n \"sources\": [\n \"derived\"\n ]\n },\n {\n \"kind\": \"rail_top\",\n \"interfaces\": [\n \"dovetail\"\n ],\n \"sources\": [\n \"derived\"\n ]\n },\n {\n \"kind\": \"rail_bottom\",\n \"interfaces\": [\n \"bipod_stud\"\n ],\n \"sources\": [\n \"gallery\"\n ]\n },\n {\n \"kind\": \"magazine\",\n \"interfaces\": [\n \"mag_box\"\n ],\n \"sources\": [\n \"gallery\"\n ]\n },\n {\n \"kind\": \"sling\",\n \"interfaces\": [\n \"swivel\"\n ],\n \"sources\": [\n \"derived\"\n ]\n }\n ],\n \"fitted\": [\n {\n \"id\": \"muzzle_brake_heavy\",\n \"mount\": \"muzzle\"\n },\n {\n \"id\": \"scope_3_9x\",\n \"mount\": \"rail_top\"\n },\n {\n \"id\": \"bipod\",\n \"mount\": \"rail_bottom\"\n }\n ]\n },\n {\n \"id\": \"ruger_10_22\",\n \"name\": \"Ruger 10/22\",\n \"maker\": \"Ruger\",\n \"category\": \"hunting\",\n \"action\": {\n \"kind\": \"firearm\",\n \"caliber\": \"22lr\",\n \"rpm\": 300,\n \"modes\": [\n \"semi\"\n ],\n \"magazine\": 10,\n \"magazineOptions\": [\n 25\n ],\n \"reload\": 1.9,\n \"muzzleSpeed\": 380,\n \"spreadDeg\": 0.5,\n \"bloomDeg\": 0.15,\n \"recoveryDegPerS\": 5,\n \"recoil\": [\n 0.25,\n 0.09\n ],\n \"range\": 80,\n \"family\": \"top_load_semi\",\n \"timings\": {\n \"draw\": 0.35,\n \"reload\": 1.9,\n \"clear\": 1.2\n },\n \"moa\": 1.5\n },\n \"mass\": 2.3,\n \"dimensions\": {\n \"length\": 0.94,\n \"barrel\": 0.47,\n \"emptyMass\": 2.3\n },\n \"archetype\": \"carbine_22\",\n \"sources\": [\n \"gallery\",\n \"arsenal\",\n \"sdk\"\n ],\n \"mounts\": [\n {\n \"kind\": \"sling\",\n \"interfaces\": [\n \"swivel\"\n ],\n \"sources\": [\n \"derived\"\n ]\n }\n ],\n \"fitted\": []\n },\n {\n \"id\": \"cbc_7022\",\n \"name\": \"CBC 7022\",\n \"maker\": \"CBC\",\n \"category\": \"hunting\",\n \"action\": {\n \"kind\": \"firearm\",\n \"caliber\": \"22lr\",\n \"rpm\": 300,\n \"modes\": [\n \"semi\"\n ],\n \"magazine\": 10,\n \"reload\": 1.9,\n \"muzzleSpeed\": 380,\n \"spreadDeg\": 0.5,\n \"bloomDeg\": 0.15,\n \"recoveryDegPerS\": 5,\n \"recoil\": [\n 0.29,\n 0.11\n ],\n \"range\": 80,\n \"family\": \"top_load_semi\",\n \"timings\": {\n \"draw\": 0.35,\n \"reload\": 1.9,\n \"clear\": 1.2\n },\n \"moa\": 2\n },\n \"mass\": 2,\n \"dimensions\": {\n \"length\": 1,\n \"barrel\": 0.53,\n \"emptyMass\": 2\n },\n \"archetype\": \"carbine_22\",\n \"sources\": [\n \"gallery\",\n \"arsenal\",\n \"sdk\"\n ],\n \"mounts\": [\n {\n \"kind\": \"sling\",\n \"interfaces\": [\n \"swivel\"\n ],\n \"sources\": [\n \"derived\"\n ]\n }\n ],\n \"fitted\": []\n },\n {\n \"id\": \"cbc_122\",\n \"name\": \"CBC 122\",\n \"maker\": \"CBC\",\n \"category\": \"hunting\",\n \"action\": {\n \"kind\": \"firearm\",\n \"caliber\": \"22lr\",\n \"rpm\": 73.17,\n \"modes\": [\n \"bolt\"\n ],\n \"magazine\": 10,\n \"reload\": 1.9,\n \"muzzleSpeed\": 380,\n \"spreadDeg\": 0.5,\n \"bloomDeg\": 0.15,\n \"recoveryDegPerS\": 5,\n \"recoil\": [\n 0.24,\n 0.09\n ],\n \"range\": 80,\n \"family\": \"bolt\",\n \"timings\": {\n \"draw\": 0.35,\n \"reload\": 1.9,\n \"cycle\": 0.82,\n \"clear\": 1.2\n },\n \"moa\": 1.5\n },\n \"mass\": 2.4,\n \"dimensions\": {\n \"length\": 1.03,\n \"barrel\": 0.59,\n \"emptyMass\": 2.4\n },\n \"archetype\": \"carbine_22\",\n \"sources\": [\n \"gallery\",\n \"arsenal\",\n \"sdk\"\n ],\n \"mounts\": [\n {\n \"kind\": \"sling\",\n \"interfaces\": [\n \"swivel\"\n ],\n \"sources\": [\n \"derived\"\n ]\n }\n ],\n \"fitted\": []\n },\n {\n \"id\": \"winchester_1894\",\n \"name\": \"Winchester 1894\",\n \"maker\": \"Winchester\",\n \"category\": \"hunting\",\n \"action\": {\n \"kind\": \"firearm\",\n \"caliber\": \"30_30\",\n \"rpm\": 109.09,\n \"modes\": [\n \"lever\"\n ],\n \"magazine\": 7,\n \"reload\": 0.6,\n \"perRound\": true,\n \"muzzleSpeed\": 670,\n \"spreadDeg\": 0.25,\n \"bloomDeg\": 0.3,\n \"recoveryDegPerS\": 3,\n \"recoil\": [\n 2.25,\n 0.38\n ],\n \"range\": 800,\n \"family\": \"lever\",\n \"timings\": {\n \"draw\": 0.35,\n \"reload\": 0.6,\n \"perRound\": 0.6,\n \"cycle\": 0.55,\n \"clear\": 1.2\n },\n \"moa\": 3\n },\n \"mass\": 3,\n \"dimensions\": {\n \"length\": 0.965,\n \"barrel\": 0.508,\n \"emptyMass\": 3\n },\n \"archetype\": \"rifle_bolt_308\",\n \"sources\": [\n \"gallery\",\n \"arsenal\",\n \"sdk\"\n ],\n \"mounts\": [\n {\n \"kind\": \"sling\",\n \"interfaces\": [\n \"swivel\"\n ],\n \"sources\": [\n \"derived\"\n ]\n }\n ],\n \"fitted\": []\n },\n {\n \"id\": \"rossi_puma\",\n \"name\": \"Rossi Puma\",\n \"maker\": \"Rossi\",\n \"category\": \"hunting\",\n \"action\": {\n \"kind\": \"firearm\",\n \"caliber\": \"357mag\",\n \"rpm\": 109.09,\n \"modes\": [\n \"lever\"\n ],\n \"magazine\": 10,\n \"reload\": 0.5,\n \"perRound\": true,\n \"muzzleSpeed\": 500,\n \"spreadDeg\": 0.25,\n \"bloomDeg\": 0.3,\n \"recoveryDegPerS\": 3,\n \"recoil\": [\n 1.47,\n 0.24\n ],\n \"range\": 800,\n \"family\": \"lever\",\n \"timings\": {\n \"draw\": 0.35,\n \"reload\": 0.5,\n \"perRound\": 0.5,\n \"cycle\": 0.55,\n \"clear\": 1.2\n },\n \"moa\": 3,\n \"acceptsCalibers\": [\n \"38spl\"\n ]\n },\n \"mass\": 2.7,\n \"dimensions\": {\n \"length\": 0.95,\n \"barrel\": 0.508,\n \"emptyMass\": 2.7\n },\n \"archetype\": \"rifle_bolt_308\",\n \"sources\": [\n \"gallery\",\n \"arsenal\",\n \"sdk\"\n ],\n \"mounts\": [\n {\n \"kind\": \"sling\",\n \"interfaces\": [\n \"swivel\"\n ],\n \"sources\": [\n \"derived\"\n ]\n }\n ],\n \"fitted\": []\n },\n {\n \"id\": \"hunting_rifle_30_06\",\n \"name\": \".30-06 hunting rifle\",\n \"category\": \"hunting\",\n \"action\": {\n \"kind\": \"firearm\",\n \"caliber\": \"30_06\",\n \"rpm\": 73.17,\n \"modes\": [\n \"bolt\"\n ],\n \"magazine\": 4,\n \"reload\": 0.7,\n \"perRound\": true,\n \"muzzleSpeed\": 880,\n \"spreadDeg\": 0.25,\n \"bloomDeg\": 0.3,\n \"recoveryDegPerS\": 3,\n \"recoil\": [\n 3.24,\n 0.54\n ],\n \"range\": 800,\n \"family\": \"bolt\",\n \"timings\": {\n \"draw\": 0.35,\n \"reload\": 0.7,\n \"perRound\": 0.7,\n \"cycle\": 0.82,\n \"clear\": 1.2\n },\n \"moa\": 1.5\n },\n \"mass\": 3.6,\n \"dimensions\": {\n \"length\": 1.1,\n \"barrel\": 0.56,\n \"emptyMass\": 3.6\n },\n \"archetype\": \"rifle_bolt_308\",\n \"sources\": [\n \"gallery\",\n \"arsenal\",\n \"sdk\"\n ],\n \"mounts\": [\n {\n \"kind\": \"rail_top\",\n \"interfaces\": [\n \"dovetail\"\n ],\n \"sources\": [\n \"derived\"\n ]\n },\n {\n \"kind\": \"sling\",\n \"interfaces\": [\n \"swivel\"\n ],\n \"sources\": [\n \"derived\"\n ]\n }\n ],\n \"fitted\": [\n {\n \"id\": \"scope_3_9x\",\n \"mount\": \"rail_top\"\n }\n ]\n },\n {\n \"id\": \"fn_minimi\",\n \"name\": \"FN Minimi\",\n \"maker\": \"FN\",\n \"category\": \"machine_gun\",\n \"action\": {\n \"kind\": \"firearm\",\n \"caliber\": \"5_56x45\",\n \"rpm\": 850,\n \"modes\": [\n \"auto\"\n ],\n \"magazine\": 200,\n \"reload\": 7.5,\n \"muzzleSpeed\": 915,\n \"spreadDeg\": 0.6,\n \"bloomDeg\": 0.25,\n \"recoveryDegPerS\": 5,\n \"recoil\": [\n 0.46,\n 0.28\n ],\n \"range\": 400,\n \"family\": \"belt\",\n \"timings\": {\n \"draw\": 0.35,\n \"reload\": 7.5,\n \"clear\": 1.2\n },\n \"moa\": 4\n },\n \"mass\": 7.1,\n \"dimensions\": {\n \"length\": 1.04,\n \"barrel\": 0.465,\n \"emptyMass\": 7.1\n },\n \"archetype\": \"rifle_5_56\",\n \"sources\": [\n \"gallery\",\n \"arsenal\",\n \"sdk\"\n ],\n \"mounts\": [\n {\n \"kind\": \"rail_bottom\",\n \"interfaces\": [\n \"bipod_stud\"\n ],\n \"sources\": [\n \"gallery\"\n ]\n },\n {\n \"kind\": \"sling\",\n \"interfaces\": [\n \"swivel\"\n ],\n \"sources\": [\n \"derived\"\n ]\n },\n {\n \"kind\": \"feed\",\n \"interfaces\": [\n \"belt\"\n ],\n \"sources\": [\n \"derived\"\n ]\n }\n ],\n \"fitted\": [\n {\n \"id\": \"bipod\",\n \"mount\": \"rail_bottom\"\n }\n ]\n },\n {\n \"id\": \"pkm\",\n \"name\": \"PKM\",\n \"category\": \"machine_gun\",\n \"action\": {\n \"kind\": \"firearm\",\n \"caliber\": \"7_62x54r\",\n \"rpm\": 650,\n \"modes\": [\n \"auto\"\n ],\n \"magazine\": 100,\n \"reload\": 8,\n \"muzzleSpeed\": 825,\n \"spreadDeg\": 0.8,\n \"bloomDeg\": 0.35,\n \"recoveryDegPerS\": 4.5,\n \"recoil\": [\n 1.18,\n 0.63\n ],\n \"range\": 350,\n \"family\": \"belt\",\n \"timings\": {\n \"draw\": 0.35,\n \"reload\": 8,\n \"clear\": 1.2\n },\n \"moa\": 4\n },\n \"mass\": 7.5,\n \"dimensions\": {\n \"length\": 1.173,\n \"barrel\": 0.658,\n \"emptyMass\": 7.5\n },\n \"archetype\": \"rifle_7_62x39\",\n \"sources\": [\n \"gallery\",\n \"arsenal\",\n \"sdk\"\n ],\n \"mounts\": [\n {\n \"kind\": \"rail_bottom\",\n \"interfaces\": [\n \"bipod_stud\"\n ],\n \"sources\": [\n \"gallery\"\n ]\n },\n {\n \"kind\": \"sling\",\n \"interfaces\": [\n \"swivel\"\n ],\n \"sources\": [\n \"derived\"\n ]\n },\n {\n \"kind\": \"feed\",\n \"interfaces\": [\n \"belt\"\n ],\n \"sources\": [\n \"derived\"\n ]\n }\n ],\n \"fitted\": [\n {\n \"id\": \"bipod\",\n \"mount\": \"rail_bottom\"\n }\n ]\n },\n {\n \"id\": \"m60\",\n \"name\": \"M60\",\n \"category\": \"machine_gun\",\n \"action\": {\n \"kind\": \"firearm\",\n \"caliber\": \"7_62x51\",\n \"rpm\": 550,\n \"modes\": [\n \"auto\"\n ],\n \"magazine\": 100,\n \"reload\": 8.5,\n \"muzzleSpeed\": 853,\n \"spreadDeg\": 0.8,\n \"bloomDeg\": 0.35,\n \"recoveryDegPerS\": 4.5,\n \"recoil\": [\n 0.91,\n 0.49\n ],\n \"range\": 350,\n \"family\": \"belt\",\n \"timings\": {\n \"draw\": 0.35,\n \"reload\": 8.5,\n \"clear\": 1.2\n },\n \"faultFactor\": 1.3,\n \"moa\": 4\n },\n \"mass\": 10.5,\n \"dimensions\": {\n \"length\": 1.105,\n \"barrel\": 0.56,\n \"emptyMass\": 10.5\n },\n \"archetype\": \"rifle_7_62x39\",\n \"sources\": [\n \"gallery\",\n \"arsenal\",\n \"sdk\"\n ],\n \"mounts\": [\n {\n \"kind\": \"rail_bottom\",\n \"interfaces\": [\n \"bipod_stud\"\n ],\n \"sources\": [\n \"gallery\"\n ]\n },\n {\n \"kind\": \"sling\",\n \"interfaces\": [\n \"swivel\"\n ],\n \"sources\": [\n \"derived\"\n ]\n },\n {\n \"kind\": \"feed\",\n \"interfaces\": [\n \"belt\"\n ],\n \"sources\": [\n \"derived\"\n ]\n }\n ],\n \"fitted\": [\n {\n \"id\": \"bipod\",\n \"mount\": \"rail_bottom\"\n }\n ]\n },\n {\n \"id\": \"browning_m2\",\n \"name\": \"Browning M2 .50\",\n \"maker\": \"Browning\",\n \"category\": \"machine_gun\",\n \"action\": {\n \"kind\": \"firearm\",\n \"caliber\": \"50bmg\",\n \"rpm\": 550,\n \"modes\": [\n \"auto\"\n ],\n \"magazine\": 100,\n \"reload\": 10,\n \"muzzleSpeed\": 890,\n \"spreadDeg\": 0.15,\n \"bloomDeg\": 0.5,\n \"recoveryDegPerS\": 2,\n \"recoil\": [\n 1.93,\n 0.33\n ],\n \"range\": 1800,\n \"family\": \"belt\",\n \"timings\": {\n \"draw\": 0.35,\n \"reload\": 10,\n \"clear\": 1.2\n },\n \"moa\": 2\n },\n \"mass\": 38,\n \"dimensions\": {\n \"length\": 1.65,\n \"barrel\": 1.14,\n \"emptyMass\": 38\n },\n \"archetype\": \"anti_materiel_50\",\n \"sources\": [\n \"gallery\",\n \"arsenal\",\n \"sdk\"\n ],\n \"mounts\": [\n {\n \"kind\": \"underbarrel\",\n \"interfaces\": [\n \"tripod\"\n ],\n \"sources\": [\n \"reference\"\n ]\n },\n {\n \"kind\": \"sling\",\n \"interfaces\": [\n \"swivel\"\n ],\n \"sources\": [\n \"derived\"\n ]\n },\n {\n \"kind\": \"feed\",\n \"interfaces\": [\n \"belt\"\n ],\n \"sources\": [\n \"derived\"\n ]\n }\n ],\n \"fitted\": [\n {\n \"id\": \"tripod\",\n \"mount\": \"underbarrel\",\n \"integral\": true\n }\n ]\n },\n {\n \"id\": \"remington_700_300wm\",\n \"name\": \"Remington 700 (.300 WM)\",\n \"maker\": \"Remington\",\n \"category\": \"sniper\",\n \"action\": {\n \"kind\": \"firearm\",\n \"caliber\": \"300wm\",\n \"rpm\": 73.17,\n \"modes\": [\n \"bolt\"\n ],\n \"magazine\": 3,\n \"reload\": 0.7,\n \"perRound\": true,\n \"spreadDeg\": 0.1,\n \"bloomDeg\": 0.3,\n \"recoveryDegPerS\": 2.5,\n \"recoil\": [\n 4.76,\n 0.74\n ],\n \"range\": 1500,\n \"family\": \"bolt\",\n \"timings\": {\n \"draw\": 0.35,\n \"reload\": 0.7,\n \"perRound\": 0.7,\n \"cycle\": 0.82,\n \"clear\": 1.2\n },\n \"moa\": 1\n },\n \"mass\": 4,\n \"dimensions\": {\n \"length\": 1.1,\n \"barrel\": 0.61,\n \"emptyMass\": 3.6\n },\n \"archetype\": \"sniper_338\",\n \"variantOf\": \"remington_700\",\n \"sources\": [\n \"gallery\",\n \"arsenal\",\n \"sdk\",\n \"derived\"\n ],\n \"mounts\": [\n {\n \"kind\": \"rail_top\",\n \"interfaces\": [\n \"dovetail\"\n ],\n \"sources\": [\n \"derived\"\n ]\n },\n {\n \"kind\": \"sling\",\n \"interfaces\": [\n \"swivel\"\n ],\n \"sources\": [\n \"derived\"\n ]\n }\n ],\n \"fitted\": [\n {\n \"id\": \"scope_3_9x\",\n \"mount\": \"rail_top\"\n }\n ]\n },\n {\n \"id\": \"m79\",\n \"name\": \"M79 grenade launcher\",\n \"category\": \"launcher\",\n \"action\": {\n \"kind\": \"launcher\",\n \"projectile\": \"m79_40mm\",\n \"magazine\": 1,\n \"reload\": 2,\n \"timings\": {\n \"draw\": 0.35,\n \"reload\": 2,\n \"clear\": 1.2\n },\n \"family\": \"break\",\n \"speed\": 76,\n \"minArmDistance\": 10,\n \"backblast\": 0,\n \"recoil\": [\n 4.5,\n 1.2\n ]\n },\n \"mass\": 2.93,\n \"dimensions\": {\n \"length\": 0.73,\n \"barrel\": 0.356,\n \"emptyMass\": 2.7\n },\n \"archetype\": \"shotgun_double_12\",\n \"sources\": [\n \"gallery\",\n \"arsenal\",\n \"reference\",\n \"derived\"\n ],\n \"mounts\": [],\n \"fitted\": []\n },\n {\n \"id\": \"hk_mp5sd3\",\n \"name\": \"HK MP5SD3\",\n \"maker\": \"HK\",\n \"category\": \"smg\",\n \"action\": {\n \"kind\": \"firearm\",\n \"caliber\": \"9x19\",\n \"rpm\": 700,\n \"modes\": [\n \"auto\",\n \"semi\"\n ],\n \"magazine\": 30,\n \"reload\": 2.6,\n \"muzzleSpeed\": 285,\n \"noise\": 37.5,\n \"spreadDeg\": 1.5,\n \"bloomDeg\": 0.35,\n \"recoveryDegPerS\": 6,\n \"recoil\": [\n 0.35,\n 0.19\n ],\n \"range\": 80,\n \"family\": \"magazine\",\n \"timings\": {\n \"draw\": 0.35,\n \"reload\": 2.6,\n \"clear\": 1.2\n }\n },\n \"mass\": 3.4,\n \"dimensions\": {\n \"length\": 0.805,\n \"barrel\": 0.146,\n \"emptyMass\": 3.4,\n \"lengthCollapsed\": 0.61\n },\n \"archetype\": \"smg_9mm\",\n \"variantOf\": \"hk_mp5a3\",\n \"sources\": [\n \"reference\",\n \"derived\",\n \"sdk\"\n ],\n \"mounts\": [\n {\n \"kind\": \"muzzle\",\n \"interfaces\": [\n \"integral\"\n ],\n \"sources\": [\n \"reference\"\n ]\n },\n {\n \"kind\": \"magazine\",\n \"interfaces\": [\n \"mag_curved\"\n ],\n \"sources\": [\n \"gallery\"\n ]\n },\n {\n \"kind\": \"sling\",\n \"interfaces\": [\n \"swivel\"\n ],\n \"sources\": [\n \"derived\"\n ]\n }\n ],\n \"fitted\": [\n {\n \"id\": \"integral_suppressor\",\n \"mount\": \"muzzle\",\n \"integral\": true\n }\n ],\n \"stock\": {\n \"kind\": \"retract\"\n }\n },\n {\n \"id\": \"fn_parafal\",\n \"name\": \"FN ParaFAL\",\n \"maker\": \"FN\",\n \"category\": \"rifle\",\n \"action\": {\n \"kind\": \"firearm\",\n \"caliber\": \"7_62x51\",\n \"rpm\": 650,\n \"modes\": [\n \"auto\",\n \"semi\"\n ],\n \"magazine\": 20,\n \"reload\": 2.7,\n \"muzzleSpeed\": 840,\n \"spreadDeg\": 0.8,\n \"bloomDeg\": 0.35,\n \"recoveryDegPerS\": 4.5,\n \"recoil\": [\n 2.32,\n 1.24\n ],\n \"range\": 350,\n \"family\": \"magazine\",\n \"timings\": {\n \"draw\": 0.35,\n \"reload\": 2.7,\n \"reloadEmpty\": 3.5,\n \"clear\": 1.2\n }\n },\n \"mass\": 4,\n \"dimensions\": {\n \"length\": 1.02,\n \"barrel\": 0.44,\n \"emptyMass\": 4,\n \"lengthCollapsed\": 0.77\n },\n \"archetype\": \"rifle_7_62x39\",\n \"variantOf\": \"fn_fal\",\n \"sources\": [\n \"reference\",\n \"derived\",\n \"sdk\"\n ],\n \"mounts\": [\n {\n \"kind\": \"muzzle\",\n \"interfaces\": [\n \"fixed_muzzle_device\"\n ],\n \"sources\": [\n \"derived\"\n ]\n },\n {\n \"kind\": \"magazine\",\n \"interfaces\": [\n \"mag_box\"\n ],\n \"sources\": [\n \"gallery\"\n ]\n },\n {\n \"kind\": \"sling\",\n \"interfaces\": [\n \"swivel\"\n ],\n \"sources\": [\n \"derived\"\n ]\n }\n ],\n \"fitted\": [\n {\n \"id\": \"muzzle_brake\",\n \"mount\": \"muzzle\"\n }\n ],\n \"stock\": {\n \"kind\": \"fold\",\n \"foldAxis\": \"right\"\n }\n },\n {\n \"id\": \"taurus_t4_civil\",\n \"name\": \"Taurus T4 (civil)\",\n \"maker\": \"Taurus\",\n \"category\": \"rifle\",\n \"action\": {\n \"kind\": \"firearm\",\n \"caliber\": \"5_56x45\",\n \"rpm\": 120,\n \"modes\": [\n \"semi\"\n ],\n \"magazine\": 30,\n \"reload\": 2.4,\n \"muzzleSpeed\": 880,\n \"spreadDeg\": 0.6,\n \"bloomDeg\": 0.25,\n \"recoveryDegPerS\": 5,\n \"recoil\": [\n 1,\n 0.6\n ],\n \"range\": 400,\n \"family\": \"magazine\",\n \"timings\": {\n \"draw\": 0.35,\n \"reload\": 2.4,\n \"reloadEmpty\": 3.1,\n \"clear\": 1.2\n }\n },\n \"mass\": 3,\n \"dimensions\": {\n \"length\": 0.878,\n \"barrel\": 0.406,\n \"emptyMass\": 3,\n \"lengthCollapsed\": 0.805\n },\n \"archetype\": \"rifle_5_56\",\n \"variantOf\": \"taurus_t4\",\n \"sources\": [\n \"derived\",\n \"reference\",\n \"sdk\"\n ],\n \"mounts\": [\n {\n \"kind\": \"muzzle\",\n \"interfaces\": [\n \"thread_1/2x28\"\n ],\n \"sources\": [\n \"derived\"\n ]\n },\n {\n \"kind\": \"rail_top\",\n \"interfaces\": [\n \"picatinny\"\n ],\n \"sources\": [\n \"gallery\"\n ]\n },\n {\n \"kind\": \"rail_left\",\n \"interfaces\": [\n \"picatinny\"\n ],\n \"sources\": [\n \"gallery\"\n ]\n },\n {\n \"kind\": \"rail_right\",\n \"interfaces\": [\n \"picatinny\"\n ],\n \"sources\": [\n \"gallery\"\n ]\n },\n {\n \"kind\": \"rail_bottom\",\n \"interfaces\": [\n \"picatinny\"\n ],\n \"sources\": [\n \"gallery\"\n ]\n },\n {\n \"kind\": \"magazine\",\n \"interfaces\": [\n \"mag_box\"\n ],\n \"sources\": [\n \"gallery\"\n ]\n },\n {\n \"kind\": \"sling\",\n \"interfaces\": [\n \"swivel\"\n ],\n \"sources\": [\n \"derived\"\n ]\n }\n ],\n \"fitted\": [\n {\n \"id\": \"red_dot\",\n \"mount\": \"rail_top\"\n }\n ],\n \"stock\": {\n \"kind\": \"retract\"\n }\n },\n {\n \"id\": \"taurus_th380\",\n \"name\": \"Taurus TH380\",\n \"maker\": \"Taurus\",\n \"category\": \"pistol\",\n \"action\": {\n \"kind\": \"firearm\",\n \"caliber\": \"380acp\",\n \"rpm\": 300,\n \"modes\": [\n \"semi\"\n ],\n \"magazine\": 12,\n \"chamber\": 1,\n \"reload\": 1.7,\n \"spreadDeg\": 1,\n \"bloomDeg\": 0.6,\n \"recoveryDegPerS\": 4,\n \"recoil\": [\n 1.06,\n 0.35\n ],\n \"range\": 50,\n \"family\": \"pistol\",\n \"timings\": {\n \"draw\": 0.35,\n \"reload\": 1.7,\n \"clear\": 1.2\n },\n \"faultFactor\": 1.5\n },\n \"mass\": 0.55,\n \"dimensions\": {\n \"length\": 0.165,\n \"barrel\": 0.09,\n \"emptyMass\": 0.55\n },\n \"archetype\": \"pistol_9mm\",\n \"variantOf\": \"taurus_g2c\",\n \"sources\": [\n \"derived\",\n \"sdk\"\n ],\n \"mounts\": [\n {\n \"kind\": \"magazine\",\n \"interfaces\": [\n \"mag_pistol\"\n ],\n \"sources\": [\n \"derived\"\n ]\n }\n ],\n \"fitted\": []\n },\n {\n \"id\": \"mossberg_500_cruiser\",\n \"name\": \"Mossberg 500 Cruiser\",\n \"maker\": \"Mossberg\",\n \"category\": \"shotgun\",\n \"action\": {\n \"kind\": \"firearm\",\n \"caliber\": \"12ga_00buck\",\n \"rpm\": 120,\n \"modes\": [\n \"pump\"\n ],\n \"magazine\": 5,\n \"chamber\": 1,\n \"reload\": 0.55,\n \"perRound\": true,\n \"muzzleSpeed\": 400,\n \"spreadDeg\": 1,\n \"bloomDeg\": 0.5,\n \"recoveryDegPerS\": 3,\n \"pelletSpreadDeg\": 3,\n \"recoil\": [\n 4.43,\n 1.11\n ],\n \"range\": 40,\n \"family\": \"pump\",\n \"timings\": {\n \"draw\": 0.35,\n \"reload\": 0.55,\n \"perRound\": 0.55,\n \"cycle\": 0.5,\n \"clear\": 1.2\n }\n },\n \"mass\": 2.7,\n \"dimensions\": {\n \"length\": 0.72,\n \"barrel\": 0.47,\n \"emptyMass\": 2.7\n },\n \"archetype\": \"shotgun_pump_12\",\n \"variantOf\": \"mossberg_500\",\n \"sources\": [\n \"derived\",\n \"reference\",\n \"sdk\"\n ],\n \"mounts\": [\n {\n \"kind\": \"barrel\",\n \"interfaces\": [\n \"barrel_swap\"\n ],\n \"sources\": [\n \"derived\"\n ]\n },\n {\n \"kind\": \"sling\",\n \"interfaces\": [\n \"swivel\"\n ],\n \"sources\": [\n \"derived\"\n ]\n }\n ],\n \"fitted\": []\n },\n {\n \"id\": \"hk_mp5k\",\n \"name\": \"HK MP5K\",\n \"maker\": \"HK\",\n \"category\": \"smg\",\n \"action\": {\n \"kind\": \"firearm\",\n \"caliber\": \"9x19\",\n \"rpm\": 900,\n \"modes\": [\n \"auto\",\n \"semi\"\n ],\n \"magazine\": 30,\n \"magazineOptions\": [\n 15\n ],\n \"reload\": 2.6,\n \"muzzleSpeed\": 400,\n \"spreadDeg\": 1.5,\n \"bloomDeg\": 0.35,\n \"recoveryDegPerS\": 6,\n \"recoil\": [\n 1.16,\n 0.65\n ],\n \"range\": 80,\n \"family\": \"magazine\",\n \"timings\": {\n \"draw\": 0.35,\n \"reload\": 2.6,\n \"clear\": 1.2\n }\n },\n \"mass\": 2,\n \"dimensions\": {\n \"length\": 0.325,\n \"barrel\": 0.115,\n \"emptyMass\": 2\n },\n \"archetype\": \"smg_9mm\",\n \"variantOf\": \"hk_mp5a3\",\n \"sources\": [\n \"reference\",\n \"derived\",\n \"sdk\"\n ],\n \"mounts\": [\n {\n \"kind\": \"muzzle\",\n \"interfaces\": [\n \"hk_3lug\"\n ],\n \"sources\": [\n \"reference\"\n ]\n },\n {\n \"kind\": \"magazine\",\n \"interfaces\": [\n \"mag_curved\"\n ],\n \"sources\": [\n \"gallery\"\n ]\n },\n {\n \"kind\": \"sling\",\n \"interfaces\": [\n \"swivel\"\n ],\n \"sources\": [\n \"derived\"\n ]\n }\n ],\n \"fitted\": []\n },\n {\n \"id\": \"hk_ump9\",\n \"name\": \"HK UMP9\",\n \"maker\": \"HK\",\n \"category\": \"smg\",\n \"action\": {\n \"kind\": \"firearm\",\n \"caliber\": \"9x19\",\n \"rpm\": 700,\n \"modes\": [\n \"auto\",\n \"semi\"\n ],\n \"magazine\": 30,\n \"reload\": 2.7,\n \"muzzleSpeed\": 380,\n \"spreadDeg\": 1.5,\n \"bloomDeg\": 0.35,\n \"recoveryDegPerS\": 6,\n \"recoil\": [\n 0.91,\n 0.51\n ],\n \"range\": 80,\n \"family\": \"magazine\",\n \"timings\": {\n \"draw\": 0.35,\n \"reload\": 2.7,\n \"clear\": 1.2\n }\n },\n \"mass\": 2.3,\n \"dimensions\": {\n \"length\": 0.69,\n \"barrel\": 0.2,\n \"emptyMass\": 2.3,\n \"lengthCollapsed\": 0.45\n },\n \"archetype\": \"smg_9mm\",\n \"variantOf\": \"hk_ump_45\",\n \"sources\": [\n \"reference\",\n \"derived\",\n \"sdk\"\n ],\n \"mounts\": [\n {\n \"kind\": \"rail_top\",\n \"interfaces\": [\n \"picatinny\"\n ],\n \"sources\": [\n \"gallery\"\n ]\n },\n {\n \"kind\": \"magazine\",\n \"interfaces\": [\n \"mag_curved\"\n ],\n \"sources\": [\n \"gallery\"\n ]\n },\n {\n \"kind\": \"sling\",\n \"interfaces\": [\n \"swivel\"\n ],\n \"sources\": [\n \"derived\"\n ]\n }\n ],\n \"fitted\": [],\n \"stock\": {\n \"kind\": \"fold\",\n \"foldAxis\": \"right\"\n }\n },\n {\n \"id\": \"mini_uzi\",\n \"name\": \"Mini Uzi\",\n \"category\": \"smg\",\n \"action\": {\n \"kind\": \"firearm\",\n \"caliber\": \"9x19\",\n \"rpm\": 950,\n \"modes\": [\n \"auto\",\n \"semi\"\n ],\n \"magazine\": 20,\n \"magazineOptions\": [\n 25,\n 32\n ],\n \"reload\": 2.4,\n \"muzzleSpeed\": 400,\n \"spreadDeg\": 1.5,\n \"bloomDeg\": 0.35,\n \"recoveryDegPerS\": 6,\n \"recoil\": [\n 0.86,\n 0.48\n ],\n \"range\": 80,\n \"family\": \"magazine\",\n \"timings\": {\n \"draw\": 0.35,\n \"reload\": 2.4,\n \"clear\": 1.2\n }\n },\n \"mass\": 2.7,\n \"dimensions\": {\n \"length\": 0.6,\n \"barrel\": 0.197,\n \"emptyMass\": 2.7,\n \"lengthCollapsed\": 0.36\n },\n \"archetype\": \"smg_9mm\",\n \"variantOf\": \"uzi\",\n \"sources\": [\n \"reference\",\n \"derived\",\n \"sdk\"\n ],\n \"mounts\": [\n {\n \"kind\": \"magazine\",\n \"interfaces\": [\n \"mag_box\"\n ],\n \"sources\": [\n \"gallery\"\n ]\n },\n {\n \"kind\": \"sling\",\n \"interfaces\": [\n \"swivel\"\n ],\n \"sources\": [\n \"derived\"\n ]\n }\n ],\n \"fitted\": [],\n \"stock\": {\n \"kind\": \"fold\",\n \"foldAxis\": \"under\"\n }\n },\n {\n \"id\": \"hk_mp7a1\",\n \"name\": \"HK MP7A1\",\n \"maker\": \"HK\",\n \"category\": \"smg\",\n \"action\": {\n \"kind\": \"firearm\",\n \"caliber\": \"4_6x30\",\n \"rpm\": 950,\n \"modes\": [\n \"auto\",\n \"semi\"\n ],\n \"magazine\": 40,\n \"magazineOptions\": [\n 20,\n 30\n ],\n \"reload\": 2.6,\n \"muzzleSpeed\": 735,\n \"spreadDeg\": 1.5,\n \"bloomDeg\": 0.35,\n \"recoveryDegPerS\": 6,\n \"recoil\": [\n 1.1,\n 0.61\n ],\n \"range\": 80,\n \"family\": \"magazine\",\n \"timings\": {\n \"draw\": 0.35,\n \"reload\": 2.6,\n \"clear\": 1.2\n }\n },\n \"mass\": 1.9,\n \"dimensions\": {\n \"length\": 0.638,\n \"barrel\": 0.18,\n \"emptyMass\": 1.9,\n \"lengthCollapsed\": 0.415\n },\n \"archetype\": \"smg_9mm\",\n \"sources\": [\n \"reference\",\n \"derived\",\n \"sdk\"\n ],\n \"mounts\": [\n {\n \"kind\": \"rail_top\",\n \"interfaces\": [\n \"picatinny\"\n ],\n \"sources\": [\n \"gallery\"\n ]\n },\n {\n \"kind\": \"rail_left\",\n \"interfaces\": [\n \"picatinny\"\n ],\n \"sources\": [\n \"gallery\"\n ]\n },\n {\n \"kind\": \"rail_right\",\n \"interfaces\": [\n \"picatinny\"\n ],\n \"sources\": [\n \"gallery\"\n ]\n },\n {\n \"kind\": \"rail_bottom\",\n \"interfaces\": [\n \"picatinny\"\n ],\n \"sources\": [\n \"gallery\"\n ]\n },\n {\n \"kind\": \"magazine\",\n \"interfaces\": [\n \"mag_box\"\n ],\n \"sources\": [\n \"gallery\"\n ]\n },\n {\n \"kind\": \"sling\",\n \"interfaces\": [\n \"swivel\"\n ],\n \"sources\": [\n \"derived\"\n ]\n }\n ],\n \"fitted\": [],\n \"stock\": {\n \"kind\": \"retract\"\n },\n \"tags\": [\n \"pdw\"\n ]\n },\n {\n \"id\": \"hk_g36\",\n \"name\": \"HK G36\",\n \"maker\": \"HK\",\n \"category\": \"rifle\",\n \"action\": {\n \"kind\": \"firearm\",\n \"caliber\": \"5_56x45\",\n \"rpm\": 750,\n \"modes\": [\n \"auto\",\n \"semi\"\n ],\n \"magazine\": 30,\n \"magazineOptions\": [\n 100\n ],\n \"reload\": 2.3,\n \"muzzleSpeed\": 920,\n \"spreadDeg\": 0.6,\n \"bloomDeg\": 0.25,\n \"recoveryDegPerS\": 5,\n \"recoil\": [\n 0.91,\n 0.54\n ],\n \"range\": 400,\n \"family\": \"magazine\",\n \"timings\": {\n \"draw\": 0.35,\n \"reload\": 2.3,\n \"reloadEmpty\": 3,\n \"clear\": 1.2\n }\n },\n \"mass\": 3.63,\n \"dimensions\": {\n \"length\": 0.999,\n \"barrel\": 0.48,\n \"emptyMass\": 3.63,\n \"lengthCollapsed\": 0.758\n },\n \"archetype\": \"rifle_5_56\",\n \"sources\": [\n \"reference\",\n \"derived\",\n \"sdk\"\n ],\n \"mounts\": [\n {\n \"kind\": \"rail_top\",\n \"interfaces\": [\n \"integral\"\n ],\n \"sources\": [\n \"reference\"\n ]\n },\n {\n \"kind\": \"magazine\",\n \"interfaces\": [\n \"mag_box\"\n ],\n \"sources\": [\n \"gallery\"\n ]\n },\n {\n \"kind\": \"sling\",\n \"interfaces\": [\n \"swivel\"\n ],\n \"sources\": [\n \"derived\"\n ]\n }\n ],\n \"fitted\": [\n {\n \"id\": \"integral_optic_3x\",\n \"mount\": \"rail_top\",\n \"integral\": true\n }\n ],\n \"stock\": {\n \"kind\": \"fold\",\n \"foldAxis\": \"left\"\n }\n },\n {\n \"id\": \"hk_g36k\",\n \"name\": \"HK G36K\",\n \"maker\": \"HK\",\n \"category\": \"rifle\",\n \"action\": {\n \"kind\": \"firearm\",\n \"caliber\": \"5_56x45\",\n \"rpm\": 750,\n \"modes\": [\n \"auto\",\n \"semi\"\n ],\n \"magazine\": 30,\n \"magazineOptions\": [\n 100\n ],\n \"reload\": 2.3,\n \"spreadDeg\": 0.6,\n \"bloomDeg\": 0.25,\n \"recoveryDegPerS\": 5,\n \"recoil\": [\n 1.03,\n 0.62\n ],\n \"range\": 400,\n \"family\": \"magazine\",\n \"timings\": {\n \"draw\": 0.35,\n \"reload\": 2.3,\n \"reloadEmpty\": 3,\n \"clear\": 1.2\n }\n },\n \"mass\": 3.3,\n \"dimensions\": {\n \"length\": 0.86,\n \"barrel\": 0.318,\n \"emptyMass\": 3.3,\n \"lengthCollapsed\": 0.615\n },\n \"archetype\": \"rifle_5_56\",\n \"sources\": [\n \"reference\",\n \"derived\",\n \"sdk\"\n ],\n \"mounts\": [\n {\n \"kind\": \"rail_top\",\n \"interfaces\": [\n \"integral\"\n ],\n \"sources\": [\n \"reference\"\n ]\n },\n {\n \"kind\": \"magazine\",\n \"interfaces\": [\n \"mag_box\"\n ],\n \"sources\": [\n \"gallery\"\n ]\n },\n {\n \"kind\": \"sling\",\n \"interfaces\": [\n \"swivel\"\n ],\n \"sources\": [\n \"derived\"\n ]\n }\n ],\n \"fitted\": [\n {\n \"id\": \"integral_optic_3x\",\n \"mount\": \"rail_top\",\n \"integral\": true\n }\n ],\n \"stock\": {\n \"kind\": \"fold\",\n \"foldAxis\": \"left\"\n }\n },\n {\n \"id\": \"hk_g36c\",\n \"name\": \"HK G36C\",\n \"maker\": \"HK\",\n \"category\": \"rifle\",\n \"action\": {\n \"kind\": \"firearm\",\n \"caliber\": \"5_56x45\",\n \"rpm\": 750,\n \"modes\": [\n \"auto\",\n \"semi\"\n ],\n \"magazine\": 30,\n \"magazineOptions\": [\n 100\n ],\n \"reload\": 2.3,\n \"spreadDeg\": 0.6,\n \"bloomDeg\": 0.25,\n \"recoveryDegPerS\": 5,\n \"recoil\": [\n 1.21,\n 0.72\n ],\n \"range\": 400,\n \"family\": \"magazine\",\n \"timings\": {\n \"draw\": 0.35,\n \"reload\": 2.3,\n \"reloadEmpty\": 3,\n \"clear\": 1.2\n }\n },\n \"mass\": 2.82,\n \"dimensions\": {\n \"length\": 0.72,\n \"barrel\": 0.228,\n \"emptyMass\": 2.82,\n \"lengthCollapsed\": 0.5\n },\n \"archetype\": \"rifle_5_56\",\n \"sources\": [\n \"reference\",\n \"derived\",\n \"sdk\"\n ],\n \"mounts\": [\n {\n \"kind\": \"rail_top\",\n \"interfaces\": [\n \"picatinny\"\n ],\n \"sources\": [\n \"gallery\"\n ]\n },\n {\n \"kind\": \"magazine\",\n \"interfaces\": [\n \"mag_box\"\n ],\n \"sources\": [\n \"gallery\"\n ]\n },\n {\n \"kind\": \"sling\",\n \"interfaces\": [\n \"swivel\"\n ],\n \"sources\": [\n \"derived\"\n ]\n }\n ],\n \"fitted\": [],\n \"stock\": {\n \"kind\": \"fold\",\n \"foldAxis\": \"left\"\n }\n },\n {\n \"id\": \"fn_m249\",\n \"name\": \"FN M249\",\n \"maker\": \"FN\",\n \"category\": \"machine_gun\",\n \"action\": {\n \"kind\": \"firearm\",\n \"caliber\": \"5_56x45\",\n \"rpm\": 850,\n \"modes\": [\n \"auto\"\n ],\n \"magazine\": 200,\n \"magazineOptions\": [\n 30\n ],\n \"reload\": 7.5,\n \"muzzleSpeed\": 915,\n \"spreadDeg\": 0.6,\n \"bloomDeg\": 0.25,\n \"recoveryDegPerS\": 5,\n \"recoil\": [\n 0.46,\n 0.28\n ],\n \"range\": 400,\n \"family\": \"belt\",\n \"timings\": {\n \"draw\": 0.35,\n \"reload\": 7.5,\n \"clear\": 1.2\n }\n },\n \"mass\": 7.1,\n \"dimensions\": {\n \"length\": 1.04,\n \"barrel\": 0.465,\n \"emptyMass\": 7.1\n },\n \"archetype\": \"rifle_5_56\",\n \"variantOf\": \"fn_minimi\",\n \"sources\": [\n \"reference\",\n \"derived\",\n \"sdk\"\n ],\n \"mounts\": [\n {\n \"kind\": \"rail_bottom\",\n \"interfaces\": [\n \"bipod_stud\"\n ],\n \"sources\": [\n \"gallery\"\n ]\n },\n {\n \"kind\": \"sling\",\n \"interfaces\": [\n \"swivel\"\n ],\n \"sources\": [\n \"derived\"\n ]\n },\n {\n \"kind\": \"feed\",\n \"interfaces\": [\n \"belt\"\n ],\n \"sources\": [\n \"derived\"\n ]\n }\n ],\n \"fitted\": [\n {\n \"id\": \"bipod\",\n \"mount\": \"rail_bottom\"\n }\n ]\n },\n {\n \"id\": \"fn_minimi_para\",\n \"name\": \"FN Minimi Para\",\n \"maker\": \"FN\",\n \"category\": \"machine_gun\",\n \"action\": {\n \"kind\": \"firearm\",\n \"caliber\": \"5_56x45\",\n \"rpm\": 850,\n \"modes\": [\n \"auto\"\n ],\n \"magazine\": 200,\n \"magazineOptions\": [\n 30\n ],\n \"reload\": 7.5,\n \"muzzleSpeed\": 915,\n \"spreadDeg\": 0.6,\n \"bloomDeg\": 0.25,\n \"recoveryDegPerS\": 5,\n \"recoil\": [\n 0.46,\n 0.28\n ],\n \"range\": 400,\n \"family\": \"belt\",\n \"timings\": {\n \"draw\": 0.35,\n \"reload\": 7.5,\n \"clear\": 1.2\n }\n },\n \"mass\": 7.1,\n \"dimensions\": {\n \"length\": 0.893,\n \"barrel\": 0.349,\n \"emptyMass\": 7.1,\n \"lengthCollapsed\": 0.766\n },\n \"archetype\": \"rifle_5_56\",\n \"variantOf\": \"fn_minimi\",\n \"sources\": [\n \"reference\",\n \"derived\",\n \"sdk\"\n ],\n \"mounts\": [\n {\n \"kind\": \"rail_bottom\",\n \"interfaces\": [\n \"bipod_stud\"\n ],\n \"sources\": [\n \"gallery\"\n ]\n },\n {\n \"kind\": \"sling\",\n \"interfaces\": [\n \"swivel\"\n ],\n \"sources\": [\n \"derived\"\n ]\n },\n {\n \"kind\": \"feed\",\n \"interfaces\": [\n \"belt\"\n ],\n \"sources\": [\n \"derived\"\n ]\n }\n ],\n \"fitted\": [\n {\n \"id\": \"bipod\",\n \"mount\": \"rail_bottom\"\n }\n ],\n \"stock\": {\n \"kind\": \"retract\"\n }\n },\n {\n \"id\": \"fn_mag\",\n \"name\": \"FN MAG\",\n \"maker\": \"FN\",\n \"category\": \"machine_gun\",\n \"action\": {\n \"kind\": \"firearm\",\n \"caliber\": \"7_62x51\",\n \"rpm\": 750,\n \"modes\": [\n \"auto\"\n ],\n \"magazine\": 100,\n \"reload\": 8.5,\n \"muzzleSpeed\": 840,\n \"spreadDeg\": 0.8,\n \"bloomDeg\": 0.35,\n \"recoveryDegPerS\": 4.5,\n \"recoil\": [\n 0.79,\n 0.42\n ],\n \"range\": 350,\n \"family\": \"belt\",\n \"timings\": {\n \"draw\": 0.35,\n \"reload\": 8.5,\n \"clear\": 1.2\n }\n },\n \"mass\": 11.79,\n \"dimensions\": {\n \"length\": 1.263,\n \"barrel\": 0.63,\n \"emptyMass\": 11.79\n },\n \"archetype\": \"rifle_7_62x39\",\n \"sources\": [\n \"reference\",\n \"derived\",\n \"sdk\"\n ],\n \"mounts\": [\n {\n \"kind\": \"rail_bottom\",\n \"interfaces\": [\n \"bipod_stud\"\n ],\n \"sources\": [\n \"gallery\"\n ]\n },\n {\n \"kind\": \"sling\",\n \"interfaces\": [\n \"swivel\"\n ],\n \"sources\": [\n \"derived\"\n ]\n },\n {\n \"kind\": \"feed\",\n \"interfaces\": [\n \"belt\"\n ],\n \"sources\": [\n \"derived\"\n ]\n }\n ],\n \"fitted\": [\n {\n \"id\": \"bipod\",\n \"mount\": \"rail_bottom\"\n }\n ]\n },\n {\n \"id\": \"rpk\",\n \"name\": \"RPK\",\n \"category\": \"machine_gun\",\n \"action\": {\n \"kind\": \"firearm\",\n \"caliber\": \"7_62x39\",\n \"rpm\": 600,\n \"modes\": [\n \"auto\",\n \"semi\"\n ],\n \"magazine\": 40,\n \"magazineOptions\": [\n 75\n ],\n \"reload\": 2.6,\n \"muzzleSpeed\": 745,\n \"spreadDeg\": 0.8,\n \"bloomDeg\": 0.35,\n \"recoveryDegPerS\": 4.5,\n \"recoil\": [\n 1.25,\n 0.67\n ],\n \"range\": 350,\n \"family\": \"magazine\",\n \"timings\": {\n \"draw\": 0.35,\n \"reload\": 2.6,\n \"reloadEmpty\": 3.4,\n \"clear\": 1.2\n },\n \"faultFactor\": 0.4\n },\n \"mass\": 4.8,\n \"dimensions\": {\n \"length\": 1.04,\n \"barrel\": 0.59,\n \"emptyMass\": 4.8\n },\n \"archetype\": \"rifle_7_62x39\",\n \"variantOf\": \"ak_47\",\n \"sources\": [\n \"reference\",\n \"derived\",\n \"sdk\"\n ],\n \"mounts\": [\n {\n \"kind\": \"muzzle\",\n \"interfaces\": [\n \"thread_14x1lh\"\n ],\n \"sources\": [\n \"derived\"\n ]\n },\n {\n \"kind\": \"rail_bottom\",\n \"interfaces\": [\n \"bipod_stud\"\n ],\n \"sources\": [\n \"gallery\"\n ]\n },\n {\n \"kind\": \"magazine\",\n \"interfaces\": [\n \"mag_curved\"\n ],\n \"sources\": [\n \"gallery\"\n ]\n },\n {\n \"kind\": \"sling\",\n \"interfaces\": [\n \"swivel\"\n ],\n \"sources\": [\n \"derived\"\n ]\n }\n ],\n \"fitted\": [\n {\n \"id\": \"bipod\",\n \"mount\": \"rail_bottom\"\n }\n ]\n },\n {\n \"id\": \"sig_mpx\",\n \"name\": \"SIG MPX\",\n \"category\": \"smg\",\n \"action\": {\n \"kind\": \"firearm\",\n \"caliber\": \"9x19\",\n \"rpm\": 850,\n \"modes\": [\n \"auto\",\n \"semi\"\n ],\n \"magazine\": 30,\n \"magazineOptions\": [\n 20,\n 35\n ],\n \"reload\": 2.6,\n \"spreadDeg\": 1.5,\n \"bloomDeg\": 0.35,\n \"recoveryDegPerS\": 6,\n \"recoil\": [\n 0.72,\n 0.4\n ],\n \"range\": 80,\n \"family\": \"magazine\",\n \"timings\": {\n \"draw\": 0.35,\n \"reload\": 2.6,\n \"clear\": 1.2\n }\n },\n \"mass\": 2.7,\n \"dimensions\": {\n \"length\": 0.61,\n \"barrel\": 0.203,\n \"emptyMass\": 2.7,\n \"lengthCollapsed\": 0.425\n },\n \"archetype\": \"smg_9mm\",\n \"sources\": [\n \"reference\",\n \"derived\",\n \"sdk\"\n ],\n \"mounts\": [\n {\n \"kind\": \"rail_top\",\n \"interfaces\": [\n \"picatinny\"\n ],\n \"sources\": [\n \"gallery\"\n ]\n },\n {\n \"kind\": \"rail_left\",\n \"interfaces\": [\n \"picatinny\"\n ],\n \"sources\": [\n \"gallery\"\n ]\n },\n {\n \"kind\": \"rail_right\",\n \"interfaces\": [\n \"picatinny\"\n ],\n \"sources\": [\n \"gallery\"\n ]\n },\n {\n \"kind\": \"rail_bottom\",\n \"interfaces\": [\n \"picatinny\"\n ],\n \"sources\": [\n \"gallery\"\n ]\n },\n {\n \"kind\": \"magazine\",\n \"interfaces\": [\n \"mag_box\"\n ],\n \"sources\": [\n \"gallery\"\n ]\n },\n {\n \"kind\": \"sling\",\n \"interfaces\": [\n \"swivel\"\n ],\n \"sources\": [\n \"derived\"\n ]\n }\n ],\n \"fitted\": [],\n \"stock\": {\n \"kind\": \"retract\"\n }\n },\n {\n \"id\": \"mg3\",\n \"name\": \"MG3\",\n \"category\": \"machine_gun\",\n \"action\": {\n \"kind\": \"firearm\",\n \"caliber\": \"7_62x51\",\n \"rpm\": 1100,\n \"modes\": [\n \"auto\"\n ],\n \"magazine\": 100,\n \"reload\": 8.5,\n \"muzzleSpeed\": 820,\n \"spreadDeg\": 0.8,\n \"bloomDeg\": 0.35,\n \"recoveryDegPerS\": 4.5,\n \"recoil\": [\n 0.77,\n 0.41\n ],\n \"range\": 350,\n \"family\": \"belt\",\n \"timings\": {\n \"draw\": 0.35,\n \"reload\": 8.5,\n \"clear\": 1.2\n }\n },\n \"mass\": 11.5,\n \"dimensions\": {\n \"length\": 1.225,\n \"barrel\": 0.565,\n \"emptyMass\": 11.5\n },\n \"archetype\": \"rifle_7_62x39\",\n \"sources\": [\n \"reference\",\n \"derived\",\n \"sdk\"\n ],\n \"mounts\": [\n {\n \"kind\": \"rail_bottom\",\n \"interfaces\": [\n \"bipod_stud\"\n ],\n \"sources\": [\n \"gallery\"\n ]\n },\n {\n \"kind\": \"sling\",\n \"interfaces\": [\n \"swivel\"\n ],\n \"sources\": [\n \"derived\"\n ]\n },\n {\n \"kind\": \"feed\",\n \"interfaces\": [\n \"belt\"\n ],\n \"sources\": [\n \"derived\"\n ]\n }\n ],\n \"fitted\": [\n {\n \"id\": \"bipod\",\n \"mount\": \"rail_bottom\"\n }\n ]\n },\n {\n \"id\": \"pp19_bizon\",\n \"name\": \"PP-19 Bizon\",\n \"category\": \"smg\",\n \"action\": {\n \"kind\": \"firearm\",\n \"caliber\": \"9x18\",\n \"rpm\": 680,\n \"modes\": [\n \"auto\",\n \"semi\"\n ],\n \"magazine\": 64,\n \"reload\": 2.5,\n \"muzzleSpeed\": 320,\n \"spreadDeg\": 1.5,\n \"bloomDeg\": 0.35,\n \"recoveryDegPerS\": 6,\n \"recoil\": [\n 0.58,\n 0.32\n ],\n \"range\": 80,\n \"family\": \"magazine\",\n \"timings\": {\n \"draw\": 0.35,\n \"reload\": 2.5,\n \"clear\": 1.2\n }\n },\n \"mass\": 2.1,\n \"dimensions\": {\n \"length\": 0.66,\n \"barrel\": 0.195,\n \"emptyMass\": 2.1,\n \"lengthCollapsed\": 0.425\n },\n \"archetype\": \"smg_9mm\",\n \"sources\": [\n \"reference\",\n \"derived\",\n \"sdk\"\n ],\n \"mounts\": [\n {\n \"kind\": \"magazine\",\n \"interfaces\": [\n \"mag_helical\"\n ],\n \"sources\": [\n \"gallery\"\n ]\n },\n {\n \"kind\": \"sling\",\n \"interfaces\": [\n \"swivel\"\n ],\n \"sources\": [\n \"derived\"\n ]\n }\n ],\n \"fitted\": [],\n \"stock\": {\n \"kind\": \"fold\",\n \"foldAxis\": \"left\"\n }\n },\n {\n \"id\": \"vz61\",\n \"name\": \"vz. 61 Škorpion\",\n \"category\": \"smg\",\n \"action\": {\n \"kind\": \"firearm\",\n \"caliber\": \"32acp\",\n \"rpm\": 850,\n \"modes\": [\n \"auto\",\n \"semi\"\n ],\n \"magazine\": 20,\n \"magazineOptions\": [\n 10\n ],\n \"reload\": 2.4,\n \"muzzleSpeed\": 320,\n \"spreadDeg\": 1.5,\n \"bloomDeg\": 0.35,\n \"recoveryDegPerS\": 6,\n \"recoil\": [\n 0.7,\n 0.39\n ],\n \"range\": 80,\n \"family\": \"magazine\",\n \"timings\": {\n \"draw\": 0.35,\n \"reload\": 2.4,\n \"clear\": 1.2\n }\n },\n \"mass\": 1.3,\n \"dimensions\": {\n \"length\": 0.517,\n \"barrel\": 0.115,\n \"emptyMass\": 1.3,\n \"lengthCollapsed\": 0.27\n },\n \"archetype\": \"smg_9mm\",\n \"sources\": [\n \"reference\",\n \"derived\",\n \"sdk\"\n ],\n \"mounts\": [\n {\n \"kind\": \"magazine\",\n \"interfaces\": [\n \"mag_curved\"\n ],\n \"sources\": [\n \"gallery\"\n ]\n },\n {\n \"kind\": \"sling\",\n \"interfaces\": [\n \"swivel\"\n ],\n \"sources\": [\n \"derived\"\n ]\n }\n ],\n \"fitted\": [],\n \"stock\": {\n \"kind\": \"fold\",\n \"foldAxis\": \"over\"\n }\n },\n {\n \"id\": \"m134\",\n \"name\": \"M134 Minigun\",\n \"category\": \"machine_gun\",\n \"action\": {\n \"kind\": \"firearm\",\n \"caliber\": \"7_62x51\",\n \"rpm\": 3000,\n \"modes\": [\n \"auto\"\n ],\n \"magazine\": 200,\n \"reload\": 8.5,\n \"muzzleSpeed\": 853,\n \"spin\": {\n \"upSeconds\": 0.5,\n \"holdSeconds\": 1\n },\n \"rpmRange\": [\n 2000,\n 6000\n ],\n \"spreadDeg\": 0.8,\n \"bloomDeg\": 0.35,\n \"recoveryDegPerS\": 4.5,\n \"recoil\": [\n 0.25,\n 0.13\n ],\n \"range\": 350,\n \"family\": \"belt\",\n \"timings\": {\n \"draw\": 0.35,\n \"reload\": 8.5,\n \"clear\": 1.2\n }\n },\n \"mass\": 39,\n \"dimensions\": {\n \"length\": 0.801,\n \"barrel\": 0.559,\n \"emptyMass\": 39,\n \"barrels\": 6,\n \"barrelMass\": 2\n },\n \"archetype\": \"rifle_7_62x39\",\n \"sources\": [\n \"reference\",\n \"derived\",\n \"sdk\"\n ],\n \"mounts\": [\n {\n \"kind\": \"underbarrel\",\n \"interfaces\": [\n \"tripod\"\n ],\n \"sources\": [\n \"reference\"\n ]\n },\n {\n \"kind\": \"sling\",\n \"interfaces\": [\n \"swivel\"\n ],\n \"sources\": [\n \"derived\"\n ]\n },\n {\n \"kind\": \"feed\",\n \"interfaces\": [\n \"belt\"\n ],\n \"sources\": [\n \"derived\"\n ]\n }\n ],\n \"fitted\": []\n },\n {\n \"id\": \"aks_74u\",\n \"name\": \"AKS-74U\",\n \"category\": \"rifle\",\n \"action\": {\n \"kind\": \"firearm\",\n \"caliber\": \"5_45x39\",\n \"rpm\": 700,\n \"modes\": [\n \"auto\",\n \"semi\"\n ],\n \"magazine\": 30,\n \"reload\": 2.6,\n \"muzzleSpeed\": 735,\n \"spreadDeg\": 0.6,\n \"bloomDeg\": 0.25,\n \"recoveryDegPerS\": 5,\n \"recoil\": [\n 0.66,\n 0.4\n ],\n \"range\": 400,\n \"family\": \"magazine\",\n \"timings\": {\n \"draw\": 0.35,\n \"reload\": 2.6,\n \"reloadEmpty\": 3.4,\n \"clear\": 1.2\n }\n },\n \"mass\": 2.7,\n \"dimensions\": {\n \"length\": 0.73,\n \"barrel\": 0.206,\n \"emptyMass\": 2.7,\n \"lengthCollapsed\": 0.49\n },\n \"archetype\": \"rifle_5_56\",\n \"variantOf\": \"ak_74\",\n \"sources\": [\n \"reference\",\n \"derived\",\n \"sdk\"\n ],\n \"mounts\": [\n {\n \"kind\": \"muzzle\",\n \"interfaces\": [\n \"fixed_muzzle_device\"\n ],\n \"sources\": [\n \"derived\"\n ]\n },\n {\n \"kind\": \"magazine\",\n \"interfaces\": [\n \"mag_curved\"\n ],\n \"sources\": [\n \"gallery\"\n ]\n },\n {\n \"kind\": \"sling\",\n \"interfaces\": [\n \"swivel\"\n ],\n \"sources\": [\n \"derived\"\n ]\n }\n ],\n \"fitted\": [\n {\n \"id\": \"muzzle_brake\",\n \"mount\": \"muzzle\"\n }\n ],\n \"stock\": {\n \"kind\": \"fold\",\n \"foldAxis\": \"left\"\n }\n },\n {\n \"id\": \"fn_scar_l\",\n \"name\": \"FN SCAR-L\",\n \"maker\": \"FN\",\n \"category\": \"dmr\",\n \"action\": {\n \"kind\": \"firearm\",\n \"caliber\": \"5_56x45\",\n \"rpm\": 625,\n \"modes\": [\n \"auto\",\n \"semi\"\n ],\n \"magazine\": 30,\n \"reload\": 2.6,\n \"muzzleSpeed\": 870,\n \"spreadDeg\": 0.25,\n \"bloomDeg\": 0.3,\n \"recoveryDegPerS\": 3,\n \"recoil\": [\n 1.43,\n 0.24\n ],\n \"range\": 800,\n \"family\": \"magazine\",\n \"timings\": {\n \"draw\": 0.35,\n \"reload\": 2.6,\n \"clear\": 1.2\n }\n },\n \"mass\": 3.29,\n \"dimensions\": {\n \"length\": 0.889,\n \"barrel\": 0.351,\n \"emptyMass\": 3.29,\n \"lengthCollapsed\": 0.635\n },\n \"archetype\": \"rifle_bolt_308\",\n \"variantOf\": \"fn_scar_h\",\n \"sources\": [\n \"reference\",\n \"derived\",\n \"sdk\"\n ],\n \"mounts\": [\n {\n \"kind\": \"rail_top\",\n \"interfaces\": [\n \"picatinny\"\n ],\n \"sources\": [\n \"gallery\"\n ]\n },\n {\n \"kind\": \"rail_left\",\n \"interfaces\": [\n \"picatinny\"\n ],\n \"sources\": [\n \"gallery\"\n ]\n },\n {\n \"kind\": \"rail_right\",\n \"interfaces\": [\n \"picatinny\"\n ],\n \"sources\": [\n \"gallery\"\n ]\n },\n {\n \"kind\": \"rail_bottom\",\n \"interfaces\": [\n \"picatinny\"\n ],\n \"sources\": [\n \"gallery\"\n ]\n },\n {\n \"kind\": \"magazine\",\n \"interfaces\": [\n \"mag_box\"\n ],\n \"sources\": [\n \"gallery\"\n ]\n },\n {\n \"kind\": \"sling\",\n \"interfaces\": [\n \"swivel\"\n ],\n \"sources\": [\n \"derived\"\n ]\n }\n ],\n \"fitted\": [\n {\n \"id\": \"acog_4x\",\n \"mount\": \"rail_top\"\n }\n ],\n \"stock\": {\n \"kind\": \"fold\",\n \"foldAxis\": \"right\"\n }\n },\n {\n \"id\": \"m1_garand\",\n \"name\": \"M1 Garand\",\n \"category\": \"rifle\",\n \"action\": {\n \"kind\": \"firearm\",\n \"caliber\": \"30_06\",\n \"rpm\": 120,\n \"modes\": [\n \"semi\"\n ],\n \"magazine\": 8,\n \"reload\": 2.2,\n \"muzzleSpeed\": 865,\n \"spreadDeg\": 0.8,\n \"bloomDeg\": 0.35,\n \"recoveryDegPerS\": 4.5,\n \"recoil\": [\n 2.28,\n 1.22\n ],\n \"range\": 350,\n \"family\": \"top_load_semi\",\n \"timings\": {\n \"draw\": 0.35,\n \"reload\": 2.2,\n \"clear\": 1.2\n }\n },\n \"mass\": 4.31,\n \"dimensions\": {\n \"length\": 1.1,\n \"barrel\": 0.61,\n \"emptyMass\": 4.31\n },\n \"archetype\": \"rifle_7_62x39\",\n \"variantOf\": \"sks\",\n \"sources\": [\n \"reference\",\n \"derived\",\n \"sdk\"\n ],\n \"mounts\": [\n {\n \"kind\": \"sling\",\n \"interfaces\": [\n \"swivel\"\n ],\n \"sources\": [\n \"derived\"\n ]\n }\n ],\n \"fitted\": []\n },\n {\n \"id\": \"accuracy_l96a1\",\n \"name\": \"Accuracy L96A1\",\n \"maker\": \"Accuracy\",\n \"category\": \"sniper\",\n \"action\": {\n \"kind\": \"firearm\",\n \"caliber\": \"7_62x51\",\n \"rpm\": 73.17,\n \"modes\": [\n \"bolt\"\n ],\n \"magazine\": 10,\n \"reload\": 3.2,\n \"muzzleSpeed\": 840,\n \"spreadDeg\": 0.25,\n \"bloomDeg\": 0.3,\n \"recoveryDegPerS\": 3,\n \"recoil\": [\n 1.64,\n 0.27\n ],\n \"range\": 800,\n \"family\": \"bolt_magazine\",\n \"timings\": {\n \"draw\": 0.35,\n \"reload\": 3.2,\n \"cycle\": 0.82,\n \"clear\": 1.2\n }\n },\n \"mass\": 6.5,\n \"dimensions\": {\n \"length\": 1.18,\n \"barrel\": 0.66,\n \"emptyMass\": 6.5\n },\n \"archetype\": \"rifle_bolt_308\",\n \"variantOf\": \"accuracy_awm\",\n \"sources\": [\n \"reference\",\n \"derived\",\n \"sdk\"\n ],\n \"mounts\": [\n {\n \"kind\": \"muzzle\",\n \"interfaces\": [\n \"fixed_muzzle_device\"\n ],\n \"sources\": [\n \"derived\"\n ]\n },\n {\n \"kind\": \"rail_top\",\n \"interfaces\": [\n \"dovetail\"\n ],\n \"sources\": [\n \"derived\"\n ]\n },\n {\n \"kind\": \"rail_bottom\",\n \"interfaces\": [\n \"bipod_stud\"\n ],\n \"sources\": [\n \"gallery\"\n ]\n },\n {\n \"kind\": \"magazine\",\n \"interfaces\": [\n \"mag_box\"\n ],\n \"sources\": [\n \"gallery\"\n ]\n },\n {\n \"kind\": \"sling\",\n \"interfaces\": [\n \"swivel\"\n ],\n \"sources\": [\n \"derived\"\n ]\n }\n ],\n \"fitted\": [\n {\n \"id\": \"muzzle_brake\",\n \"mount\": \"muzzle\"\n },\n {\n \"id\": \"scope_3_9x\",\n \"mount\": \"rail_top\"\n },\n {\n \"id\": \"bipod\",\n \"mount\": \"rail_bottom\"\n }\n ]\n },\n {\n \"id\": \"mossberg_590\",\n \"name\": \"Mossberg 590\",\n \"maker\": \"Mossberg\",\n \"category\": \"shotgun\",\n \"action\": {\n \"kind\": \"firearm\",\n \"caliber\": \"12ga_00buck\",\n \"rpm\": 120,\n \"modes\": [\n \"pump\"\n ],\n \"magazine\": 8,\n \"chamber\": 1,\n \"reload\": 0.55,\n \"perRound\": true,\n \"muzzleSpeed\": 400,\n \"spreadDeg\": 1,\n \"bloomDeg\": 0.5,\n \"recoveryDegPerS\": 3,\n \"pelletSpreadDeg\": 3,\n \"recoil\": [\n 3.62,\n 0.91\n ],\n \"range\": 40,\n \"family\": \"pump\",\n \"timings\": {\n \"draw\": 0.35,\n \"reload\": 0.55,\n \"perRound\": 0.55,\n \"cycle\": 0.5,\n \"clear\": 1.2\n }\n },\n \"mass\": 3.3,\n \"dimensions\": {\n \"length\": 1.003,\n \"barrel\": 0.508,\n \"emptyMass\": 3.3\n },\n \"archetype\": \"shotgun_pump_12\",\n \"variantOf\": \"mossberg_500\",\n \"sources\": [\n \"reference\",\n \"derived\",\n \"sdk\"\n ],\n \"mounts\": [\n {\n \"kind\": \"barrel\",\n \"interfaces\": [\n \"barrel_swap\"\n ],\n \"sources\": [\n \"derived\"\n ]\n },\n {\n \"kind\": \"sling\",\n \"interfaces\": [\n \"swivel\"\n ],\n \"sources\": [\n \"derived\"\n ]\n }\n ],\n \"fitted\": []\n },\n {\n \"id\": \"fn_m240b\",\n \"name\": \"FN M240B\",\n \"maker\": \"FN\",\n \"category\": \"machine_gun\",\n \"action\": {\n \"kind\": \"firearm\",\n \"caliber\": \"7_62x51\",\n \"rpm\": 750,\n \"modes\": [\n \"auto\"\n ],\n \"magazine\": 100,\n \"reload\": 8.5,\n \"muzzleSpeed\": 853,\n \"spreadDeg\": 0.8,\n \"bloomDeg\": 0.35,\n \"recoveryDegPerS\": 4.5,\n \"recoil\": [\n 0.77,\n 0.41\n ],\n \"range\": 350,\n \"family\": \"belt\",\n \"timings\": {\n \"draw\": 0.35,\n \"reload\": 8.5,\n \"clear\": 1.2\n }\n },\n \"mass\": 12.5,\n \"dimensions\": {\n \"length\": 1.245,\n \"barrel\": 0.63,\n \"emptyMass\": 12.5\n },\n \"archetype\": \"rifle_7_62x39\",\n \"sources\": [\n \"reference\",\n \"derived\",\n \"sdk\"\n ],\n \"mounts\": [\n {\n \"kind\": \"rail_top\",\n \"interfaces\": [\n \"picatinny\"\n ],\n \"sources\": [\n \"gallery\"\n ]\n },\n {\n \"kind\": \"rail_bottom\",\n \"interfaces\": [\n \"bipod_stud\"\n ],\n \"sources\": [\n \"gallery\"\n ]\n },\n {\n \"kind\": \"sling\",\n \"interfaces\": [\n \"swivel\"\n ],\n \"sources\": [\n \"derived\"\n ]\n },\n {\n \"kind\": \"feed\",\n \"interfaces\": [\n \"belt\"\n ],\n \"sources\": [\n \"derived\"\n ]\n }\n ],\n \"fitted\": [\n {\n \"id\": \"bipod\",\n \"mount\": \"rail_bottom\"\n }\n ]\n },\n {\n \"id\": \"sig_sauer_p320\",\n \"name\": \"SIG Sauer P320\",\n \"maker\": \"SIG Sauer\",\n \"category\": \"pistol\",\n \"action\": {\n \"kind\": \"firearm\",\n \"caliber\": \"9x19\",\n \"rpm\": 300,\n \"modes\": [\n \"semi\"\n ],\n \"magazine\": 17,\n \"reload\": 1.9,\n \"muzzleSpeed\": 350,\n \"spreadDeg\": 1,\n \"bloomDeg\": 0.6,\n \"recoveryDegPerS\": 4,\n \"recoil\": [\n 1.2,\n 0.4\n ],\n \"range\": 50,\n \"family\": \"pistol\",\n \"timings\": {\n \"draw\": 0.35,\n \"reload\": 1.9,\n \"clear\": 1.2\n },\n \"faultFactor\": 0.8\n },\n \"mass\": 0.83,\n \"dimensions\": {\n \"length\": 0.203,\n \"barrel\": 0.12,\n \"emptyMass\": 0.83\n },\n \"archetype\": \"pistol_9mm\",\n \"variantOf\": \"sig_sauer_p226\",\n \"sources\": [\n \"reference\",\n \"derived\",\n \"sdk\"\n ],\n \"mounts\": [\n {\n \"kind\": \"magazine\",\n \"interfaces\": [\n \"mag_pistol\"\n ],\n \"sources\": [\n \"derived\"\n ]\n }\n ],\n \"fitted\": []\n },\n {\n \"id\": \"hk_usp\",\n \"name\": \"HK USP\",\n \"maker\": \"HK\",\n \"category\": \"pistol\",\n \"action\": {\n \"kind\": \"firearm\",\n \"caliber\": \"9x19\",\n \"rpm\": 300,\n \"modes\": [\n \"semi\"\n ],\n \"magazine\": 15,\n \"reload\": 1.9,\n \"muzzleSpeed\": 350,\n \"spreadDeg\": 1,\n \"bloomDeg\": 0.6,\n \"recoveryDegPerS\": 4,\n \"recoil\": [\n 1.29,\n 0.43\n ],\n \"range\": 50,\n \"family\": \"pistol\",\n \"timings\": {\n \"draw\": 0.35,\n \"reload\": 1.9,\n \"clear\": 1.2\n },\n \"faultFactor\": 0.8\n },\n \"mass\": 0.77,\n \"dimensions\": {\n \"length\": 0.194,\n \"barrel\": 0.108,\n \"emptyMass\": 0.77\n },\n \"archetype\": \"pistol_9mm\",\n \"variantOf\": \"sig_sauer_p226\",\n \"sources\": [\n \"reference\",\n \"derived\",\n \"sdk\"\n ],\n \"mounts\": [\n {\n \"kind\": \"magazine\",\n \"interfaces\": [\n \"mag_pistol\"\n ],\n \"sources\": [\n \"derived\"\n ]\n }\n ],\n \"fitted\": []\n },\n {\n \"id\": \"walther_p99\",\n \"name\": \"Walther P99\",\n \"maker\": \"Walther\",\n \"category\": \"pistol\",\n \"action\": {\n \"kind\": \"firearm\",\n \"caliber\": \"9x19\",\n \"rpm\": 300,\n \"modes\": [\n \"semi\"\n ],\n \"magazine\": 15,\n \"reload\": 1.8,\n \"muzzleSpeed\": 375,\n \"spreadDeg\": 1,\n \"bloomDeg\": 0.6,\n \"recoveryDegPerS\": 4,\n \"recoil\": [\n 1.81,\n 0.6\n ],\n \"range\": 50,\n \"family\": \"pistol\",\n \"timings\": {\n \"draw\": 0.35,\n \"reload\": 1.8,\n \"clear\": 1.2\n },\n \"faultFactor\": 0.7\n },\n \"mass\": 0.63,\n \"dimensions\": {\n \"length\": 0.18,\n \"barrel\": 0.102,\n \"emptyMass\": 0.63\n },\n \"archetype\": \"pistol_9mm\",\n \"variantOf\": \"glock_17\",\n \"sources\": [\n \"reference\",\n \"derived\",\n \"sdk\"\n ],\n \"mounts\": [\n {\n \"kind\": \"magazine\",\n \"interfaces\": [\n \"mag_pistol\"\n ],\n \"sources\": [\n \"derived\"\n ]\n }\n ],\n \"fitted\": []\n },\n {\n \"id\": \"colt_python\",\n \"name\": \"Colt Python\",\n \"maker\": \"Colt\",\n \"category\": \"revolver\",\n \"action\": {\n \"kind\": \"firearm\",\n \"caliber\": \"357mag\",\n \"rpm\": 150,\n \"modes\": [\n \"single\"\n ],\n \"magazine\": 6,\n \"reload\": 2.4,\n \"muzzleSpeed\": 430,\n \"spreadDeg\": 0.8,\n \"bloomDeg\": 1,\n \"recoveryDegPerS\": 3,\n \"recoil\": [\n 3.13,\n 0.94\n ],\n \"range\": 60,\n \"family\": \"revolver\",\n \"timings\": {\n \"draw\": 0.35,\n \"reload\": 2.4,\n \"perRound\": 1,\n \"clear\": 1.2\n }\n },\n \"mass\": 1.23,\n \"dimensions\": {\n \"length\": 0.292,\n \"barrel\": 0.152,\n \"emptyMass\": 1.23\n },\n \"archetype\": \"revolver_357\",\n \"variantOf\": \"sw_686\",\n \"sources\": [\n \"reference\",\n \"derived\",\n \"sdk\"\n ],\n \"mounts\": [],\n \"fitted\": []\n },\n {\n \"id\": \"fn_ps90\",\n \"name\": \"FN PS90\",\n \"maker\": \"FN\",\n \"category\": \"smg\",\n \"action\": {\n \"kind\": \"firearm\",\n \"caliber\": \"5_7x28\",\n \"rpm\": 120,\n \"modes\": [\n \"semi\"\n ],\n \"magazine\": 50,\n \"reload\": 3,\n \"muzzleSpeed\": 715,\n \"spreadDeg\": 1.5,\n \"bloomDeg\": 0.35,\n \"recoveryDegPerS\": 6,\n \"recoil\": [\n 0.69,\n 0.38\n ],\n \"range\": 80,\n \"family\": \"top_magazine\",\n \"timings\": {\n \"draw\": 0.35,\n \"reload\": 3,\n \"clear\": 1.2\n }\n },\n \"mass\": 2.86,\n \"dimensions\": {\n \"length\": 0.668,\n \"barrel\": 0.407,\n \"emptyMass\": 2.86\n },\n \"archetype\": \"smg_9mm\",\n \"variantOf\": \"fn_p90\",\n \"sources\": [\n \"reference\",\n \"derived\",\n \"sdk\"\n ],\n \"mounts\": [\n {\n \"kind\": \"sling\",\n \"interfaces\": [\n \"swivel\"\n ],\n \"sources\": [\n \"derived\"\n ]\n }\n ],\n \"fitted\": []\n },\n {\n \"id\": \"bt_mp9\",\n \"name\": \"B&T MP9\",\n \"maker\": \"B&T\",\n \"category\": \"smg\",\n \"action\": {\n \"kind\": \"firearm\",\n \"caliber\": \"9x19\",\n \"rpm\": 1100,\n \"modes\": [\n \"auto\",\n \"semi\"\n ],\n \"magazine\": 30,\n \"reload\": 2.4,\n \"muzzleSpeed\": 400,\n \"spreadDeg\": 1.5,\n \"bloomDeg\": 0.35,\n \"recoveryDegPerS\": 6,\n \"recoil\": [\n 1.66,\n 0.92\n ],\n \"range\": 80,\n \"family\": \"magazine\",\n \"timings\": {\n \"draw\": 0.35,\n \"reload\": 2.4,\n \"clear\": 1.2\n }\n },\n \"mass\": 1.4,\n \"dimensions\": {\n \"length\": 0.523,\n \"barrel\": 0.13,\n \"emptyMass\": 1.4,\n \"lengthCollapsed\": 0.303\n },\n \"archetype\": \"smg_9mm\",\n \"variantOf\": \"uzi\",\n \"sources\": [\n \"reference\",\n \"derived\",\n \"sdk\"\n ],\n \"mounts\": [\n {\n \"kind\": \"rail_top\",\n \"interfaces\": [\n \"picatinny\"\n ],\n \"sources\": [\n \"gallery\"\n ]\n },\n {\n \"kind\": \"magazine\",\n \"interfaces\": [\n \"mag_box\"\n ],\n \"sources\": [\n \"gallery\"\n ]\n },\n {\n \"kind\": \"sling\",\n \"interfaces\": [\n \"swivel\"\n ],\n \"sources\": [\n \"derived\"\n ]\n }\n ],\n \"fitted\": [],\n \"stock\": {\n \"kind\": \"fold\",\n \"foldAxis\": \"right\"\n }\n },\n {\n \"id\": \"mp40\",\n \"name\": \"MP40\",\n \"category\": \"smg\",\n \"action\": {\n \"kind\": \"firearm\",\n \"caliber\": \"9x19\",\n \"rpm\": 550,\n \"modes\": [\n \"auto\",\n \"semi\"\n ],\n \"magazine\": 32,\n \"reload\": 2.9,\n \"spreadDeg\": 1.5,\n \"bloomDeg\": 0.35,\n \"recoveryDegPerS\": 6,\n \"recoil\": [\n 0.48,\n 0.27\n ],\n \"range\": 80,\n \"family\": \"magazine\",\n \"timings\": {\n \"draw\": 0.35,\n \"reload\": 2.9,\n \"clear\": 1.2\n }\n },\n \"mass\": 4,\n \"dimensions\": {\n \"length\": 0.833,\n \"barrel\": 0.251,\n \"emptyMass\": 4,\n \"lengthCollapsed\": 0.63\n },\n \"archetype\": \"smg_9mm\",\n \"variantOf\": \"thompson_m1a1\",\n \"sources\": [\n \"reference\",\n \"derived\",\n \"sdk\"\n ],\n \"mounts\": [\n {\n \"kind\": \"magazine\",\n \"interfaces\": [\n \"mag_box\"\n ],\n \"sources\": [\n \"gallery\"\n ]\n },\n {\n \"kind\": \"sling\",\n \"interfaces\": [\n \"swivel\"\n ],\n \"sources\": [\n \"derived\"\n ]\n }\n ],\n \"fitted\": [],\n \"stock\": {\n \"kind\": \"fold\",\n \"foldAxis\": \"under\"\n }\n },\n {\n \"id\": \"famas\",\n \"name\": \"FAMAS\",\n \"category\": \"rifle\",\n \"action\": {\n \"kind\": \"firearm\",\n \"caliber\": \"5_56x45\",\n \"rpm\": 1000,\n \"modes\": [\n \"auto\",\n \"semi\"\n ],\n \"magazine\": 25,\n \"reload\": 2.8,\n \"muzzleSpeed\": 960,\n \"spreadDeg\": 0.6,\n \"bloomDeg\": 0.25,\n \"recoveryDegPerS\": 5,\n \"recoil\": [\n 0.99,\n 0.6\n ],\n \"range\": 400,\n \"family\": \"magazine\",\n \"timings\": {\n \"draw\": 0.35,\n \"reload\": 2.8,\n \"reloadEmpty\": 3.4,\n \"clear\": 1.2\n }\n },\n \"mass\": 3.61,\n \"dimensions\": {\n \"length\": 0.757,\n \"barrel\": 0.488,\n \"emptyMass\": 3.61\n },\n \"archetype\": \"rifle_5_56\",\n \"variantOf\": \"steyr_aug_a1\",\n \"sources\": [\n \"reference\",\n \"derived\",\n \"sdk\"\n ],\n \"mounts\": [\n {\n \"kind\": \"magazine\",\n \"interfaces\": [\n \"mag_box\"\n ],\n \"sources\": [\n \"derived\"\n ]\n },\n {\n \"kind\": \"sling\",\n \"interfaces\": [\n \"swivel\"\n ],\n \"sources\": [\n \"derived\"\n ]\n }\n ],\n \"fitted\": []\n },\n {\n \"id\": \"iwi_tavor\",\n \"name\": \"IWI Tavor\",\n \"maker\": \"IWI\",\n \"category\": \"rifle\",\n \"action\": {\n \"kind\": \"firearm\",\n \"caliber\": \"5_56x45\",\n \"rpm\": 850,\n \"modes\": [\n \"auto\",\n \"semi\"\n ],\n \"magazine\": 30,\n \"reload\": 2.8,\n \"muzzleSpeed\": 910,\n \"spreadDeg\": 0.6,\n \"bloomDeg\": 0.25,\n \"recoveryDegPerS\": 5,\n \"recoil\": [\n 0.98,\n 0.59\n ],\n \"range\": 400,\n \"family\": \"magazine\",\n \"timings\": {\n \"draw\": 0.35,\n \"reload\": 2.8,\n \"reloadEmpty\": 3.4,\n \"clear\": 1.2\n }\n },\n \"mass\": 3.27,\n \"dimensions\": {\n \"length\": 0.72,\n \"barrel\": 0.46,\n \"emptyMass\": 3.27\n },\n \"archetype\": \"rifle_5_56\",\n \"variantOf\": \"steyr_aug_a1\",\n \"sources\": [\n \"reference\",\n \"derived\",\n \"sdk\"\n ],\n \"mounts\": [\n {\n \"kind\": \"rail_top\",\n \"interfaces\": [\n \"picatinny\"\n ],\n \"sources\": [\n \"gallery\"\n ]\n },\n {\n \"kind\": \"magazine\",\n \"interfaces\": [\n \"mag_box\"\n ],\n \"sources\": [\n \"derived\"\n ]\n },\n {\n \"kind\": \"sling\",\n \"interfaces\": [\n \"swivel\"\n ],\n \"sources\": [\n \"derived\"\n ]\n }\n ],\n \"fitted\": []\n },\n {\n \"id\": \"l85a2\",\n \"name\": \"L85A2\",\n \"category\": \"rifle\",\n \"action\": {\n \"kind\": \"firearm\",\n \"caliber\": \"5_56x45\",\n \"rpm\": 700,\n \"modes\": [\n \"auto\",\n \"semi\"\n ],\n \"magazine\": 30,\n \"reload\": 2.8,\n \"muzzleSpeed\": 940,\n \"spreadDeg\": 0.6,\n \"bloomDeg\": 0.25,\n \"recoveryDegPerS\": 5,\n \"recoil\": [\n 0.9,\n 0.54\n ],\n \"range\": 400,\n \"family\": \"magazine\",\n \"timings\": {\n \"draw\": 0.35,\n \"reload\": 2.8,\n \"reloadEmpty\": 3.4,\n \"clear\": 1.2\n }\n },\n \"mass\": 3.82,\n \"dimensions\": {\n \"length\": 0.785,\n \"barrel\": 0.518,\n \"emptyMass\": 3.82\n },\n \"archetype\": \"rifle_5_56\",\n \"variantOf\": \"steyr_aug_a1\",\n \"sources\": [\n \"reference\",\n \"derived\",\n \"sdk\"\n ],\n \"mounts\": [\n {\n \"kind\": \"rail_top\",\n \"interfaces\": [\n \"picatinny\"\n ],\n \"sources\": [\n \"gallery\"\n ]\n },\n {\n \"kind\": \"magazine\",\n \"interfaces\": [\n \"mag_box\"\n ],\n \"sources\": [\n \"derived\"\n ]\n },\n {\n \"kind\": \"sling\",\n \"interfaces\": [\n \"swivel\"\n ],\n \"sources\": [\n \"derived\"\n ]\n }\n ],\n \"fitted\": []\n },\n {\n \"id\": \"winchester_1887\",\n \"name\": \"Winchester 1887\",\n \"maker\": \"Winchester\",\n \"category\": \"hunting\",\n \"action\": {\n \"kind\": \"firearm\",\n \"caliber\": \"12ga_00buck\",\n \"rpm\": 109.09,\n \"modes\": [\n \"lever\"\n ],\n \"magazine\": 5,\n \"reload\": 0.6,\n \"perRound\": true,\n \"spreadDeg\": 0.25,\n \"bloomDeg\": 0.3,\n \"recoveryDegPerS\": 3,\n \"recoil\": [\n 2.33,\n 0.39\n ],\n \"range\": 800,\n \"family\": \"lever\",\n \"timings\": {\n \"draw\": 0.35,\n \"reload\": 0.6,\n \"perRound\": 0.6,\n \"cycle\": 0.55,\n \"clear\": 1.2\n }\n },\n \"mass\": 3.6,\n \"dimensions\": {\n \"length\": 1.016,\n \"barrel\": 0.508,\n \"emptyMass\": 3.6\n },\n \"archetype\": \"rifle_bolt_308\",\n \"variantOf\": \"winchester_1894\",\n \"sources\": [\n \"reference\",\n \"derived\",\n \"sdk\"\n ],\n \"mounts\": [\n {\n \"kind\": \"sling\",\n \"interfaces\": [\n \"swivel\"\n ],\n \"sources\": [\n \"derived\"\n ]\n }\n ],\n \"fitted\": []\n },\n {\n \"id\": \"ppsh_41\",\n \"name\": \"PPSh-41\",\n \"category\": \"smg\",\n \"action\": {\n \"kind\": \"firearm\",\n \"caliber\": \"7_62x25\",\n \"rpm\": 1250,\n \"modes\": [\n \"auto\",\n \"semi\"\n ],\n \"magazine\": 71,\n \"magazineOptions\": [\n 35\n ],\n \"reload\": 2.9,\n \"muzzleSpeed\": 488,\n \"spreadDeg\": 1.5,\n \"bloomDeg\": 0.35,\n \"recoveryDegPerS\": 6,\n \"recoil\": [\n 0.7,\n 0.39\n ],\n \"range\": 80,\n \"family\": \"magazine\",\n \"timings\": {\n \"draw\": 0.35,\n \"reload\": 2.9,\n \"clear\": 1.2\n }\n },\n \"mass\": 3.63,\n \"dimensions\": {\n \"length\": 0.843,\n \"barrel\": 0.269,\n \"emptyMass\": 3.63\n },\n \"archetype\": \"smg_9mm\",\n \"variantOf\": \"thompson_m1a1\",\n \"sources\": [\n \"reference\",\n \"derived\",\n \"sdk\"\n ],\n \"mounts\": [\n {\n \"kind\": \"magazine\",\n \"interfaces\": [\n \"mag_drum\"\n ],\n \"sources\": [\n \"gallery\"\n ]\n },\n {\n \"kind\": \"sling\",\n \"interfaces\": [\n \"swivel\"\n ],\n \"sources\": [\n \"derived\"\n ]\n }\n ],\n \"fitted\": []\n },\n {\n \"id\": \"mauser_kar98k\",\n \"name\": \"Mauser Kar98k\",\n \"maker\": \"Mauser\",\n \"category\": \"sniper\",\n \"action\": {\n \"kind\": \"firearm\",\n \"caliber\": \"7_92x57\",\n \"rpm\": 73.17,\n \"modes\": [\n \"bolt\"\n ],\n \"magazine\": 5,\n \"reload\": 2.4,\n \"muzzleSpeed\": 760,\n \"spreadDeg\": 0.25,\n \"bloomDeg\": 0.3,\n \"recoveryDegPerS\": 3,\n \"recoil\": [\n 2.84,\n 0.47\n ],\n \"range\": 800,\n \"family\": \"bolt\",\n \"timings\": {\n \"draw\": 0.35,\n \"reload\": 2.4,\n \"cycle\": 0.82,\n \"clear\": 1.2\n }\n },\n \"mass\": 3.7,\n \"dimensions\": {\n \"length\": 1.11,\n \"barrel\": 0.6,\n \"emptyMass\": 3.7\n },\n \"archetype\": \"rifle_bolt_308\",\n \"variantOf\": \"mosin_nagant_91_30\",\n \"sources\": [\n \"reference\",\n \"derived\",\n \"sdk\"\n ],\n \"mounts\": [\n {\n \"kind\": \"sling\",\n \"interfaces\": [\n \"swivel\"\n ],\n \"sources\": [\n \"derived\"\n ]\n }\n ],\n \"fitted\": []\n },\n {\n \"id\": \"mg42\",\n \"name\": \"MG42\",\n \"category\": \"machine_gun\",\n \"action\": {\n \"kind\": \"firearm\",\n \"caliber\": \"7_92x57\",\n \"rpm\": 1200,\n \"modes\": [\n \"auto\"\n ],\n \"magazine\": 50,\n \"reload\": 8.5,\n \"muzzleSpeed\": 740,\n \"spreadDeg\": 0.8,\n \"bloomDeg\": 0.35,\n \"recoveryDegPerS\": 4.5,\n \"recoil\": [\n 0.75,\n 0.4\n ],\n \"range\": 350,\n \"family\": \"belt\",\n \"timings\": {\n \"draw\": 0.35,\n \"reload\": 8.5,\n \"clear\": 1.2\n },\n \"faultFactor\": 1.3\n },\n \"mass\": 11.6,\n \"dimensions\": {\n \"length\": 1.22,\n \"barrel\": 0.53,\n \"emptyMass\": 11.6\n },\n \"archetype\": \"rifle_7_62x39\",\n \"variantOf\": \"m60\",\n \"sources\": [\n \"reference\",\n \"derived\",\n \"sdk\"\n ],\n \"mounts\": [\n {\n \"kind\": \"sling\",\n \"interfaces\": [\n \"swivel\"\n ],\n \"sources\": [\n \"derived\"\n ]\n }\n ],\n \"fitted\": []\n },\n {\n \"id\": \"vss_vintorez\",\n \"name\": \"VSS Vintorez\",\n \"category\": \"dmr\",\n \"action\": {\n \"kind\": \"firearm\",\n \"caliber\": \"9x39\",\n \"rpm\": 850,\n \"modes\": [\n \"auto\",\n \"semi\"\n ],\n \"magazine\": 10,\n \"magazineOptions\": [\n 20,\n 30\n ],\n \"reload\": 2.6,\n \"muzzleSpeed\": 295,\n \"noise\": 75,\n \"spreadDeg\": 0.8,\n \"bloomDeg\": 0.35,\n \"recoveryDegPerS\": 4.5,\n \"recoil\": [\n 0.73,\n 0.39\n ],\n \"range\": 350,\n \"family\": \"magazine\",\n \"timings\": {\n \"draw\": 0.35,\n \"reload\": 2.6,\n \"reloadEmpty\": 3.4,\n \"clear\": 1.2\n }\n },\n \"mass\": 2.6,\n \"dimensions\": {\n \"length\": 0.894,\n \"barrel\": 0.2,\n \"emptyMass\": 2.6\n },\n \"archetype\": \"rifle_7_62x39\",\n \"variantOf\": \"svd_dragunov\",\n \"sources\": [\n \"reference\",\n \"derived\",\n \"sdk\"\n ],\n \"mounts\": [\n {\n \"kind\": \"muzzle\",\n \"interfaces\": [\n \"integral\"\n ],\n \"sources\": [\n \"reference\"\n ]\n },\n {\n \"kind\": \"sling\",\n \"interfaces\": [\n \"swivel\"\n ],\n \"sources\": [\n \"derived\"\n ]\n }\n ],\n \"fitted\": [\n {\n \"id\": \"integral_suppressor\",\n \"mount\": \"muzzle\",\n \"integral\": true\n }\n ]\n }\n]\n","[\n {\n \"id\": \"rpg_7\",\n \"name\": \"RPG-7\",\n \"category\": \"launcher\",\n \"action\": {\n \"kind\": \"launcher\",\n \"projectile\": \"pg7v\",\n \"magazine\": 1,\n \"reload\": 4.5,\n \"timings\": {\n \"draw\": 0.35,\n \"reload\": 4.5,\n \"clear\": 1.2\n },\n \"family\": \"rocket\",\n \"speed\": 117,\n \"minArmDistance\": 10,\n \"backblast\": 5,\n \"backblastHalfAngleDeg\": 19,\n \"recoil\": [\n 4,\n 1\n ]\n },\n \"mass\": 6.3,\n \"dimensions\": {\n \"length\": 0.95,\n \"barrel\": 0.95,\n \"emptyMass\": 6.3\n },\n \"archetype\": \"shotgun_pump_12\",\n \"sources\": [\n \"gallery\",\n \"arsenal\",\n \"reference\",\n \"derived\"\n ]\n },\n {\n \"id\": \"m72_law\",\n \"name\": \"M72 LAW\",\n \"category\": \"launcher\",\n \"action\": {\n \"kind\": \"launcher\",\n \"projectile\": \"m72_66mm\",\n \"magazine\": 1,\n \"reload\": 1.15,\n \"timings\": {\n \"draw\": 0.35,\n \"reload\": 1.15,\n \"clear\": 1.2\n },\n \"family\": \"rocket\",\n \"disposable\": true,\n \"speed\": 145,\n \"minArmDistance\": 10,\n \"backblast\": 5,\n \"backblastHalfAngleDeg\": 19,\n \"recoil\": [\n 2.75,\n 0.69\n ]\n },\n \"mass\": 2.5,\n \"dimensions\": {\n \"length\": 0.881,\n \"barrel\": 0.881,\n \"emptyMass\": 2.5\n },\n \"archetype\": \"shotgun_pump_12\",\n \"sources\": [\n \"gallery\",\n \"reference\",\n \"derived\"\n ]\n },\n {\n \"id\": \"at4\",\n \"name\": \"AT4\",\n \"category\": \"launcher\",\n \"action\": {\n \"kind\": \"launcher\",\n \"projectile\": \"at4_84mm\",\n \"magazine\": 1,\n \"reload\": 1.15,\n \"timings\": {\n \"draw\": 0.35,\n \"reload\": 1.15,\n \"clear\": 1.2\n },\n \"family\": \"rocket\",\n \"disposable\": true,\n \"speed\": 285,\n \"minArmDistance\": 10,\n \"backblast\": 5,\n \"backblastHalfAngleDeg\": 19,\n \"recoil\": [\n 3.25,\n 0.81\n ]\n },\n \"mass\": 6.7,\n \"dimensions\": {\n \"length\": 1.02,\n \"barrel\": 1.02,\n \"emptyMass\": 6.7\n },\n \"archetype\": \"shotgun_pump_12\",\n \"sources\": [\n \"gallery\",\n \"reference\",\n \"derived\"\n ]\n },\n {\n \"id\": \"carl_gustaf_m4\",\n \"name\": \"Carl Gustaf M4\",\n \"category\": \"launcher\",\n \"action\": {\n \"kind\": \"launcher\",\n \"projectile\": \"carl_gustaf_84mm\",\n \"magazine\": 1,\n \"reload\": 1.05,\n \"timings\": {\n \"draw\": 0.35,\n \"reload\": 1.05,\n \"clear\": 1.2\n },\n \"family\": \"rocket\",\n \"speed\": 255,\n \"minArmDistance\": 10,\n \"backblast\": 5,\n \"backblastHalfAngleDeg\": 19,\n \"recoil\": [\n 3.5,\n 0.87\n ]\n },\n \"mass\": 6.6,\n \"dimensions\": {\n \"length\": 0.95,\n \"barrel\": 0.95,\n \"emptyMass\": 6.6\n },\n \"archetype\": \"shotgun_pump_12\",\n \"sources\": [\n \"gallery\",\n \"reference\",\n \"derived\"\n ]\n },\n {\n \"id\": \"m2_flamethrower\",\n \"name\": \"M2 flamethrower\",\n \"category\": \"launcher\",\n \"action\": {\n \"kind\": \"flame\",\n \"temperature\": 900,\n \"radius\": 0.6,\n \"range\": 6,\n \"fuelPerSecond\": 1,\n \"fuel\": 9,\n \"cone\": true,\n \"noise\": 20,\n \"family\": \"flame\",\n \"timings\": {\n \"draw\": 0.35,\n \"reload\": 1.1,\n \"clear\": 1.2\n }\n },\n \"mass\": 32,\n \"dimensions\": {\n \"length\": 1,\n \"barrel\": 0.62,\n \"emptyMass\": 32\n },\n \"archetype\": \"flamethrower\",\n \"sources\": [\n \"gallery\",\n \"sdk\",\n \"derived\"\n ]\n },\n {\n \"id\": \"improvised_flamethrower\",\n \"name\": \"Improvised flamethrower\",\n \"category\": \"launcher\",\n \"action\": {\n \"kind\": \"flame\",\n \"temperature\": 900,\n \"radius\": 0.6,\n \"range\": 3.6,\n \"fuelPerSecond\": 1,\n \"fuel\": 5,\n \"cone\": true,\n \"noise\": 20,\n \"family\": \"flame\",\n \"timings\": {\n \"draw\": 0.35,\n \"reload\": 1.1,\n \"clear\": 1.2\n }\n },\n \"mass\": 6,\n \"dimensions\": {\n \"length\": 0.8,\n \"barrel\": 0.66,\n \"emptyMass\": 6\n },\n \"archetype\": \"flamethrower\",\n \"sources\": [\n \"gallery\",\n \"sdk\",\n \"derived\"\n ]\n },\n {\n \"id\": \"m203\",\n \"name\": \"M203 grenade launcher\",\n \"category\": \"launcher\",\n \"action\": {\n \"kind\": \"launcher\",\n \"projectile\": \"m79_40mm\",\n \"magazine\": 1,\n \"reload\": 2,\n \"timings\": {\n \"draw\": 0.35,\n \"reload\": 2,\n \"clear\": 1.2\n },\n \"family\": \"underbarrel\",\n \"speed\": 76,\n \"minArmDistance\": 10,\n \"backblast\": 0,\n \"recoil\": [\n 4.5,\n 1.2\n ]\n },\n \"mass\": 1.59,\n \"dimensions\": {\n \"length\": 0.38,\n \"barrel\": 0.305,\n \"emptyMass\": 1.36\n },\n \"archetype\": \"shotgun_double_12\",\n \"tags\": [\n \"underbarrel\"\n ],\n \"sources\": [\n \"arsenal\",\n \"reference\",\n \"derived\"\n ]\n },\n {\n \"id\": \"gp_25\",\n \"name\": \"GP-25 grenade launcher\",\n \"category\": \"launcher\",\n \"action\": {\n \"kind\": \"launcher\",\n \"projectile\": \"vog_25\",\n \"magazine\": 1,\n \"reload\": 2,\n \"timings\": {\n \"draw\": 0.35,\n \"reload\": 2,\n \"clear\": 1.2\n },\n \"family\": \"underbarrel\",\n \"speed\": 76,\n \"minArmDistance\": 10,\n \"backblast\": 0,\n \"recoil\": [\n 4.5,\n 1.2\n ]\n },\n \"mass\": 1.73,\n \"dimensions\": {\n \"length\": 0.323,\n \"barrel\": 0.26,\n \"emptyMass\": 1.5\n },\n \"archetype\": \"shotgun_double_12\",\n \"tags\": [\n \"underbarrel\"\n ],\n \"sources\": [\n \"arsenal\",\n \"reference\",\n \"derived\"\n ]\n },\n {\n \"id\": \"ag36\",\n \"name\": \"AG36 grenade launcher\",\n \"category\": \"launcher\",\n \"action\": {\n \"kind\": \"launcher\",\n \"projectile\": \"m79_40mm\",\n \"magazine\": 1,\n \"reload\": 2,\n \"timings\": {\n \"draw\": 0.35,\n \"reload\": 2,\n \"clear\": 1.2\n },\n \"family\": \"underbarrel\",\n \"speed\": 76,\n \"minArmDistance\": 10,\n \"backblast\": 0,\n \"recoil\": [\n 4.5,\n 1.2\n ]\n },\n \"mass\": 1.73,\n \"dimensions\": {\n \"length\": 0.35,\n \"barrel\": 0.28,\n \"emptyMass\": 1.5\n },\n \"archetype\": \"shotgun_double_12\",\n \"tags\": [\n \"underbarrel\"\n ],\n \"sources\": [\n \"arsenal\",\n \"reference\",\n \"derived\"\n ]\n },\n {\n \"id\": \"m32_mgl\",\n \"name\": \"M32 multiple grenade launcher (Milkor MGL)\",\n \"category\": \"launcher\",\n \"action\": {\n \"kind\": \"launcher\",\n \"projectile\": \"m79_40mm\",\n \"magazine\": 6,\n \"reload\": 9.2,\n \"timings\": {\n \"draw\": 0.35,\n \"reload\": 9.2,\n \"clear\": 1.2\n },\n \"family\": \"revolver\",\n \"speed\": 75,\n \"minArmDistance\": 10,\n \"backblast\": 0,\n \"recoil\": [\n 2.25,\n 0.6\n ]\n },\n \"mass\": 6.68,\n \"dimensions\": {\n \"length\": 0.778,\n \"lengthCollapsed\": 0.565,\n \"barrel\": 0.3,\n \"emptyMass\": 5.3\n },\n \"archetype\": \"shotgun_double_12\",\n \"stock\": {\n \"kind\": \"fold\",\n \"foldAxis\": \"over\"\n },\n \"sources\": [\n \"reference\",\n \"derived\"\n ]\n }\n]\n","import type { AttachmentDef, AttachmentInstall, FittedAttachment, MountDef, MountKind } from './attachment-types'\nimport type { CaliberDef, WeaponDef } from './types'\n\nexport type FitRefusal = 'no_mount' | 'interface' | 'caliber' | 'category' | 'occupied' | 'blocked' | 'rejected'\n\nexport type CanFit = { readonly ok: true; readonly mount: MountKind } | { readonly ok: false; readonly reason: FitRefusal }\n\n/** What a game adds to the rule: false keeps the accessory off the weapon whatever the mounts say. */\nexport type IsCompatible = (def: WeaponDef, attachment: AttachmentDef, fitted: readonly FittedAttachment[]) => boolean\n\nexport interface CanFitContext {\n readonly caliber: CaliberDef | null\n readonly catalogue: ReadonlyMap<string, AttachmentDef>\n readonly isCompatible?: IsCompatible\n}\n\nconst INSTALL_RANK: Readonly<Record<AttachmentInstall, number>> = { field: 0, tool: 1, bench: 2 }\n\n/** Whether what is at hand (`field`: the hands, `tool`: a tool, `bench`: a bench) is enough to put the accessory on or take it off. */\nexport const canInstallWith = (available: AttachmentInstall, needed: AttachmentInstall): boolean => INSTALL_RANK[available] >= INSTALL_RANK[needed]\n\nconst muzzleEnergyOf = (def: WeaponDef, caliber: CaliberDef): number => {\n const speed = def.action.kind === 'firearm' ? def.action.muzzleSpeed ?? caliber.muzzleSpeed * (def.action.barrel ?? 1) : caliber.muzzleSpeed\n return 0.5 * (caliber.bulletGrams / 1000) * speed * speed\n}\n\nconst caliberRefusal = (def: WeaponDef, attachment: AttachmentDef, caliber: CaliberDef | null): boolean => {\n const limit = attachment.calibers\n if (!limit) return false\n if (!caliber) return true\n if (limit.ids && !limit.ids.includes(caliber.id)) return true\n if (limit.maxDiameter !== undefined && caliber.diameter > limit.maxDiameter) return true\n return limit.maxEnergy !== undefined && muzzleEnergyOf(def, caliber) > limit.maxEnergy\n}\n\nconst candidatesOf = (def: WeaponDef, attachment: AttachmentDef, mount?: MountKind): MountDef[] =>\n (def.mounts ?? []).filter((place) => attachment.mounts.includes(place.kind) && (mount === undefined || place.kind === mount))\n\nconst isBlocked = (place: MountKind, attachment: AttachmentDef, fitted: readonly FittedAttachment[], catalogue: ReadonlyMap<string, AttachmentDef>): boolean => {\n if (fitted.some((part) => catalogue.get(part.id)?.blocks?.includes(place))) return true\n return fitted.some((part) => attachment.blocks?.includes(part.mount))\n}\n\n/**\n * Whether the accessory goes on the weapon, and where. Order of the checks: a place of its kind (`no_mount`), an interface the place takes\n * (`interface`), the calibre limits of a suppressor (`caliber`), the weapon categories (`category`), the place being free (`occupied`),\n * something else covering it (`blocked`), then the game's own `isCompatible` (`rejected`).\n */\nexport const canFit = (def: WeaponDef, attachment: AttachmentDef, fitted: readonly FittedAttachment[], context: CanFitContext, mount?: MountKind): CanFit => {\n const places = candidatesOf(def, attachment, mount)\n if (places.length === 0) return { ok: false, reason: 'no_mount' }\n const matching = places.filter((place) => place.interfaces.some((name) => attachment.interfaces.includes(name)))\n if (matching.length === 0) return { ok: false, reason: 'interface' }\n if (caliberRefusal(def, attachment, context.caliber)) return { ok: false, reason: 'caliber' }\n if (attachment.categories && !attachment.categories.includes(def.category)) return { ok: false, reason: 'category' }\n const free = matching.filter((place) => !fitted.some((part) => part.mount === place.kind))\n if (free.length === 0) return { ok: false, reason: 'occupied' }\n const open = free.filter((place) => !isBlocked(place.kind, attachment, fitted, context.catalogue))\n const place = open[0]\n if (!place) return { ok: false, reason: 'blocked' }\n if (context.isCompatible && !context.isCompatible(def, attachment, fitted)) return { ok: false, reason: 'rejected' }\n return { ok: true, mount: place.kind }\n}\n","[\n {\n \"id\": \"tactical_knife\",\n \"name\": \"Tactical knife\",\n \"category\": \"melee_blade\",\n \"action\": {\n \"kind\": \"melee\",\n \"damage\": \"slash\",\n \"energy\": 45,\n \"radius\": 0.03,\n \"reach\": 0.6,\n \"rpm\": 100,\n \"noise\": 1\n },\n \"mass\": 0.3\n },\n {\n \"id\": \"meat_cleaver\",\n \"name\": \"Meat cleaver\",\n \"category\": \"melee_blade\",\n \"action\": {\n \"kind\": \"melee\",\n \"damage\": \"slash\",\n \"energy\": 120,\n \"radius\": 0.05,\n \"reach\": 0.6,\n \"rpm\": 70,\n \"noise\": 2\n },\n \"mass\": 0.6\n },\n {\n \"id\": \"hatchet\",\n \"name\": \"Hatchet\",\n \"category\": \"melee_blade\",\n \"action\": {\n \"kind\": \"melee\",\n \"damage\": \"slash\",\n \"energy\": 180,\n \"radius\": 0.06,\n \"reach\": 0.7,\n \"rpm\": 55,\n \"noise\": 2\n },\n \"mass\": 0.8\n },\n {\n \"id\": \"nail_bat\",\n \"name\": \"Nail bat\",\n \"category\": \"melee_blunt\",\n \"action\": {\n \"kind\": \"melee\",\n \"damage\": \"blunt\",\n \"energy\": 170,\n \"radius\": 0.1,\n \"reach\": 1,\n \"rpm\": 60,\n \"noise\": 3\n },\n \"mass\": 1.2\n },\n {\n \"id\": \"iron_pipe\",\n \"name\": \"Iron pipe\",\n \"category\": \"melee_blunt\",\n \"action\": {\n \"kind\": \"melee\",\n \"damage\": \"blunt\",\n \"energy\": 140,\n \"radius\": 0.06,\n \"reach\": 1,\n \"rpm\": 60,\n \"noise\": 4\n },\n \"mass\": 1.2\n },\n {\n \"id\": \"pickaxe\",\n \"name\": \"Pickaxe\",\n \"category\": \"melee_blade\",\n \"action\": {\n \"kind\": \"melee\",\n \"damage\": \"slash\",\n \"energy\": 260,\n \"radius\": 0.05,\n \"reach\": 1,\n \"rpm\": 40,\n \"noise\": 4\n },\n \"mass\": 2.8,\n \"tags\": [\n \"heavy\"\n ]\n },\n {\n \"id\": \"sickle\",\n \"name\": \"Sickle\",\n \"category\": \"melee_blade\",\n \"action\": {\n \"kind\": \"melee\",\n \"damage\": \"slash\",\n \"energy\": 70,\n \"radius\": 0.05,\n \"reach\": 1.1,\n \"rpm\": 70,\n \"noise\": 2\n },\n \"mass\": 1.2\n },\n {\n \"id\": \"police_baton\",\n \"name\": \"Police baton\",\n \"category\": \"melee_blunt\",\n \"action\": {\n \"kind\": \"melee\",\n \"damage\": \"blunt\",\n \"energy\": 70,\n \"radius\": 0.04,\n \"reach\": 0.7,\n \"rpm\": 90,\n \"noise\": 3\n },\n \"mass\": 0.6\n },\n {\n \"id\": \"cast_iron_skillet\",\n \"name\": \"Cast iron skillet\",\n \"category\": \"melee_blunt\",\n \"action\": {\n \"kind\": \"melee\",\n \"damage\": \"blunt\",\n \"energy\": 110,\n \"radius\": 0.12,\n \"reach\": 0.6,\n \"rpm\": 60,\n \"noise\": 8\n },\n \"mass\": 1.2\n },\n {\n \"id\": \"improvised_spear\",\n \"name\": \"Improvised spear\",\n \"category\": \"melee_blade\",\n \"action\": {\n \"kind\": \"melee\",\n \"damage\": \"slash\",\n \"energy\": 90,\n \"radius\": 0.02,\n \"reach\": 1.6,\n \"rpm\": 50,\n \"noise\": 1\n },\n \"mass\": 1.1\n },\n {\n \"id\": \"chainsaw\",\n \"name\": \"Chainsaw\",\n \"category\": \"melee_blade\",\n \"action\": {\n \"kind\": \"melee\",\n \"damage\": \"slash\",\n \"energy\": 400,\n \"radius\": 0.1,\n \"reach\": 0.9,\n \"rpm\": 300,\n \"noise\": 120\n },\n \"mass\": 6,\n \"tags\": [\n \"heavy\"\n ]\n },\n {\n \"id\": \"recurve_bow\",\n \"name\": \"Recurve bow\",\n \"category\": \"bow\",\n \"action\": {\n \"kind\": \"firearm\",\n \"caliber\": \"arrow\",\n \"rpm\": 20,\n \"modes\": [\n \"single\"\n ],\n \"magazine\": 1,\n \"reload\": 1.5,\n \"barrel\": 1,\n \"spreadDeg\": 0.4,\n \"bloomDeg\": 0.4,\n \"recoveryDegPerS\": 2,\n \"recoil\": [\n 0.3,\n 0.1\n ],\n \"range\": 40\n },\n \"mass\": 1.2,\n \"tags\": [\n \"silent\"\n ]\n },\n {\n \"id\": \"kabar\",\n \"name\": \"KA-BAR combat knife\",\n \"category\": \"melee_blade\",\n \"action\": {\n \"kind\": \"melee\",\n \"damage\": \"slash\",\n \"energy\": 48,\n \"radius\": 0.03,\n \"reach\": 0.55,\n \"rpm\": 100,\n \"noise\": 1\n },\n \"mass\": 0.32,\n \"sources\": [\n \"reference\",\n \"derived\"\n ]\n },\n {\n \"id\": \"katana\",\n \"name\": \"Katana\",\n \"category\": \"melee_blade\",\n \"action\": {\n \"kind\": \"melee\",\n \"damage\": \"slash\",\n \"energy\": 230,\n \"radius\": 0.04,\n \"reach\": 1.1,\n \"rpm\": 70,\n \"noise\": 5\n },\n \"mass\": 1.1,\n \"tags\": [\n \"two_handed\"\n ],\n \"sources\": [\n \"reference\",\n \"derived\"\n ]\n },\n {\n \"id\": \"brass_knuckles\",\n \"name\": \"Brass knuckles\",\n \"category\": \"melee_blunt\",\n \"action\": {\n \"kind\": \"melee\",\n \"damage\": \"blunt\",\n \"energy\": 32,\n \"radius\": 0.04,\n \"reach\": 0.6,\n \"rpm\": 120,\n \"noise\": 5\n },\n \"mass\": 0.15,\n \"tags\": [\n \"fists\"\n ],\n \"sources\": [\n \"reference\",\n \"derived\"\n ]\n }\n]\n","import type { AttachmentDef, AttachmentId } from './attachment-types'\nimport type { AmmoDef, CaliberDef, CaliberId, ExplosiveDef, ExplosiveId, FirearmAction, WeaponDef, WeaponId, WeaponRules } from './types'\n\nexport interface ArsenalParts {\n readonly weapons: ReadonlyMap<WeaponId, WeaponDef>\n readonly calibers: ReadonlyMap<CaliberId, CaliberDef>\n readonly explosives: ReadonlyMap<ExplosiveId, ExplosiveDef>\n readonly attachments?: ReadonlyMap<AttachmentId, AttachmentDef>\n /** When given, every ammo entry must name a calibre of the arsenal, and every calibre's own kind must have its entry. */\n readonly ammo?: ReadonlyMap<string, AmmoDef>\n /** When given, the default condition and ammunition quality must be ones the rules define. */\n readonly rules?: Pick<WeaponRules, 'conditions' | 'defaultCondition' | 'ammoQualities' | 'defaultAmmoQuality'>\n}\n\n/** Ids that appear more than once in a list a game passed in. */\nexport const findDuplicateIds = (kind: string, entries: readonly { readonly id: string }[] | undefined): string[] => {\n const seen = new Set<string>()\n const problems: string[] = []\n for (const { id } of entries ?? []) {\n if (seen.has(id)) problems.push(`${kind} \"${id}\" is listed more than once`)\n seen.add(id)\n }\n return problems\n}\n\nconst checkRotary = (id: string, action: FirearmAction): string[] => {\n const problems: string[] = []\n const { rpm, rpmRange, spin } = action\n if (rpmRange && !(rpmRange[0] > 0 && rpmRange[0] <= rpmRange[1])) problems.push(`weapon \"${id}\" has an empty rate range ${rpmRange[0]}-${rpmRange[1]} rpm`)\n if (rpmRange && (rpm < rpmRange[0] || rpm > rpmRange[1])) problems.push(`weapon \"${id}\" fires at ${rpm} rpm, outside its range ${rpmRange[0]}-${rpmRange[1]}`)\n if (spin && !(spin.upSeconds >= 0 && spin.holdSeconds >= 0)) problems.push(`weapon \"${id}\" has a negative spin time`)\n return problems\n}\n\nconst checkFirearm = (def: WeaponDef, calibers: ArsenalParts['calibers']): string[] => {\n if (def.action.kind !== 'firearm') return []\n const problems: string[] = []\n for (const caliber of [def.action.caliber, ...(def.action.acceptsCalibers ?? [])]) {\n if (!calibers.has(caliber)) problems.push(`weapon \"${def.id}\" uses unknown calibre \"${caliber}\"`)\n }\n if (def.action.modes.length === 0) problems.push(`weapon \"${def.id}\" has no fire modes`)\n if (!(def.action.rpm > 0)) problems.push(`weapon \"${def.id}\" has a rate of fire of ${def.action.rpm} rpm`)\n if (!(def.action.reload > 0)) problems.push(`weapon \"${def.id}\" has a reload time of ${def.action.reload} s`)\n problems.push(...checkRotary(def.id, def.action))\n return problems\n}\n\nconst checkTimings = (def: WeaponDef): string[] => {\n const timings = 'timings' in def.action ? def.action.timings : undefined\n return Object.entries(timings ?? {})\n .filter(([, seconds]) => typeof seconds === 'number' && !(seconds > 0))\n .map(([name, seconds]) => `weapon \"${def.id}\" has a ${name} time of ${seconds} s`)\n}\n\nconst checkExplosiveReference = (def: WeaponDef, explosives: ArsenalParts['explosives']): string[] => {\n const id = def.action.kind === 'launcher' ? def.action.projectile : def.action.kind === 'throwable' ? def.action.explosive : undefined\n return id !== undefined && !explosives.has(id) ? [`weapon \"${def.id}\" uses unknown explosive \"${id}\"`] : []\n}\n\nconst checkExplosiveNumbers = (explosive: ExplosiveDef): string[] => {\n const problems: string[] = []\n const [low, high] = explosive.fuseRange ?? [1, 1]\n if (!(low > 0 && high >= low)) problems.push(`explosive \"${explosive.id}\" has a fuse range of ${low} to ${high} s`)\n if (explosive.armRange && !(explosive.armRange[0] > 0 && explosive.armRange[1] >= explosive.armRange[0])) problems.push(`explosive \"${explosive.id}\" arms between ${explosive.armRange[0]} and ${explosive.armRange[1]} m`)\n if (explosive.fuseLength !== undefined && !(explosive.fuseLength > 0)) problems.push(`explosive \"${explosive.id}\" has a fuse length of ${explosive.fuseLength} m`)\n if (explosive.burnRate !== undefined && !(explosive.burnRate > 0)) problems.push(`explosive \"${explosive.id}\" has a burn rate of ${explosive.burnRate} s/m`)\n if (explosive.burnTolerance !== undefined && !(explosive.burnTolerance >= 0 && explosive.burnTolerance < 1)) problems.push(`explosive \"${explosive.id}\" has a burn tolerance of ${explosive.burnTolerance}`)\n if (explosive.leak && !(explosive.leak.liters > 0 && explosive.leak.igniteDelay >= 0 && (explosive.leak.hissSeconds ?? 0) >= 0)) problems.push(`explosive \"${explosive.id}\" has a leak of ${explosive.leak.liters} l that lights after ${explosive.leak.igniteDelay} s`)\n if (explosive.shell && !(explosive.shell.launchSpeed >= 0 && explosive.shell.trailSeconds >= 0)) problems.push(`explosive \"${explosive.id}\" has a shell that leaves at ${explosive.shell.launchSpeed} m/s and trails fire for ${explosive.shell.trailSeconds} s`)\n if (explosive.tripwire && !(explosive.tripwire.length > 0)) problems.push(`explosive \"${explosive.id}\" has a trip wire of ${explosive.tripwire.length} m`)\n return problems\n}\n\nconst STATS: ReadonlySet<string> = new Set(['noise', 'spread', 'hipSpreadExcess', 'recoilVertical', 'recoilHorizontal', 'range', 'muzzleSpeed', 'mass', 'capacity', 'reload', 'reloadEmpty', 'draw', 'aim', 'faultChance', 'heatPerShot'])\nconst INSTALLS: ReadonlySet<string> = new Set(['field', 'tool', 'bench'])\n\nconst checkAttachment = (attachment: AttachmentDef, weapons: ArsenalParts['weapons']): string[] => {\n const problems: string[] = []\n if (attachment.launcher !== undefined && weapons.get(attachment.launcher)?.action.kind !== 'launcher') problems.push(`attachment \"${attachment.id}\" names \"${attachment.launcher}\" as its launcher, which is not a launcher weapon`)\n const label = `attachment \"${attachment.id}\"`\n if (!INSTALLS.has(attachment.install)) problems.push(`${label} installs \"${attachment.install}\"`)\n if (attachment.mounts.length === 0) problems.push(`${label} has no mount`)\n if (attachment.interfaces.length === 0) problems.push(`${label} has no interface`)\n for (const effect of attachment.effects) {\n if (!STATS.has(effect.stat)) problems.push(`${label} changes the unknown stat \"${effect.stat}\"`)\n if (effect.mul !== undefined && !(effect.mul > 0)) problems.push(`${label} multiplies ${effect.stat} by ${effect.mul}`)\n }\n return problems\n}\n\nconst checkFitted = (def: WeaponDef, attachments: ArsenalParts['attachments']): string[] => {\n if (!attachments) return []\n return (def.fitted ?? []).flatMap((part) => {\n const problems: string[] = []\n if (!attachments.has(part.id)) problems.push(`weapon \"${def.id}\" is fitted with unknown attachment \"${part.id}\"`)\n if (!(def.mounts ?? []).some((mount) => mount.kind === part.mount)) problems.push(`weapon \"${def.id}\" has \"${part.id}\" on \"${part.mount}\", which it has no mount for`)\n return problems\n })\n}\n\nconst checkRuleDefaults = (rules: ArsenalParts['rules']): string[] => {\n if (!rules) return []\n const problems: string[] = []\n if (!rules.conditions.some((condition) => condition.id === rules.defaultCondition)) problems.push(`the default condition \"${rules.defaultCondition}\" is not one of the conditions`)\n if (!rules.ammoQualities.some((quality) => quality.id === rules.defaultAmmoQuality)) problems.push(`the default ammunition quality \"${rules.defaultAmmoQuality}\" is not one of the qualities`)\n return problems\n}\n\nconst PENETRATION_KEYS = ['steel', 'concrete', 'brick', 'wood'] as const\n\nconst checkAmmo = (ammo: ArsenalParts['ammo'], calibers: ArsenalParts['calibers']): string[] => {\n if (!ammo) return []\n const problems: string[] = []\n for (const load of ammo.values()) {\n const label = `ammo \"${load.id}\"`\n if (load.id !== `${load.caliber}:${load.kind}`) problems.push(`${label} should be called \"${load.caliber}:${load.kind}\"`)\n if (!calibers.has(load.caliber)) problems.push(`${label} is for unknown calibre \"${load.caliber}\"`)\n if (load.bulletGrams !== undefined && !(load.bulletGrams > 0)) problems.push(`${label} weighs ${load.bulletGrams} g`)\n if (load.muzzleSpeed !== undefined && !(load.muzzleSpeed > 0)) problems.push(`${label} leaves at ${load.muzzleSpeed} m/s`)\n for (const key of PENETRATION_KEYS) if (!(load.penetration?.[key] >= 0)) problems.push(`${label} has no penetration for ${key}`)\n }\n for (const caliber of calibers.values()) if (caliber.kind !== undefined && !ammo.has(`${caliber.id}:${caliber.kind}`)) problems.push(`calibre \"${caliber.id}\" has no ammo \"${caliber.id}:${caliber.kind}\" in the table`)\n return problems\n}\n\n/** Every problem found in an arsenal, so a game sees them all at once instead of one per run. Empty when it is consistent. */\nexport const checkArsenal = ({ weapons, calibers, explosives, attachments, ammo, rules }: ArsenalParts): string[] => [\n ...[...weapons.values()].flatMap((def) => [...checkFirearm(def, calibers), ...checkTimings(def), ...checkExplosiveReference(def, explosives), ...checkFitted(def, attachments)]),\n ...[...(attachments?.values() ?? [])].flatMap((attachment) => checkAttachment(attachment, weapons)),\n ...[...explosives.values()].flatMap(checkExplosiveNumbers),\n ...checkAmmo(ammo, calibers),\n ...checkRuleDefaults(rules),\n]\n","import { deepMerge } from '@adatechnology/game-contracts'\nimport type { DeepPartial } from '@adatechnology/game-contracts'\n\n/** Locales shipped with the package. Unknown locales fall back to `en`. */\nexport type WeaponsLocale = 'en' | 'pt-BR'\n\nexport interface WeaponsStrings {\n /** Display name of each weapon id. */\n weapons: Record<string, string>\n /** Display name of each fire mode. */\n modes: Record<string, string>\n /** Display name of each weapon category. */\n categories: Record<string, string>\n /** Display name of each explosive id. */\n explosives: Record<string, string>\n /** Display name of each weapon fault. */\n faults: Record<string, string>\n /** Display name of each weapon condition. */\n conditions: Record<string, string>\n}\n\nconst modesEn = { single: 'single action', semi: 'semi-automatic', burst: 'burst', auto: 'automatic', pump: 'pump action', bolt: 'bolt action', lever: 'lever action', break: 'break action', volley: 'volley' }\nconst categoriesEn = {\n pistol: 'pistol', revolver: 'revolver', smg: 'submachine gun', rifle: 'rifle', carbine: 'carbine', sniper: 'sniper rifle', shotgun: 'shotgun',\n bow: 'bow', crossbow: 'crossbow', melee_blunt: 'blunt melee', melee_blade: 'bladed melee', flame: 'flame', heat: 'heat', throwable: 'throwable',\n tool: 'tool', extinguisher: 'extinguisher', hand: 'hand', dmr: 'marksman rifle', hunting: 'hunting rifle', machine_gun: 'machine gun', launcher: 'launcher', pdw: 'PDW (personal defence weapon)',\n}\nconst faultsEn = { misfire: 'misfire', stovepipe: 'stovepipe', double_feed: 'double feed', failure_to_extract: 'failure to extract' }\nconst conditionsEn = { new: 'new', used: 'used', worn: 'worn', rusty: 'rusty' }\n\nexport const locales: Record<WeaponsLocale, WeaponsStrings> = {\n en: {\n weapons: {\n hand: 'Hand', kick: 'Kick', shove: 'Shove', pistol_9mm: '9 mm service pistol', pistol_45: '.45 ACP pistol', pistol_22: '.22 LR pistol', revolver_357: '.357 Magnum revolver',\n revolver_38: '.38 Special revolver', smg_9mm: '9 mm submachine gun', carbine_22: '.22 LR carbine', rifle_5_56: '5.56 mm assault rifle',\n rifle_7_62x39: '7.62×39 mm assault rifle', rifle_bolt_308: '.308 bolt-action rifle', sniper_338: '.338 Lapua sniper rifle',\n anti_materiel_50: '.50 BMG anti-materiel rifle', shotgun_pump_12: '12 gauge pump-action shotgun', shotgun_double_12: '12 gauge double-barrel shotgun',\n shotgun_semi_12: '12 gauge semi-automatic shotgun', bow_compound: 'Compound bow', crossbow: 'Crossbow', hammer: 'Hammer', sledgehammer: 'Sledgehammer',\n baseball_bat: 'Baseball bat', crowbar: 'Crowbar', machete: 'Machete', axe: 'Axe', knife: 'Knife', fists: 'Fists', lighter: 'Lighter',\n flamethrower: 'Flamethrower', molotov: 'Molotov cocktail', cutting_torch: 'Oxy-fuel cutting torch', blowtorch: 'Blowtorch',\n frag_grenade: 'Fragmentation grenade', pipe_bomb: 'Pipe bomb', screwdriver: 'Screwdriver', wrench: 'Wrench', pry_bar: 'Pry bar', hacksaw: 'Hacksaw',\n utility_knife: 'Utility knife', claw_hammer: 'Claw hammer', extinguisher: 'Fire extinguisher',\n boito_double_barrel: 'Boito double-barrel', hunting_rifle_30_06: '.30-06 hunting rifle', m2_flamethrower: 'M2 flamethrower', improvised_flamethrower: 'Improvised flamethrower',\n m79: 'M79 grenade launcher',\n m203: 'M203 grenade launcher', gp_25: 'GP-25 grenade launcher', ag36: 'AG36 grenade launcher', flashbang: 'Flashbang', dynamite: 'Dynamite',\n c4: 'C4 charge', claymore: 'Claymore mine', tactical_knife: 'Tactical knife', meat_cleaver: 'Meat cleaver', hatchet: 'Hatchet', nail_bat: 'Nail bat',\n iron_pipe: 'Iron pipe', pickaxe: 'Pickaxe', sickle: 'Sickle', police_baton: 'Police baton', cast_iron_skillet: 'Cast iron skillet',\n improvised_spear: 'Improvised spear', chainsaw: 'Chainsaw', recurve_bow: 'Recurve bow', m134: 'M134 Minigun',\n semtex: 'Semtex charge', smoke_grenade: 'M18 smoke grenade', kabar: 'KA-BAR combat knife', katana: 'Katana', brass_knuckles: 'Brass knuckles',\n },\n modes: modesEn,\n categories: categoriesEn,\n explosives: {\n m67: 'M67 fragmentation grenade', molotov: 'Molotov cocktail', pipe_bomb: 'Pipe bomb', propane_p13: 'P13 propane cylinder', dynamite: 'Dynamite', c4: 'C4 charge',\n claymore: 'Claymore mine', flashbang: 'Flashbang', semtex: 'Semtex charge', smoke_grenade: 'M18 colored smoke grenade', m79_40mm: '40 mm grenade', m72_66mm: '66 mm HEAT rocket', at4_84mm: '84 mm HEAT rocket',\n pg7v: 'PG-7V rocket', carl_gustaf_84mm: '84 mm HE/HEAT round', fuel_barrel: 'Fuel barrel', car_fuel_tank: 'Car fuel tank',\n fuel_pump: 'Fuel pump', fuel_station_tank: 'Fuel station tank',\n },\n faults: faultsEn,\n conditions: conditionsEn,\n },\n 'pt-BR': {\n weapons: {\n hand: 'mão', kick: 'chute', shove: 'empurrão', pistol_9mm: 'pistola 9 mm', pistol_45: 'pistola .45', pistol_22: 'pistola .22', revolver_357: 'revólver .357', revolver_38: 'revólver .38',\n smg_9mm: 'submetralhadora 9 mm', carbine_22: 'carabina .22', rifle_5_56: 'fuzil 5,56', rifle_7_62x39: 'fuzil 7,62×39', rifle_bolt_308: 'fuzil de ferrolho .308',\n sniper_338: 'fuzil de precisão .338', anti_materiel_50: 'fuzil antimaterial .50', shotgun_pump_12: 'espingarda de repetição calibre 12',\n shotgun_double_12: 'espingarda de dois canos calibre 12', shotgun_semi_12: 'espingarda semiautomática calibre 12', bow_compound: 'arco composto',\n crossbow: 'besta', hammer: 'martelo', sledgehammer: 'marreta', baseball_bat: 'taco de beisebol', crowbar: 'pé de cabra', machete: 'facão', axe: 'machado',\n knife: 'faca', fists: 'punhos', lighter: 'isqueiro', flamethrower: 'lança-chamas', molotov: 'coquetel molotov', cutting_torch: 'maçarico de corte',\n blowtorch: 'maçarico', frag_grenade: 'granada de fragmentação', pipe_bomb: 'bomba caseira', screwdriver: 'chave de fenda', wrench: 'chave inglesa',\n pry_bar: 'alavanca', hacksaw: 'serra de arco', utility_knife: 'estilete', claw_hammer: 'martelo de unha', extinguisher: 'extintor',\n boito_double_barrel: 'Boito (2 canos)', hunting_rifle_30_06: 'Rifle de caça .30-06', m2_flamethrower: 'Lança-chamas M2', improvised_flamethrower: 'Lança-chamas caseiro',\n m79: 'Lança-granadas M79',\n m203: 'Lança-granadas M203', gp_25: 'Lança-granadas GP-25', ag36: 'Lança-granadas AG36', flashbang: 'granada de luz', dynamite: 'dinamite',\n c4: 'C4 com detonador', claymore: 'mina Claymore', tactical_knife: 'faca tática', meat_cleaver: 'cutelo', hatchet: 'machadinha', nail_bat: 'taco com pregos',\n iron_pipe: 'cano de ferro', pickaxe: 'picareta', sickle: 'foice', police_baton: 'cassetete', cast_iron_skillet: 'frigideira de ferro',\n improvised_spear: 'lança improvisada', chainsaw: 'motosserra', recurve_bow: 'arco recurvo', m134: 'Minigun M134',\n semtex: 'Semtex com detonador', smoke_grenade: 'granada de fumaça M18', kabar: 'faca KA-BAR', katana: 'espada katana', brass_knuckles: 'soco inglês',\n },\n modes: { single: 'tiro único', semi: 'semiautomático', burst: 'rajada', auto: 'automático', pump: 'repetição', bolt: 'ferrolho', lever: 'alavanca', break: 'basculante', volley: 'salva' },\n categories: {\n pistol: 'pistola', revolver: 'revólver', smg: 'submetralhadora', rifle: 'fuzil', carbine: 'carabina', sniper: 'fuzil de precisão', shotgun: 'espingarda',\n bow: 'arco', crossbow: 'besta', melee_blunt: 'corpo a corpo contundente', melee_blade: 'corpo a corpo cortante', flame: 'chama', heat: 'calor',\n throwable: 'arremessável', tool: 'ferramenta', extinguisher: 'extintor', hand: 'mão', dmr: 'fuzil de precisão semiautomático', hunting: 'arma de caça',\n machine_gun: 'metralhadora', launcher: 'lançador', pdw: 'PDW (arma de defesa pessoal)',\n },\n explosives: {\n m67: 'Granada M67', molotov: 'Coquetel molotov', pipe_bomb: 'Bomba caseira', propane_p13: 'Botijão de gás P13', dynamite: 'Dinamite', c4: 'C4 com detonador',\n claymore: 'Mina Claymore', flashbang: 'Granada de luz', semtex: 'Semtex com detonador', smoke_grenade: 'Granada de fumaça M18', m79_40mm: 'Granada de 40 mm', m72_66mm: 'Foguete HEAT de 66 mm', at4_84mm: 'Foguete HEAT de 84 mm',\n pg7v: 'Foguete PG-7V', carl_gustaf_84mm: 'Projétil de 84 mm (HE/HEAT)', fuel_barrel: 'Barril de combustível', car_fuel_tank: 'Tanque de combustível do carro',\n fuel_pump: 'Bomba de combustível', fuel_station_tank: 'Tanque do posto de gasolina',\n },\n faults: { misfire: 'nega', stovepipe: 'chaminé', double_feed: 'dupla alimentação', failure_to_extract: 'falha de extração' },\n conditions: { new: 'nova', used: 'usada', worn: 'gasta', rusty: 'enferrujada' },\n },\n}\n\nexport const resolveStrings = (locale: string | undefined, overrides?: DeepPartial<WeaponsStrings>): WeaponsStrings =>\n deepMerge(locales[(locale as WeaponsLocale) ?? 'en'] ?? locales.en, overrides)\n","import type { ExplosiveDef } from './explosive-types'\n\n/** The fuse of an explosive with no randomness: a fixed `fuse`, the burn of a safety fuse (length times rate), or the middle of `fuseRange`. */\nexport const nominalFuse = (explosive: ExplosiveDef, fuseLength?: number): number | undefined => {\n const length = fuseLength ?? explosive.fuseLength\n if (length !== undefined && explosive.burnRate !== undefined) return length * explosive.burnRate\n if (explosive.fuseRange) return (explosive.fuseRange[0] + explosive.fuseRange[1]) / 2\n return explosive.fuse\n}\n\n/**\n * The fuse of one throw. A safety fuse burns `fuseLength × burnRate` seconds, scattered by `burnTolerance` (a fraction, ±); `fuseRange` picks a time\n * between its two ends; a fixed `fuse` is returned as is. Draws from `random` only when the explosive is not fixed, so fixed ones leave the stream alone.\n */\nexport const sampleFuse = (explosive: ExplosiveDef, random: () => number, fuseLength?: number): number | undefined => {\n const length = fuseLength ?? explosive.fuseLength\n if (length !== undefined && explosive.burnRate !== undefined) {\n const tolerance = explosive.burnTolerance ?? 0\n return length * explosive.burnRate * (tolerance > 0 ? 1 + tolerance * (2 * random() - 1) : 1)\n }\n if (explosive.fuseRange) return explosive.fuseRange[0] + (explosive.fuseRange[1] - explosive.fuseRange[0]) * random()\n return explosive.fuse\n}\n","import { nominalFuse } from './fuse'\nimport type { ExplosiveDef, WeaponDef } from './types'\n\n/** A throwable that names an explosive takes its energy, noise, lethal radius, fuse (the nominal one, when it is sampled per throw) and fire from it, so changing the explosive changes the throwable. */\nexport const resolveThrowables = (weapons: Map<string, WeaponDef>, explosives: ReadonlyMap<string, ExplosiveDef>): void => {\n for (const [id, def] of weapons) {\n if (def.action.kind !== 'throwable' || def.action.explosive === undefined) continue\n const explosive = explosives.get(def.action.explosive)\n if (!explosive) continue\n const radius = explosive.lethalRadius > 0 ? explosive.lethalRadius : def.action.radius\n const fire = explosive.fire ? { ...explosive.fire } : def.action.fire\n weapons.set(id, { ...def, action: { ...def.action, energy: explosive.energy, noise: explosive.noise, radius, fuse: nominalFuse(explosive) ?? def.action.fuse, ...(fire ? { fire } : {}) } })\n }\n}\n","import { DEFAULT_IGNITION_RULES } from '@adatechnology/game-contracts'\nimport type { FaultContext, WeaponRules } from './types'\n\n// Physical model (2026-11-05): temperature above ambient in °C. Steel is 490 J/(kg·K); the shares, kg per metre and cooling constants are the kit's\n// calibration against real references (an M4 reaches the warning in about 130 rounds of rapid fire, a pistol never does, a minigun shares six barrels).\nconst DEFAULT_HEAT: WeaponRules['heat'] = {\n cap: 900,\n displayMax: 750,\n faultFrom: 350,\n faultSpan: 200,\n specificHeat: 490,\n barrelShare: { shell: 0.48, big: 0.48, tiny: 0.3, pistol: 0.3, rifle: 0.48 },\n barrelKilogramsPerMetre: {\n pistol: 1.0,\n revolver: 1.4,\n smg: 1.2,\n carbine: 1.6,\n rifle: 1.6,\n dmr: 2.4,\n sniper: 2.4,\n hunting: 2.4,\n machine_gun: 3.0,\n shotgun: 1.1,\n },\n barrelFallback: { metres: 0.4, kilogramsPerMetre: 1.6 },\n cooling: { baseSeconds: 30, secondsPerKilogram: 250 },\n perRocket: 35,\n visual: { smokeFrom: 250, smokeSpan: 300, smokeSeconds: 2.5, glowFrom: 450, glowSpan: 300 },\n}\n\n/** The heat the Galeria 3D do Arsenal recorded (abstract units, hotter per round: a magazine was enough to glow); kept so the recorded runs stay reproducible. */\nexport const GALLERY_HEAT: WeaponRules['heat'] = {\n ...DEFAULT_HEAT,\n cap: 140,\n displayMax: 120,\n faultFrom: 60,\n faultSpan: 40,\n visual: { smokeFrom: 70, smokeSpan: 100, smokeSeconds: 2.5, glowFrom: 80, glowSpan: 40 },\n gallery: {\n perShot: { shell: 6, big: 9, tiny: 1.2, pistol: 3, rifle: 4.5 },\n decayBase: 1.6,\n decayPerPoint: 0.03,\n },\n}\n\n/** Chance of a fault for one round: the wear of the weapon, scaled by its reliability and by how hot it is. */\nconst defaultFaultChance = (context: FaultContext): number => {\n const factor = context.def.action.kind === 'firearm' ? context.def.action.faultFactor ?? 1 : 1\n const overheat = 1 + Math.max(0, context.heat - DEFAULT_HEAT.faultFrom) / DEFAULT_HEAT.faultSpan\n return context.condition.faultChance * factor * overheat\n}\n\n/** The rules the kit ships with; a game overrides any of them through `ArsenalOptions.rules`. */\nexport const DEFAULT_RULES: WeaponRules = {\n faults: true,\n conditions: [\n { id: 'new', faultChance: 0.003 },\n { id: 'used', faultChance: 0.015 },\n { id: 'worn', faultChance: 0.05 },\n { id: 'rusty', faultChance: 0.12 },\n ],\n defaultCondition: 'new',\n ammoQualities: [\n { id: 'factory', faultChance: 0 },\n { id: 'reloaded', faultChance: 0.08 },\n ],\n defaultAmmoQuality: 'factory',\n faultChance: defaultFaultChance,\n heat: DEFAULT_HEAT,\n noiseBurst: { step: 0.05, window: 3, cap: 0.5 },\n // jogo.js (Jogo) explosionsUpdate 68300-68312: vy -= 9,8·dt; chão vy·-0,35 e vx,vz·0,6; parede v·-0,4\n explosives: { gravity: 9.8, groundRestitution: 0.35, groundFriction: 0.6, wallRestitution: 0.4, placeFuseFrom: 10, tripwire: { length: 10, angleDeg: 0, height: 0.15 }, unarmedImpact: 'detonate', restSpeed: 0.5, selfDestructSeconds: 20 },\n // Arsenal §11: montar e desmontar exige chave de fenda ou bancada; 2/15/30 s e a troca do lança-granadas (0,8 s) são padrões aprovados pelo dono (2026-10-24)\n attachments: { fitSeconds: { field: 2, tool: 15, bench: 30 }, switchSeconds: 0.8, speedOfSound: 343 },\n // Arsenal §08: tempo de mira = 0,15 s + 0,05 s por kg. O quadril do Arsenal é ×6 (o ZombiAdA liga isso por configuração); o SDK é neutro (1)\n aim: {\n base: 0.15,\n perKg: 0.05,\n hipSpread: 1,\n // the iron sights close the view in a little: more for a long gun, whose sights sit farther from the eye, than for a handgun\n ironSightZoom: { pistol: 1.1, revolver: 1.1, smg: 1.2, carbine: 1.25, shotgun: 1.15, rifle: 1.3, hunting: 1.35, dmr: 1.4, sniper: 1.4, machine_gun: 1.2, launcher: 1.15, bow: 1.15, crossbow: 1.25 },\n },\n // a weapon in each hand: the handguns, the machine pistols short and light enough for one hand, and the one-hand blades; one hand and no sight picture open the cone and lift the muzzle more\n dualWield: {\n categories: ['pistol', 'revolver'],\n weapons: ['mini_uzi', 'uzi', 'mac_10', 'vz61', 'hk_mp7a1', 'knife', 'tactical_knife', 'machete', 'hatchet'],\n exclude: [],\n spread: 1.8,\n recoil: 1.35,\n // tucking a pistol in the belt and drawing it back is a short motion of one hand\n stowSeconds: 0.45,\n },\n // Arsenal §08/§11: coronha retrátil saca mais rápido, mais recuo; os números são padrões aprovados pelo dono (2026-10-24)\n stock: {\n seconds: 0.6,\n collapsed: [\n { stat: 'draw', mul: 0.8 },\n { stat: 'aim', mul: 0.85 },\n { stat: 'recoilVertical', mul: 1.3 },\n { stat: 'spread', mul: 1.15 },\n ],\n },\n // Modelo do kit (2026-10-24, decisão do dono): não existe tabela pública de ignição por cartucho. Ordem de grandeza: bala comum (chumbo com camisa de\n // cobre) quase nunca acende um tanque; núcleo de aço e perfurante (aço temperado, carbeto de tungstênio) faíscam em aço; incendiária e traçante\n // acendem por conta própria (a literatura de vulnerabilidade de tanques de combustível cita API como a munição que acende de fato). Troque por jogo.\n ignition: {\n core: { lead: 0.005, lead_steel: 0.04, steel: 0.12, hardened_steel: 0.25, tungsten_carbide: 0.25, copper: 0.01, none: 0 },\n jacket: { gilding_metal: 0.005, copper: 0.005, brass: 0.01, steel: 0.08, none: 0 },\n flame: { incendiary: DEFAULT_IGNITION_RULES.flameDefaults.incendiary, tracer: DEFAULT_IGNITION_RULES.flameDefaults.tracer },\n },\n draw: 0.35,\n clear: 1.2,\n startSafe: false,\n}\n","import type { Vec3 } from './types'\n\nexport const subtract = (a: Vec3, b: Vec3): Vec3 => [a[0] - b[0], a[1] - b[1], a[2] - b[2]]\n\nexport const dot = (a: Vec3, b: Vec3): number => a[0] * b[0] + a[1] * b[1] + a[2] * b[2]\n\nexport const length = (v: Vec3): number => Math.hypot(v[0], v[1], v[2])\n\nexport const distance = (a: Vec3, b: Vec3): number => length(subtract(a, b))\n\n/** `v` rotated 180° about the origin: the direction pointing away. */\nexport const negate = (v: Vec3): Vec3 => [0 - v[0], 0 - v[1], 0 - v[2]]\n","import { normalize } from './rng'\nimport type { ExplosiveDef, ExplosiveId, ExplosiveTrigger, Use, Vec3, WeaponRules } from './types'\nimport { distance, dot, length } from './vec'\n\nconst EPS = 1e-9\n/** Steps in a row a launched round must stay still (moving under 5% of `restSpeed`) to count as at rest: one is not enough, a round shot straight up stops for an instant at the top. */\nconst STILL_STEPS = 2\nconst STILL_SHARE = 0.05\n\n/** Everything a host needs to apply a blast: where, how big, in which direction, and what else it does. */\nexport interface Detonation {\n readonly explosive: ExplosiveId\n readonly cause: ExplosiveTrigger\n readonly point: Vec3\n /** The way a directional charge faces; for everything else the direction the body was moving (or facing when placed). */\n readonly direction: Vec3\n /** Seconds on the clock of the body. */\n readonly at: number\n readonly energy: number\n /** Kilograms of TNT equivalent of the charge (`ExplosiveDef.tnt`), when it says. */\n readonly tnt?: number\n readonly lethalRadius: number\n readonly injuryRadius: number\n readonly noise: number\n readonly destructionLevel: ExplosiveDef['destructionLevel']\n readonly cone?: ExplosiveDef['cone']\n readonly stunSeconds?: number\n readonly fire?: ExplosiveDef['fire']\n readonly smoke?: ExplosiveDef['smoke']\n}\n\nexport type ExplosiveEvent =\n | { type: 'armed'; at: number; distance: number }\n | { type: 'impact'; at: number; point: Vec3; armed: boolean }\n /** Hit something before it was armed and `rules.explosives.unarmedImpact` is `dud`: it does not explode. */\n | { type: 'dud'; at: number; point: Vec3 }\n | { type: 'detonate'; at: number; detonation: Detonation }\n\n/** The first surface the segment `from` to `to` crosses: where, its normal and whether it is ground (default: normal pointing up). */\nexport type SurfaceProbe = (from: Vec3, to: Vec3) => { point: Vec3; normal: Vec3; ground?: boolean } | null\n\nexport interface ExplosiveBodyInit {\n readonly explosive: ExplosiveDef\n readonly origin: Vec3\n /** Initial velocity in m/s; absent for something set down. */\n readonly velocity?: Vec3\n /** Facing of a placed charge (the cone of a mine). */\n readonly direction?: Vec3\n /** `timer`: explodes `fuse` seconds after it leaves the hand; `impact`: explodes on the first hit once armed; `wire`/`remote`: waits for `trigger()`. */\n readonly triggers: readonly ExplosiveTrigger[]\n readonly fuse?: number\n /** Metres to fly before an impact sets it off (rockets); 0 arms it at once. */\n readonly armDistance?: number\n readonly rules: WeaponRules['explosives']\n}\n\nconst bounce = (velocity: Vec3, normal: Vec3, ground: boolean, rules: WeaponRules['explosives']): Vec3 => {\n const along = dot(velocity, normal)\n if (along >= 0) return velocity\n const restitution = ground ? rules.groundRestitution : rules.wallRestitution\n const friction = ground ? rules.groundFriction : 1\n const normalPart: Vec3 = [normal[0] * along, normal[1] * along, normal[2] * along]\n return [\n (velocity[0] - normalPart[0]) * friction - normalPart[0] * restitution,\n (velocity[1] - normalPart[1]) * friction - normalPart[1] * restitution,\n (velocity[2] - normalPart[2]) * friction - normalPart[2] * restitution,\n ]\n}\n\n/**\n * One explosive in flight or set down. `step` flies it (gravity, bounces off what `probe` finds) and counts the fuse; `trigger` sets off what waits\n * for a wire, a remote detonator, a bullet, fire or a nearby blast. Same inputs, same events: there is no randomness.\n */\nexport class ExplosiveBody {\n position: Vec3\n velocity: Vec3\n readonly explosive: ExplosiveDef\n private readonly triggers: ReadonlySet<ExplosiveTrigger>\n private readonly armDistance: number\n private readonly rules: WeaponRules['explosives']\n private facing: Vec3\n private clock = 0\n private flown = 0\n private fuseLeft: number | undefined\n private isArmed: boolean\n private isDone = false\n private isDud = false\n /** Fired with a speed and an impact fuze (a rocket, a 40 mm grenade): it must end in a blast, never lie live on what it hit. */\n private readonly isLaunched: boolean\n private stillSteps = 0\n\n constructor(init: ExplosiveBodyInit) {\n this.explosive = init.explosive\n this.position = [init.origin[0], init.origin[1], init.origin[2]]\n this.velocity = init.velocity ? [init.velocity[0], init.velocity[1], init.velocity[2]] : [0, 0, 0]\n this.facing = normalize(init.direction ?? (init.velocity ? init.velocity : [0, 0, -1]))\n this.triggers = new Set(init.triggers)\n this.armDistance = init.armDistance ?? 0\n this.isArmed = this.armDistance <= 0\n this.fuseLeft = this.triggers.has('timer') ? init.fuse : undefined\n this.rules = init.rules\n this.isLaunched = this.triggers.has('impact') && this.moves()\n }\n\n get age(): number {\n return this.clock\n }\n /** Metres flown so far. */\n get travelled(): number {\n return this.flown\n }\n get armed(): boolean {\n return this.isArmed\n }\n /** Exploded or turned out a dud: nothing more happens. */\n get done(): boolean {\n return this.isDone\n }\n get dud(): boolean {\n return this.isDud\n }\n /** Seconds until the timer sets it off, or undefined without one. */\n get fuseRemaining(): number | undefined {\n return this.fuseLeft\n }\n\n /** Whether this trigger sets it off (`impact` for a rocket or a 40 mm grenade, `timer` for a hand grenade). */\n isTriggeredBy(trigger: ExplosiveTrigger): boolean {\n return this.triggers.has(trigger)\n }\n\n step(dt: number, probe?: SurfaceProbe): ExplosiveEvent[] {\n const events: ExplosiveEvent[] = []\n if (this.isDone) return events\n const seconds = Math.max(0, dt)\n const slice = this.fuseLeft === undefined ? seconds : Math.min(seconds, this.fuseLeft)\n this.fly(slice, probe, events)\n if (this.isDone) return events\n if (this.isLaunched && this.isSpent()) {\n events.push(this.detonate(this.clock >= this.rules.selfDestructSeconds ? 'timer' : 'impact'))\n return events\n }\n if (this.fuseLeft !== undefined) {\n this.fuseLeft -= slice\n if (this.fuseLeft <= EPS) events.push(this.detonate('timer'))\n }\n return events\n }\n\n /** Sets it off from outside; undefined when this explosive does not answer to `cause` or is already done. */\n trigger(cause: ExplosiveTrigger): ExplosiveEvent | undefined {\n if (this.isDone || !this.triggers.has(cause)) return undefined\n if (cause === 'impact' && !this.isArmed) return undefined\n return this.detonate(cause)\n }\n\n private moves(): boolean {\n return length(this.velocity) > EPS\n }\n\n /** A launched round that came to rest (stopped, or still for `STILL_STEPS` steps) or flew past its self-destruct time. */\n private isSpent(): boolean {\n if (this.clock >= this.rules.selfDestructSeconds) return true\n return !this.moves() || this.stillSteps >= STILL_STEPS\n }\n\n private fly(seconds: number, probe: SurfaceProbe | undefined, events: ExplosiveEvent[]): void {\n if (seconds <= 0 || !this.moves()) {\n this.clock += Math.max(0, seconds)\n return\n }\n const start = this.position\n this.velocity = [this.velocity[0], this.velocity[1] - this.rules.gravity * seconds, this.velocity[2]]\n const next: Vec3 = [this.position[0] + this.velocity[0] * seconds, this.position[1] + this.velocity[1] * seconds, this.position[2] + this.velocity[2] * seconds]\n const hit = probe?.(this.position, next) ?? null\n const target = hit ? hit.point : next\n const moved = distance(this.position, target)\n const planned = distance(this.position, next)\n this.flown += moved\n this.position = [target[0], target[1], target[2]]\n const hitAt = this.clock + (hit && planned > EPS ? seconds * Math.min(1, moved / planned) : seconds)\n this.clock += seconds\n if (length(this.velocity) > EPS) this.facing = normalize(this.velocity)\n this.stillSteps = distance(start, this.position) < this.rules.restSpeed * STILL_SHARE * seconds ? this.stillSteps + 1 : 0\n this.checkArmed(events)\n if (hit) this.onImpact(hit, hitAt, events)\n }\n\n private checkArmed(events: ExplosiveEvent[]): void {\n if (this.isArmed || this.flown < this.armDistance) return\n this.isArmed = true\n events.push({ type: 'armed', at: this.clock, distance: this.flown })\n }\n\n private onImpact(hit: NonNullable<ReturnType<SurfaceProbe>>, at: number, events: ExplosiveEvent[]): void {\n events.push({ type: 'impact', at, point: hit.point, armed: this.isArmed })\n if (this.triggers.has('impact')) {\n if (this.isArmed || this.rules.unarmedImpact !== 'dud') events.push(this.detonate('impact', at))\n else {\n this.isDone = true\n this.isDud = true\n events.push({ type: 'dud', at, point: hit.point })\n }\n return\n }\n this.velocity = bounce(this.velocity, hit.normal, hit.ground ?? hit.normal[1] > 0.7, this.rules)\n }\n\n private detonate(cause: ExplosiveTrigger, at = this.clock): ExplosiveEvent {\n this.isDone = true\n const def = this.explosive\n const detonation: Detonation = {\n explosive: def.id,\n cause,\n point: [this.position[0], this.position[1], this.position[2]],\n direction: this.facing,\n at,\n energy: def.energy,\n ...(def.tnt !== undefined ? { tnt: def.tnt } : {}),\n lethalRadius: def.lethalRadius,\n injuryRadius: def.injuryRadius,\n noise: def.noise,\n destructionLevel: def.destructionLevel,\n ...(def.cone ? { cone: def.cone } : {}),\n ...(def.stunSeconds !== undefined ? { stunSeconds: def.stunSeconds } : {}),\n ...(def.fire ? { fire: def.fire } : {}),\n ...(def.smoke ? { smoke: def.smoke } : {}),\n }\n return { type: 'detonate', at, detonation }\n }\n}\n\n/** The body of the explosive a `throw` or `place` use carries; undefined for any other use or an unknown explosive id. */\nexport const createExplosiveBody = (use: Use, explosives: ReadonlyMap<ExplosiveId, ExplosiveDef>, rules: WeaponRules['explosives']): ExplosiveBody | undefined => {\n if (use.kind === 'throw' && use.explosive !== undefined) {\n const explosive = explosives.get(use.explosive)\n if (!explosive) return undefined\n return new ExplosiveBody({\n explosive,\n origin: use.origin,\n velocity: use.velocity,\n triggers: [use.trigger ?? (use.fuse > 0 ? 'timer' : 'impact')],\n fuse: use.fuse,\n ...(use.armDistance !== undefined ? { armDistance: use.armDistance } : {}),\n rules,\n })\n }\n if (use.kind !== 'place') return undefined\n const explosive = explosives.get(use.explosive)\n if (!explosive) return undefined\n return new ExplosiveBody({ explosive, origin: use.origin, direction: use.direction, triggers: use.triggers, ...(use.fuse !== undefined ? { fuse: use.fuse } : {}), rules })\n}\n","import type { ExplosiveDef, Use, Vec3, WeaponAction, WeaponRules } from './types'\nimport { negate } from './vec'\n\ntype LauncherAction = Extract<WeaponAction, { kind: 'launcher' }>\ntype ThrowableAction = Extract<WeaponAction, { kind: 'throwable' }>\n\n/** Fraction of the throw speed added upwards so a throw arcs. */\nconst THROW_LIFT = 0.15\n\nconst PLACED_TRIGGERS: ReadonlySet<string> = new Set(['wire', 'remote'])\n\nconst blastNumbers = (explosive: ExplosiveDef): Pick<Extract<Use, { kind: 'throw' }>, 'energy' | 'injuryRadius'> => ({\n energy: explosive.energy,\n injuryRadius: explosive.injuryRadius,\n})\n\n/** The distance a launched projectile arms at: sampled from the fuze's `armRange` when it has one, else the launcher's `minArmDistance`. */\nexport const sampleArmDistance = (action: LauncherAction, explosive: ExplosiveDef | null, random: () => number): number => {\n const range = explosive?.armRange\n if (!range) return action.minArmDistance\n return range[0] + (range[1] - range[0]) * random()\n}\n\nexport type LauncherUsesParams = {\n readonly action: LauncherAction\n readonly explosive: ExplosiveDef | null\n readonly origin: Vec3\n readonly direction: Vec3\n /** Metres of flight before the fuze arms (default `action.minArmDistance`). */\n readonly armDistance?: number\n}\n\n/** The rocket or grenade a launcher fires, plus the blast behind the tube when the launcher has one. */\nexport const launcherUses = ({ action, explosive, origin, direction, armDistance }: LauncherUsesParams): Use[] => {\n const velocity: Vec3 = [direction[0] * action.speed, direction[1] * action.speed, direction[2] * action.speed]\n const projectile: Use = {\n kind: 'throw',\n energy: explosive?.energy ?? 0,\n radius: explosive?.lethalRadius ?? 0,\n fuse: 0,\n velocity,\n origin,\n explosive: action.projectile,\n trigger: 'impact',\n armDistance: armDistance ?? action.minArmDistance,\n ...(explosive ? { injuryRadius: explosive.injuryRadius } : {}),\n }\n if (action.backblast <= 0) return [projectile]\n return [projectile, { kind: 'backblast', radius: action.backblast, halfAngleDeg: action.backblastHalfAngleDeg ?? 180, origin, direction: negate(direction) }]\n}\n\nconst TIMER_TRIGGERS: ReadonlySet<string> = new Set(['timer', ...PLACED_TRIGGERS])\n\n/** Whether the explosive is set down instead of thrown: it waits for a trip wire or a detonator, or its fuse is so long that holding it makes no sense. */\nexport const isPlaced = (explosive: ExplosiveDef | null, fuse: number, rules: Pick<WeaponRules['explosives'], 'placeFuseFrom'>): boolean => {\n if (!explosive) return false\n if (explosive.triggers?.some((trigger) => PLACED_TRIGGERS.has(trigger))) return true\n return (explosive.triggers?.includes('timer') ?? false) && fuse >= rules.placeFuseFrom\n}\n\nexport type ThrowableUseParams = {\n readonly action: ThrowableAction\n readonly explosive: ExplosiveDef | null\n readonly origin: Vec3\n readonly direction: Vec3\n /** Seconds of fuse of this throw (sampled, or what is left after cooking). */\n readonly fuse: number\n /** Seconds the thrower held it after pulling the pin. */\n readonly cooked?: number\n /** Set off in the hand: no throw, the fuse is spent. */\n readonly inHand?: boolean\n readonly rules: Pick<WeaponRules['explosives'], 'placeFuseFrom' | 'tripwire'>\n}\n\nconst placedUse = ({ action, explosive, origin, direction, fuse, rules }: ThrowableUseParams & { explosive: ExplosiveDef }): Use => ({\n kind: 'place',\n explosive: explosive.id,\n triggers: (explosive.triggers ?? []).filter((trigger): trigger is 'timer' | 'wire' | 'remote' => TIMER_TRIGGERS.has(trigger)),\n energy: explosive.energy,\n radius: explosive.lethalRadius,\n injuryRadius: explosive.injuryRadius,\n ...(explosive.cone ? { cone: { halfAngleDeg: explosive.cone.halfAngleDeg, length: explosive.cone.length } } : {}),\n ...(explosive.triggers?.includes('wire') ? { tripwire: { ...rules.tripwire, ...explosive.tripwire } } : {}),\n ...(fuse > 0 && action.fuse > 0 ? { fuse } : {}),\n origin,\n direction,\n})\n\n/** One throw (or one charge set down) of a throwable: a fuse that counts from the throw, or an impact trigger when the fuse is 0. */\nexport const throwableUse = (params: ThrowableUseParams): Use => {\n const { action, explosive, origin, direction, fuse, cooked, inHand } = params\n if (explosive && isPlaced(explosive, fuse, params.rules)) return placedUse({ ...params, explosive })\n const velocity: Vec3 = inHand ? [0, 0, 0] : [direction[0] * action.throwSpeed, direction[1] * action.throwSpeed + action.throwSpeed * THROW_LIFT, direction[2] * action.throwSpeed]\n const use: Extract<Use, { kind: 'throw' }> = { kind: 'throw', energy: action.energy, radius: action.radius, fuse, velocity, origin }\n if (cooked !== undefined) use.cooked = cooked\n if (inHand) use.inHand = true\n if (action.fire) use.fire = { ...action.fire }\n if (!explosive) return use\n return {\n ...use,\n ...blastNumbers(explosive),\n radius: action.radius,\n explosive: explosive.id,\n trigger: fuse > 0 || inHand ? 'timer' : 'impact',\n armDistance: 0,\n ...(explosive.stunSeconds !== undefined ? { stunSeconds: explosive.stunSeconds } : {}),\n }\n}\n","import type { CaliberDef, FireMode, FirearmAction, WeaponAction, WeaponRules, WeaponTimings } from './types'\n\nconst EPS = 1e-9\nconst MANUAL_MODES: ReadonlySet<FireMode> = new Set(['pump', 'bolt', 'lever'])\n\nexport const weaponSpeed = (action: FirearmAction, caliber: CaliberDef): number => action.muzzleSpeed ?? caliber.muzzleSpeed * (action.barrel ?? 1)\n\nexport const weaponNoise = (action: FirearmAction, caliber: CaliberDef): number => action.noise ?? caliber.noise ?? 0\n\nexport const timingsOf = (action: WeaponAction): WeaponTimings | undefined => ('timings' in action ? action.timings : undefined)\n\nexport const drawSeconds = (action: WeaponAction, rules: WeaponRules): number => timingsOf(action)?.draw ?? rules.draw\n\nexport const clearSeconds = (action: WeaponAction, rules: WeaponRules): number => timingsOf(action)?.clear ?? rules.clear\n\n/** Seconds a manual action (pump, bolt, lever) needs to cycle after a shot; 0 for every other mode. */\nexport const manualCycleSeconds = (action: FirearmAction, mode: FireMode): number => (MANUAL_MODES.has(mode) ? action.timings?.cycle ?? 0 : 0)\n\n/** When each round of one pull leaves the barrel: a held auto trigger fires through the frame, a burst at the cyclic rate, a volley all at once. */\nexport const planRounds = (action: FirearmAction, mode: FireMode, ammo: number, firstAt: number, frameEnd: number): number[] => {\n const interval = 60 / action.rpm\n const times: number[] = []\n if (mode === 'auto') {\n for (let t = firstAt; times.length < ammo && (times.length === 0 ? t <= frameEnd + EPS : t < frameEnd - EPS); t += interval) times.push(t)\n return times\n }\n if (mode === 'burst') {\n const count = Math.min(action.burst ?? 3, ammo)\n for (let k = 0; k < count; k++) times.push(firstAt + k * interval)\n return times\n }\n if (mode === 'volley') return Array.from({ length: Math.min(action.magazine, ammo) }, () => firstAt)\n return [firstAt]\n}\n","import { weaponSpeed } from './fire'\nimport type { Arsenal, CaliberDef, WeaponAction, WeaponCategory, WeaponDef, WeaponRules } from './types'\n\nconst SUBSTEP_SECONDS = 1 / 60\nconst MAX_ROUNDS_SEARCHED = 100_000\n\ntype HeatRules = WeaponRules['heat']\n\n/** Kg of steel that heat up with the shots: barrel length times kg per metre of the category (or the weapon's own `barrelMass`), times the barrels a rotary gun shares. */\nexport const barrelMassOf = (def: WeaponDef, rules: HeatRules): number => {\n const dimensions = def.dimensions\n const kilogramsPerMetre = rules.barrelKilogramsPerMetre[def.category as WeaponCategory] ?? rules.barrelFallback.kilogramsPerMetre\n const single = dimensions?.barrelMass ?? (dimensions?.barrel ?? rules.barrelFallback.metres) * kilogramsPerMetre\n return single * (dimensions?.barrels ?? 1)\n}\n\n/** Seconds in which the barrel loses 1/e of its excess temperature. */\nexport const coolingTimeConstant = (barrelMass: number, rules: HeatRules): number => rules.cooling.baseSeconds + rules.cooling.secondsPerKilogram * barrelMass\n\n/** Cools a barrel: Newton's law, dT/dt = -T/tau, integrated exactly (the Galeria's linear Euler steps when `rules.gallery` is set). */\nexport const decayHeat = (heat: number, seconds: number, barrelMass: number, rules: HeatRules): number => {\n if (heat <= 0) return 0\n if (rules.gallery) return decayGallery(heat, seconds, rules.gallery)\n return heat * Math.exp(-seconds / coolingTimeConstant(barrelMass, rules))\n}\n\nconst decayGallery = (heat: number, seconds: number, gallery: NonNullable<HeatRules['gallery']>): number => {\n const steps = Math.max(1, Math.ceil(seconds / SUBSTEP_SECONDS - 1e-9))\n const step = seconds / steps\n let current = heat\n for (let i = 0; i < steps && current > 0; i++) current = Math.max(0, current - step * (gallery.decayBase + current * gallery.decayPerPoint))\n return current\n}\n\nexport type HeatPerRoundParams = {\n readonly action: WeaponAction\n readonly caliber: CaliberDef | null\n /** Muzzle energy of the whole round in joules (all the pellets of a shell). */\n readonly energy: number\n readonly barrelMass: number\n readonly rules: HeatRules\n}\n\n/** °C one round adds to the barrel: the share of its muzzle energy that ends in the steel over the heat capacity of the barrel. A rocket adds a fixed amount; a bow has no cartridge and adds none. */\nexport const heatPerRound = ({ action, caliber, energy, barrelMass, rules }: HeatPerRoundParams): number => {\n if (action.kind === 'launcher') return rules.perRocket\n const caseType = caliber?.caseType\n if (!caseType) return 0\n if (rules.gallery) return rules.gallery.perShot[caseType]\n return (rules.barrelShare[caseType] * energy) / (barrelMass * rules.specificHeat)\n}\n\nexport type RoundsToWarningParams = {\n readonly def: WeaponDef\n readonly caliber: CaliberDef\n /** Muzzle energy of one round in joules (one pellet when `caliber.pellets` says more). */\n readonly energy: number\n readonly rpm: number\n readonly rules: HeatRules\n}\n\n/** Rounds fired from cold at `rpm`, with no pause for reloads, before the barrel reaches the warning; Infinity when the cooling holds it below. */\nexport const roundsToWarning = ({ def, caliber, energy, rpm, rules }: RoundsToWarningParams): number => {\n if (def.action.kind !== 'firearm' || rpm <= 0) return Infinity\n const barrelMass = barrelMassOf(def, rules)\n const perRound = heatPerRound({ action: def.action, caliber, energy: energy * (caliber.pellets ?? 1), barrelMass, rules })\n const interval = 60 / rpm\n let heat = 0\n for (let round = 1; round <= MAX_ROUNDS_SEARCHED; round++) {\n heat = decayHeat(heat, round === 1 ? 0 : interval, barrelMass, rules) + perRound\n if (heat >= rules.faultFrom) return round\n }\n return Infinity\n}\n\n/** `roundsToWarning` for a weapon of the arsenal, from the muzzle energy of its own calibre and barrel at its listed rate of fire; Infinity for what has no cartridge or never heats up that far. */\nexport const roundsToWarningOf = (arsenal: Pick<Arsenal, 'weapons' | 'calibers' | 'rules'>, weaponId: string): number => {\n const def = arsenal.weapons.get(weaponId)\n if (!def || def.action.kind !== 'firearm') return Infinity\n const caliber = arsenal.calibers.get(def.action.caliber)\n if (!caliber) return Infinity\n const energy = 0.5 * (caliber.bulletGrams / 1000) * weaponSpeed(def.action, caliber) ** 2\n return roundsToWarning({ def, caliber, energy, rpm: def.action.rpm, rules: arsenal.rules.heat })\n}\n\n/** Each shot in the last few seconds makes the next one louder, up to a cap. */\nexport const burstNoise = (base: number, recentShots: number, rules: WeaponRules['noiseBurst']): number => base * (1 + Math.min(rules.cap, rules.step * recentShots))\n","import type { ReloadFamily, ReloadKind, ReloadStage } from './types'\n\ntype StageTable = Readonly<Record<ReloadKind, readonly ReloadStage[]>>\n\nconst magazineOut = { stage: 'magazine_out', at: 0 } as const\n// 0.45 s of the 0.82 s magazine swap in the gallery\nconst magazineIn = { stage: 'magazine_in', at: 0.549 } as const\n\nconst byMagazine = (chargeAt: number): StageTable => ({\n tactical: [magazineOut, magazineIn],\n empty: [magazineOut, magazineIn, { stage: 'charge', at: chargeAt }],\n one_by_one: [magazineOut, magazineIn],\n})\n\n// A reload that loads rounds one at a time: `round_in` opens the loading and the closing stage comes after the last round.\nconst byTube = (closing: ReloadStage | undefined): StageTable => ({\n tactical: [{ stage: 'round_in', at: 0 }],\n empty: closing ? [{ stage: 'round_in', at: 0 }, closing] : [{ stage: 'round_in', at: 0 }],\n one_by_one: [{ stage: 'round_in', at: 0 }],\n})\n\nconst revolverOpen = { stage: 'cylinder_open', at: 0 } as const\nconst revolverEject = { stage: 'cylinder_eject', at: 0.246 } as const\nconst revolverClose = { stage: 'cylinder_close', at: 0.808 } as const\nconst revolverJet: readonly ReloadStage[] = [revolverOpen, revolverEject, { stage: 'cylinder_load', at: 0.538 }, revolverClose]\nconst revolverRounds: readonly ReloadStage[] = [revolverOpen, revolverEject, revolverClose]\n\nconst breechSwing: readonly ReloadStage[] = [\n { stage: 'barrels_open', at: 0 },\n { stage: 'casings_eject', at: 0.208 },\n { stage: 'rounds_in', at: 0.542 },\n { stage: 'barrels_close', at: 0.833 },\n]\n\n// A grenade launcher under a barrel: the breech opens, the grenade goes in, the breech closes (the same stages for every kind of reload)\nconst breechLoad: readonly ReloadStage[] = [\n { stage: 'breech_open', at: 0 },\n { stage: 'round_in', at: 0.305 },\n { stage: 'breech_close', at: 0.724 },\n]\n\nconst beltSwap: readonly ReloadStage[] = [\n { stage: 'cover_open', at: 0 },\n { stage: 'belt_swap', at: 0.129 },\n { stage: 'cover_close', at: 0.581 },\n { stage: 'charge', at: 0.742 },\n]\n\n/** Families that load an empty tube round by round and then work the action (pump, lever, charging handle) to chamber the first round. */\nexport const LOADS_THEN_WORKS: ReadonlySet<ReloadFamily> = new Set<ReloadFamily>(['top_load_semi', 'tube_semi', 'pump', 'lever'])\n\n/** Where each step of a reload falls, as a fraction of its duration, from the key frames of the gallery animations. The runtime scales them to the duration of the weapon. */\nexport const RELOAD_STAGES: Readonly<Record<ReloadFamily, StageTable>> = {\n pistol: byMagazine(0.872),\n magazine: byMagazine(0.701),\n top_magazine: byMagazine(0.701),\n top_load_semi: byTube({ stage: 'charge', at: 0.893 }),\n tube_semi: byTube({ stage: 'charge', at: 0.88 }),\n pump: byTube({ stage: 'pump_cycle', at: 0.88 }),\n lever: byTube({ stage: 'lever_cycle', at: 0.873 }),\n bolt: {\n tactical: [{ stage: 'bolt_open', at: 0 }, { stage: 'round_in', at: 0.14 }, { stage: 'bolt_close', at: 0.86 }],\n empty: [{ stage: 'bolt_open', at: 0 }, { stage: 'round_in', at: 0.14 }, { stage: 'bolt_close', at: 0.86 }],\n one_by_one: [{ stage: 'bolt_open', at: 0 }, { stage: 'round_in', at: 0.14 }, { stage: 'bolt_close', at: 0.86 }],\n },\n bolt_magazine: {\n tactical: [magazineOut, magazineIn, { stage: 'bolt_open', at: 0.599 }, { stage: 'bolt_close', at: 0.89 }],\n empty: [magazineOut, magazineIn, { stage: 'bolt_open', at: 0.599 }, { stage: 'bolt_close', at: 0.89 }],\n one_by_one: [magazineOut, magazineIn],\n },\n belt: { tactical: beltSwap, empty: beltSwap, one_by_one: beltSwap },\n revolver: { tactical: revolverJet, empty: revolverJet, one_by_one: revolverRounds },\n break: { tactical: breechSwing, empty: breechSwing, one_by_one: breechSwing },\n // tactical: reusable launcher takes a rocket; empty: disposable tube is dropped and a new one seated; one_by_one: breech-loaded grenade\n rocket: {\n tactical: [{ stage: 'rocket_seat', at: 0 }],\n empty: [{ stage: 'tube_drop', at: 0 }, { stage: 'tube_seat', at: 0.522 }],\n one_by_one: [\n { stage: 'breech_open', at: 0 },\n { stage: 'round_in', at: 0.305 },\n { stage: 'breech_close', at: 0.724 },\n ],\n },\n underbarrel: { tactical: breechLoad, empty: breechLoad, one_by_one: breechLoad },\n flame: {\n tactical: [{ stage: 'tank_swap', at: 0 }],\n empty: [{ stage: 'tank_swap', at: 0 }],\n one_by_one: [{ stage: 'tank_swap', at: 0 }],\n },\n}\n","import { LOADS_THEN_WORKS, RELOAD_STAGES } from './reload-stages'\nimport type { ReloadKind, ReloadRequest, ReloadStageId, WeaponAction } from './types'\n\nexport type ReloadableAction = Extract<WeaponAction, { kind: 'firearm' | 'launcher' }>\n\nexport interface ReloadPlan {\n readonly kind: ReloadKind\n /** Seconds per round when the weapon loads one at a time, null when the whole magazine goes in at once. */\n readonly step: number | null\n /** Seconds until the first round (or the whole magazine) is in. */\n readonly first: number\n /** Seconds of the whole reload; the stages are placed along it. */\n readonly total: number\n /** Rounds that go in one at a time (0 when the whole magazine goes in at once). */\n readonly rounds: number\n /** Seconds after the last round for the action to be worked (the pump, the lever, the charging handle of an empty tube), 0 when there is none. */\n readonly tail: number\n}\n\n/** Seconds the action takes to be worked after an empty tube is loaded when the rule gives no `timings.cycle`. */\nexport const ACTION_WORK_SECONDS = 0.5\n/** Seconds the last round of an empty tube takes to be seated (the hand puts it in, leaves the port and is back on the grip) before the action is worked. */\nexport const ACTION_DELAY_SECONDS = 0.6\n\nexport const isReloadable = (action: WeaponAction): action is ReloadableAction => action.kind === 'firearm' || action.kind === 'launcher'\n\nconst baseSeconds = (action: ReloadableAction): number => action.timings?.reload ?? action.reload\n\nconst secondsPerRound = (action: ReloadableAction): number | undefined => {\n if (action.kind !== 'firearm') return undefined\n return action.timings?.perRound ?? (action.perRound ? baseSeconds(action) : undefined)\n}\n\nconst pickKind = (action: ReloadableAction, ammo: number, oneAtATime: boolean, request: ReloadRequest): ReloadKind => {\n if (action.kind === 'launcher') return action.disposable ? 'empty' : 'tactical'\n if (request === 'one_by_one' && oneAtATime) return 'one_by_one'\n if (request === 'full') return ammo === 0 ? 'empty' : 'tactical'\n if (oneAtATime && (action.family === 'revolver' || ammo > 0)) return 'one_by_one'\n return ammo === 0 ? 'empty' : 'tactical'\n}\n\n/** How a reload goes: tactical (a magazine swap), empty (with the action to work after) or one by one; `full` loads a revolver all at once with a speed loader. */\nexport const planReload = (action: ReloadableAction, ammo: number, capacity: number, reserve: number, request: ReloadRequest): ReloadPlan => {\n const perRound = secondsPerRound(action)\n const revolver = action.kind === 'firearm' && action.family === 'revolver'\n const oneAtATime = perRound !== undefined && request !== 'full'\n const kind = pickKind(action, ammo, oneAtATime, request)\n if (perRound !== undefined && oneAtATime && (kind === 'one_by_one' || (kind === 'empty' && action.kind === 'firearm' && !revolver))) {\n const rounds = Math.max(1, Math.min(capacity - ammo, reserve))\n const loading = rounds * perRound\n const works = kind === 'empty' && action.kind === 'firearm' && action.family !== undefined && LOADS_THEN_WORKS.has(action.family)\n // the last round needs `ACTION_DELAY_SECONDS` to be seated before the action is worked, and the closing stage sits at a fraction of the reload (the tables, 0.87 to 0.89): the\n // action never starts before the last round is in and seated\n const closingAt = works && action.family ? RELOAD_STAGES[action.family].empty.find((entry) => entry.stage !== 'round_in')?.at ?? 0.88 : 0.88\n const tail = works ? Math.max(ACTION_DELAY_SECONDS + (action.timings?.cycle ?? ACTION_WORK_SECONDS), (loading + ACTION_DELAY_SECONDS) / closingAt - loading) : 0\n return { kind, step: perRound, first: perRound, total: loading + tail, rounds, tail }\n }\n const seconds = kind === 'empty' ? action.timings?.reloadEmpty ?? baseSeconds(action) : baseSeconds(action)\n return { kind, step: null, first: seconds, total: seconds, rounds: 0, tail: 0 }\n}\n\n/** The steps of a reload with the time they happen, scaled to the duration of this weapon's reload. */\nexport const reloadStages = (action: ReloadableAction, plan: ReloadPlan, startAt: number): { stage: ReloadStageId; at: number }[] => {\n if (!action.family) return []\n return RELOAD_STAGES[action.family][plan.kind].map((entry) => ({ stage: entry.stage, at: startAt + entry.at * plan.total }))\n}\n","import type { AmmoQualityDef, CaliberDef, ConditionDef, FaultId, ReloadFamily, WeaponDef, WeaponRules } from './types'\n\nconst MISFIRE_ONLY: ReadonlySet<ReloadFamily | undefined> = new Set(['revolver', 'break'])\nconst MANUAL: ReadonlySet<ReloadFamily | undefined> = new Set(['pump', 'bolt', 'bolt_magazine', 'lever'])\nconst MISFIRE_SHARE = 0.35\nconst STOVEPIPE_UPTO = 0.8\n\nexport interface FaultRoll {\n readonly def: WeaponDef\n readonly caliber: CaliberDef | null\n readonly condition: ConditionDef\n readonly ammoQuality: AmmoQualityDef\n readonly heat: number\n readonly rules: WeaponRules\n readonly random: () => number\n}\n\n/** Whether the round about to fire jams, and how. Only a weapon that fires cartridges can. */\nexport const rollFault = (roll: FaultRoll): FaultId | null => {\n const action = roll.def.action\n if (!roll.rules.faults || action.kind !== 'firearm' || !roll.caliber?.caseType) return null\n if (roll.random() < roll.rules.faultChance({ def: roll.def, condition: roll.condition, heat: roll.heat })) {\n const kind = roll.random()\n if (MISFIRE_ONLY.has(action.family) || kind < MISFIRE_SHARE) return 'misfire'\n if (MANUAL.has(action.family)) return 'failure_to_extract'\n return kind < STOVEPIPE_UPTO ? 'stovepipe' : 'double_feed'\n }\n return roll.ammoQuality.faultChance > 0 && roll.random() < roll.ammoQuality.faultChance ? 'misfire' : null\n}\n\n/** A dud in a revolver or a break-action just spends the round; anywhere else the round stays in the chamber and the weapon jams. */\nexport const isDudWithoutJam = (action: WeaponDef['action'], fault: FaultId): boolean => fault === 'misfire' && action.kind === 'firearm' && MISFIRE_ONLY.has(action.family)\n","import type { AttachmentDef, AttachmentId, FittedAttachment, StatModifier, WeaponStat } from './attachment-types'\nimport type { CaliberDef, FirearmAction, WeaponAction, WeaponDef, WeaponRules } from './types'\n\n/** How the weapon is held and what it is in: what the conditional effects (`aiming`, `hip`, `supported`, `subsonic`, `collapsed`) ask. */\nexport interface LoadoutContext {\n readonly aiming: boolean\n readonly supported: boolean\n readonly stock: 'collapsed' | 'extended'\n readonly caliber: CaliberDef | null\n readonly rules: Pick<WeaponRules, 'attachments' | 'aim' | 'stock'> & Partial<Pick<WeaponRules, 'dualWield'>>\n /** One hand with another weapon in the other: `rules.dualWield` makes the spread and the recoil worse. */\n readonly dualWield?: boolean\n}\n\nexport interface Loadout {\n /** The action with every effect applied; the very object of the def when nothing differs from the weapon as it ships. */\n readonly action: WeaponAction\n /** Kg: the weapon with what is on it. */\n readonly mass: number\n /** Seconds to raise the weapon to the sights. */\n readonly aimSeconds: number\n /** Times the spread when not aiming. */\n readonly hipFactor: number\n readonly suppressed: boolean\n readonly drawFactor: number\n readonly heatFactor: number\n readonly faultFactor: number\n /** What a dual coupler does to the reload of every second magazine change (1: nothing). */\n readonly secondReloadFactor: number\n readonly optic: AttachmentDef['optic'] | undefined\n readonly light: (NonNullable<AttachmentDef['light']> & { readonly id: AttachmentId }) | undefined\n readonly laser: (NonNullable<AttachmentDef['laser']> & { readonly id: AttachmentId }) | undefined\n}\n\n/** No weapon in the other hand: the numbers as they are. */\nconst ONE_HAND = { spread: 1, recoil: 1 } as const\n\ntype Catalogue = ReadonlyMap<AttachmentId, AttachmentDef>\ntype Condition = NonNullable<StatModifier['when']>\ntype Effects = readonly (readonly StatModifier[])[]\n\n/** The accessories that count: a light or a laser only while it is on. */\nconst activeParts = (fitted: readonly FittedAttachment[], catalogue: Catalogue): AttachmentDef[] =>\n fitted.flatMap((part) => {\n const def = catalogue.get(part.id)\n const isOn = def?.kind !== 'light' && def?.kind !== 'laser' ? true : part.on === true\n return def && isOn ? [def] : []\n })\n\nconst holds = (when: Condition | undefined, active: ReadonlySet<Condition>): boolean => when === undefined || when === 'always' || active.has(when)\n\nconst modifiersOf = (name: WeaponStat, sources: Effects, active: ReadonlySet<Condition>): StatModifier[] =>\n sources.flatMap((effects) => effects.filter((effect) => effect.stat === name && holds(effect.when, active)))\n\nconst sum = (modifiers: readonly StatModifier[]): number => modifiers.reduce((total, modifier) => total + (modifier.add ?? 0), 0)\nconst product = (modifiers: readonly StatModifier[]): number => modifiers.reduce((total, modifier) => total * (modifier.mul ?? 1), 1)\n\ninterface StatSources {\n readonly now: Effects\n /** The effects of what the weapon ships with: they are in the base numbers already. */\n readonly shipped: Effects\n /** What already held when the base numbers were made: only `subsonic`, for a weapon that is subsonic with its factory parts on (the MP5SD). */\n readonly shippedActive?: ReadonlySet<Condition>\n}\n\n/** Takes out of both lists the very same modifier objects (one for one), so a factory part that is still on cancels exactly whatever order the parts are in. */\nconst cancelShipped = (current: readonly StatModifier[], shipped: readonly StatModifier[]): [StatModifier[], StatModifier[]] => {\n const added = [...current]\n const taken: StatModifier[] = []\n for (const modifier of shipped) {\n const index = added.indexOf(modifier)\n if (index === -1) taken.push(modifier)\n else added.splice(index, 1)\n }\n return [added, taken]\n}\n\n/**\n * One number of the weapon with everything on it: every `set` first (the last wins), then the sum of the `add`s, then the product of the `mul`s.\n * The factory parts' effects that always count are in `base` already, so they are taken back out: with the same parts on, the result is `base`\n * itself, and without one of them it is what the weapon would be without it.\n */\nconst stat = (name: WeaponStat, base: number, sources: StatSources, active: ReadonlySet<Condition>): number => {\n const current = modifiersOf(name, sources.now, active)\n const lastSet = [...current].reverse().find((modifier) => modifier.set !== undefined)?.set\n if (lastSet !== undefined) return (lastSet + sum(current)) * product(current)\n const [added, taken] = cancelShipped(current, modifiersOf(name, sources.shipped, sources.shippedActive ?? new Set<Condition>()))\n return (base + (sum(added) - sum(taken))) * (product(added) / product(taken))\n}\n\nconst baseSpeedOf = (action: FirearmAction, caliber: CaliberDef | null): number => action.muzzleSpeed ?? (caliber?.muzzleSpeed ?? 0) * (action.barrel ?? 1)\n\nconst scaleTimings = (timings: NonNullable<FirearmAction['timings']>, reload: number, empty: number): NonNullable<FirearmAction['timings']> => ({\n ...timings,\n reload: timings.reload * reload,\n ...(timings.reloadEmpty === undefined ? {} : { reloadEmpty: timings.reloadEmpty * reload * empty }),\n ...(timings.perRound === undefined ? {} : { perRound: timings.perRound * reload }),\n})\n\ninterface ActionEffects {\n readonly spread: number\n readonly recoil: [number, number]\n readonly range: number\n readonly noise: number | undefined\n readonly speed: number\n readonly magazine: number\n readonly reload: number\n readonly empty: number\n}\n\nconst isUnchanged = (action: FirearmAction, effects: ActionEffects, context: LoadoutContext): boolean =>\n effects.spread === action.spreadDeg &&\n effects.recoil[0] === action.recoil[0] &&\n effects.recoil[1] === action.recoil[1] &&\n effects.range === action.range &&\n effects.noise === (action.noise ?? context.caliber?.noise) &&\n effects.speed === baseSpeedOf(action, context.caliber) &&\n effects.magazine === action.magazine &&\n effects.reload === 1 &&\n effects.empty === 1\n\nconst applyEffects = (action: FirearmAction, effects: ActionEffects): FirearmAction => ({\n ...action,\n spreadDeg: effects.spread,\n recoil: effects.recoil,\n range: effects.range,\n ...(effects.noise === undefined ? {} : { noise: effects.noise }),\n muzzleSpeed: effects.speed,\n magazine: effects.magazine,\n reload: action.reload * effects.reload,\n ...(action.timings ? { timings: scaleTimings(action.timings, effects.reload, effects.empty) } : {}),\n})\n\n/** The weapon with what is on it: the numbers of the action, the mass, the time to aim, and the lights, laser and optic that are on. */\nexport const resolveLoadout = (def: WeaponDef, fitted: readonly FittedAttachment[], catalogue: Catalogue, context: LoadoutContext): Loadout => {\n const parts = activeParts(fitted, catalogue)\n const factory = activeParts(def.fitted ?? [], catalogue)\n const isRegular = (part: AttachmentDef): boolean => part.secondReload !== true\n const collapsedStock = context.stock === 'collapsed' ? [context.rules.stock.collapsed] : []\n const shipsSubsonic = def.action.kind === 'firearm' && baseSpeedOf(def.action, context.caliber) < context.rules.attachments.speedOfSound\n const sources: StatSources = {\n now: [...parts.filter(isRegular).map((part) => part.effects), ...collapsedStock],\n shipped: factory.filter(isRegular).map((part) => part.effects),\n ...(shipsSubsonic ? { shippedActive: new Set<Condition>(['subsonic']) } : {}),\n }\n const baseActive = new Set<Condition>([context.aiming ? 'aiming' : 'hip'])\n if (context.supported || parts.some((part) => part.kind === 'mount')) baseActive.add('supported')\n if (context.stock === 'collapsed') baseActive.add('collapsed')\n\n const firearm = def.action.kind === 'firearm' ? def.action : undefined\n const speed = firearm ? stat('muzzleSpeed', baseSpeedOf(firearm, context.caliber), sources, baseActive) : 0\n const active = new Set(baseActive)\n if (firearm && speed < context.rules.attachments.speedOfSound) active.add('subsonic')\n const read = (name: WeaponStat, base: number): number => stat(name, base, sources, active)\n\n const mass = read('mass', def.mass + parts.reduce((total, part) => total + part.mass, 0) - factory.reduce((total, part) => total + part.mass, 0))\n const hipFactor = context.aiming ? 1 : 1 + (context.rules.aim.hipSpread - 1) * read('hipSpreadExcess', 1)\n const dual = context.dualWield && context.rules.dualWield ? context.rules.dualWield : ONE_HAND\n let action: WeaponAction = def.action\n if (firearm) {\n const baseNoise = firearm.noise ?? context.caliber?.noise\n const effects: ActionEffects = {\n spread: read('spread', firearm.spreadDeg) * hipFactor * dual.spread,\n recoil: [read('recoilVertical', firearm.recoil[0]) * dual.recoil, read('recoilHorizontal', firearm.recoil[1]) * dual.recoil],\n range: read('range', firearm.range),\n noise: baseNoise === undefined ? undefined : read('noise', baseNoise),\n speed,\n magazine: Math.max(1, Math.round(read('capacity', firearm.magazine))),\n reload: read('reload', 1),\n empty: read('reloadEmpty', 1),\n }\n if (!isUnchanged(firearm, effects, context)) action = applyEffects(firearm, effects)\n }\n const lit = parts.find((part) => part.light)\n const beam = parts.find((part) => part.laser)\n return {\n action,\n mass,\n aimSeconds: read('aim', context.rules.aim.base + context.rules.aim.perKg * mass),\n hipFactor,\n suppressed: parts.some((part) => part.kind === 'suppressor'),\n drawFactor: read('draw', 1),\n heatFactor: read('heatPerShot', 1),\n faultFactor: read('faultChance', 1),\n secondReloadFactor: stat('reload', 1, { now: parts.filter((part) => !isRegular(part)).map((part) => part.effects), shipped: [] }, active),\n optic: parts.find((part) => part.optic)?.optic,\n light: lit?.light ? { ...lit.light, id: lit.id } : undefined,\n laser: beam?.laser ? { ...beam.laser, id: beam.id } : undefined,\n }\n}\n","import type { AttachmentDef, AttachmentId, WeaponSnapshot } from './attachment-types'\nimport type { IsCompatible } from './attachments'\nimport type {\n AmmoDef,\n AmmoKind,\n CaliberDef,\n ExplosiveDef,\n TriggerResult,\n WeaponDef,\n WeaponId,\n WeaponState,\n WeaponEvent,\n WeaponRules,\n} from './types'\n\nexport const EPS = 1e-9\n/** Total spread (base + bloom) never exceeds this many times the base spread. */\nexport const BLOOM_CAP = 4\n\n/** Muzzle energy in joules of ONE projectile (a bullet, or one pellet): 0.5 × mass × speed², speed scaled by the barrel factor. */\nexport const muzzleEnergy = (caliber: CaliberDef, barrel = 1): number => {\n const v = caliber.muzzleSpeed * barrel\n return 0.5 * (caliber.bulletGrams / 1000) * v * v\n}\n\nexport interface WeaponStateInit {\n def: WeaponDef\n caliber: CaliberDef | null\n seed: number\n reserve?: number\n rules: WeaponRules\n /** What a launcher shoots, or the explosive a throwable carries. */\n explosive?: ExplosiveDef | null\n condition?: string\n ammoQuality?: string\n /** Kind of round loaded (the calibre's own kind when absent) and the ammo table it is looked up in. */\n ammoKind?: AmmoKind\n ammo?: ReadonlyMap<string, AmmoDef>\n /** The accessories of the arsenal, by id (without them the weapon carries only its own numbers). */\n attachments?: ReadonlyMap<AttachmentId, AttachmentDef>\n isCompatible?: IsCompatible\n /** Makes the state of the launcher under the barrel (`attachment.launcher`), from the seed given and, when restoring, its own snapshot. */\n makeUnderbarrel?: (id: WeaponId, seed: number, snapshot?: WeaponSnapshot) => WeaponState\n /** Weapon, with its parts and ammunition, to start from instead of a fresh one. */\n snapshot?: WeaponSnapshot\n}\n\n/** Something that happens at a later time of the weapon clock. */\nexport interface Scheduled {\n readonly at: number\n readonly tag?: 'reload'\n readonly event?: WeaponEvent\n readonly apply?: () => void\n}\n\nexport const FAULT_RNG_SALT = 0x6a09e667\n/** Stream of the fuse sampling: separate from the spread and the faults, so a sampled fuse never shifts a shot. */\nexport const FUSE_RNG_SALT = 0xbb67ae85\n/** Stream that draws the shot a home-made suppressor breaks on: separate, so a break never moves a spread or a fault. */\nexport const BREAK_RNG_SALT = 0x3c6ef372\n/** Seed of the launcher under the barrel: its own streams, so the rifle's spread does not move. */\nexport const UNDERBARREL_SEED_SALT = 0xa54ff53a\n\nexport const findById = <TEntry extends { readonly id: string }>(entries: readonly TEntry[], id: string, label: string): TEntry => {\n const found = entries.find((entry) => entry.id === id)\n if (!found) throw new Error(`game-weapons: unknown ${label} \"${id}\"`)\n return found\n}\n\nexport const result = (status: TriggerResult['status'], extra: Partial<TriggerResult> = {}): TriggerResult => ({\n shots: [],\n uses: [],\n status,\n recoil: [0, 0],\n noise: 0,\n rounds: 0,\n roundTimes: [],\n ...extra,\n})\n\n/** Runtime of one weapon. See `WeaponState` for the contract. */\n","import { barrelMassOf, decayHeat } from './heat'\nimport { isReloadable } from './reload'\nimport { createRng } from './rng'\nimport type { AmmoDef, AmmoKind, AmmoQualityDef, CaliberDef, ConditionDef, ExplosiveDef, FaultId, FireMode, ReloadKind, Vec3, WeaponAction, WeaponDef, WeaponEvent, WeaponPhase, WeaponRules } from './types'\nimport { EPS, FAULT_RNG_SALT, FUSE_RNG_SALT, findById } from './weapon-shared'\nimport type { Scheduled, WeaponStateInit } from './weapon-shared'\n\nconst DEFAULT_THROWABLES = 3\n\n/** State and clock of one weapon: ammunition, phases, scheduled events and reload settling. Commands and firing are layered on top. */\nexport abstract class WeaponCore {\n readonly def: WeaponDef\n readonly caliber: CaliberDef | null\n reserve: number\n mode: FireMode\n protected _ammo: number\n protected _capacity: number\n /** What the weapon does now: the numbers of the def with the effects of the accessories on it (the def's own action when there are none). */\n protected action: WeaponAction\n protected readonly rng: () => number\n protected readonly initialReserve: number\n protected readonly rules: WeaponRules\n protected readonly faultRng: () => number\n protected readonly fuseRng: () => number\n /** Metres of safety fuse set by the host; replaces the `fuseLength` of the explosive. */\n protected fuseLengthOverride: number | undefined\n protected readonly explosive: ExplosiveDef | null\n\n protected clock = 0\n /** Time already advanced by the other of update / trigger in the same frame (so calling both does not count `dt` twice). */\n protected pend: { src: 'update' | 'trigger'; amt: number } | null = null\n protected readyAt = 0\n protected latched = false\n /** A throwable whose pin is pulled: the clock it started at, its whole fuse and the aim of the last frame it was held. */\n protected cook: { readonly start: number; readonly fuse: number; origin: Vec3; direction: Vec3 } | null = null\n\n protected _reloading = false\n protected reloadEnd = 0\n /** Seconds per round while a one-by-one reload runs; null when the magazine goes in at once. */\n protected loadStep: number | null = null\n /** Seconds of the action worked after the last round of an empty tube. */\n protected reloadTail = 0\n protected _locked = false\n protected reloadKind: ReloadKind = 'tactical'\n protected drawEnd = 0\n protected _phase: WeaponPhase | null = null\n protected _fault: FaultId | null = null\n protected _clearing = false\n protected _safety: boolean\n protected _heat = 0\n protected _condition: ConditionDef\n protected _ammoQuality: AmmoQualityDef\n /** Kind of round loaded; undefined = the calibre's own. */\n protected _ammoKind: AmmoKind | undefined\n protected readonly ammoTable: ReadonlyMap<string, AmmoDef> | undefined\n /** Times of the shots that still count for the noise of a burst. */\n protected recentShots: number[] = []\n protected events: WeaponEvent[] = []\n protected scheduled: Scheduled[] = []\n\n /** Bloom degrees at `extraClock`. */\n protected extra = 0\n protected extraClock = 0\n\n constructor(init: WeaponStateInit) {\n this.def = init.def\n this.caliber = init.caliber\n this.action = init.def.action\n this.rules = init.rules\n this.rng = createRng(init.seed)\n this.faultRng = createRng((init.seed ^ FAULT_RNG_SALT) >>> 0)\n this.fuseRng = createRng((init.seed ^ FUSE_RNG_SALT) >>> 0)\n this.explosive = init.explosive ?? null\n this.ammoTable = init.ammo\n this._ammoKind = init.ammoKind ?? (init.snapshot?.ammoKind as AmmoKind | undefined)\n this._safety = init.rules.startSafe\n this._condition = findById(init.rules.conditions, init.condition ?? init.rules.defaultCondition, 'condition')\n this._ammoQuality = findById(init.rules.ammoQualities, init.ammoQuality ?? init.rules.defaultAmmoQuality, 'ammo quality')\n const a = this.action\n this.mode = a.kind === 'firearm' ? a.modes[0] ?? 'single' : 'single'\n switch (a.kind) {\n case 'firearm':\n case 'launcher':\n this._capacity = a.magazine\n break\n case 'flame':\n case 'heat':\n this._capacity = a.fuel\n break\n case 'extinguisher':\n this._capacity = a.charge\n break\n case 'throwable':\n this._capacity = a.count ?? DEFAULT_THROWABLES\n break\n default:\n this._capacity = 0\n }\n this._ammo = this._capacity\n this.initialReserve = init.reserve ?? (isReloadable(a) ? a.magazine * 3 : 0)\n this.reserve = this.initialReserve\n }\n\n get ammo(): number {\n return this._ammo\n }\n get capacity(): number {\n return this._capacity\n }\n /** True while a throwable's pin is pulled and the trigger is held. */\n get cooking(): boolean {\n return this.cook !== null\n }\n get reloading(): boolean {\n return this._reloading\n }\n get locked(): boolean {\n return this._locked\n }\n get phase(): WeaponPhase | null {\n const phase = this._phase\n return phase && this.clock < phase.end - EPS ? phase : null\n }\n get fault(): FaultId | null {\n return this._fault\n }\n get clearing(): boolean {\n return this._clearing\n }\n get safety(): boolean {\n return this._safety\n }\n /** Kg of steel that heat up with the shots. */\n protected get barrelMass(): number {\n return barrelMassOf(this.def, this.rules.heat)\n }\n get heat(): number {\n return this._heat\n }\n get heatLevel(): number {\n return Math.min(1, this._heat / this.rules.heat.displayMax)\n }\n get condition(): string {\n return this._condition.id\n }\n get ammoKind(): AmmoKind | undefined {\n return this._ammoKind ?? this.caliber?.kind\n }\n get ammoQuality(): string {\n return this._ammoQuality.id\n }\n get spread(): number {\n if (this.action.kind !== 'firearm') return 0\n return this.action.spreadDeg + this.extraAt(this.clock)\n }\n\n protected extraAt(t: number): number {\n if (this.action.kind !== 'firearm') return 0\n const rec = this.action.recoveryDegPerS ?? 4\n return Math.max(0, this.extra - rec * Math.max(0, t - this.extraClock))\n }\n\n // --- time -----------------------------------------------------------------------------------------------------------------------\n\n update(dt: number): void {\n const d = Math.max(0, dt)\n let eff = d\n if (this.pend && this.pend.src === 'trigger') {\n eff = Math.max(0, d - this.pend.amt)\n this.pend = null\n } else {\n this.pend = { src: 'update', amt: d }\n }\n this.advance(eff)\n this.settle(this.clock)\n }\n\n protected emit(event: WeaponEvent): void {\n this.events.push(event)\n }\n\n protected schedule(item: Scheduled): void {\n const index = this.scheduled.findIndex((other) => other.at > item.at)\n if (index < 0) this.scheduled.push(item)\n else this.scheduled.splice(index, 0, item)\n }\n\n drain(): WeaponEvent[] {\n const drained = this.events.sort((a, b) => a.at - b.at)\n this.events = []\n return drained\n }\n\n protected advance(seconds: number): void {\n if (seconds <= 0) return\n this._heat = decayHeat(this._heat, seconds, this.barrelMass, this.rules.heat)\n this.clock += seconds\n }\n\n /** Complete what falls at or before `t`: scheduled events and the reload steps. */\n protected settle(t: number): void {\n while (this.scheduled[0] && this.scheduled[0].at <= t + EPS) {\n const item = this.scheduled.shift() as Scheduled\n item.apply?.()\n if (item.event) this.emit(item.event)\n }\n const a = this.action\n if (!isReloadable(a)) return\n while (this._reloading && this.reloadEnd <= t + EPS) {\n const doneAt = this.reloadEnd\n if (this.loadStep !== null) {\n if (this.reserve > 0 && this._ammo < this._capacity) {\n this._ammo += 1\n this.reserve -= 1\n this.emit({ type: 'feed', at: doneAt })\n }\n if (this._ammo >= this._capacity || this.reserve <= 0) {\n // an empty tube: the action is worked after the last round, then the reload is over\n this.loadStep = null\n if (this.reloadTail > 0) {\n this.reloadEnd = doneAt + this.reloadTail\n this.reloadTail = 0\n } else this.finishReload(doneAt)\n } else this.reloadEnd += this.loadStep\n } else {\n const take = Math.min(this._capacity - this._ammo, this.reserve)\n this._ammo += take\n this.reserve -= take\n this.finishReload(doneAt)\n }\n }\n }\n\n protected finishReload(at: number): void {\n this._reloading = false\n this._locked = false\n this.emit({ type: 'reload', phase: 'end', kind: this.reloadKind, at })\n }\n\n protected stopReload(at: number): void {\n this._reloading = false\n this._phase = null\n this.scheduled = this.scheduled.filter((item) => item.tag !== 'reload')\n this.emit({ type: 'reload', phase: 'end', kind: this.reloadKind, at })\n }\n\n release(): void {\n this.latched = false\n }\n}\n","import { ammoId } from './ammo'\nimport { clearSeconds, drawSeconds } from './fire'\nimport { isReloadable, planReload, reloadStages } from './reload'\nimport type { AmmoKind, FireMode, ReloadRequest } from './types'\nimport { WeaponCore } from './weapon-core'\nimport { EPS, findById } from './weapon-shared'\n\n/** Commands that change the state of a weapon: safety, fault clearing, condition, draw, reload, fire mode and refill. */\nexport abstract class WeaponCommands extends WeaponCore {\n setSafety(on: boolean): boolean {\n if (!isReloadable(this.action) || on === this._safety) return this._safety\n this._safety = on\n this.emit({ type: 'safety', on, at: this.clock })\n return on\n }\n\n clearFault(): boolean {\n const fault = this._fault\n if (!fault || this._clearing) return false\n const endAt = this.clock + clearSeconds(this.action, this.rules)\n this._clearing = true\n this._phase = { id: 'clear', start: this.clock, end: endAt }\n this.emit({ type: 'clear', fault, phase: 'start', at: this.clock })\n const finish = (): void => {\n this._fault = null\n this._clearing = false\n if (fault === 'misfire') this._ammo = Math.max(0, this._ammo - 1) // the dud is ejected\n }\n this.schedule({ at: endAt, event: { type: 'clear', fault, phase: 'end', at: endAt }, apply: finish })\n return true\n }\n\n setCondition(id: string): void {\n this._condition = findById(this.rules.conditions, id, 'condition')\n }\n\n setAmmoQuality(id: string): void {\n this._ammoQuality = findById(this.rules.ammoQualities, id, 'ammo quality')\n }\n\n setAmmoKind(kind: AmmoKind): void {\n const cal = this.caliber\n if (!cal) throw new Error(`game-weapons: \"${this.def.id}\" has no calibre to load`)\n if (!this.ammoTable?.has(ammoId(cal.id, kind))) throw new Error(`game-weapons: no ammo \"${ammoId(cal.id, kind)}\" in the table`)\n this._ammoKind = kind\n }\n\n setFuseLength(metres: number | undefined): void {\n this.fuseLengthOverride = metres\n }\n\n /** Seconds to put the weapon in hand. */\n protected drawDuration(): number {\n return drawSeconds(this.action, this.rules)\n }\n\n draw(): void {\n const seconds = this.drawDuration()\n this.drawEnd = this.clock + seconds\n this._phase = { id: 'draw', start: this.clock, end: this.drawEnd }\n this.emit({ type: 'draw', phase: 'start', at: this.clock })\n this.schedule({ at: this.drawEnd, event: { type: 'draw', phase: 'end', at: this.drawEnd } })\n }\n\n reload(request: ReloadRequest = 'auto'): boolean {\n const a = this.action\n if (a.kind === 'throwable') {\n if (this._ammo >= this._capacity || this.reserve <= 0) return false\n this._ammo += 1\n this.reserve -= 1\n return true\n }\n if (!isReloadable(a) || this._reloading || this._fault || this._clearing || this.clock < this.drawEnd - EPS) return false\n if ((this._ammo >= this._capacity && !this._locked) || this.reserve <= 0) return false\n const plan = planReload(a, this._ammo, this._capacity, this.reserve, request)\n this._reloading = true\n this.loadStep = plan.step\n this.reloadTail = plan.tail\n this.reloadKind = plan.kind\n this.reloadEnd = this.clock + plan.first\n this._phase = { id: 'reload', start: this.clock, end: this.clock + plan.total }\n this.emit({ type: 'reload', phase: 'start', kind: plan.kind, at: this.clock })\n for (const { stage, at } of reloadStages(a, plan, this.clock)) this.schedule({ at, tag: 'reload', event: { type: 'reload_stage', stage, at } })\n return true\n }\n\n cycleMode(): FireMode {\n if (this.action.kind !== 'firearm') return this.mode\n const modes = this.action.modes\n const i = modes.indexOf(this.mode)\n this.mode = modes[(i + 1) % modes.length] ?? this.mode\n this.emit({ type: 'mode', mode: this.mode, at: this.clock })\n return this.mode\n }\n\n refill(): void {\n this._ammo = this._capacity\n this.reserve = this.initialReserve\n this._reloading = false\n this._locked = false\n this._fault = null\n this._clearing = false\n this._phase = null\n this.scheduled = []\n this.readyAt = this.clock\n this.latched = false\n this.cook = null\n this.extra = 0\n }\n}\n","import type { AttachmentDef, AttachmentId, FittedAttachment, MountKind, StockState, WeaponSnapshot } from './attachment-types'\nimport { resolveLoadout } from './attachment-effects'\nimport type { Loadout } from './attachment-effects'\nimport { canFit, canInstallWith } from './attachments'\nimport type { CanFit } from './attachments'\nimport { createRng } from './rng'\nimport type { FitOptions, FitResult, ReloadRequest, WeaponEvent, WeaponState, WeaponStance } from './types'\nimport { WeaponCommands } from './weapon-commands'\nimport { BREAK_RNG_SALT, EPS, UNDERBARREL_SEED_SALT } from './weapon-shared'\nimport type { WeaponStateInit } from './weapon-shared'\n\nconst NO_ATTACHMENTS: ReadonlyMap<AttachmentId, AttachmentDef> = new Map()\n\nconst copyOf = (part: FittedAttachment): FittedAttachment => ({ ...part })\n\n/** What is on the weapon: fitting and removing accessories, the stock, how it is held, and the numbers all of that changes. */\nexport abstract class WeaponAttachments extends WeaponCommands {\n protected fitted: FittedAttachment[]\n protected load: Loadout\n protected stockState: StockState = 'extended'\n protected aiming = false\n protected supportedStance = false\n /** In one hand with another weapon in the other (`rules.dualWield`). */\n protected dualStance = false\n /** Magazine changes so far: a dual coupler makes every second one fast. */\n protected reloadCount = 0\n protected readonly catalogue: ReadonlyMap<AttachmentId, AttachmentDef>\n protected readonly isCompatible: WeaponStateInit['isCompatible']\n protected readonly breakRng: () => number\n protected under: WeaponState | null = null\n /** The accessory the launcher state belongs to. */\n private underOwner: AttachmentId | null = null\n /** Launchers whose accessory is off the weapon, by accessory id, with the clock they were put away at: the same accessory brings its own rounds back (grenades are conserved). */\n private readonly shelvedLaunchers = new Map<AttachmentId, { readonly state: WeaponState; readonly at: number }>()\n protected underActive = false\n /** Seconds the weapon has run since the launcher under the barrel was last brought up to its clock (it idles while the rifle is in use). */\n protected underBehind = 0\n private readonly makeUnderbarrel: WeaponStateInit['makeUnderbarrel']\n private readonly seed: number\n\n constructor(init: WeaponStateInit) {\n super(init)\n this.catalogue = init.attachments ?? NO_ATTACHMENTS\n this.isCompatible = init.isCompatible\n this.makeUnderbarrel = init.makeUnderbarrel\n this.seed = init.seed\n this.breakRng = createRng((init.seed ^ BREAK_RNG_SALT) >>> 0)\n this.fitted = (init.snapshot?.attachments ?? init.def.fitted ?? []).map(copyOf)\n if (init.snapshot) this.stockState = init.snapshot.stock\n this.fitted = this.fitted.map((part) => (part.shotsLeft === undefined ? this.withDurability(part) : part))\n this.load = this.resolve()\n this.applyLoad()\n this.syncUnderbarrel(init.snapshot?.underbarrel)\n if (init.snapshot) this.applySnapshot(init.snapshot)\n }\n\n get underbarrel(): WeaponState | null {\n return this.under\n }\n get underbarrelActive(): boolean {\n return this.underActive\n }\n\n get attachments(): readonly FittedAttachment[] {\n return this.fitted.map(copyOf)\n }\n get mass(): number {\n return this.load.mass\n }\n get aimSeconds(): number {\n return this.load.aimSeconds\n }\n get suppressed(): boolean {\n return this.load.suppressed\n }\n get stock(): StockState {\n return this.stockState\n }\n\n private resolve(): Loadout {\n const supported = this.supportedStance\n return resolveLoadout(this.def, this.fitted, this.catalogue, { aiming: this.aiming, supported, stock: this.stockState, caliber: this.caliber, rules: this.rules, dualWield: this.dualStance })\n }\n\n /** Takes the numbers of the accessories on the weapon: the action, the capacity (what no longer fits goes back to the reserve) and the draw time. */\n protected applyLoad(): void {\n this.load = this.resolve()\n this.action = this.load.action\n const capacity = this.action.kind === 'firearm' ? this.action.magazine : this._capacity\n if (capacity === this._capacity) return\n this._capacity = capacity\n if (this._ammo <= capacity) return\n this.reserve += this._ammo - capacity\n this._ammo = capacity\n }\n\n /** Makes the launcher state when a fitted accessory is one; when it comes off the state is kept for that accessory, and a re-fit gets it back as it was. */\n private syncUnderbarrel(snapshot?: WeaponSnapshot): void {\n const owner = this.fitted.find((part) => this.catalogue.get(part.id)?.launcher !== undefined)\n const launcher = owner ? this.catalogue.get(owner.id)?.launcher : undefined\n if (!owner || launcher === undefined || !this.makeUnderbarrel) {\n this.shelveUnderbarrel()\n this.underActive = false\n return\n }\n if (this.underOwner === owner.id) return\n this.shelveUnderbarrel()\n const kept = this.shelvedLaunchers.get(owner.id)\n this.shelvedLaunchers.delete(owner.id)\n this.under = kept?.state ?? this.makeUnderbarrel(launcher, (this.seed ^ UNDERBARREL_SEED_SALT) >>> 0, snapshot)\n this.underOwner = owner.id\n this.underBehind = this.clock - (kept?.at ?? 0)\n this.flushUnderbarrel()\n }\n\n private shelveUnderbarrel(): void {\n if (this.under && this.underOwner !== null) this.shelvedLaunchers.set(this.underOwner, { state: this.under, at: this.clock })\n this.under = null\n this.underOwner = null\n }\n\n /** Brings the idle launcher up to the clock of the weapon (its phases and events keep the same time). */\n private flushUnderbarrel(): void {\n if (!this.under) return\n if (this.underBehind > 0) {\n this.under.update(this.underBehind)\n this.under.update(0)\n }\n this.underBehind = 0\n }\n\n protected advance(seconds: number): void {\n super.advance(seconds)\n if (!this.underActive) this.underBehind += Math.max(0, seconds)\n }\n\n update(dt: number): void {\n super.update(dt)\n if (this.underActive) this.under?.update(dt)\n }\n\n drain(): WeaponEvent[] {\n const own = super.drain()\n const launcher = this.under?.drain() ?? []\n return launcher.length === 0 ? own : [...own, ...launcher].sort((a, b) => a.at - b.at)\n }\n\n refill(): void {\n super.refill()\n this.under?.refill()\n }\n\n useUnderbarrel(on: boolean): boolean {\n if (!this.under || on === this.underActive || this.isWorking() || this._reloading || this.under.reloading) return false\n const seconds = this.rules.attachments.switchSeconds\n this.emit({ type: 'underbarrel', on, at: this.clock })\n const apply = (): void => {\n if (on) this.flushUnderbarrel()\n this.underActive = on\n }\n if (seconds <= EPS) {\n apply()\n return true\n }\n this._phase = { id: 'switch', start: this.clock, end: this.clock + seconds }\n this.schedule({ at: this.clock + seconds, apply })\n return true\n }\n\n /** The weapon is busy fitting, folding or switching: nothing else answers. */\n protected workGate(): boolean {\n return this.isWorking()\n }\n\n private applySnapshot(snapshot: WeaponSnapshot): void {\n this._ammo = Math.min(snapshot.ammo, this._capacity)\n this.reserve = snapshot.reserve\n this.mode = snapshot.mode\n }\n\n private withDurability(part: FittedAttachment): FittedAttachment {\n const shots = this.catalogue.get(part.id)?.durability?.shots\n if (!shots) return part\n return { ...part, shotsLeft: shots[0] + Math.floor(this.breakRng() * (shots[1] - shots[0] + 1)) }\n }\n\n protected isWorking(): boolean {\n const phase = this.phase\n return phase !== null && (phase.id === 'fit' || phase.id === 'stock' || phase.id === 'switch')\n }\n\n protected drawDuration(): number {\n return super.drawDuration() * this.load.drawFactor\n }\n\n canFit(id: AttachmentId, mount?: MountKind): CanFit {\n const attachment = this.catalogue.get(id)\n if (!attachment) return { ok: false, reason: 'no_mount' }\n return canFit(this.def, attachment, this.fitted, { caliber: this.caliber, catalogue: this.catalogue, isCompatible: this.isCompatible }, mount)\n }\n\n /** Starts the work: the phase and the event now, the change when the phase ends. */\n private startWork(action: 'fit' | 'remove', attachment: AttachmentDef, mount: MountKind, apply: () => void): FitResult {\n const seconds = this.rules.attachments.fitSeconds[attachment.install]\n this.emit({ type: 'attachment', action, id: attachment.id, mount, at: this.clock })\n if (seconds <= EPS) {\n apply()\n return { ok: true, seconds: 0 }\n }\n this._phase = { id: 'fit', start: this.clock, end: this.clock + seconds }\n this.schedule({ at: this.clock + seconds, apply })\n return { ok: true, seconds }\n }\n\n fit(id: AttachmentId, options: FitOptions = {}): FitResult {\n const attachment = this.catalogue.get(id)\n if (!attachment) return { ok: false, reason: 'unknown' }\n if (this.isWorking() || this._reloading) return { ok: false, reason: 'busy' }\n if (!canInstallWith(options.install ?? 'field', attachment.install)) return { ok: false, reason: 'install' }\n const check = canFit(this.def, attachment, this.fitted, { caliber: this.caliber, catalogue: this.catalogue, isCompatible: this.isCompatible }, options.mount)\n if (!check.ok) return check\n return this.startWork('fit', attachment, check.mount, () => {\n this.fitted.push(this.withDurability({ id, mount: check.mount }))\n this.applyLoad()\n this.syncUnderbarrel()\n })\n }\n\n remove(id: AttachmentId, options: FitOptions = {}): FitResult {\n const part = this.fitted.find((candidate) => candidate.id === id)\n const attachment = this.catalogue.get(id)\n if (!part || !attachment) return { ok: false, reason: 'not_fitted' }\n if (part.integral === true || attachment.removable === false) return { ok: false, reason: 'fixed' }\n if (this.isWorking() || this._reloading) return { ok: false, reason: 'busy' }\n if (!canInstallWith(options.install ?? 'field', attachment.install)) return { ok: false, reason: 'install' }\n return this.startWork('remove', attachment, part.mount, () => {\n this.fitted = this.fitted.filter((candidate) => candidate !== part)\n this.applyLoad()\n this.syncUnderbarrel()\n })\n }\n\n toggle(id: AttachmentId): boolean | null {\n const index = this.fitted.findIndex((part) => part.id === id)\n const kind = this.catalogue.get(id)?.kind\n const part = this.fitted[index]\n if (!part || (kind !== 'light' && kind !== 'laser')) return null\n const on = part.on !== true\n this.fitted[index] = { ...part, on }\n this.emit({ type: 'toggle', id, on, at: this.clock })\n this.applyLoad()\n return on\n }\n\n setStock(state: StockState): boolean {\n const kind = this.def.stock?.kind\n if (kind === undefined || kind === 'fixed' || kind === 'none' || state === this.stockState || this.isWorking() || this._reloading) return false\n const seconds = this.rules.stock.seconds\n this.emit({ type: 'stock', state, kind, at: this.clock })\n const apply = (): void => {\n this.stockState = state\n this.applyLoad()\n }\n if (seconds <= EPS) {\n apply()\n return true\n }\n this._phase = { id: 'stock', start: this.clock, end: this.clock + seconds }\n this.schedule({ at: this.clock + seconds, apply })\n return true\n }\n\n setStance(stance: WeaponStance): void {\n const aiming = stance.aiming ?? this.aiming\n const supported = stance.supported ?? this.supportedStance\n const dual = stance.dualWield ?? this.dualStance\n // a weapon in each hand is held out, never to the eye\n const aimed = dual ? false : aiming\n if (aimed === this.aiming && supported === this.supportedStance && dual === this.dualStance) return\n this.aiming = aimed\n this.supportedStance = supported\n this.dualStance = dual\n this.applyLoad()\n }\n\n snapshot(): WeaponSnapshot {\n const launcher = this.under?.snapshot()\n return {\n id: this.def.id,\n attachments: this.fitted.map(copyOf),\n stock: this.stockState,\n ammo: this._ammo,\n reserve: this.reserve,\n mode: this.mode,\n condition: this._condition.id,\n ammoQuality: this._ammoQuality.id,\n ...(this._ammoKind !== undefined ? { ammoKind: this._ammoKind } : {}),\n ...(launcher ? { underbarrel: launcher } : {}),\n }\n }\n\n /** A home-made accessory wears out with the shots: when the drawn number is spent it breaks and comes off. */\n protected wearAttachments(at: number): void {\n if (!this.fitted.some((part) => part.shotsLeft !== undefined)) return\n let broke = false\n this.fitted = this.fitted.flatMap((part) => {\n if (part.shotsLeft === undefined) return [part]\n if (part.shotsLeft > 1) return [{ ...part, shotsLeft: part.shotsLeft - 1 }]\n this.emit({ type: 'attachment', action: 'break', id: part.id, mount: part.mount, at })\n broke = true\n return []\n })\n if (broke) this.applyLoad()\n }\n\n reload(request: ReloadRequest = 'auto'): boolean {\n if (this.isWorking()) return false\n if (this.underActive && this.under) return this.under.reload(request)\n const base = this.action\n const factor = this.load.secondReloadFactor\n const isFast = factor !== 1 && this.reloadCount % 2 === 1 && base.kind === 'firearm'\n if (isFast && base.kind === 'firearm') this.action = { ...base, reload: base.reload * factor, ...(base.timings ? { timings: { ...base.timings, reload: base.timings.reload * factor, ...(base.timings.reloadEmpty === undefined ? {} : { reloadEmpty: base.timings.reloadEmpty * factor }) } } : {}) }\n const started = super.reload(request)\n this.action = base\n if (started) this.reloadCount += 1\n return started\n }\n}\n\n","import { ammoIgnition, resolveLoad } from './ammo'\nimport { isDudWithoutJam, rollFault } from './faults'\nimport { manualCycleSeconds, planRounds, weaponNoise, weaponSpeed } from './fire'\nimport { burstNoise, heatPerRound } from './heat'\nimport { sampleCone } from './rng'\nimport type { CaliberDef, FaultId, FirearmAction, Shot, TriggerResult, Vec3, WeaponRules } from './types'\nimport { WeaponAttachments } from './weapon-attachments'\nimport { BLOOM_CAP, EPS, result } from './weapon-shared'\n\n// frames of one pull follow each other closely; a longer gap means the trigger was let go and the barrels start from rest again\nconst SPIN_PULL_GAP = 0.1\n\n/** Pulling the trigger of a firearm: rounds, faults, heat, bloom and noise. */\nexport abstract class WeaponFirearm extends WeaponAttachments {\n /** Semi-style gating: a held trigger that already fired does nothing until `release()` or a new pull (`held` false). */\n private spinSince: number | undefined\n private spinFrameEnd = Number.NEGATIVE_INFINITY\n private lastRoundAt = Number.NEGATIVE_INFINITY\n\n /** When the barrels of a rotary gun are at speed: `upSeconds` after the pull began, and at once while they still spin from the last round. */\n private spunUpAt(spin: FirearmAction['spin'], start: number, end: number): number {\n if (!spin || start - this.lastRoundAt <= spin.holdSeconds + EPS) return 0\n if (this.spinSince === undefined || start - this.spinFrameEnd > SPIN_PULL_GAP) this.spinSince = start\n this.spinFrameEnd = end\n return this.spinSince + spin.upSeconds\n }\n\n protected oncePerPull(held: boolean): boolean {\n if (!held) this.latched = false\n if (this.latched) return false\n this.latched = true\n return true\n }\n\n protected fireFirearm(a: FirearmAction, origin: Vec3, dir: Vec3, start: number, end: number, held: boolean, source?: string): TriggerResult {\n if (this._reloading) {\n if (this.loadStep !== null && this._ammo > 0) this.stopReload(start) // a tube reload is interrupted by the trigger\n else return result('reloading')\n }\n if (this.mode !== 'auto' && !this.oncePerPull(held)) return result('cooldown')\n if (this._ammo <= 0) {\n this.emit({ type: 'empty', at: start })\n return result('empty')\n }\n\n const t0 = Math.max(start, this.readyAt, this.spunUpAt(a.spin, start, end))\n if (t0 > end + EPS) return result('cooldown')\n\n const res = result('ok')\n const times = planRounds(a, this.mode, this._ammo, t0, end)\n let lastAt = t0\n for (const t of times) {\n const fault = rollFault({ def: this.def, caliber: this.caliber, condition: this._condition, ammoQuality: this._ammoQuality, heat: this._heat, rules: this.faultRules(), random: this.faultRng })\n if (fault === 'misfire') {\n this.misfire(a, t, start, res)\n lastAt = t\n break\n }\n this.fireOne(this.action.kind === 'firearm' ? this.action : a, origin, dir, t, res, source)\n res.roundTimes.push(t - start)\n res.rounds += 1\n lastAt = t\n if (fault) {\n this.jam(fault, t, res)\n break\n }\n }\n if (res.shots.length === 0) res.status = res.fault ? 'fault' : 'misfire'\n else this.emit({ type: 'shot', shots: res.shots.length, rounds: res.rounds, mode: this.mode, at: t0, ...(res.suppressed ? { suppressed: true } : {}) })\n if (res.rounds > 0) {\n this.lastRoundAt = lastAt\n this.spinSince = undefined\n this.afterRounds(a, lastAt)\n }\n return res\n }\n\n /** The rules with the chance of a fault scaled by the accessories (a drum magazine jams more); the very rules when nothing scales it. */\n private faultRules(): WeaponRules {\n const factor = this.load.faultFactor\n if (factor === 1) return this.rules\n return { ...this.rules, faultChance: (context) => this.rules.faultChance(context) * factor }\n }\n\n protected jam(fault: FaultId, at: number, res: TriggerResult): void {\n this._fault = fault\n res.fault = fault\n this.emit({ type: 'fault', fault, at })\n }\n\n protected misfire(a: FirearmAction, at: number, start: number, res: TriggerResult): void {\n if (!isDudWithoutJam(a, 'misfire')) {\n this.jam('misfire', at, res)\n return\n }\n this._ammo -= 1\n res.rounds += 1\n res.roundTimes.push(at - start)\n this.emit({ type: 'misfire', at })\n }\n\n /** Cooldown, the cycle of a manual action and the pistol slide that stays back on the last round. */\n protected afterRounds(a: FirearmAction, lastAt: number): void {\n const cycle = manualCycleSeconds(a, this.mode)\n if (cycle > 0) {\n this.readyAt = Math.max(this.readyAt, lastAt + cycle)\n this._phase = { id: 'cycle', start: lastAt, end: lastAt + cycle }\n this.emit({ type: 'cycle', phase: 'start', at: lastAt })\n this.schedule({ at: lastAt + cycle, event: { type: 'cycle', phase: 'end', at: lastAt + cycle } })\n }\n if (this._ammo === 0 && a.family === 'pistol') this._locked = true\n }\n\n protected fireOne(a: FirearmAction, origin: Vec3, dir: Vec3, t: number, res: TriggerResult, source?: string): void {\n const cal = this.caliber as CaliberDef\n const isFirstRound = res.shots.length === 0\n // the load in the weapon: a round of the table may weigh and leave at other numbers than the calibre's own\n const load = this.ammoTable ? resolveLoad(cal, this.ammoTable, this._ammoKind) : null\n const speed = load && load.speed !== cal.muzzleSpeed ? weaponSpeed(a, cal) * (load.speed / cal.muzzleSpeed) : weaponSpeed(a, cal)\n const grams = load ? load.grams : cal.bulletGrams\n const energy = 0.5 * (grams / 1000) * speed * speed\n const drag = cal.dragPer100m ?? 0.1\n const energyAt = (distance: number): number => {\n const f = Math.pow(1 - drag, Math.max(0, distance) / 100)\n return energy * f * f\n }\n const bloomNow = this.extraAt(t)\n const spread = a.spreadDeg + bloomNow\n const aim = sampleCone(dir, spread, this.rng)\n const pellets = cal.pellets ?? 1\n const pelletSpread = pellets > 1 ? a.pelletSpreadDeg ?? 3 : 0\n for (let p = 0; p < pellets; p++) {\n const shot: Shot = {\n origin: [origin[0], origin[1], origin[2]],\n direction: sampleCone(aim, pelletSpread, this.rng),\n energy,\n caliber: cal.diameter,\n caliberId: cal.id,\n speed,\n mass: grams,\n energyAt,\n pellet: p,\n weapon: this.def.id,\n }\n if (source !== undefined) shot.source = source\n if (load) {\n shot.ammo = load.kind\n shot.penetration = { ...load.penetration }\n if (load.def.incendiary) shot.incendiary = true\n if (load.def.tracer) shot.tracer = true\n shot.ignition = ammoIgnition(load.def, this.rules.ignition)\n }\n res.shots.push(shot)\n }\n this._ammo -= 1\n this._heat = Math.min(this.rules.heat.cap, this._heat + heatPerRound({ action: a, caliber: cal, energy: energy * pellets, barrelMass: this.barrelMass, rules: this.rules.heat }) * this.load.heatFactor)\n this.readyAt = t + 60 / a.rpm\n this.extra = Math.min(bloomNow + (a.bloomDeg ?? 0), a.spreadDeg * (BLOOM_CAP - 1))\n this.extraClock = t\n res.recoil = [res.recoil[0] + a.recoil[0], res.recoil[1] + (this.rng() * 2 - 1) * a.recoil[1]]\n const { window } = this.rules.noiseBurst\n this.recentShots = this.recentShots.filter((shotAt) => shotAt > t - window)\n res.noise = burstNoise(weaponNoise(a, cal), this.recentShots.length, this.rules.noiseBurst)\n this.recentShots.push(t)\n if (!this.load.suppressed) delete res.suppressed\n else if (isFirstRound) res.suppressed = true\n this.wearAttachments(t)\n }\n\n}\n","import { isPlaced, launcherUses, sampleArmDistance, throwableUse } from './explosive-use'\nimport { sampleFuse } from './fuse'\nimport { heatPerRound } from './heat'\nimport { isReloadable } from './reload'\nimport { normalize } from './rng'\nimport type { TriggerResult, Use, Vec3, WeaponAction, WeaponState } from './types'\nimport { WeaponFirearm } from './weapon-firearm'\nimport type { WeaponCore } from './weapon-core'\nimport { EPS, result } from './weapon-shared'\n\nexport { BLOOM_CAP, muzzleEnergy } from './weapon-shared'\nexport type { WeaponStateInit } from './weapon-shared'\n\n/** Runtime of one weapon. See `WeaponState` for the contract. */\nexport class WeaponRuntime extends WeaponFirearm implements WeaponState {\n trigger(origin: Vec3, direction: Vec3, dt: number, held = false, source?: string): TriggerResult {\n const d = Math.max(0, dt)\n let overlap = 0\n if (this.pend && this.pend.src === 'update') {\n overlap = Math.min(this.pend.amt, d)\n this.pend = null\n } else {\n this.pend = { src: 'trigger', amt: d }\n }\n const start = this.clock - overlap\n const end = start + d\n this.settle(start)\n const dir = normalize(direction)\n let res: TriggerResult\n const a = this.action\n const launcher = this.underActive ? this.under : null\n const gate = launcher ? this.launcherGate(start) : this.gateStatus(start)\n if (gate) res = gate\n else if (launcher) res = launcher.trigger(origin, dir, d, held, source)\n else switch (a.kind) {\n case 'firearm':\n res = this.fireFirearm(a, origin, dir, start, end, held, source)\n break\n case 'melee':\n res = this.fireMelee(a, origin, dir, start, end)\n break\n case 'flame':\n case 'heat':\n res = this.fireFuel(a, origin, dir, d)\n break\n case 'extinguisher':\n res = this.fireExtinguisher(a, origin, dir, d)\n break\n case 'throwable':\n res = this.fireThrowable(a, origin, dir, held, start, end)\n break\n case 'launcher':\n res = this.fireLauncher(a, origin, dir, start, held)\n break\n case 'tool':\n res = d > 0 ? result('ok', { uses: [{ kind: 'tool', tool: a.tool, reach: a.reach, duration: d, origin, direction: dir }], noise: a.noise }) : result('ok')\n break\n case 'hand':\n res = this.oncePerPull(held)\n ? result('ok', { uses: [{ kind: 'hand', reach: a.reach, origin, direction: dir }] })\n : result('cooldown')\n break\n }\n this.advance(Math.max(0, end - this.clock))\n this.settle(this.clock)\n return res\n }\n\n /** The launcher under the barrel answers for itself; the weapon only says when it is busy putting it in hand. */\n protected launcherGate(start: number): TriggerResult | null {\n if (start < this.drawEnd - EPS) return result('drawing')\n return this.workGate() ? result('busy') : null\n }\n\n /** Why the trigger does nothing before the action even looks at it. */\n protected gateStatus(start: number): TriggerResult | null {\n if (start < this.drawEnd - EPS) return result('drawing')\n if (this.isWorking()) return result('busy')\n if (!isReloadable(this.action)) return null\n if (this._safety) return result('safe')\n if (this._clearing) return result('clearing')\n if (this._fault) return result('fault', { fault: this._fault })\n return null\n }\n\n protected fireLauncher(a: Extract<WeaponAction, { kind: 'launcher' }>, origin: Vec3, dir: Vec3, start: number, held: boolean): TriggerResult {\n if (this._reloading) return result('reloading')\n if (!this.oncePerPull(held)) return result('cooldown')\n if (this._ammo <= 0) {\n this.emit({ type: 'empty', at: start })\n return result('empty')\n }\n const t = Math.max(start, this.readyAt)\n this._ammo -= 1\n this._heat = Math.min(this.rules.heat.cap, this._heat + heatPerRound({ action: a, caliber: null, energy: 0, barrelMass: this.barrelMass, rules: this.rules.heat }))\n this.emit({ type: 'shot', shots: 0, rounds: 1, mode: this.mode, at: t })\n return result('ok', { uses: launcherUses({ action: a, explosive: this.explosive, origin, direction: dir, armDistance: sampleArmDistance(a, this.explosive, this.fuseRng) }), recoil: [a.recoil[0], a.recoil[1]], noise: a.noise ?? 0, rounds: 1, roundTimes: [t - start] })\n }\n\n protected fireMelee(a: Extract<WeaponAction, { kind: 'melee' }>, origin: Vec3, dir: Vec3, start: number, end: number): TriggerResult {\n const t0 = Math.max(start, this.readyAt)\n if (t0 > end + EPS) return result('cooldown')\n this.readyAt = t0 + 60 / a.rpm\n const use: Use = { kind: 'melee', damage: a.damage, energy: a.energy, radius: a.radius, reach: a.reach, origin, direction: dir }\n return result('ok', { uses: [use], noise: a.noise })\n }\n\n protected fireFuel(a: Extract<WeaponAction, { kind: 'flame' | 'heat' }>, origin: Vec3, dir: Vec3, dt: number): TriggerResult {\n if (this._ammo <= EPS) return result('no_fuel')\n if (dt <= 0) return result('ok')\n const need = a.fuelPerSecond * dt\n let duration = dt\n if (need > this._ammo) {\n duration = dt * (this._ammo / need)\n this._ammo = 0\n } else {\n this._ammo -= need\n }\n const use: Use =\n a.kind === 'flame'\n ? { kind: 'flame', temperature: a.temperature, radius: a.radius, range: a.range, cone: a.cone ?? false, duration, origin, direction: dir }\n : { kind: 'heat', temperature: a.temperature, radius: a.radius, range: a.range, duration, origin, direction: dir }\n return result('ok', { uses: [use], noise: a.noise })\n }\n\n protected fireExtinguisher(a: Extract<WeaponAction, { kind: 'extinguisher' }>, origin: Vec3, dir: Vec3, dt: number): TriggerResult {\n if (this._ammo <= EPS) return result('no_fuel')\n if (dt <= 0) return result('ok')\n const duration = Math.min(dt, this._ammo)\n this._ammo -= duration\n return result('ok', { uses: [{ kind: 'extinguish', range: a.range, coolC: a.coolC, duration, origin, direction: dir }], noise: a.noise })\n }\n\n /** The fuse of this throw: sampled from the explosive when it has a range or a burn, else the fixed one of the action. */\n protected sampleThrowFuse(a: Extract<WeaponAction, { kind: 'throwable' }>): number {\n return (this.explosive ? sampleFuse(this.explosive, this.fuseRng, this.fuseLengthOverride) : undefined) ?? a.fuse\n }\n\n protected throwUse(a: Extract<WeaponAction, { kind: 'throwable' }>, origin: Vec3, dir: Vec3, fuse: number, extra: { cooked?: number; inHand?: boolean } = {}): TriggerResult {\n return result('ok', { uses: [throwableUse({ action: a, explosive: this.explosive, origin, direction: dir, fuse, rules: this.rules.explosives, ...extra })], noise: a.noise })\n }\n\n /** A timer throwable is cooked from the pull; impact, remote and wire ones (and a long fuse that sets down) act at once. */\n protected fireThrowable(a: Extract<WeaponAction, { kind: 'throwable' }>, origin: Vec3, dir: Vec3, held: boolean, start: number, end: number): TriggerResult {\n if (this.cook) return this.cookStep(a, origin, dir, end)\n if (!this.oncePerPull(held)) return result('cooldown')\n if (this._ammo <= 0) return result('empty')\n const fuse = this.sampleThrowFuse(a)\n if (fuse <= 0 || isPlaced(this.explosive, fuse, this.rules.explosives)) {\n this._ammo -= 1\n return this.throwUse(a, origin, dir, fuse)\n }\n this.cook = { start, fuse, origin, direction: dir }\n this.emit({ type: 'cook', phase: 'start', fuse, at: start })\n return this.cookStep(a, origin, dir, end)\n }\n\n /** The trigger stays down on a cooked throwable: nothing happens until the fuse runs out in the hand. */\n protected cookStep(a: Extract<WeaponAction, { kind: 'throwable' }>, origin: Vec3, dir: Vec3, now: number): TriggerResult {\n const cook = this.cook as NonNullable<WeaponCore['cook']>\n cook.origin = origin\n cook.direction = dir\n if (now - cook.start < cook.fuse - EPS) return result('ok')\n return this.burstInHand(a, cook, origin, dir)\n }\n\n protected burstInHand(a: Extract<WeaponAction, { kind: 'throwable' }>, cook: NonNullable<WeaponCore['cook']>, origin: Vec3, dir: Vec3): TriggerResult {\n this.cook = null\n this._ammo -= 1\n this.emit({ type: 'cook', phase: 'burst', fuse: 0, at: cook.start + cook.fuse })\n return this.throwUse(a, origin, dir, 0, { cooked: cook.fuse, inHand: true })\n }\n\n release(origin?: Vec3, direction?: Vec3): TriggerResult | null {\n super.release()\n const cook = this.cook\n const a = this.action\n if (!cook || a.kind !== 'throwable') return null\n const from = origin ?? cook.origin\n const dir = direction ? normalize(direction) : cook.direction\n const held = this.clock - cook.start\n if (held >= cook.fuse - EPS) return this.burstInHand(a, cook, from, dir)\n this.cook = null\n this._ammo -= 1\n const remaining = cook.fuse - held\n this.emit({ type: 'cook', phase: 'throw', fuse: remaining, at: this.clock })\n return this.throwUse(a, from, dir, remaining, { cooked: held })\n }\n}\n","import { AMMO, resolveLoad } from './ammo'\nimport attachmentsJson from './data/attachments.json'\nimport { applyPatches, deepMerge, mergeById, removeIds } from '@adatechnology/game-contracts'\nimport archetypesJson from './data/archetypes.json'\nimport calibersJson from './data/calibers.json'\nimport explosivesJson from './data/explosives.json'\nimport explosiveWeaponsJson from './data/explosive-weapons.json'\nimport firearmsJson from './data/firearms.json'\nimport launchersJson from './data/launchers.json'\nimport { canFit as canFitAttachment } from './attachments'\nimport meleeWeaponsJson from './data/melee-weapons.json'\nimport { checkArsenal, findDuplicateIds } from './check-arsenal'\nimport { resolveStrings } from './locale'\nimport { resolveThrowables } from './registry'\nimport { DEFAULT_RULES } from './rules'\nimport type { AttachmentDef, FittedAttachment, MountKind, WeaponSnapshot } from './attachment-types'\nimport type { AmmoKind, Arsenal, ArsenalOptions, CaliberDef, CaliberId, ExplosiveDef, WeaponCategory, WeaponDef, WeaponId, WeaponState } from './types'\nimport { createExplosiveBody } from './explosive-body'\nimport { muzzleEnergy, WeaponRuntime } from './weapon'\n\nexport const CALIBERS = calibersJson as unknown as CaliberDef[]\nexport const ATTACHMENTS = attachmentsJson as unknown as AttachmentDef[]\nexport const EXPLOSIVES = explosivesJson as unknown as ExplosiveDef[]\n/** The generic weapons: handling numbers (spread, bloom, range, recoil) by type, which the real models point to through `archetype`. */\nconst ARCHETYPES = archetypesJson as unknown as WeaponDef[]\nexport const ARCHETYPE_IDS: readonly WeaponId[] = ARCHETYPES.map((def) => def.id)\nexport const WEAPONS: WeaponDef[] = [...ARCHETYPES, ...(firearmsJson as unknown as WeaponDef[]), ...(launchersJson as unknown as WeaponDef[]), ...(explosiveWeaponsJson as unknown as WeaponDef[]), ...(meleeWeaponsJson as unknown as WeaponDef[])]\n\n/** A reasonable starting kit for a test room or a sandbox. */\nexport const DEFAULT_LOADOUT: WeaponId[] = [\n 'hand', 'kick', 'shove', 'pistol_9mm', 'revolver_357', 'shotgun_pump_12', 'rifle_5_56', 'rifle_bolt_308', 'hammer', 'axe', 'machete', 'utility_knife', 'crowbar', 'lighter', 'flamethrower',\n 'cutting_torch', 'molotov', 'frag_grenade', 'screwdriver', 'wrench', 'pry_bar', 'hacksaw', 'extinguisher',\n]\n\nexport { muzzleEnergy, checkArsenal }\n\nconst explosiveOf = (def: WeaponDef, explosives: ReadonlyMap<string, ExplosiveDef>): ExplosiveDef | null => {\n const id = def.action.kind === 'launcher' ? def.action.projectile : def.action.kind === 'throwable' ? def.action.explosive : undefined\n return id === undefined ? null : explosives.get(id) ?? null\n}\n\nconst energyOf = (def: WeaponDef, calibers: ReadonlyMap<CaliberId, CaliberDef>, explosives: ReadonlyMap<string, ExplosiveDef>): number => {\n const action = def.action\n if (action.kind === 'firearm') {\n const caliber = calibers.get(action.caliber)\n const speed = action.muzzleSpeed ?? (caliber?.muzzleSpeed ?? 0) * (action.barrel ?? 1)\n return 0.5 * ((caliber?.bulletGrams ?? 0) / 1000) * speed * speed\n }\n if (action.kind === 'launcher') return explosives.get(action.projectile)?.energy ?? 0\n return action.kind === 'throwable' || action.kind === 'melee' ? action.energy : 0\n}\n\n/** A shipped grenade launcher accessory goes when its launcher was removed or filtered out (one the game added itself is left for `checkArsenal` to report). */\nconst dropOrphanLaunchers = (attachments: Map<string, AttachmentDef>, weapons: ReadonlyMap<WeaponId, WeaponDef>, added: readonly AttachmentDef[] | undefined): void => {\n const addedIds = new Set((added ?? []).map((attachment) => attachment.id))\n for (const [id, attachment] of attachments) if (attachment.launcher !== undefined && !addedIds.has(id) && !weapons.has(attachment.launcher)) attachments.delete(id)\n}\n\n/**\n * Create an arsenal. Order: the shipped entries, then `calibers`/`weapons`/`explosives` (added or replaced by id), then `patch`, then `remove`, then `include`;\n * a throwable that names an explosive follows that explosive. Every inconsistency found is reported in one error.\n */\nexport const createArsenal = (options: ArsenalOptions = {}): Arsenal => {\n const calibers = mergeById(CALIBERS, options.calibers)\n const explosives = mergeById(EXPLOSIVES, options.explosives)\n const ammo = mergeById(AMMO, options.ammo)\n const weapons = mergeById(WEAPONS, options.weapons)\n const attachments = mergeById(ATTACHMENTS, options.attachments)\n applyPatches(calibers, options.patch?.calibers)\n applyPatches(explosives, options.patch?.explosives)\n applyPatches(ammo, options.patch?.ammo)\n applyPatches(attachments, options.patch?.attachments)\n resolveThrowables(weapons, explosives)\n applyPatches(weapons, options.patch?.weapons)\n removeIds(calibers, options.remove?.calibers)\n removeIds(explosives, options.remove?.explosives)\n removeIds(ammo, options.remove?.ammo)\n removeIds(attachments, options.remove?.attachments)\n removeIds(weapons, options.remove?.weapons)\n if (options.include) for (const [id, def] of weapons) if (!options.include(def)) weapons.delete(id)\n dropOrphanLaunchers(attachments, weapons, options.attachments)\n\n const rules = deepMerge(DEFAULT_RULES, options.rules)\n const problems = [\n ...findDuplicateIds('calibre', options.calibers),\n ...findDuplicateIds('weapon', options.weapons),\n ...findDuplicateIds('explosive', options.explosives),\n ...findDuplicateIds('ammo', options.ammo),\n ...findDuplicateIds('attachment', options.attachments),\n ...checkArsenal({ weapons, calibers, explosives, attachments, ammo, rules }),\n ]\n if (problems.length > 0) throw new Error(`game-weapons: the arsenal is not consistent:\\n${problems.map((problem) => ` - ${problem}`).join('\\n')}`)\n\n const strings = resolveStrings(options.locale, options.strings)\n const baseSeed = options.seed ?? 1\n let counter = 0\n\n const create = (id: WeaponId, opts: { seed?: number; reserve?: number; condition?: string; ammoQuality?: string; ammoKind?: AmmoKind; snapshot?: WeaponSnapshot } = {}): WeaponState => {\n const def = weapons.get(id)\n if (!def) throw new Error(`game-weapons: unknown weapon \"${id}\"`)\n const caliber = def.action.kind === 'firearm' ? calibers.get(def.action.caliber) ?? null : null\n counter += 1\n const seed = opts.seed ?? (baseSeed + Math.imul(counter, 0x9e3779b1)) >>> 0\n const explosive = explosiveOf(def, explosives)\n return new WeaponRuntime({ def, caliber, seed, reserve: opts.reserve, rules, explosive, condition: opts.condition, ammoQuality: opts.ammoQuality, ammoKind: opts.ammoKind, ammo, attachments, isCompatible: options.isCompatible, snapshot: opts.snapshot, makeUnderbarrel: (launcherId, launcherSeed, launcherSnapshot) => create(launcherId, { seed: launcherSeed, snapshot: launcherSnapshot }) })\n }\n\n return {\n calibers,\n weapons,\n explosives,\n ammo,\n attachments,\n rules,\n create,\n canFit(weapon, attachment, opts = {}) {\n const def = weapons.get(weapon)\n if (!def) throw new Error(`game-weapons: unknown weapon \"${weapon}\"`)\n const part = attachments.get(attachment)\n if (!part) throw new Error(`game-weapons: unknown attachment \"${attachment}\"`)\n const caliber = def.action.kind === 'firearm' ? calibers.get(def.action.caliber) ?? null : null\n const fitted: readonly FittedAttachment[] = opts.fitted ?? def.fitted ?? []\n return canFitAttachment(def, part, fitted, { caliber, catalogue: attachments, isCompatible: options.isCompatible }, opts.mount as MountKind | undefined)\n },\n restore(snapshot, opts = {}) {\n return create(snapshot.id, { seed: opts.seed, reserve: snapshot.reserve, condition: snapshot.condition, ammoQuality: snapshot.ammoQuality, ammoKind: snapshot.ammoKind as AmmoKind | undefined, snapshot })\n },\n loadOf(caliber, kind) {\n const c = calibers.get(caliber)\n if (!c) throw new Error(`game-weapons: unknown calibre \"${caliber}\"`)\n const load = resolveLoad(c, ammo, kind)\n if (!load) throw new Error(`game-weapons: no ammo \"${caliber}:${kind ?? c.kind ?? ''}\" in the table`)\n return load\n },\n muzzleEnergy(caliber, barrel = 1) {\n const c = calibers.get(caliber)\n if (!c) throw new Error(`game-weapons: unknown calibre \"${caliber}\"`)\n return muzzleEnergy(c, barrel)\n },\n explosiveBody(use) {\n return createExplosiveBody(use, explosives, rules.explosives)\n },\n energy(id) {\n const def = weapons.get(id)\n if (!def) throw new Error(`game-weapons: unknown weapon \"${id}\"`)\n return energyOf(def, calibers, explosives)\n },\n name(id) {\n const weapon = weapons.get(id)\n if (weapon) return strings.weapons[id] ?? weapon.name ?? id\n return strings.explosives[id] ?? explosives.get(id)?.name ?? strings.modes[id] ?? strings.categories[id] ?? strings.faults[id] ?? strings.conditions[id] ?? calibers.get(id)?.label ?? attachments.get(id)?.name ?? id\n },\n list(category?: WeaponCategory) {\n const all = [...weapons.values()]\n return category ? all.filter((w) => w.category === category) : all\n },\n }\n}\n","import type { Vec3 } from './types'\n\n/** The height of the ground under a point of the plane (a terrain, a floor, a heap): the surface an explosive in flight must not pass through. */\nexport type GroundHeight = (x: number, z: number) => number\n\nexport type GroundSweepOptions = {\n /** Metres above the ground the body counts as touching it (its radius). Default 0. */\n readonly clearance?: number\n /** Most metres between two heights read along the way. Default 0.1 (a cell of the terrain): a bump or the rim of a crater shorter than a fast round's step is still met. */\n readonly spacing?: number\n}\n\nexport type GroundSweepHit = { readonly point: Vec3; readonly normal: Vec3; readonly ground: true; readonly distance: number }\n\nconst BISECTIONS = 10\nconst SLOPE_STEP = 0.1\n\nconst lerp = (from: Vec3, to: Vec3, k: number): Vec3 => [from[0] + (to[0] - from[0]) * k, from[1] + (to[1] - from[1]) * k, from[2] + (to[2] - from[2]) * k]\n\nconst groundNormal = (groundAt: GroundHeight, x: number, z: number): Vec3 => {\n const slopeX = (groundAt(x + SLOPE_STEP, z) - groundAt(x - SLOPE_STEP, z)) / (2 * SLOPE_STEP)\n const slopeZ = (groundAt(x, z + SLOPE_STEP) - groundAt(x, z - SLOPE_STEP)) / (2 * SLOPE_STEP)\n const size = Math.hypot(slopeX, 1, slopeZ)\n return [-slopeX / size, 1 / size, -slopeZ / size]\n}\n\n/**\n * Where the segment `from` to `to` first goes under the ground, read every `spacing` metres along it and narrowed by halving, or null when it stays\n * above. Only the end of a step is not enough: a round that crosses a heap, a kerb or a crater rim within one frame would go through it.\n */\nexport function sweepGround(from: Vec3, to: Vec3, groundAt: GroundHeight, options: GroundSweepOptions = {}): GroundSweepHit | null {\n const clearance = options.clearance ?? 0\n const below = (point: Vec3): boolean => point[1] < groundAt(point[0], point[2]) + clearance\n const length = Math.hypot(to[0] - from[0], to[1] - from[1], to[2] - from[2])\n const samples = Math.max(1, Math.ceil(length / (options.spacing ?? 0.1)))\n let above = 0\n if (below(from)) return hitAt(from, from, groundAt, clearance)\n for (let index = 1; index <= samples; index++) {\n const k = index / samples\n if (!below(lerp(from, to, k))) {\n above = k\n continue\n }\n let high = k\n for (let step = 0; step < BISECTIONS; step++) {\n const middle = (above + high) / 2\n if (below(lerp(from, to, middle))) high = middle\n else above = middle\n }\n return hitAt(from, lerp(from, to, high), groundAt, clearance)\n }\n return null\n}\n\nconst hitAt = (from: Vec3, at: Vec3, groundAt: GroundHeight, clearance: number): GroundSweepHit => {\n const point: Vec3 = [at[0], groundAt(at[0], at[2]) + clearance, at[2]]\n return { point, normal: groundNormal(groundAt, at[0], at[2]), ground: true, distance: Math.hypot(point[0] - from[0], point[1] - from[1], point[2] - from[2]) }\n}\n","import type { Detonation } from './explosive-body'\nimport { normalize } from './rng'\nimport type { Use, Vec3 } from './types'\nimport { dot, length, subtract } from './vec'\n\nexport interface BlastEffect {\n /** `lethal` kills and dismembers, `injury` wounds, `none` is out of reach (or behind a directional charge). */\n readonly zone: 'lethal' | 'injury' | 'none'\n readonly distance: number\n /** 1 in the lethal zone, falling linearly to 0 at the edge of the injury zone. */\n readonly falloff: number\n /** Seconds of stun for whoever is in reach (flashbang). */\n readonly stunSeconds: number\n}\n\nconst OUT_OF_REACH: BlastEffect = { zone: 'none', distance: Infinity, falloff: 0, stunSeconds: 0 }\n\nconst insideCone = (offset: Vec3, facing: Vec3, halfAngleDeg: number): boolean => {\n const distance = length(offset)\n if (distance <= 1e-9) return true\n return dot(offset, normalize(facing)) / distance >= Math.cos((halfAngleDeg * Math.PI) / 180)\n}\n\n/** What a detonation does to something at `target`: the zone, how hard, and the stun. A directional charge only reaches inside its cone. */\nexport const blastEffect = (detonation: Detonation, target: Vec3): BlastEffect => {\n const offset = subtract(target, detonation.point)\n const distance = length(offset)\n const { lethalRadius, injuryRadius, cone } = detonation\n const reach = cone ? Math.min(injuryRadius, cone.length) : injuryRadius\n if (distance > reach) return OUT_OF_REACH\n if (cone && !insideCone(offset, detonation.direction, cone.halfAngleDeg)) return OUT_OF_REACH\n const stunSeconds = detonation.stunSeconds ?? 0\n if (distance <= lethalRadius) return { zone: 'lethal', distance, falloff: 1, stunSeconds }\n const span = reach - lethalRadius\n return { zone: 'injury', distance, falloff: span > 0 ? 1 - (distance - lethalRadius) / span : 1, stunSeconds }\n}\n\n/** How much of the blast behind a launcher reaches `target`: 0 outside the cone or the radius, falling linearly from 1 at the tube. */\nexport const backblastEffect = (use: Extract<Use, { kind: 'backblast' }>, target: Vec3): number => {\n const offset = subtract(target, use.origin)\n const distance = length(offset)\n if (distance > use.radius || !insideCone(offset, use.direction, use.halfAngleDeg)) return 0\n return 1 - distance / use.radius\n}\n\nexport interface TripwireSegment {\n readonly from: Vec3\n readonly to: Vec3\n}\n\n/**\n * Where the wire of a charge set down with `use` runs: from the charge, `length` metres along the horizontal facing turned by `angleDeg`\n * (counter-clockwise seen from above), `height` metres above it. Null for a charge with no wire.\n */\nexport const tripwireSegment = (use: Extract<Use, { kind: 'place' }>): TripwireSegment | null => {\n const wire = use.tripwire\n if (!wire) return null\n const facing = normalize([use.direction[0], 0, use.direction[2]])\n const angle = (wire.angleDeg * Math.PI) / 180\n const dx = facing[0] * Math.cos(angle) + facing[2] * Math.sin(angle)\n const dz = -facing[0] * Math.sin(angle) + facing[2] * Math.cos(angle)\n const from: Vec3 = [use.origin[0], use.origin[1] + wire.height, use.origin[2]]\n return { from, to: [from[0] + dx * wire.length, from[1], from[2] + dz * wire.length] }\n}\n","{\n \"smokeless\": {\n \"puffs\": 2,\n \"radius\": 0.01,\n \"opacity\": 0.14,\n \"life\": 0.7,\n \"drift\": 0.2,\n \"rise\": 0.06,\n \"growth\": 2.1,\n \"flash\": 1.0\n },\n \"black_powder\": {\n \"puffs\": 8,\n \"radius\": 0.022,\n \"opacity\": 0.55,\n \"life\": 5.5,\n \"drift\": 0.12,\n \"rise\": 0.04,\n \"growth\": 2.8,\n \"flash\": 1.0\n },\n \"suppressed\": {\n \"puffs\": 1,\n \"radius\": 0.006,\n \"opacity\": 0.08,\n \"life\": 0.5,\n \"drift\": 0.15,\n \"rise\": 0.05,\n \"growth\": 2.1,\n \"flash\": 0.15\n },\n \"none\": {\n \"puffs\": 0,\n \"radius\": 0.0,\n \"opacity\": 0.0,\n \"life\": 0.0,\n \"drift\": 0.0,\n \"rise\": 0.0,\n \"growth\": 0.0,\n \"flash\": 0.0\n },\n \"gallery\": {\n \"puffs\": 6,\n \"radius\": 0.013,\n \"opacity\": 0.45,\n \"life\": 1.3,\n \"lifeSpread\": 0.6,\n \"drift\": 0.15,\n \"driftSpread\": 0.35,\n \"rise\": 0.03,\n \"riseSpread\": 0.12,\n \"sideSpread\": 0.14,\n \"growth\": 2.1,\n \"flash\": 1\n }\n}\n","// Copyright Ada Technology 2026 — MIT\n/**\n * Muzzle smoke profiles and resolver for @adatechnology/game-weapons.\n *\n * Each profile controls the puff count, radius, opacity, lifetime, drift (forward speed),\n * rise speed, growth factor, and flash scale of the muzzle flash effect emitted on each shot.\n * The resolver picks the right profile from the calibre's propellant type, the weapon's own\n * override, and whether a suppressor is fitted.\n */\nimport type { CaliberDef, WeaponDef } from './types'\nimport PROFILES_JSON from './data/muzzle-smoke.json'\n\n/** The visual profile of the muzzle smoke for one shot. */\nexport interface MuzzleSmokeProfile {\n /** Number of smoke puffs spawned. */\n readonly puffs: number\n /** Radius of each puff at spawn (multiplied by the flash-size factor). */\n readonly radius: number\n /** Starting opacity of each puff (0 = invisible, 1 = fully opaque). */\n readonly opacity: number\n /** Life of each puff in seconds. */\n readonly life: number\n /** Forward drift speed of the cloud (m/s, along the barrel). */\n readonly drift: number\n /** Upward rise speed of the cloud (m/s, world-space). */\n readonly rise: number\n /** Growth factor per second applied to each puff. */\n readonly growth: number\n /** Flash scale multiplier (0 = no flash/light, 1 = full). */\n readonly flash: number\n /** Random extra forward speed per puff (m/s); the recipe defaults to 0.1. */\n readonly driftSpread?: number\n /** Random extra rise speed per puff (m/s); the recipe defaults to 0.04. */\n readonly riseSpread?: number\n /** Total sideways speed range per puff (m/s); the recipe defaults to 0.06. */\n readonly sideSpread?: number\n /** Random extra life per puff in seconds; the recipe defaults to 0.3 times `life`. */\n readonly lifeSpread?: number\n}\n\n/** Profile id — corresponds to a top-level key of `muzzle-smoke.json`. */\nexport type MuzzleSmokeProfileId = 'smokeless' | 'black_powder' | 'suppressed' | 'none' | 'gallery'\n\n/** All built-in muzzle smoke profiles, indexed by id. */\nexport const MUZZLE_SMOKE: Readonly<Record<MuzzleSmokeProfileId, MuzzleSmokeProfile>> = PROFILES_JSON as Readonly<Record<MuzzleSmokeProfileId, MuzzleSmokeProfile>>\n\nexport interface MuzzleSmokeParams {\n /** The calibre of the shot being fired. */\n caliber?: CaliberDef | null | undefined\n /** The weapon def (may carry a `muzzleSmoke` override). */\n weapon?: WeaponDef | undefined\n /** Whether a suppressor is fitted for this shot. */\n suppressed?: boolean | undefined\n}\n\n/**\n * Returns the muzzle smoke profile for a given shot context.\n *\n * Priority (highest first):\n * 1. `suppressed` → always returns the `suppressed` profile.\n * 2. `weapon.muzzleSmoke` → explicit weapon-level override (profile id).\n * 3. `caliber.propellant` → derived from the calibre's propellant type.\n * 4. Default: `smokeless`.\n *\n * The `gallery` profile (the Arsenal gallery's original look) is only reachable through `weapon.muzzleSmoke: 'gallery'`.\n */\nexport function muzzleSmokeOf({ caliber, weapon, suppressed }: MuzzleSmokeParams): MuzzleSmokeProfile {\n if (suppressed) return MUZZLE_SMOKE.suppressed\n const override = weapon?.muzzleSmoke as MuzzleSmokeProfileId | undefined\n if (override && override in MUZZLE_SMOKE) return MUZZLE_SMOKE[override]\n const id: MuzzleSmokeProfileId =\n caliber?.propellant === 'black_powder' ? 'black_powder' : caliber?.propellant === 'none' ? 'none' : 'smokeless'\n return MUZZLE_SMOKE[id]\n}\n","import type { Arsenal, AttachmentId, WeaponId } from './types'\n\n/**\n * How much the view closes in while a weapon aims: the magnification of the optic fitted on it (the lowest of a variable one, the AUG's integral 1.5x), else the iron-sight zoom\n * of its category (`rules.aim.ironSightZoom`); 1 for a weapon that does not aim (a knife, a grenade).\n */\nexport function aimZoomOf(arsenal: Arsenal, weaponId: WeaponId, attachments: readonly AttachmentId[] = arsenal.weapons.get(weaponId)?.fitted?.map((part) => part.id) ?? []): number {\n const def = arsenal.weapons.get(weaponId)\n if (!def) return 1\n const optic = attachments.map((id) => arsenal.attachments.get(id)?.optic).find((entry) => entry !== undefined)\n if (optic) return optic.zoom[0]\n return arsenal.rules.aim.ironSightZoom[def.category] ?? 1\n}\n","import type { Arsenal, WeaponId, WeaponRules } from './types'\n\n/**\n * Whether a body can hold one of this weapon in each hand (`rules.dualWield`): its category is listed or its id is, and it is not excluded. A game changes the lists through\n * `ArsenalOptions.rules`; an unknown id answers false.\n */\nexport function canDualWield(arsenal: Pick<Arsenal, 'weapons' | 'rules'>, weaponId: WeaponId): boolean {\n const def = arsenal.weapons.get(weaponId)\n if (!def) return false\n return isDualWieldable(arsenal.rules.dualWield, weaponId, def.category)\n}\n\nconst isDualWieldable = (rule: WeaponRules['dualWield'], weaponId: WeaponId, category: string): boolean => {\n if (rule.exclude.includes(weaponId)) return false\n return rule.weapons.includes(weaponId) || (rule.categories as readonly string[]).includes(category)\n}\n","import { ARCHETYPE_IDS } from './arsenal'\nimport type { Arsenal, WeaponId } from './types'\n\n// the archetypes that are a generic gun (\"pistola 9 mm\"): a firearm, or a flamethrower a real one stands for; the bows, the melee weapons and the throwables are the real object\nconst isGenericKind = (kind: string, category: string): boolean => (kind === 'firearm' && category !== 'bow' && category !== 'crossbow') || kind === 'flame'\n\n/**\n * The generic guns of the arsenal (the `9 mm service pistol`, the `5.56 mm assault rifle`...) and the real weapon that stands for each: the brand weapon of lowest id that names\n * it as its `archetype` and fires the same way, the one whose model it wears; `undefined` for a generic no real weapon stands for (the `.22 LR pistol`).\n */\nexport function genericWeapons(arsenal: Arsenal): ReadonlyMap<WeaponId, WeaponId | undefined> {\n const archetypes = new Set<string>(ARCHETYPE_IDS)\n const generics = new Map<WeaponId, WeaponId | undefined>()\n for (const def of arsenal.weapons.values()) if (archetypes.has(def.id) && isGenericKind(def.action.kind, def.category) && !def.maker) generics.set(def.id, undefined)\n for (const def of [...arsenal.weapons.values()].sort((a, b) => (a.id < b.id ? -1 : 1))) {\n const { archetype } = def\n if (!archetype || archetypes.has(def.id) || !generics.has(archetype) || generics.get(archetype)) continue\n if (arsenal.weapons.get(archetype)?.action.kind === def.action.kind) generics.set(archetype, def.id)\n }\n // a flame no real weapon stands for is the object itself (the lighter)\n for (const [id, brand] of generics) if (!brand && arsenal.weapons.get(id)?.action.kind === 'flame') generics.delete(id)\n return generics\n}\n\n/** A loadout with each generic gun swapped for the real weapon that stands for it (dropped when none does), and no id twice. */\nexport function realLoadout(arsenal: Arsenal, loadout: readonly WeaponId[]): WeaponId[] {\n const generics = genericWeapons(arsenal)\n const real = loadout.flatMap((id) => (generics.has(id) ? [generics.get(id)].filter((brand): brand is WeaponId => brand !== undefined) : [id]))\n return [...new Set(real)]\n}\n","import { genericWeapons } from './generics'\nimport type { Arsenal, WeaponCategory, WeaponDef, WeaponId } from './types'\n\n/** One group of the weapon menu as a game declares it: the categories it lists, in order, each a section of its own. */\nexport interface WeaponMenuGroupDef {\n readonly id: string\n /** Name by locale (`en`, `pt-BR`...); the id when the locale has none. */\n readonly name: Readonly<Record<string, string>>\n readonly categories: readonly string[]\n}\n\nexport interface WeaponMenuEntry {\n readonly id: WeaponId\n readonly name: string\n /** The maker of a brand weapon (Glock, Taurus, Heckler & Koch...), so a search by maker finds it. */\n readonly maker?: string\n /** The tags of the weapon (`pdw`, `explosive`...), so a search by them finds it. */\n readonly tags?: readonly string[]\n /** The section it is listed in (its category, or `flame` for a flamethrower filed as a launcher). */\n readonly category: string\n}\n\nexport interface WeaponMenuSection {\n /** The category. */\n readonly id: string\n readonly name: string\n readonly weapons: readonly WeaponMenuEntry[]\n}\n\nexport interface WeaponMenuGroup {\n readonly id: string\n readonly name: string\n readonly sections: readonly WeaponMenuSection[]\n}\n\nexport interface WeaponMenuOptions {\n /** Locale of the group names (default `en`); the weapon and category names are the arsenal's own. */\n readonly locale?: string\n /** The groups and their categories (default `WEAPON_MENU_GROUPS`). A category no group lists goes to a last `other` group. */\n readonly groups?: readonly WeaponMenuGroupDef[]\n /** Weapons left out of the menu (default none). */\n readonly exclude?: (def: WeaponDef) => boolean\n /** List the generic guns too (`genericWeapons`: the `9 mm service pistol` that wears the Beretta's model); default false, the real weapons stand for them. */\n readonly generics?: boolean\n}\n\n/** The groups of the menu: firearms, bladed and blunt weapons, explosives (throwables and launchers), tools (and the flames). */\nexport const WEAPON_MENU_GROUPS: readonly WeaponMenuGroupDef[] = [\n {\n id: 'firearms',\n name: { en: 'Firearms', 'pt-BR': 'Armas de fogo' },\n categories: ['pistol', 'revolver', 'smg', 'pdw', 'carbine', 'rifle', 'dmr', 'hunting', 'sniper', 'shotgun', 'machine_gun', 'bow', 'crossbow'],\n },\n { id: 'melee', name: { en: 'Melee weapons', 'pt-BR': 'Armas brancas' }, categories: ['melee_blade', 'melee_blunt', 'hand'] },\n { id: 'explosives', name: { en: 'Explosives', 'pt-BR': 'Explosivos' }, categories: ['throwable', 'launcher'] },\n { id: 'tools', name: { en: 'Tools', 'pt-BR': 'Ferramentas' }, categories: ['tool', 'heat', 'flame', 'extinguisher'] },\n]\n\nconst OTHER_GROUP: WeaponMenuGroupDef = { id: 'other', name: { en: 'Other', 'pt-BR': 'Outros' }, categories: [] }\n\n// a flamethrower is filed as a launcher (it is carried like one) but fires a flame: it is listed with the flames; a personal defence weapon (tag `pdw`: the P90, the MP7) has a section of its own\nconst sectionOf = (def: WeaponDef): string => {\n if (def.category === 'launcher' && def.action.kind === 'flame') return 'flame'\n return def.tags?.includes('pdw') ? 'pdw' : def.category\n}\n\nconst nameIn = (def: WeaponMenuGroupDef, locale: string): string => def.name[locale] ?? def.name.en ?? def.id\n\nconst capitalize = (text: string): string => text.charAt(0).toLocaleUpperCase() + text.slice(1)\n\n/** The whole arsenal by group and section, each section sorted by name: what a weapon picker lists. */\nexport function weaponMenu(arsenal: Arsenal, options: WeaponMenuOptions = {}): WeaponMenuGroup[] {\n const locale = options.locale ?? 'en'\n const groups = options.groups ?? WEAPON_MENU_GROUPS\n const bySection = new Map<string, WeaponMenuEntry[]>()\n const generics = options.generics ? new Map<WeaponId, WeaponId | undefined>() : genericWeapons(arsenal)\n for (const def of arsenal.weapons.values()) {\n if (options.exclude?.(def) || generics.has(def.id)) continue\n const category = sectionOf(def)\n const list = bySection.get(category) ?? []\n list.push({ id: def.id, name: capitalize(arsenal.name(def.id)), category, ...(def.maker ? { maker: def.maker } : {}), ...(def.tags?.length ? { tags: def.tags } : {}) })\n bySection.set(category, list)\n }\n const listed = new Set(groups.flatMap((group) => group.categories))\n const other: WeaponMenuGroupDef = { ...OTHER_GROUP, categories: [...bySection.keys()].filter((category) => !listed.has(category)) }\n const sectionsOf = (group: WeaponMenuGroupDef): WeaponMenuSection[] =>\n group.categories.flatMap((category) => {\n const weapons = bySection.get(category)\n if (!weapons?.length) return []\n const sorted = [...weapons].sort((a, b) => a.name.localeCompare(b.name, locale))\n return [{ id: category, name: capitalize(arsenal.name(category as WeaponCategory)), weapons: sorted }]\n })\n return [...groups, other].flatMap((group) => {\n const sections = sectionsOf(group)\n return sections.length ? [{ id: group.id, name: nameIn(group, locale), sections }] : []\n })\n}\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;;;ACGO,MAAM,YAAY,CAAC,SAAiC;AACzD,QAAI,IAAI,SAAS;AACjB,WAAO,MAAM;AACX,UAAK,IAAI,eAAgB;AACzB,UAAI,IAAI;AACR,UAAI,KAAK,KAAK,IAAK,MAAM,IAAK,IAAI,CAAC;AACnC,WAAK,IAAI,KAAK,KAAK,IAAK,MAAM,GAAI,IAAI,EAAE;AACxC,eAAS,IAAK,MAAM,QAAS,KAAK;AAAA,IACpC;AAAA,EACF;AAEO,MAAM,YAAY,CAAC,MAAkB;AAC1C,UAAM,IAAI,KAAK,MAAM,EAAE,CAAC,GAAG,EAAE,CAAC,GAAG,EAAE,CAAC,CAAC;AACrC,WAAO,IAAI,QAAQ,CAAC,EAAE,CAAC,IAAI,GAAG,EAAE,CAAC,IAAI,GAAG,EAAE,CAAC,IAAI,CAAC,IAAI,CAAC,GAAG,GAAG,EAAE;AAAA,EAC/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