@adatechnology/game-weapons 0.4.5 → 0.5.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +93 -4
- package/dist/index.d.ts +207 -4
- package/dist/index.global.js +1224 -16
- package/dist/index.global.js.map +1 -1
- package/dist/index.js +1209 -16
- package/dist/index.js.map +1 -1
- package/package.json +2 -2
package/dist/index.global.js
CHANGED
|
@@ -23,6 +23,7 @@ var GameWeapons = (() => {
|
|
|
23
23
|
// src/index.ts
|
|
24
24
|
var index_exports = {};
|
|
25
25
|
__export(index_exports, {
|
|
26
|
+
AMMO: () => AMMO,
|
|
26
27
|
ARCHETYPE_IDS: () => ARCHETYPE_IDS,
|
|
27
28
|
ATTACHMENTS: () => ATTACHMENTS,
|
|
28
29
|
CALIBERS: () => CALIBERS,
|
|
@@ -30,8 +31,12 @@ var GameWeapons = (() => {
|
|
|
30
31
|
DEFAULT_RULES: () => DEFAULT_RULES,
|
|
31
32
|
EXPLOSIVES: () => EXPLOSIVES,
|
|
32
33
|
ExplosiveBody: () => ExplosiveBody,
|
|
34
|
+
GALLERY_HEAT: () => GALLERY_HEAT,
|
|
35
|
+
MUZZLE_SMOKE: () => MUZZLE_SMOKE,
|
|
33
36
|
RELOAD_STAGES: () => RELOAD_STAGES,
|
|
34
37
|
WEAPONS: () => WEAPONS,
|
|
38
|
+
ammoId: () => ammoId,
|
|
39
|
+
ammoIgnition: () => ammoIgnition,
|
|
35
40
|
backblastEffect: () => backblastEffect,
|
|
36
41
|
blastEffect: () => blastEffect,
|
|
37
42
|
canFit: () => canFit,
|
|
@@ -42,7 +47,9 @@ var GameWeapons = (() => {
|
|
|
42
47
|
createRng: () => createRng,
|
|
43
48
|
locales: () => locales,
|
|
44
49
|
muzzleEnergy: () => muzzleEnergy,
|
|
50
|
+
muzzleSmokeOf: () => muzzleSmokeOf,
|
|
45
51
|
nominalFuse: () => nominalFuse,
|
|
52
|
+
resolveLoad: () => resolveLoad,
|
|
46
53
|
resolveLoadout: () => resolveLoadout,
|
|
47
54
|
resolveStrings: () => resolveStrings,
|
|
48
55
|
sampleFuse: () => sampleFuse,
|
|
@@ -83,6 +90,980 @@ var GameWeapons = (() => {
|
|
|
83
90
|
]);
|
|
84
91
|
};
|
|
85
92
|
|
|
93
|
+
// src/data/ammo.json
|
|
94
|
+
var ammo_default = {
|
|
95
|
+
_notes: [
|
|
96
|
+
"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).",
|
|
97
|
+
"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.",
|
|
98
|
+
"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).",
|
|
99
|
+
"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).",
|
|
100
|
+
"bulletGrams and muzzleSpeed, when present, replace those of the calibre for this load; absent they are the calibre's."
|
|
101
|
+
],
|
|
102
|
+
loads: [
|
|
103
|
+
{
|
|
104
|
+
id: "22lr:rimfire",
|
|
105
|
+
caliber: "22lr",
|
|
106
|
+
kind: "rimfire",
|
|
107
|
+
label: ".22 LR lead round nose",
|
|
108
|
+
core: "lead",
|
|
109
|
+
jacket: "none",
|
|
110
|
+
penetration: {
|
|
111
|
+
steel: 1.4,
|
|
112
|
+
concrete: 12,
|
|
113
|
+
brick: 25,
|
|
114
|
+
wood: 60
|
|
115
|
+
},
|
|
116
|
+
basis: "estimated",
|
|
117
|
+
sources: [
|
|
118
|
+
"Estimated from muzzle energy, bullet construction and the published anchors of this file (see _notes); refine with a datasheet."
|
|
119
|
+
]
|
|
120
|
+
},
|
|
121
|
+
{
|
|
122
|
+
id: "380acp:fmj",
|
|
123
|
+
caliber: "380acp",
|
|
124
|
+
kind: "fmj",
|
|
125
|
+
label: ".380 ACP FMJ",
|
|
126
|
+
core: "lead",
|
|
127
|
+
jacket: "gilding_metal",
|
|
128
|
+
penetration: {
|
|
129
|
+
steel: 2.2,
|
|
130
|
+
concrete: 20,
|
|
131
|
+
brick: 40,
|
|
132
|
+
wood: 80
|
|
133
|
+
},
|
|
134
|
+
basis: "estimated",
|
|
135
|
+
sources: [
|
|
136
|
+
"Estimated from muzzle energy, bullet construction and the published anchors of this file (see _notes); refine with a datasheet."
|
|
137
|
+
]
|
|
138
|
+
},
|
|
139
|
+
{
|
|
140
|
+
id: "9x18:fmj",
|
|
141
|
+
caliber: "9x18",
|
|
142
|
+
kind: "fmj",
|
|
143
|
+
label: "9x18 Makarov FMJ",
|
|
144
|
+
core: "lead",
|
|
145
|
+
jacket: "steel",
|
|
146
|
+
penetration: {
|
|
147
|
+
steel: 2.6,
|
|
148
|
+
concrete: 22,
|
|
149
|
+
brick: 45,
|
|
150
|
+
wood: 85
|
|
151
|
+
},
|
|
152
|
+
basis: "estimated",
|
|
153
|
+
sources: [
|
|
154
|
+
"Estimated from muzzle energy, bullet construction and the published anchors of this file (see _notes); refine with a datasheet."
|
|
155
|
+
]
|
|
156
|
+
},
|
|
157
|
+
{
|
|
158
|
+
id: "9x19:fmj",
|
|
159
|
+
caliber: "9x19",
|
|
160
|
+
kind: "fmj",
|
|
161
|
+
label: "9x19 FMJ 124 gr",
|
|
162
|
+
core: "lead",
|
|
163
|
+
jacket: "gilding_metal",
|
|
164
|
+
penetration: {
|
|
165
|
+
steel: 3,
|
|
166
|
+
concrete: 25,
|
|
167
|
+
brick: 50,
|
|
168
|
+
wood: 80
|
|
169
|
+
},
|
|
170
|
+
basis: "estimated",
|
|
171
|
+
sources: [
|
|
172
|
+
"Estimated from muzzle energy, bullet construction and the published anchors of this file (see _notes); refine with a datasheet."
|
|
173
|
+
]
|
|
174
|
+
},
|
|
175
|
+
{
|
|
176
|
+
id: "9x19:hp",
|
|
177
|
+
caliber: "9x19",
|
|
178
|
+
kind: "hp",
|
|
179
|
+
label: "9x19 JHP",
|
|
180
|
+
core: "lead",
|
|
181
|
+
jacket: "gilding_metal",
|
|
182
|
+
penetration: {
|
|
183
|
+
steel: 2,
|
|
184
|
+
concrete: 15,
|
|
185
|
+
brick: 35,
|
|
186
|
+
wood: 55
|
|
187
|
+
},
|
|
188
|
+
basis: "estimated",
|
|
189
|
+
sources: [
|
|
190
|
+
"Estimated from muzzle energy, bullet construction and the published anchors of this file (see _notes); refine with a datasheet."
|
|
191
|
+
]
|
|
192
|
+
},
|
|
193
|
+
{
|
|
194
|
+
id: "40sw:fmj",
|
|
195
|
+
caliber: "40sw",
|
|
196
|
+
kind: "fmj",
|
|
197
|
+
label: ".40 S&W FMJ",
|
|
198
|
+
core: "lead",
|
|
199
|
+
jacket: "gilding_metal",
|
|
200
|
+
penetration: {
|
|
201
|
+
steel: 3,
|
|
202
|
+
concrete: 28,
|
|
203
|
+
brick: 55,
|
|
204
|
+
wood: 85
|
|
205
|
+
},
|
|
206
|
+
basis: "estimated",
|
|
207
|
+
sources: [
|
|
208
|
+
"Estimated from muzzle energy, bullet construction and the published anchors of this file (see _notes); refine with a datasheet."
|
|
209
|
+
]
|
|
210
|
+
},
|
|
211
|
+
{
|
|
212
|
+
id: "45acp:fmj",
|
|
213
|
+
caliber: "45acp",
|
|
214
|
+
kind: "fmj",
|
|
215
|
+
label: ".45 ACP FMJ 230 gr",
|
|
216
|
+
core: "lead",
|
|
217
|
+
jacket: "gilding_metal",
|
|
218
|
+
penetration: {
|
|
219
|
+
steel: 2.8,
|
|
220
|
+
concrete: 28,
|
|
221
|
+
brick: 55,
|
|
222
|
+
wood: 85
|
|
223
|
+
},
|
|
224
|
+
basis: "estimated",
|
|
225
|
+
sources: [
|
|
226
|
+
"Estimated from muzzle energy, bullet construction and the published anchors of this file (see _notes); refine with a datasheet."
|
|
227
|
+
]
|
|
228
|
+
},
|
|
229
|
+
{
|
|
230
|
+
id: "45acp:hp",
|
|
231
|
+
caliber: "45acp",
|
|
232
|
+
kind: "hp",
|
|
233
|
+
label: ".45 ACP JHP",
|
|
234
|
+
core: "lead",
|
|
235
|
+
jacket: "gilding_metal",
|
|
236
|
+
penetration: {
|
|
237
|
+
steel: 1.8,
|
|
238
|
+
concrete: 18,
|
|
239
|
+
brick: 40,
|
|
240
|
+
wood: 60
|
|
241
|
+
},
|
|
242
|
+
basis: "estimated",
|
|
243
|
+
sources: [
|
|
244
|
+
"Estimated from muzzle energy, bullet construction and the published anchors of this file (see _notes); refine with a datasheet."
|
|
245
|
+
]
|
|
246
|
+
},
|
|
247
|
+
{
|
|
248
|
+
id: "5_7x28:fmj",
|
|
249
|
+
caliber: "5_7x28",
|
|
250
|
+
kind: "fmj",
|
|
251
|
+
label: "5.7x28 SS190",
|
|
252
|
+
core: "lead_steel",
|
|
253
|
+
jacket: "gilding_metal",
|
|
254
|
+
penetration: {
|
|
255
|
+
steel: 4,
|
|
256
|
+
concrete: 25,
|
|
257
|
+
brick: 50,
|
|
258
|
+
wood: 100
|
|
259
|
+
},
|
|
260
|
+
basis: "estimated",
|
|
261
|
+
sources: [
|
|
262
|
+
"Estimated from muzzle energy, bullet construction and the published anchors of this file (see _notes); refine with a datasheet."
|
|
263
|
+
]
|
|
264
|
+
},
|
|
265
|
+
{
|
|
266
|
+
id: "38spl:fmj",
|
|
267
|
+
caliber: "38spl",
|
|
268
|
+
kind: "fmj",
|
|
269
|
+
label: ".38 Special lead round nose",
|
|
270
|
+
core: "lead",
|
|
271
|
+
jacket: "none",
|
|
272
|
+
penetration: {
|
|
273
|
+
steel: 2,
|
|
274
|
+
concrete: 20,
|
|
275
|
+
brick: 40,
|
|
276
|
+
wood: 70
|
|
277
|
+
},
|
|
278
|
+
basis: "estimated",
|
|
279
|
+
sources: [
|
|
280
|
+
"Estimated from muzzle energy, bullet construction and the published anchors of this file (see _notes); refine with a datasheet."
|
|
281
|
+
]
|
|
282
|
+
},
|
|
283
|
+
{
|
|
284
|
+
id: "357mag:hp",
|
|
285
|
+
caliber: "357mag",
|
|
286
|
+
kind: "hp",
|
|
287
|
+
label: ".357 Magnum JHP",
|
|
288
|
+
core: "lead",
|
|
289
|
+
jacket: "gilding_metal",
|
|
290
|
+
penetration: {
|
|
291
|
+
steel: 3,
|
|
292
|
+
concrete: 25,
|
|
293
|
+
brick: 45,
|
|
294
|
+
wood: 90
|
|
295
|
+
},
|
|
296
|
+
basis: "estimated",
|
|
297
|
+
sources: [
|
|
298
|
+
"Estimated from muzzle energy, bullet construction and the published anchors of this file (see _notes); refine with a datasheet."
|
|
299
|
+
]
|
|
300
|
+
},
|
|
301
|
+
{
|
|
302
|
+
id: "44mag:fmj",
|
|
303
|
+
caliber: "44mag",
|
|
304
|
+
kind: "fmj",
|
|
305
|
+
label: ".44 Magnum FMJ",
|
|
306
|
+
core: "lead",
|
|
307
|
+
jacket: "gilding_metal",
|
|
308
|
+
penetration: {
|
|
309
|
+
steel: 4,
|
|
310
|
+
concrete: 40,
|
|
311
|
+
brick: 70,
|
|
312
|
+
wood: 150
|
|
313
|
+
},
|
|
314
|
+
basis: "estimated",
|
|
315
|
+
sources: [
|
|
316
|
+
"Estimated from muzzle energy, bullet construction and the published anchors of this file (see _notes); refine with a datasheet."
|
|
317
|
+
]
|
|
318
|
+
},
|
|
319
|
+
{
|
|
320
|
+
id: "50ae:fmj",
|
|
321
|
+
caliber: "50ae",
|
|
322
|
+
kind: "fmj",
|
|
323
|
+
label: ".50 AE FMJ",
|
|
324
|
+
core: "lead",
|
|
325
|
+
jacket: "gilding_metal",
|
|
326
|
+
penetration: {
|
|
327
|
+
steel: 4,
|
|
328
|
+
concrete: 38,
|
|
329
|
+
brick: 65,
|
|
330
|
+
wood: 130
|
|
331
|
+
},
|
|
332
|
+
basis: "estimated",
|
|
333
|
+
sources: [
|
|
334
|
+
"Estimated from muzzle energy, bullet construction and the published anchors of this file (see _notes); refine with a datasheet."
|
|
335
|
+
]
|
|
336
|
+
},
|
|
337
|
+
{
|
|
338
|
+
id: "12ga_00buck:buck",
|
|
339
|
+
caliber: "12ga_00buck",
|
|
340
|
+
kind: "buck",
|
|
341
|
+
label: "12 ga 00 buck (one pellet)",
|
|
342
|
+
core: "lead",
|
|
343
|
+
jacket: "none",
|
|
344
|
+
penetration: {
|
|
345
|
+
steel: 0.8,
|
|
346
|
+
concrete: 10,
|
|
347
|
+
brick: 25,
|
|
348
|
+
wood: 60
|
|
349
|
+
},
|
|
350
|
+
basis: "estimated",
|
|
351
|
+
sources: [
|
|
352
|
+
"Estimated from muzzle energy, bullet construction and the published anchors of this file (see _notes); refine with a datasheet."
|
|
353
|
+
]
|
|
354
|
+
},
|
|
355
|
+
{
|
|
356
|
+
id: "12ga_slug:slug",
|
|
357
|
+
caliber: "12ga_slug",
|
|
358
|
+
kind: "slug",
|
|
359
|
+
label: "12 ga rifled slug",
|
|
360
|
+
core: "lead",
|
|
361
|
+
jacket: "none",
|
|
362
|
+
penetration: {
|
|
363
|
+
steel: 4,
|
|
364
|
+
concrete: 60,
|
|
365
|
+
brick: 100,
|
|
366
|
+
wood: 250
|
|
367
|
+
},
|
|
368
|
+
basis: "estimated",
|
|
369
|
+
sources: [
|
|
370
|
+
"Estimated from muzzle energy, bullet construction and the published anchors of this file (see _notes); refine with a datasheet."
|
|
371
|
+
]
|
|
372
|
+
},
|
|
373
|
+
{
|
|
374
|
+
id: "12ga_birdshot:birdshot",
|
|
375
|
+
caliber: "12ga_birdshot",
|
|
376
|
+
kind: "birdshot",
|
|
377
|
+
label: "12 ga birdshot (one pellet)",
|
|
378
|
+
core: "lead",
|
|
379
|
+
jacket: "none",
|
|
380
|
+
penetration: {
|
|
381
|
+
steel: 0.2,
|
|
382
|
+
concrete: 3,
|
|
383
|
+
brick: 8,
|
|
384
|
+
wood: 20
|
|
385
|
+
},
|
|
386
|
+
basis: "estimated",
|
|
387
|
+
sources: [
|
|
388
|
+
"Estimated from muzzle energy, bullet construction and the published anchors of this file (see _notes); refine with a datasheet."
|
|
389
|
+
]
|
|
390
|
+
},
|
|
391
|
+
{
|
|
392
|
+
id: "20ga_buck:buck",
|
|
393
|
+
caliber: "20ga_buck",
|
|
394
|
+
kind: "buck",
|
|
395
|
+
label: "20 ga buck (one pellet)",
|
|
396
|
+
core: "lead",
|
|
397
|
+
jacket: "none",
|
|
398
|
+
penetration: {
|
|
399
|
+
steel: 0.6,
|
|
400
|
+
concrete: 8,
|
|
401
|
+
brick: 20,
|
|
402
|
+
wood: 50
|
|
403
|
+
},
|
|
404
|
+
basis: "estimated",
|
|
405
|
+
sources: [
|
|
406
|
+
"Estimated from muzzle energy, bullet construction and the published anchors of this file (see _notes); refine with a datasheet."
|
|
407
|
+
]
|
|
408
|
+
},
|
|
409
|
+
{
|
|
410
|
+
id: "5_56x45:fmj",
|
|
411
|
+
caliber: "5_56x45",
|
|
412
|
+
kind: "fmj",
|
|
413
|
+
label: "5.56x45 M855 (steel tip, lead core)",
|
|
414
|
+
core: "lead_steel",
|
|
415
|
+
jacket: "gilding_metal",
|
|
416
|
+
penetration: {
|
|
417
|
+
steel: 4.5,
|
|
418
|
+
concrete: 90,
|
|
419
|
+
brick: 180,
|
|
420
|
+
wood: 280
|
|
421
|
+
},
|
|
422
|
+
basis: "estimated",
|
|
423
|
+
sources: [
|
|
424
|
+
"Estimated from muzzle energy, bullet construction and the published anchors of this file (see _notes); refine with a datasheet."
|
|
425
|
+
]
|
|
426
|
+
},
|
|
427
|
+
{
|
|
428
|
+
id: "5_45x39:fmj",
|
|
429
|
+
caliber: "5_45x39",
|
|
430
|
+
kind: "fmj",
|
|
431
|
+
label: "5.45x39 7N6 (steel core)",
|
|
432
|
+
core: "steel",
|
|
433
|
+
jacket: "steel",
|
|
434
|
+
penetration: {
|
|
435
|
+
steel: 5.5,
|
|
436
|
+
concrete: 90,
|
|
437
|
+
brick: 180,
|
|
438
|
+
wood: 280
|
|
439
|
+
},
|
|
440
|
+
basis: "estimated",
|
|
441
|
+
sources: [
|
|
442
|
+
"Estimated from muzzle energy, bullet construction and the published anchors of this file (see _notes); refine with a datasheet."
|
|
443
|
+
]
|
|
444
|
+
},
|
|
445
|
+
{
|
|
446
|
+
id: "7_62x39:fmj",
|
|
447
|
+
caliber: "7_62x39",
|
|
448
|
+
kind: "fmj",
|
|
449
|
+
label: "7.62x39 M43 (steel core)",
|
|
450
|
+
core: "steel",
|
|
451
|
+
jacket: "steel",
|
|
452
|
+
penetration: {
|
|
453
|
+
steel: 6.5,
|
|
454
|
+
concrete: 110,
|
|
455
|
+
brick: 220,
|
|
456
|
+
wood: 300
|
|
457
|
+
},
|
|
458
|
+
basis: "estimated",
|
|
459
|
+
sources: [
|
|
460
|
+
"Estimated from muzzle energy, bullet construction and the published anchors of this file (see _notes); refine with a datasheet."
|
|
461
|
+
]
|
|
462
|
+
},
|
|
463
|
+
{
|
|
464
|
+
id: "30_30:fmj",
|
|
465
|
+
caliber: "30_30",
|
|
466
|
+
kind: "fmj",
|
|
467
|
+
label: ".30-30 Winchester flat nose",
|
|
468
|
+
core: "lead",
|
|
469
|
+
jacket: "gilding_metal",
|
|
470
|
+
penetration: {
|
|
471
|
+
steel: 3,
|
|
472
|
+
concrete: 80,
|
|
473
|
+
brick: 160,
|
|
474
|
+
wood: 250
|
|
475
|
+
},
|
|
476
|
+
basis: "estimated",
|
|
477
|
+
sources: [
|
|
478
|
+
"Estimated from muzzle energy, bullet construction and the published anchors of this file (see _notes); refine with a datasheet."
|
|
479
|
+
]
|
|
480
|
+
},
|
|
481
|
+
{
|
|
482
|
+
id: "7_62x51:fmj",
|
|
483
|
+
caliber: "7_62x51",
|
|
484
|
+
kind: "fmj",
|
|
485
|
+
label: "7.62x51 M80 ball",
|
|
486
|
+
core: "lead",
|
|
487
|
+
jacket: "gilding_metal",
|
|
488
|
+
penetration: {
|
|
489
|
+
steel: 5,
|
|
490
|
+
concrete: 120,
|
|
491
|
+
brick: 250,
|
|
492
|
+
wood: 330
|
|
493
|
+
},
|
|
494
|
+
basis: "estimated",
|
|
495
|
+
sources: [
|
|
496
|
+
"Estimated from muzzle energy, bullet construction and the published anchors of this file (see _notes); refine with a datasheet."
|
|
497
|
+
]
|
|
498
|
+
},
|
|
499
|
+
{
|
|
500
|
+
id: "7_62x54r:fmj",
|
|
501
|
+
caliber: "7_62x54r",
|
|
502
|
+
kind: "fmj",
|
|
503
|
+
label: "7.62x54R LPS (steel core)",
|
|
504
|
+
core: "steel",
|
|
505
|
+
jacket: "steel",
|
|
506
|
+
penetration: {
|
|
507
|
+
steel: 6.5,
|
|
508
|
+
concrete: 130,
|
|
509
|
+
brick: 260,
|
|
510
|
+
wood: 330
|
|
511
|
+
},
|
|
512
|
+
basis: "estimated",
|
|
513
|
+
sources: [
|
|
514
|
+
"Estimated from muzzle energy, bullet construction and the published anchors of this file (see _notes); refine with a datasheet."
|
|
515
|
+
]
|
|
516
|
+
},
|
|
517
|
+
{
|
|
518
|
+
id: "30_06:fmj",
|
|
519
|
+
caliber: "30_06",
|
|
520
|
+
kind: "fmj",
|
|
521
|
+
label: ".30-06 M1 ball",
|
|
522
|
+
core: "lead",
|
|
523
|
+
jacket: "gilding_metal",
|
|
524
|
+
penetration: {
|
|
525
|
+
steel: 5.5,
|
|
526
|
+
concrete: 130,
|
|
527
|
+
brick: 260,
|
|
528
|
+
wood: 340
|
|
529
|
+
},
|
|
530
|
+
basis: "estimated",
|
|
531
|
+
sources: [
|
|
532
|
+
"Estimated from muzzle energy, bullet construction and the published anchors of this file (see _notes); refine with a datasheet."
|
|
533
|
+
]
|
|
534
|
+
},
|
|
535
|
+
{
|
|
536
|
+
id: "300wm:fmj",
|
|
537
|
+
caliber: "300wm",
|
|
538
|
+
kind: "fmj",
|
|
539
|
+
label: ".300 Win Mag FMJ",
|
|
540
|
+
core: "lead",
|
|
541
|
+
jacket: "gilding_metal",
|
|
542
|
+
penetration: {
|
|
543
|
+
steel: 6.5,
|
|
544
|
+
concrete: 150,
|
|
545
|
+
brick: 290,
|
|
546
|
+
wood: 360
|
|
547
|
+
},
|
|
548
|
+
basis: "estimated",
|
|
549
|
+
sources: [
|
|
550
|
+
"Estimated from muzzle energy, bullet construction and the published anchors of this file (see _notes); refine with a datasheet."
|
|
551
|
+
]
|
|
552
|
+
},
|
|
553
|
+
{
|
|
554
|
+
id: "338lapua:fmj",
|
|
555
|
+
caliber: "338lapua",
|
|
556
|
+
kind: "fmj",
|
|
557
|
+
label: ".338 Lapua Magnum FMJ",
|
|
558
|
+
core: "lead",
|
|
559
|
+
jacket: "gilding_metal",
|
|
560
|
+
penetration: {
|
|
561
|
+
steel: 8,
|
|
562
|
+
concrete: 190,
|
|
563
|
+
brick: 360,
|
|
564
|
+
wood: 450
|
|
565
|
+
},
|
|
566
|
+
basis: "estimated",
|
|
567
|
+
sources: [
|
|
568
|
+
"Estimated from muzzle energy, bullet construction and the published anchors of this file (see _notes); refine with a datasheet."
|
|
569
|
+
]
|
|
570
|
+
},
|
|
571
|
+
{
|
|
572
|
+
id: "408cheytac:fmj",
|
|
573
|
+
caliber: "408cheytac",
|
|
574
|
+
kind: "fmj",
|
|
575
|
+
label: ".408 CheyTac solid",
|
|
576
|
+
core: "copper",
|
|
577
|
+
jacket: "none",
|
|
578
|
+
penetration: {
|
|
579
|
+
steel: 12,
|
|
580
|
+
concrete: 250,
|
|
581
|
+
brick: 450,
|
|
582
|
+
wood: 550
|
|
583
|
+
},
|
|
584
|
+
basis: "estimated",
|
|
585
|
+
sources: [
|
|
586
|
+
"Estimated from muzzle energy, bullet construction and the published anchors of this file (see _notes); refine with a datasheet."
|
|
587
|
+
]
|
|
588
|
+
},
|
|
589
|
+
{
|
|
590
|
+
id: "arrow:arrow",
|
|
591
|
+
caliber: "arrow",
|
|
592
|
+
kind: "arrow",
|
|
593
|
+
label: "Arrow (steel broadhead)",
|
|
594
|
+
core: "steel",
|
|
595
|
+
jacket: "none",
|
|
596
|
+
penetration: {
|
|
597
|
+
steel: 0.5,
|
|
598
|
+
concrete: 5,
|
|
599
|
+
brick: 15,
|
|
600
|
+
wood: 100
|
|
601
|
+
},
|
|
602
|
+
basis: "estimated",
|
|
603
|
+
sources: [
|
|
604
|
+
"Estimated from muzzle energy, bullet construction and the published anchors of this file (see _notes); refine with a datasheet."
|
|
605
|
+
]
|
|
606
|
+
},
|
|
607
|
+
{
|
|
608
|
+
id: "crossbow_bolt:bolt",
|
|
609
|
+
caliber: "crossbow_bolt",
|
|
610
|
+
kind: "bolt",
|
|
611
|
+
label: "Crossbow bolt",
|
|
612
|
+
core: "steel",
|
|
613
|
+
jacket: "none",
|
|
614
|
+
penetration: {
|
|
615
|
+
steel: 0.8,
|
|
616
|
+
concrete: 8,
|
|
617
|
+
brick: 20,
|
|
618
|
+
wood: 120
|
|
619
|
+
},
|
|
620
|
+
basis: "estimated",
|
|
621
|
+
sources: [
|
|
622
|
+
"Estimated from muzzle energy, bullet construction and the published anchors of this file (see _notes); refine with a datasheet."
|
|
623
|
+
]
|
|
624
|
+
},
|
|
625
|
+
{
|
|
626
|
+
id: "4_6x30:fmj",
|
|
627
|
+
caliber: "4_6x30",
|
|
628
|
+
kind: "fmj",
|
|
629
|
+
label: "4.6x30 DM11",
|
|
630
|
+
core: "steel",
|
|
631
|
+
jacket: "gilding_metal",
|
|
632
|
+
penetration: {
|
|
633
|
+
steel: 3.5,
|
|
634
|
+
concrete: 25,
|
|
635
|
+
brick: 50,
|
|
636
|
+
wood: 100
|
|
637
|
+
},
|
|
638
|
+
basis: "estimated",
|
|
639
|
+
sources: [
|
|
640
|
+
"Estimated from muzzle energy, bullet construction and the published anchors of this file (see _notes); refine with a datasheet."
|
|
641
|
+
]
|
|
642
|
+
},
|
|
643
|
+
{
|
|
644
|
+
id: "32acp:fmj",
|
|
645
|
+
caliber: "32acp",
|
|
646
|
+
kind: "fmj",
|
|
647
|
+
label: ".32 ACP FMJ",
|
|
648
|
+
core: "lead",
|
|
649
|
+
jacket: "gilding_metal",
|
|
650
|
+
penetration: {
|
|
651
|
+
steel: 1.8,
|
|
652
|
+
concrete: 15,
|
|
653
|
+
brick: 30,
|
|
654
|
+
wood: 60
|
|
655
|
+
},
|
|
656
|
+
basis: "estimated",
|
|
657
|
+
sources: [
|
|
658
|
+
"Estimated from muzzle energy, bullet construction and the published anchors of this file (see _notes); refine with a datasheet."
|
|
659
|
+
]
|
|
660
|
+
},
|
|
661
|
+
{
|
|
662
|
+
id: "9x19:tracer",
|
|
663
|
+
caliber: "9x19",
|
|
664
|
+
kind: "tracer",
|
|
665
|
+
label: "9x19 tracer",
|
|
666
|
+
core: "lead",
|
|
667
|
+
jacket: "gilding_metal",
|
|
668
|
+
tracer: true,
|
|
669
|
+
penetration: {
|
|
670
|
+
steel: 2.8,
|
|
671
|
+
concrete: 22,
|
|
672
|
+
brick: 45,
|
|
673
|
+
wood: 75
|
|
674
|
+
},
|
|
675
|
+
basis: "estimated",
|
|
676
|
+
sources: [
|
|
677
|
+
"Estimated from muzzle energy, bullet construction and the published anchors of this file (see _notes); refine with a datasheet."
|
|
678
|
+
]
|
|
679
|
+
},
|
|
680
|
+
{
|
|
681
|
+
id: "5_56x45:ap",
|
|
682
|
+
caliber: "5_56x45",
|
|
683
|
+
kind: "ap",
|
|
684
|
+
label: "5.56x45 M995 AP (tungsten carbide)",
|
|
685
|
+
bulletGrams: 3.6,
|
|
686
|
+
muzzleSpeed: 1013,
|
|
687
|
+
core: "tungsten_carbide",
|
|
688
|
+
jacket: "gilding_metal",
|
|
689
|
+
penetration: {
|
|
690
|
+
steel: 10,
|
|
691
|
+
concrete: 110,
|
|
692
|
+
brick: 210,
|
|
693
|
+
wood: 300
|
|
694
|
+
},
|
|
695
|
+
basis: "estimated",
|
|
696
|
+
sources: [
|
|
697
|
+
"Estimated from muzzle energy, bullet construction and the published anchors of this file (see _notes); refine with a datasheet."
|
|
698
|
+
]
|
|
699
|
+
},
|
|
700
|
+
{
|
|
701
|
+
id: "5_56x45:tracer",
|
|
702
|
+
caliber: "5_56x45",
|
|
703
|
+
kind: "tracer",
|
|
704
|
+
label: "5.56x45 M856 tracer",
|
|
705
|
+
bulletGrams: 3.95,
|
|
706
|
+
muzzleSpeed: 914,
|
|
707
|
+
core: "lead",
|
|
708
|
+
jacket: "gilding_metal",
|
|
709
|
+
tracer: true,
|
|
710
|
+
penetration: {
|
|
711
|
+
steel: 3.5,
|
|
712
|
+
concrete: 80,
|
|
713
|
+
brick: 160,
|
|
714
|
+
wood: 260
|
|
715
|
+
},
|
|
716
|
+
basis: "estimated",
|
|
717
|
+
sources: [
|
|
718
|
+
"Estimated from muzzle energy, bullet construction and the published anchors of this file (see _notes); refine with a datasheet."
|
|
719
|
+
]
|
|
720
|
+
},
|
|
721
|
+
{
|
|
722
|
+
id: "5_45x39:tracer",
|
|
723
|
+
caliber: "5_45x39",
|
|
724
|
+
kind: "tracer",
|
|
725
|
+
label: "5.45x39 7T3M tracer",
|
|
726
|
+
core: "lead",
|
|
727
|
+
jacket: "steel",
|
|
728
|
+
tracer: true,
|
|
729
|
+
penetration: {
|
|
730
|
+
steel: 4,
|
|
731
|
+
concrete: 80,
|
|
732
|
+
brick: 160,
|
|
733
|
+
wood: 260
|
|
734
|
+
},
|
|
735
|
+
basis: "estimated",
|
|
736
|
+
sources: [
|
|
737
|
+
"Estimated from muzzle energy, bullet construction and the published anchors of this file (see _notes); refine with a datasheet."
|
|
738
|
+
]
|
|
739
|
+
},
|
|
740
|
+
{
|
|
741
|
+
id: "7_62x39:incendiary",
|
|
742
|
+
caliber: "7_62x39",
|
|
743
|
+
kind: "incendiary",
|
|
744
|
+
label: "7.62x39 BZ API",
|
|
745
|
+
bulletGrams: 7.7,
|
|
746
|
+
muzzleSpeed: 720,
|
|
747
|
+
core: "hardened_steel",
|
|
748
|
+
jacket: "steel",
|
|
749
|
+
incendiary: true,
|
|
750
|
+
penetration: {
|
|
751
|
+
steel: 8,
|
|
752
|
+
concrete: 110,
|
|
753
|
+
brick: 220,
|
|
754
|
+
wood: 300
|
|
755
|
+
},
|
|
756
|
+
basis: "estimated",
|
|
757
|
+
sources: [
|
|
758
|
+
"Estimated from muzzle energy, bullet construction and the published anchors of this file (see _notes); refine with a datasheet."
|
|
759
|
+
]
|
|
760
|
+
},
|
|
761
|
+
{
|
|
762
|
+
id: "7_62x39:tracer",
|
|
763
|
+
caliber: "7_62x39",
|
|
764
|
+
kind: "tracer",
|
|
765
|
+
label: "7.62x39 T-45 tracer",
|
|
766
|
+
core: "lead",
|
|
767
|
+
jacket: "steel",
|
|
768
|
+
tracer: true,
|
|
769
|
+
penetration: {
|
|
770
|
+
steel: 4.5,
|
|
771
|
+
concrete: 100,
|
|
772
|
+
brick: 200,
|
|
773
|
+
wood: 280
|
|
774
|
+
},
|
|
775
|
+
basis: "estimated",
|
|
776
|
+
sources: [
|
|
777
|
+
"Estimated from muzzle energy, bullet construction and the published anchors of this file (see _notes); refine with a datasheet."
|
|
778
|
+
]
|
|
779
|
+
},
|
|
780
|
+
{
|
|
781
|
+
id: "7_62x51:ap",
|
|
782
|
+
caliber: "7_62x51",
|
|
783
|
+
kind: "ap",
|
|
784
|
+
label: "7.62x51 M993 AP (tungsten carbide)",
|
|
785
|
+
bulletGrams: 8.2,
|
|
786
|
+
muzzleSpeed: 930,
|
|
787
|
+
core: "tungsten_carbide",
|
|
788
|
+
jacket: "gilding_metal",
|
|
789
|
+
penetration: {
|
|
790
|
+
steel: 18,
|
|
791
|
+
concrete: 160,
|
|
792
|
+
brick: 300,
|
|
793
|
+
wood: 360
|
|
794
|
+
},
|
|
795
|
+
basis: "published",
|
|
796
|
+
sources: [
|
|
797
|
+
"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."
|
|
798
|
+
]
|
|
799
|
+
},
|
|
800
|
+
{
|
|
801
|
+
id: "7_62x51:tracer",
|
|
802
|
+
caliber: "7_62x51",
|
|
803
|
+
kind: "tracer",
|
|
804
|
+
label: "7.62x51 M62 tracer",
|
|
805
|
+
core: "lead",
|
|
806
|
+
jacket: "gilding_metal",
|
|
807
|
+
tracer: true,
|
|
808
|
+
penetration: {
|
|
809
|
+
steel: 4,
|
|
810
|
+
concrete: 110,
|
|
811
|
+
brick: 230,
|
|
812
|
+
wood: 320
|
|
813
|
+
},
|
|
814
|
+
basis: "estimated",
|
|
815
|
+
sources: [
|
|
816
|
+
"Estimated from muzzle energy, bullet construction and the published anchors of this file (see _notes); refine with a datasheet."
|
|
817
|
+
]
|
|
818
|
+
},
|
|
819
|
+
{
|
|
820
|
+
id: "7_62x54r:ap",
|
|
821
|
+
caliber: "7_62x54r",
|
|
822
|
+
kind: "ap",
|
|
823
|
+
label: "7.62x54R 7N37 AP",
|
|
824
|
+
core: "hardened_steel",
|
|
825
|
+
jacket: "steel",
|
|
826
|
+
penetration: {
|
|
827
|
+
steel: 11,
|
|
828
|
+
concrete: 140,
|
|
829
|
+
brick: 270,
|
|
830
|
+
wood: 340
|
|
831
|
+
},
|
|
832
|
+
basis: "estimated",
|
|
833
|
+
sources: [
|
|
834
|
+
"Estimated from muzzle energy, bullet construction and the published anchors of this file (see _notes); refine with a datasheet."
|
|
835
|
+
]
|
|
836
|
+
},
|
|
837
|
+
{
|
|
838
|
+
id: "7_62x54r:incendiary",
|
|
839
|
+
caliber: "7_62x54r",
|
|
840
|
+
kind: "incendiary",
|
|
841
|
+
label: "7.62x54R B-32 API",
|
|
842
|
+
bulletGrams: 10,
|
|
843
|
+
muzzleSpeed: 830,
|
|
844
|
+
core: "hardened_steel",
|
|
845
|
+
jacket: "steel",
|
|
846
|
+
incendiary: true,
|
|
847
|
+
penetration: {
|
|
848
|
+
steel: 10,
|
|
849
|
+
concrete: 130,
|
|
850
|
+
brick: 260,
|
|
851
|
+
wood: 330
|
|
852
|
+
},
|
|
853
|
+
basis: "estimated",
|
|
854
|
+
sources: [
|
|
855
|
+
"Estimated from muzzle energy, bullet construction and the published anchors of this file (see _notes); refine with a datasheet."
|
|
856
|
+
]
|
|
857
|
+
},
|
|
858
|
+
{
|
|
859
|
+
id: "7_62x54r:tracer",
|
|
860
|
+
caliber: "7_62x54r",
|
|
861
|
+
kind: "tracer",
|
|
862
|
+
label: "7.62x54R T-46 tracer",
|
|
863
|
+
core: "lead",
|
|
864
|
+
jacket: "steel",
|
|
865
|
+
tracer: true,
|
|
866
|
+
penetration: {
|
|
867
|
+
steel: 4.5,
|
|
868
|
+
concrete: 110,
|
|
869
|
+
brick: 220,
|
|
870
|
+
wood: 300
|
|
871
|
+
},
|
|
872
|
+
basis: "estimated",
|
|
873
|
+
sources: [
|
|
874
|
+
"Estimated from muzzle energy, bullet construction and the published anchors of this file (see _notes); refine with a datasheet."
|
|
875
|
+
]
|
|
876
|
+
},
|
|
877
|
+
{
|
|
878
|
+
id: "30_06:ap",
|
|
879
|
+
caliber: "30_06",
|
|
880
|
+
kind: "ap",
|
|
881
|
+
label: ".30-06 M2 AP (hardened steel)",
|
|
882
|
+
bulletGrams: 10.8,
|
|
883
|
+
muzzleSpeed: 860,
|
|
884
|
+
core: "hardened_steel",
|
|
885
|
+
jacket: "gilding_metal",
|
|
886
|
+
penetration: {
|
|
887
|
+
steel: 10,
|
|
888
|
+
concrete: 140,
|
|
889
|
+
brick: 270,
|
|
890
|
+
wood: 340
|
|
891
|
+
},
|
|
892
|
+
basis: "estimated",
|
|
893
|
+
sources: [
|
|
894
|
+
"Estimated from muzzle energy, bullet construction and the published anchors of this file (see _notes); refine with a datasheet."
|
|
895
|
+
]
|
|
896
|
+
},
|
|
897
|
+
{
|
|
898
|
+
id: "30_06:tracer",
|
|
899
|
+
caliber: "30_06",
|
|
900
|
+
kind: "tracer",
|
|
901
|
+
label: ".30-06 M25 tracer",
|
|
902
|
+
core: "lead",
|
|
903
|
+
jacket: "gilding_metal",
|
|
904
|
+
tracer: true,
|
|
905
|
+
penetration: {
|
|
906
|
+
steel: 4,
|
|
907
|
+
concrete: 110,
|
|
908
|
+
brick: 230,
|
|
909
|
+
wood: 320
|
|
910
|
+
},
|
|
911
|
+
basis: "estimated",
|
|
912
|
+
sources: [
|
|
913
|
+
"Estimated from muzzle energy, bullet construction and the published anchors of this file (see _notes); refine with a datasheet."
|
|
914
|
+
]
|
|
915
|
+
},
|
|
916
|
+
{
|
|
917
|
+
id: "338lapua:ap",
|
|
918
|
+
caliber: "338lapua",
|
|
919
|
+
kind: "ap",
|
|
920
|
+
label: ".338 Lapua AP (tungsten)",
|
|
921
|
+
core: "tungsten_carbide",
|
|
922
|
+
jacket: "gilding_metal",
|
|
923
|
+
penetration: {
|
|
924
|
+
steel: 16,
|
|
925
|
+
concrete: 200,
|
|
926
|
+
brick: 380,
|
|
927
|
+
wood: 470
|
|
928
|
+
},
|
|
929
|
+
basis: "estimated",
|
|
930
|
+
sources: [
|
|
931
|
+
"Estimated from muzzle energy, bullet construction and the published anchors of this file (see _notes); refine with a datasheet."
|
|
932
|
+
]
|
|
933
|
+
},
|
|
934
|
+
{
|
|
935
|
+
id: "50bmg:fmj",
|
|
936
|
+
caliber: "50bmg",
|
|
937
|
+
kind: "fmj",
|
|
938
|
+
label: ".50 BMG M33 ball",
|
|
939
|
+
core: "lead_steel",
|
|
940
|
+
jacket: "gilding_metal",
|
|
941
|
+
penetration: {
|
|
942
|
+
steel: 14,
|
|
943
|
+
concrete: 330,
|
|
944
|
+
brick: 560,
|
|
945
|
+
wood: 600
|
|
946
|
+
},
|
|
947
|
+
basis: "estimated",
|
|
948
|
+
sources: [
|
|
949
|
+
"Estimated from muzzle energy, bullet construction and the published anchors of this file (see _notes); refine with a datasheet."
|
|
950
|
+
]
|
|
951
|
+
},
|
|
952
|
+
{
|
|
953
|
+
id: "50bmg:ap",
|
|
954
|
+
caliber: "50bmg",
|
|
955
|
+
kind: "ap",
|
|
956
|
+
label: ".50 BMG M2 AP (hardened steel)",
|
|
957
|
+
core: "hardened_steel",
|
|
958
|
+
jacket: "gilding_metal",
|
|
959
|
+
penetration: {
|
|
960
|
+
steel: 22,
|
|
961
|
+
concrete: 350,
|
|
962
|
+
brick: 580,
|
|
963
|
+
wood: 600
|
|
964
|
+
},
|
|
965
|
+
basis: "estimated",
|
|
966
|
+
sources: [
|
|
967
|
+
"Estimated from muzzle energy, bullet construction and the published anchors of this file (see _notes); refine with a datasheet."
|
|
968
|
+
]
|
|
969
|
+
},
|
|
970
|
+
{
|
|
971
|
+
id: "50bmg:incendiary",
|
|
972
|
+
caliber: "50bmg",
|
|
973
|
+
kind: "incendiary",
|
|
974
|
+
label: ".50 BMG M8 API",
|
|
975
|
+
core: "hardened_steel",
|
|
976
|
+
jacket: "gilding_metal",
|
|
977
|
+
incendiary: true,
|
|
978
|
+
penetration: {
|
|
979
|
+
steel: 18,
|
|
980
|
+
concrete: 340,
|
|
981
|
+
brick: 570,
|
|
982
|
+
wood: 600
|
|
983
|
+
},
|
|
984
|
+
basis: "estimated",
|
|
985
|
+
sources: [
|
|
986
|
+
"Estimated from muzzle energy, bullet construction and the published anchors of this file (see _notes); refine with a datasheet."
|
|
987
|
+
]
|
|
988
|
+
},
|
|
989
|
+
{
|
|
990
|
+
id: "50bmg:tracer",
|
|
991
|
+
caliber: "50bmg",
|
|
992
|
+
kind: "tracer",
|
|
993
|
+
label: ".50 BMG M17 tracer",
|
|
994
|
+
core: "lead",
|
|
995
|
+
jacket: "gilding_metal",
|
|
996
|
+
tracer: true,
|
|
997
|
+
penetration: {
|
|
998
|
+
steel: 9,
|
|
999
|
+
concrete: 300,
|
|
1000
|
+
brick: 520,
|
|
1001
|
+
wood: 580
|
|
1002
|
+
},
|
|
1003
|
+
basis: "estimated",
|
|
1004
|
+
sources: [
|
|
1005
|
+
"Estimated from muzzle energy, bullet construction and the published anchors of this file (see _notes); refine with a datasheet."
|
|
1006
|
+
]
|
|
1007
|
+
},
|
|
1008
|
+
{
|
|
1009
|
+
id: "12ga_00buck:incendiary",
|
|
1010
|
+
caliber: "12ga_00buck",
|
|
1011
|
+
kind: "incendiary",
|
|
1012
|
+
label: "12 ga incendiary shell (one pellet, magnesium)",
|
|
1013
|
+
core: "none",
|
|
1014
|
+
jacket: "none",
|
|
1015
|
+
incendiary: true,
|
|
1016
|
+
penetration: {
|
|
1017
|
+
steel: 0.1,
|
|
1018
|
+
concrete: 3,
|
|
1019
|
+
brick: 8,
|
|
1020
|
+
wood: 15
|
|
1021
|
+
},
|
|
1022
|
+
basis: "estimated",
|
|
1023
|
+
sources: [
|
|
1024
|
+
"Estimated from muzzle energy, bullet construction and the published anchors of this file (see _notes); refine with a datasheet."
|
|
1025
|
+
]
|
|
1026
|
+
},
|
|
1027
|
+
{
|
|
1028
|
+
id: "45_70_bp:fmj",
|
|
1029
|
+
caliber: "45_70_bp",
|
|
1030
|
+
kind: "fmj",
|
|
1031
|
+
label: ".45-70 Government 405 gr lead",
|
|
1032
|
+
core: "lead",
|
|
1033
|
+
jacket: "none",
|
|
1034
|
+
penetration: {
|
|
1035
|
+
steel: 2.5,
|
|
1036
|
+
concrete: 75,
|
|
1037
|
+
brick: 150,
|
|
1038
|
+
wood: 240
|
|
1039
|
+
},
|
|
1040
|
+
basis: "estimated",
|
|
1041
|
+
sources: [
|
|
1042
|
+
"Estimated from muzzle energy, bullet construction and the published anchors of this file (see _notes); refine with a datasheet."
|
|
1043
|
+
]
|
|
1044
|
+
}
|
|
1045
|
+
]
|
|
1046
|
+
};
|
|
1047
|
+
|
|
1048
|
+
// src/ammo.ts
|
|
1049
|
+
var AMMO = ammo_default.loads;
|
|
1050
|
+
var ammoId = (caliber, kind) => `${caliber}:${kind}`;
|
|
1051
|
+
var resolveLoad = (caliber, ammo, kind) => {
|
|
1052
|
+
const k = kind ?? caliber.kind;
|
|
1053
|
+
if (k === void 0) return null;
|
|
1054
|
+
const def = ammo.get(ammoId(caliber.id, k));
|
|
1055
|
+
if (!def) return null;
|
|
1056
|
+
const grams = def.bulletGrams ?? caliber.bulletGrams;
|
|
1057
|
+
const speed = def.muzzleSpeed ?? caliber.muzzleSpeed;
|
|
1058
|
+
return { def, kind: k, grams, speed, energy: 0.5 * (grams / 1e3) * speed * speed, penetration: def.penetration };
|
|
1059
|
+
};
|
|
1060
|
+
var ammoIgnition = (def, rules) => {
|
|
1061
|
+
const core = rules.core[def.core] ?? 0;
|
|
1062
|
+
const jacket = rules.jacket[def.jacket] ?? 0;
|
|
1063
|
+
const flame = Math.max(def.incendiary ? rules.flame.incendiary : 0, def.tracer ? rules.flame.tracer : 0);
|
|
1064
|
+
return { spark: 1 - (1 - core) * (1 - jacket), flame };
|
|
1065
|
+
};
|
|
1066
|
+
|
|
86
1067
|
// src/data/attachments.json
|
|
87
1068
|
var attachments_default = [
|
|
88
1069
|
{
|
|
@@ -1180,6 +2161,22 @@ var GameWeapons = (() => {
|
|
|
1180
2161
|
];
|
|
1181
2162
|
|
|
1182
2163
|
// ../game-contracts/dist/index.js
|
|
2164
|
+
var DEFAULT_IGNITION_RULES = {
|
|
2165
|
+
fillCurve: [
|
|
2166
|
+
[0, 0.6],
|
|
2167
|
+
[0.1, 1],
|
|
2168
|
+
[0.35, 0.6],
|
|
2169
|
+
[0.65, 0.3],
|
|
2170
|
+
[0.9, 0.15],
|
|
2171
|
+
[1, 0.12]
|
|
2172
|
+
],
|
|
2173
|
+
flameFillInfluence: 0.5,
|
|
2174
|
+
flameDefaults: { incendiary: 0.7, tracer: 0.2 },
|
|
2175
|
+
sparkTarget: { steel: 1, iron: 1, aluminium: 0.25 },
|
|
2176
|
+
sparkMetalDefault: 0.5,
|
|
2177
|
+
sparkFluid: { diesel: 0.15 },
|
|
2178
|
+
fireNear: { radius: 1.5, chancePerSecond: 0.5 }
|
|
2179
|
+
};
|
|
1183
2180
|
var UNSAFE_KEYS = /* @__PURE__ */ new Set(["__proto__", "constructor", "prototype"]);
|
|
1184
2181
|
var isPlainObject = (value) => typeof value === "object" && value !== null && !Array.isArray(value) && Object.getPrototypeOf(value) === Object.prototype;
|
|
1185
2182
|
var deepMerge = (base, patch) => {
|
|
@@ -1610,6 +2607,7 @@ var GameWeapons = (() => {
|
|
|
1610
2607
|
magazine: 6,
|
|
1611
2608
|
reload: 0.6,
|
|
1612
2609
|
perRound: true,
|
|
2610
|
+
family: "pump",
|
|
1613
2611
|
barrel: 1,
|
|
1614
2612
|
spreadDeg: 1,
|
|
1615
2613
|
bloomDeg: 0.5,
|
|
@@ -2683,6 +3681,7 @@ var GameWeapons = (() => {
|
|
|
2683
3681
|
dragPer100m: 0.12,
|
|
2684
3682
|
kind: "arrow",
|
|
2685
3683
|
noise: 20,
|
|
3684
|
+
propellant: "none",
|
|
2686
3685
|
sources: [
|
|
2687
3686
|
"sdk"
|
|
2688
3687
|
]
|
|
@@ -2696,6 +3695,7 @@ var GameWeapons = (() => {
|
|
|
2696
3695
|
dragPer100m: 0.12,
|
|
2697
3696
|
kind: "bolt",
|
|
2698
3697
|
noise: 25,
|
|
3698
|
+
propellant: "none",
|
|
2699
3699
|
sources: [
|
|
2700
3700
|
"sdk"
|
|
2701
3701
|
]
|
|
@@ -2743,6 +3743,28 @@ var GameWeapons = (() => {
|
|
|
2743
3743
|
"reference",
|
|
2744
3744
|
"derived"
|
|
2745
3745
|
]
|
|
3746
|
+
},
|
|
3747
|
+
{
|
|
3748
|
+
id: "45_70_bp",
|
|
3749
|
+
label: ".45-70 Government (black powder)",
|
|
3750
|
+
diameter: 11.43,
|
|
3751
|
+
bulletGrams: 26.2,
|
|
3752
|
+
muzzleSpeed: 400,
|
|
3753
|
+
dragPer100m: 0.09,
|
|
3754
|
+
kind: "fmj",
|
|
3755
|
+
noise: 350,
|
|
3756
|
+
caseType: "rifle",
|
|
3757
|
+
rim: "rimmed",
|
|
3758
|
+
propellant: "black_powder",
|
|
3759
|
+
cartridge: {
|
|
3760
|
+
caseDiameter: 12.07,
|
|
3761
|
+
overallLength: 66.5,
|
|
3762
|
+
caseLength: 53.3,
|
|
3763
|
+
projectileDiameter: 11.43
|
|
3764
|
+
},
|
|
3765
|
+
sources: [
|
|
3766
|
+
"sdk"
|
|
3767
|
+
]
|
|
2746
3768
|
}
|
|
2747
3769
|
];
|
|
2748
3770
|
|
|
@@ -2839,6 +3861,18 @@ var GameWeapons = (() => {
|
|
|
2839
3861
|
0.6
|
|
2840
3862
|
]
|
|
2841
3863
|
},
|
|
3864
|
+
mass: 28,
|
|
3865
|
+
leak: {
|
|
3866
|
+
fluid: "gas",
|
|
3867
|
+
liters: 24,
|
|
3868
|
+
pressurized: true,
|
|
3869
|
+
igniteDelay: 0.8,
|
|
3870
|
+
hissSeconds: 0.8
|
|
3871
|
+
},
|
|
3872
|
+
shell: {
|
|
3873
|
+
launchSpeed: 13,
|
|
3874
|
+
trailSeconds: 1.8
|
|
3875
|
+
},
|
|
2842
3876
|
sources: [
|
|
2843
3877
|
"arsenal",
|
|
2844
3878
|
"lab",
|
|
@@ -11411,6 +12445,8 @@ var GameWeapons = (() => {
|
|
|
11411
12445
|
if (explosive.fuseLength !== void 0 && !(explosive.fuseLength > 0)) problems.push(`explosive "${explosive.id}" has a fuse length of ${explosive.fuseLength} m`);
|
|
11412
12446
|
if (explosive.burnRate !== void 0 && !(explosive.burnRate > 0)) problems.push(`explosive "${explosive.id}" has a burn rate of ${explosive.burnRate} s/m`);
|
|
11413
12447
|
if (explosive.burnTolerance !== void 0 && !(explosive.burnTolerance >= 0 && explosive.burnTolerance < 1)) problems.push(`explosive "${explosive.id}" has a burn tolerance of ${explosive.burnTolerance}`);
|
|
12448
|
+
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`);
|
|
12449
|
+
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`);
|
|
11414
12450
|
if (explosive.tripwire && !(explosive.tripwire.length > 0)) problems.push(`explosive "${explosive.id}" has a trip wire of ${explosive.tripwire.length} m`);
|
|
11415
12451
|
return problems;
|
|
11416
12452
|
};
|
|
@@ -11445,10 +12481,26 @@ var GameWeapons = (() => {
|
|
|
11445
12481
|
if (!rules.ammoQualities.some((quality) => quality.id === rules.defaultAmmoQuality)) problems.push(`the default ammunition quality "${rules.defaultAmmoQuality}" is not one of the qualities`);
|
|
11446
12482
|
return problems;
|
|
11447
12483
|
};
|
|
11448
|
-
var
|
|
12484
|
+
var PENETRATION_KEYS = ["steel", "concrete", "brick", "wood"];
|
|
12485
|
+
var checkAmmo = (ammo, calibers) => {
|
|
12486
|
+
if (!ammo) return [];
|
|
12487
|
+
const problems = [];
|
|
12488
|
+
for (const load of ammo.values()) {
|
|
12489
|
+
const label = `ammo "${load.id}"`;
|
|
12490
|
+
if (load.id !== `${load.caliber}:${load.kind}`) problems.push(`${label} should be called "${load.caliber}:${load.kind}"`);
|
|
12491
|
+
if (!calibers.has(load.caliber)) problems.push(`${label} is for unknown calibre "${load.caliber}"`);
|
|
12492
|
+
if (load.bulletGrams !== void 0 && !(load.bulletGrams > 0)) problems.push(`${label} weighs ${load.bulletGrams} g`);
|
|
12493
|
+
if (load.muzzleSpeed !== void 0 && !(load.muzzleSpeed > 0)) problems.push(`${label} leaves at ${load.muzzleSpeed} m/s`);
|
|
12494
|
+
for (const key of PENETRATION_KEYS) if (!(load.penetration?.[key] >= 0)) problems.push(`${label} has no penetration for ${key}`);
|
|
12495
|
+
}
|
|
12496
|
+
for (const caliber of calibers.values()) if (caliber.kind !== void 0 && !ammo.has(`${caliber.id}:${caliber.kind}`)) problems.push(`calibre "${caliber.id}" has no ammo "${caliber.id}:${caliber.kind}" in the table`);
|
|
12497
|
+
return problems;
|
|
12498
|
+
};
|
|
12499
|
+
var checkArsenal = ({ weapons, calibers, explosives, attachments, ammo, rules }) => [
|
|
11449
12500
|
...[...weapons.values()].flatMap((def) => [...checkFirearm(def, calibers), ...checkTimings(def), ...checkExplosiveReference(def, explosives), ...checkFitted(def, attachments)]),
|
|
11450
12501
|
...[...attachments?.values() ?? []].flatMap((attachment) => checkAttachment(attachment, weapons)),
|
|
11451
12502
|
...[...explosives.values()].flatMap(checkExplosiveNumbers),
|
|
12503
|
+
...checkAmmo(ammo, calibers),
|
|
11452
12504
|
...checkRuleDefaults(rules)
|
|
11453
12505
|
];
|
|
11454
12506
|
|
|
@@ -11523,11 +12575,34 @@ var GameWeapons = (() => {
|
|
|
11523
12575
|
hacksaw: "Hacksaw",
|
|
11524
12576
|
utility_knife: "Utility knife",
|
|
11525
12577
|
claw_hammer: "Claw hammer",
|
|
11526
|
-
extinguisher: "Fire extinguisher"
|
|
12578
|
+
extinguisher: "Fire extinguisher",
|
|
12579
|
+
boito_double_barrel: "Boito double-barrel",
|
|
12580
|
+
hunting_rifle_30_06: ".30-06 hunting rifle",
|
|
12581
|
+
m2_flamethrower: "M2 flamethrower",
|
|
12582
|
+
improvised_flamethrower: "Improvised flamethrower",
|
|
12583
|
+
m79: "M79 grenade launcher"
|
|
11527
12584
|
},
|
|
11528
12585
|
modes: modesEn,
|
|
11529
12586
|
categories: categoriesEn,
|
|
11530
|
-
explosives: {
|
|
12587
|
+
explosives: {
|
|
12588
|
+
m67: "M67 fragmentation grenade",
|
|
12589
|
+
molotov: "Molotov cocktail",
|
|
12590
|
+
pipe_bomb: "Pipe bomb",
|
|
12591
|
+
propane_p13: "P13 propane cylinder",
|
|
12592
|
+
dynamite: "Dynamite",
|
|
12593
|
+
c4: "C4 charge",
|
|
12594
|
+
claymore: "Claymore mine",
|
|
12595
|
+
flashbang: "Flashbang",
|
|
12596
|
+
m79_40mm: "40 mm grenade",
|
|
12597
|
+
m72_66mm: "66 mm HEAT rocket",
|
|
12598
|
+
at4_84mm: "84 mm HEAT rocket",
|
|
12599
|
+
pg7v: "PG-7V rocket",
|
|
12600
|
+
carl_gustaf_84mm: "84 mm HE/HEAT round",
|
|
12601
|
+
fuel_barrel: "Fuel barrel",
|
|
12602
|
+
car_fuel_tank: "Car fuel tank",
|
|
12603
|
+
fuel_pump: "Fuel pump",
|
|
12604
|
+
fuel_station_tank: "Fuel station tank"
|
|
12605
|
+
},
|
|
11531
12606
|
faults: faultsEn,
|
|
11532
12607
|
conditions: conditionsEn
|
|
11533
12608
|
},
|
|
@@ -11667,8 +12742,13 @@ var GameWeapons = (() => {
|
|
|
11667
12742
|
decayPerPoint: 0.03,
|
|
11668
12743
|
faultFrom: 60,
|
|
11669
12744
|
faultSpan: 40,
|
|
11670
|
-
perShot: { shell:
|
|
11671
|
-
perRocket: 35
|
|
12745
|
+
perShot: { shell: 3, big: 6, tiny: 0.5, pistol: 1.2, rifle: 2 },
|
|
12746
|
+
perRocket: 35,
|
|
12747
|
+
visual: { smokeFrom: 70, smokeSeconds: 2.5, glowFrom: 80, glowSpan: 40 }
|
|
12748
|
+
};
|
|
12749
|
+
var GALLERY_HEAT = {
|
|
12750
|
+
...DEFAULT_HEAT,
|
|
12751
|
+
perShot: { shell: 6, big: 9, tiny: 1.2, pistol: 3, rifle: 4.5 }
|
|
11672
12752
|
};
|
|
11673
12753
|
var defaultFaultChance = (context) => {
|
|
11674
12754
|
const factor = context.def.action.kind === "firearm" ? context.def.action.faultFactor ?? 1 : 1;
|
|
@@ -11708,6 +12788,14 @@ var GameWeapons = (() => {
|
|
|
11708
12788
|
{ stat: "spread", mul: 1.15 }
|
|
11709
12789
|
]
|
|
11710
12790
|
},
|
|
12791
|
+
// 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
|
|
12792
|
+
// 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
|
|
12793
|
+
// 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.
|
|
12794
|
+
ignition: {
|
|
12795
|
+
core: { lead: 5e-3, lead_steel: 0.04, steel: 0.12, hardened_steel: 0.25, tungsten_carbide: 0.25, copper: 0.01, none: 0 },
|
|
12796
|
+
jacket: { gilding_metal: 5e-3, copper: 5e-3, brass: 0.01, steel: 0.08, none: 0 },
|
|
12797
|
+
flame: { incendiary: DEFAULT_IGNITION_RULES.flameDefaults.incendiary, tracer: DEFAULT_IGNITION_RULES.flameDefaults.tracer }
|
|
12798
|
+
},
|
|
11711
12799
|
draw: 0.35,
|
|
11712
12800
|
clear: 1.2,
|
|
11713
12801
|
startSafe: false
|
|
@@ -11993,6 +13081,7 @@ var GameWeapons = (() => {
|
|
|
11993
13081
|
{ stage: "cover_close", at: 0.581 },
|
|
11994
13082
|
{ stage: "charge", at: 0.742 }
|
|
11995
13083
|
];
|
|
13084
|
+
var LOADS_THEN_WORKS = /* @__PURE__ */ new Set(["top_load_semi", "tube_semi", "pump", "lever"]);
|
|
11996
13085
|
var RELOAD_STAGES = {
|
|
11997
13086
|
pistol: byMagazine(0.872),
|
|
11998
13087
|
magazine: byMagazine(0.701),
|
|
@@ -12033,6 +13122,8 @@ var GameWeapons = (() => {
|
|
|
12033
13122
|
};
|
|
12034
13123
|
|
|
12035
13124
|
// src/reload.ts
|
|
13125
|
+
var ACTION_WORK_SECONDS = 0.5;
|
|
13126
|
+
var ACTION_DELAY_SECONDS = 0.6;
|
|
12036
13127
|
var isReloadable = (action) => action.kind === "firearm" || action.kind === "launcher";
|
|
12037
13128
|
var baseSeconds = (action) => action.timings?.reload ?? action.reload;
|
|
12038
13129
|
var secondsPerRound = (action) => {
|
|
@@ -12048,14 +13139,19 @@ var GameWeapons = (() => {
|
|
|
12048
13139
|
};
|
|
12049
13140
|
var planReload = (action, ammo, capacity, reserve, request) => {
|
|
12050
13141
|
const perRound = secondsPerRound(action);
|
|
13142
|
+
const revolver = action.kind === "firearm" && action.family === "revolver";
|
|
12051
13143
|
const oneAtATime = perRound !== void 0 && request !== "full";
|
|
12052
13144
|
const kind = pickKind(action, ammo, oneAtATime, request);
|
|
12053
|
-
if (kind === "one_by_one" &&
|
|
13145
|
+
if (perRound !== void 0 && oneAtATime && (kind === "one_by_one" || kind === "empty" && action.kind === "firearm" && !revolver)) {
|
|
12054
13146
|
const rounds = Math.max(1, Math.min(capacity - ammo, reserve));
|
|
12055
|
-
|
|
13147
|
+
const loading = rounds * perRound;
|
|
13148
|
+
const works = kind === "empty" && action.kind === "firearm" && action.family !== void 0 && LOADS_THEN_WORKS.has(action.family);
|
|
13149
|
+
const closingAt = works && action.family ? RELOAD_STAGES[action.family].empty.find((entry) => entry.stage !== "round_in")?.at ?? 0.88 : 0.88;
|
|
13150
|
+
const tail = works ? Math.max(ACTION_DELAY_SECONDS + (action.timings?.cycle ?? ACTION_WORK_SECONDS), (loading + ACTION_DELAY_SECONDS) / closingAt - loading) : 0;
|
|
13151
|
+
return { kind, step: perRound, first: perRound, total: loading + tail, rounds, tail };
|
|
12056
13152
|
}
|
|
12057
13153
|
const seconds = kind === "empty" ? action.timings?.reloadEmpty ?? baseSeconds(action) : baseSeconds(action);
|
|
12058
|
-
return { kind, step: null, first: seconds, total: seconds };
|
|
13154
|
+
return { kind, step: null, first: seconds, total: seconds, rounds: 0, tail: 0 };
|
|
12059
13155
|
};
|
|
12060
13156
|
var reloadStages = (action, plan, startAt) => {
|
|
12061
13157
|
if (!action.family) return [];
|
|
@@ -12263,6 +13359,8 @@ var GameWeapons = (() => {
|
|
|
12263
13359
|
__publicField(this, "reloadEnd", 0);
|
|
12264
13360
|
/** Seconds per round while a one-by-one reload runs; null when the magazine goes in at once. */
|
|
12265
13361
|
__publicField(this, "loadStep", null);
|
|
13362
|
+
/** Seconds of the action worked after the last round of an empty tube. */
|
|
13363
|
+
__publicField(this, "reloadTail", 0);
|
|
12266
13364
|
__publicField(this, "_locked", false);
|
|
12267
13365
|
__publicField(this, "reloadKind", "tactical");
|
|
12268
13366
|
__publicField(this, "drawEnd", 0);
|
|
@@ -12273,6 +13371,9 @@ var GameWeapons = (() => {
|
|
|
12273
13371
|
__publicField(this, "_heat", 0);
|
|
12274
13372
|
__publicField(this, "_condition");
|
|
12275
13373
|
__publicField(this, "_ammoQuality");
|
|
13374
|
+
/** Kind of round loaded; undefined = the calibre's own. */
|
|
13375
|
+
__publicField(this, "_ammoKind");
|
|
13376
|
+
__publicField(this, "ammoTable");
|
|
12276
13377
|
/** Times of the shots that still count for the noise of a burst. */
|
|
12277
13378
|
__publicField(this, "recentShots", []);
|
|
12278
13379
|
__publicField(this, "events", []);
|
|
@@ -12288,6 +13389,8 @@ var GameWeapons = (() => {
|
|
|
12288
13389
|
this.faultRng = createRng((init.seed ^ FAULT_RNG_SALT) >>> 0);
|
|
12289
13390
|
this.fuseRng = createRng((init.seed ^ FUSE_RNG_SALT) >>> 0);
|
|
12290
13391
|
this.explosive = init.explosive ?? null;
|
|
13392
|
+
this.ammoTable = init.ammo;
|
|
13393
|
+
this._ammoKind = init.ammoKind ?? init.snapshot?.ammoKind;
|
|
12291
13394
|
this._safety = init.rules.startSafe;
|
|
12292
13395
|
this._condition = findById(init.rules.conditions, init.condition ?? init.rules.defaultCondition, "condition");
|
|
12293
13396
|
this._ammoQuality = findById(init.rules.ammoQualities, init.ammoQuality ?? init.rules.defaultAmmoQuality, "ammo quality");
|
|
@@ -12353,6 +13456,9 @@ var GameWeapons = (() => {
|
|
|
12353
13456
|
get condition() {
|
|
12354
13457
|
return this._condition.id;
|
|
12355
13458
|
}
|
|
13459
|
+
get ammoKind() {
|
|
13460
|
+
return this._ammoKind ?? this.caliber?.kind;
|
|
13461
|
+
}
|
|
12356
13462
|
get ammoQuality() {
|
|
12357
13463
|
return this._ammoQuality.id;
|
|
12358
13464
|
}
|
|
@@ -12413,8 +13519,13 @@ var GameWeapons = (() => {
|
|
|
12413
13519
|
this.reserve -= 1;
|
|
12414
13520
|
this.emit({ type: "feed", at: doneAt });
|
|
12415
13521
|
}
|
|
12416
|
-
if (this._ammo >= this._capacity || this.reserve <= 0)
|
|
12417
|
-
|
|
13522
|
+
if (this._ammo >= this._capacity || this.reserve <= 0) {
|
|
13523
|
+
this.loadStep = null;
|
|
13524
|
+
if (this.reloadTail > 0) {
|
|
13525
|
+
this.reloadEnd = doneAt + this.reloadTail;
|
|
13526
|
+
this.reloadTail = 0;
|
|
13527
|
+
} else this.finishReload(doneAt);
|
|
13528
|
+
} else this.reloadEnd += this.loadStep;
|
|
12418
13529
|
} else {
|
|
12419
13530
|
const take = Math.min(this._capacity - this._ammo, this.reserve);
|
|
12420
13531
|
this._ammo += take;
|
|
@@ -12468,6 +13579,12 @@ var GameWeapons = (() => {
|
|
|
12468
13579
|
setAmmoQuality(id) {
|
|
12469
13580
|
this._ammoQuality = findById(this.rules.ammoQualities, id, "ammo quality");
|
|
12470
13581
|
}
|
|
13582
|
+
setAmmoKind(kind) {
|
|
13583
|
+
const cal = this.caliber;
|
|
13584
|
+
if (!cal) throw new Error(`game-weapons: "${this.def.id}" has no calibre to load`);
|
|
13585
|
+
if (!this.ammoTable?.has(ammoId(cal.id, kind))) throw new Error(`game-weapons: no ammo "${ammoId(cal.id, kind)}" in the table`);
|
|
13586
|
+
this._ammoKind = kind;
|
|
13587
|
+
}
|
|
12471
13588
|
setFuseLength(metres) {
|
|
12472
13589
|
this.fuseLengthOverride = metres;
|
|
12473
13590
|
}
|
|
@@ -12495,6 +13612,7 @@ var GameWeapons = (() => {
|
|
|
12495
13612
|
const plan = planReload(a, this._ammo, this._capacity, this.reserve, request);
|
|
12496
13613
|
this._reloading = true;
|
|
12497
13614
|
this.loadStep = plan.step;
|
|
13615
|
+
this.reloadTail = plan.tail;
|
|
12498
13616
|
this.reloadKind = plan.kind;
|
|
12499
13617
|
this.reloadEnd = this.clock + plan.first;
|
|
12500
13618
|
this._phase = { id: "reload", start: this.clock, end: this.clock + plan.total };
|
|
@@ -12777,6 +13895,7 @@ var GameWeapons = (() => {
|
|
|
12777
13895
|
mode: this.mode,
|
|
12778
13896
|
condition: this._condition.id,
|
|
12779
13897
|
ammoQuality: this._ammoQuality.id,
|
|
13898
|
+
...this._ammoKind !== void 0 ? { ammoKind: this._ammoKind } : {},
|
|
12780
13899
|
...launcher ? { underbarrel: launcher } : {}
|
|
12781
13900
|
};
|
|
12782
13901
|
}
|
|
@@ -12905,8 +14024,10 @@ var GameWeapons = (() => {
|
|
|
12905
14024
|
fireOne(a, origin, dir, t, res, source) {
|
|
12906
14025
|
const cal = this.caliber;
|
|
12907
14026
|
const isFirstRound = res.shots.length === 0;
|
|
12908
|
-
const
|
|
12909
|
-
const
|
|
14027
|
+
const load = this.ammoTable ? resolveLoad(cal, this.ammoTable, this._ammoKind) : null;
|
|
14028
|
+
const speed = load && load.speed !== cal.muzzleSpeed ? weaponSpeed(a, cal) * (load.speed / cal.muzzleSpeed) : weaponSpeed(a, cal);
|
|
14029
|
+
const grams = load ? load.grams : cal.bulletGrams;
|
|
14030
|
+
const energy = 0.5 * (grams / 1e3) * speed * speed;
|
|
12910
14031
|
const drag = cal.dragPer100m ?? 0.1;
|
|
12911
14032
|
const energyAt = (distance2) => {
|
|
12912
14033
|
const f = Math.pow(1 - drag, Math.max(0, distance2) / 100);
|
|
@@ -12925,12 +14046,19 @@ var GameWeapons = (() => {
|
|
|
12925
14046
|
caliber: cal.diameter,
|
|
12926
14047
|
caliberId: cal.id,
|
|
12927
14048
|
speed,
|
|
12928
|
-
mass:
|
|
14049
|
+
mass: grams,
|
|
12929
14050
|
energyAt,
|
|
12930
14051
|
pellet: p,
|
|
12931
14052
|
weapon: this.def.id
|
|
12932
14053
|
};
|
|
12933
14054
|
if (source !== void 0) shot.source = source;
|
|
14055
|
+
if (load) {
|
|
14056
|
+
shot.ammo = load.kind;
|
|
14057
|
+
shot.penetration = { ...load.penetration };
|
|
14058
|
+
if (load.def.incendiary) shot.incendiary = true;
|
|
14059
|
+
if (load.def.tracer) shot.tracer = true;
|
|
14060
|
+
shot.ignition = ammoIgnition(load.def, this.rules.ignition);
|
|
14061
|
+
}
|
|
12934
14062
|
res.shots.push(shot);
|
|
12935
14063
|
}
|
|
12936
14064
|
this._ammo -= 1;
|
|
@@ -13162,15 +14290,18 @@ var GameWeapons = (() => {
|
|
|
13162
14290
|
var createArsenal = (options = {}) => {
|
|
13163
14291
|
const calibers = mergeById(CALIBERS, options.calibers);
|
|
13164
14292
|
const explosives = mergeById(EXPLOSIVES, options.explosives);
|
|
14293
|
+
const ammo = mergeById(AMMO, options.ammo);
|
|
13165
14294
|
const weapons = mergeById(WEAPONS, options.weapons);
|
|
13166
14295
|
const attachments = mergeById(ATTACHMENTS, options.attachments);
|
|
13167
14296
|
applyPatches(calibers, options.patch?.calibers);
|
|
13168
14297
|
applyPatches(explosives, options.patch?.explosives);
|
|
14298
|
+
applyPatches(ammo, options.patch?.ammo);
|
|
13169
14299
|
applyPatches(attachments, options.patch?.attachments);
|
|
13170
14300
|
resolveThrowables(weapons, explosives);
|
|
13171
14301
|
applyPatches(weapons, options.patch?.weapons);
|
|
13172
14302
|
removeIds(calibers, options.remove?.calibers);
|
|
13173
14303
|
removeIds(explosives, options.remove?.explosives);
|
|
14304
|
+
removeIds(ammo, options.remove?.ammo);
|
|
13174
14305
|
removeIds(attachments, options.remove?.attachments);
|
|
13175
14306
|
removeIds(weapons, options.remove?.weapons);
|
|
13176
14307
|
if (options.include) {
|
|
@@ -13182,8 +14313,9 @@ var GameWeapons = (() => {
|
|
|
13182
14313
|
...findDuplicateIds("calibre", options.calibers),
|
|
13183
14314
|
...findDuplicateIds("weapon", options.weapons),
|
|
13184
14315
|
...findDuplicateIds("explosive", options.explosives),
|
|
14316
|
+
...findDuplicateIds("ammo", options.ammo),
|
|
13185
14317
|
...findDuplicateIds("attachment", options.attachments),
|
|
13186
|
-
...checkArsenal({ weapons, calibers, explosives, attachments, rules })
|
|
14318
|
+
...checkArsenal({ weapons, calibers, explosives, attachments, ammo, rules })
|
|
13187
14319
|
];
|
|
13188
14320
|
if (problems.length > 0) throw new Error(`game-weapons: the arsenal is not consistent:
|
|
13189
14321
|
${problems.map((problem) => ` - ${problem}`).join("\n")}`);
|
|
@@ -13197,12 +14329,13 @@ ${problems.map((problem) => ` - ${problem}`).join("\n")}`);
|
|
|
13197
14329
|
counter += 1;
|
|
13198
14330
|
const seed = opts.seed ?? baseSeed + Math.imul(counter, 2654435761) >>> 0;
|
|
13199
14331
|
const explosive = explosiveOf(def, explosives);
|
|
13200
|
-
return new WeaponRuntime({ def, caliber, seed, reserve: opts.reserve, rules, explosive, condition: opts.condition, ammoQuality: opts.ammoQuality, attachments, isCompatible: options.isCompatible, snapshot: opts.snapshot, makeUnderbarrel: (launcherId, launcherSeed, launcherSnapshot) => create(launcherId, { seed: launcherSeed, snapshot: launcherSnapshot }) });
|
|
14332
|
+
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 }) });
|
|
13201
14333
|
};
|
|
13202
14334
|
return {
|
|
13203
14335
|
calibers,
|
|
13204
14336
|
weapons,
|
|
13205
14337
|
explosives,
|
|
14338
|
+
ammo,
|
|
13206
14339
|
attachments,
|
|
13207
14340
|
rules,
|
|
13208
14341
|
create,
|
|
@@ -13216,7 +14349,14 @@ ${problems.map((problem) => ` - ${problem}`).join("\n")}`);
|
|
|
13216
14349
|
return canFit(def, part, fitted, { caliber, catalogue: attachments, isCompatible: options.isCompatible }, opts.mount);
|
|
13217
14350
|
},
|
|
13218
14351
|
restore(snapshot, opts = {}) {
|
|
13219
|
-
return create(snapshot.id, { seed: opts.seed, reserve: snapshot.reserve, condition: snapshot.condition, ammoQuality: snapshot.ammoQuality, snapshot });
|
|
14352
|
+
return create(snapshot.id, { seed: opts.seed, reserve: snapshot.reserve, condition: snapshot.condition, ammoQuality: snapshot.ammoQuality, ammoKind: snapshot.ammoKind, snapshot });
|
|
14353
|
+
},
|
|
14354
|
+
loadOf(caliber, kind) {
|
|
14355
|
+
const c = calibers.get(caliber);
|
|
14356
|
+
if (!c) throw new Error(`game-weapons: unknown calibre "${caliber}"`);
|
|
14357
|
+
const load = resolveLoad(c, ammo, kind);
|
|
14358
|
+
if (!load) throw new Error(`game-weapons: no ammo "${caliber}:${kind ?? c.kind ?? ""}" in the table`);
|
|
14359
|
+
return load;
|
|
13220
14360
|
},
|
|
13221
14361
|
muzzleEnergy(caliber, barrel = 1) {
|
|
13222
14362
|
const c = calibers.get(caliber);
|
|
@@ -13278,6 +14418,74 @@ ${problems.map((problem) => ` - ${problem}`).join("\n")}`);
|
|
|
13278
14418
|
const from = [use.origin[0], use.origin[1] + wire.height, use.origin[2]];
|
|
13279
14419
|
return { from, to: [from[0] + dx * wire.length, from[1], from[2] + dz * wire.length] };
|
|
13280
14420
|
};
|
|
14421
|
+
|
|
14422
|
+
// src/data/muzzle-smoke.json
|
|
14423
|
+
var muzzle_smoke_default = {
|
|
14424
|
+
smokeless: {
|
|
14425
|
+
puffs: 2,
|
|
14426
|
+
radius: 0.01,
|
|
14427
|
+
opacity: 0.14,
|
|
14428
|
+
life: 0.7,
|
|
14429
|
+
drift: 0.2,
|
|
14430
|
+
rise: 0.06,
|
|
14431
|
+
growth: 2.1,
|
|
14432
|
+
flash: 1
|
|
14433
|
+
},
|
|
14434
|
+
black_powder: {
|
|
14435
|
+
puffs: 8,
|
|
14436
|
+
radius: 0.022,
|
|
14437
|
+
opacity: 0.55,
|
|
14438
|
+
life: 5.5,
|
|
14439
|
+
drift: 0.12,
|
|
14440
|
+
rise: 0.04,
|
|
14441
|
+
growth: 2.8,
|
|
14442
|
+
flash: 1
|
|
14443
|
+
},
|
|
14444
|
+
suppressed: {
|
|
14445
|
+
puffs: 1,
|
|
14446
|
+
radius: 6e-3,
|
|
14447
|
+
opacity: 0.08,
|
|
14448
|
+
life: 0.5,
|
|
14449
|
+
drift: 0.15,
|
|
14450
|
+
rise: 0.05,
|
|
14451
|
+
growth: 2.1,
|
|
14452
|
+
flash: 0.15
|
|
14453
|
+
},
|
|
14454
|
+
none: {
|
|
14455
|
+
puffs: 0,
|
|
14456
|
+
radius: 0,
|
|
14457
|
+
opacity: 0,
|
|
14458
|
+
life: 0,
|
|
14459
|
+
drift: 0,
|
|
14460
|
+
rise: 0,
|
|
14461
|
+
growth: 0,
|
|
14462
|
+
flash: 0
|
|
14463
|
+
},
|
|
14464
|
+
gallery: {
|
|
14465
|
+
puffs: 6,
|
|
14466
|
+
radius: 0.013,
|
|
14467
|
+
opacity: 0.45,
|
|
14468
|
+
life: 1.3,
|
|
14469
|
+
lifeSpread: 0.6,
|
|
14470
|
+
drift: 0.15,
|
|
14471
|
+
driftSpread: 0.35,
|
|
14472
|
+
rise: 0.03,
|
|
14473
|
+
riseSpread: 0.12,
|
|
14474
|
+
sideSpread: 0.14,
|
|
14475
|
+
growth: 2.1,
|
|
14476
|
+
flash: 1
|
|
14477
|
+
}
|
|
14478
|
+
};
|
|
14479
|
+
|
|
14480
|
+
// src/muzzle-smoke.ts
|
|
14481
|
+
var MUZZLE_SMOKE = muzzle_smoke_default;
|
|
14482
|
+
function muzzleSmokeOf({ caliber, weapon, suppressed }) {
|
|
14483
|
+
if (suppressed) return MUZZLE_SMOKE.suppressed;
|
|
14484
|
+
const override = weapon?.muzzleSmoke;
|
|
14485
|
+
if (override && override in MUZZLE_SMOKE) return MUZZLE_SMOKE[override];
|
|
14486
|
+
const id = caliber?.propellant === "black_powder" ? "black_powder" : caliber?.propellant === "none" ? "none" : "smokeless";
|
|
14487
|
+
return MUZZLE_SMOKE[id];
|
|
14488
|
+
}
|
|
13281
14489
|
return __toCommonJS(index_exports);
|
|
13282
14490
|
})();
|
|
13283
14491
|
//# sourceMappingURL=index.global.js.map
|