Author and import the entity side of a DayZ firearm (rifle, SMG or pistol): .p3d bolt/trigger/magazine selections and memory points, player-bone remap, CfgWeapons/config.cpp inheritance, chamberableFrom, magazines, semi/full-auto modes, dispersion/recoil/jam, attachment/optic slots, muzzle/ejection points, winding and serve-binarized paths. Use for custom weapon imports, CfgWeapons/base selection, bolt or trigger static, deformed mesh, magazine or optic not attaching, muzzle/ejection misplace...
Installs into .claude/skills of the current project.
Sponsors
SSkills DirectorySkills Directory
Know which skills are safe — weekly.
SSkills DirectorySkills Directory
Is that skill safe to install?
Are you the author of Dayz Weapons?
Add the live security badge to your README. It updates with every re-scan.
[](https://www.skillsdirectory.com/skills/willy92wins-dayz-weapons)
---
name: dayz-weapons
description: >
Author and import the entity side of a DayZ firearm (rifle, SMG or pistol):
.p3d bolt/trigger/magazine selections and memory points, player-bone remap,
CfgWeapons/config.cpp inheritance, chamberableFrom, magazines, semi/full-auto
modes, dispersion/recoil/jam, attachment/optic slots, muzzle/ejection points,
winding and serve-binarized paths. Use for custom weapon imports,
CfgWeapons/base selection, bolt or trigger static, deformed mesh, magazine or
optic not attaching, muzzle/ejection misplaced, chamber/jam, missing fire
mode, white/invisible weapon or crash on equip; triggers include
AddItemBoneRemap, Weapon_Bolt, Weapon_Trigger and Mode_*. Grip/hand pose, ADS,
reload, fire and jam animations belong to dayz-animation-pipeline. Use
dayz-vehicles/dayz-characters/dayz-model-pipeline for those domains.
Also 1.30: GetExplosiveEffectData, ExplosiveEffectData, Get*PistolAnimState,
the Nasdara SCARL/Luger/LeeEnfield/MP18 (script-only on 1.30.164014, in
weapons_nasdara.pbo since 1.30.164200).
---
# DayZ Firearm Modding — the ENTITY side
A custom firearm in DayZ extends the vanilla `Weapon` chain — you do NOT build one from `EntityAI`.
Inheriting the config base of the vanilla/pack weapon whose ammo, mags, recoil, sounds and anims you
want gives all of that for free; you author only the mesh, the `.p3d` part contract, the config deltas,
and the import transform. This skill is the **entity** layer: the `.p3d` selection + memory-point
contract, the bone-remap glue, the CfgWeapons config, and the model-path / winding / serve-binarized
invariants that gate whether the build loads at all.
**FRONTIER — this skill is NOT weapon animation.** Grip / hand pose / ADS line, and the MOTION of the
bolt / trigger / reload / fire / jam-unjam (the `.anm` / `.asi` authoring) belong to
**`dayz-animation-pipeline`** (`weapon-in-hands.md`, `weapon-anim-*`). This skill owns which selections
and points must EXIST and cover the right part, and which selection maps to which bone — not how they
move. The delegation map at the end is the exact split.
Distilled from two closed, in-game-verified projects: **A6_MK47** (AI-mesh 7.62×39 rifle,
`A6_MK47_dev\`, v12c `[VERIFIED in-game]` 2026-06-11) — import + model-path + winding; and **A6_SR2M**
(user-mesh 9×19 SMG, `A6_SR2M\` + `A6_SR2M_dev\`, `[VERIFIED in-game]` 2026-06-30) — bone-remap,
mis-authored-selection detection + repaint, casing side, root-scope `Mode_*`.
## PREFLIGHT — invariants to check BEFORE the first in-game cycle (not after the fail)
Each was won the hard way on one of the two projects. Front-load them offline; full detail behind each
pointer. Firearm test cycles are as expensive as any DayZ rebuild — a preflight pass is nearly free.
1. **W-BUILD1 — `model=` must point at the real in-PBO path (`data\`), built with `-Clean`.**
`[VERIFIED in-game]` MK47. `config.cpp` `model=` pointed at PBO root while the `.p3d` lived under
`data\`; a build without `-Clean` dragged a stowaway MLOD at the root → THAT was the model the engine
loaded, invalidating every offline winding/normals measurement. Fix = `model="\<Mod>\data\<wpn>.p3d"`
+ `-Clean` rebuild. → LL-145, `import-rule-v4.md` §"model-path".
2. **W-BUILD2 — serve BINARIZED; test A6-family mods with the RETAIL exe.** `[VERIFIED in-game]` MK47.
The winding/normals contract is only correct on the binarized ODOL (binarize flips winding); a
diag-pair / MLOD-served build measures the wrong thing. Also the A6 weapon pack uses brace-less
syntax that DayZDiag strict-compile REJECTS → RETAIL exe, not DayZDiag. → `import-rule-v4.md`,
`dayz-test-ingame`.
3. **W-SEL1 — every bone-remapped selection must SPATIALLY cover its real part before you trust it.**
`[VERIFIED in-game]` SR2M. The `bolt` selection was authored onto the **barrel** (X[−0.19,−0.09], in
front of the chamber), not the bolt; `AddItemBoneRemap("bolt")` would have slid the barrel — "the bolt
didn't move, not even conceptually." Caught OFFLINE by comparing the selection centroid to anatomy (a
bolt sits BEHIND the chamber). → `p3d-selection-contract.md` §"mis-authored selection".
4. **W-MEM1 — casing eject side is weapon-frame-dependent; read the reference, do not assume.**
`[VERIFIED in-game]` SR2M. `nabojnicestart`/`nabojniceend` set the shell-eject side; SR2M was on +Z
(wrong, ejected into the receiver), flipped to −Z, confirmed correct. → `p3d-selection-contract.md`.
5. **W-MEM2 — a weapon `.p3d` carries NO hand/grip memory points.** `[VERIFIED-vanilla]` akm.p3d memory
LOD. Grip is set by the player `.anm` IK pose + geometric parity, NOT by points in the weapon — that
is the ANIM boundary. → `p3d-selection-contract.md`, `dayz-animation-pipeline`.
6. **W-CFG1 — `Mode_SemiAuto` / `Mode_FullAuto` must be forward-declared at ROOT config scope, before
`class CfgWeapons`.** `[VERIFIED in-game]` SR2M. Forward-declaring `Mode_FullAuto` INSIDE `CfgWeapons`
makes an empty stub without `autoFire=1` → the mode is dropped → weapon stuck in single.
→ `cfgweapons-contract.md` §"root-scope Mode_*".
7. **W-STAGING1 — (desde 1.30) a firearm script under `4_World/Entities/Firearms/` does NOT imply a
`.p3d` or `CfgWeapons` class in the matching `weapons_*.pbo`.** `[VERIFIED-vanilla]` 1.30.164014 and
1.30.164200. On 1.30.164014 `SCARL`, `Luger`, `LeeEnfield`, `MP18` (and `P1907_Bayonet`) had scripts +
IK registrations; their weapon PBOs had no matching model/config, and that build had no Nasdara weapons
PBO. NEVER debinarize them from that experimental client as a parity reference — inherit a shipped peer
(`SCARH` / a 1.29 pistol / CZ527 / CZ61). On 1.30.164200 they ship in `nasdara\addons\weapons_nasdara.pbo`,
not in `weapons_firearms` / `weapons_pistols`, and a config parent is not always the script parent
(`SCARL_Base: Rifle_Base` in config, `: SCARH_Base` in script). → `dayz-1-30-weapons.md`.
8. **W-MAG1 — a new magazine `.p3d` must sit in the frame of the vanilla magazine it stands in for.**
`[OFFLINE MEASURED]` Mag6L31 (6L31 60-round AK-74 magazine, 2026-11-23; the owner's in-game test on
1.30.164289 passed). An attached magazine is drawn with ITS OWN model at the weapon's magazine proxy
(`aks74u.p3d` carries `proxy:\dz\weapons\attachments\magazine\magazine_ak74_30rnd.001`; the vanilla AK74
uses `ak101.p3d` and its `magazine_ak101_30rnd` proxy), so the model's origin and tilt decide whether it
seats in the magwell. Measure it, do not eyeball it: debinarize the vanilla magazine and the weapon, then
search rotation and offset maximizing the side-silhouette IoU over the top 5 cm (here θ 7.5°, IoU 0.946:
the artist's mesh had its feed lips level, the vanilla frame tilts them). Check the result at the proxy
with `p_weapon = anchor + p_mag @ py3d.proxy_frame_to_engine(R)` (rows), where
`anchor, R, ambiguous, deg = py3d.derive_proxy_frame(tri)`: that places the vanilla magazine in the magwell, the raw
frame does not. Keep `autocenter=0` in the Geometry LOD, as vanilla does. claim: CLAIM-WPN-MAG-VANILLA-FRAME
9. **W-MAG2 — magazine compatibility is config only, and a script-spawned magazine is EMPTY.**
`[VERIFIED-vanilla]` 1.30.164289. `class AK74_Base: Rifle_Base { magazines[] += {"Mag_X"}; };`, with
`DZ_Weapons_Firearms_AK74` in `requiredAddons`, reaches AK74, AKS74U and their colour variants, because
none of them redefines `magazines[]` (`DZ\weapons\firearms\ak74\config.cpp:50`). The engine decides with
the native `Weapon.CanAttachMagazine` (`P:\scripts\4_world\entities\core\inherited\weapon.c:216`), so no
script hook widens a magazine to "every weapon that takes magazine X": a modded weapon with its own list
needs its own line. When testing, `CreateInInventory` (and dayz-mcp `inventory_give`) creates the magazine
with no rounds, and the quick reload `FirearmActionAttachMagazineQuick` takes
`WeaponManager.GetPreparedMagazine()`, which skips empty magazines
(`P:\scripts\4_world\classes\weapons\weaponmanager.c:1093`): the action is refused. Fill it first with
`ActionLoadMagazineQuick` (magazine in hands, compatible rounds in the inventory, which also tests
`ammoItems[]`), or use `FirearmActionAttachMagazine`, which targets the magazine and needs no rounds
(`firearmactionattachmagazine.c:26-35`). claim: CLAIM-WPN-MAG-PREPARED-NEEDS-AMMO
**Memory-point sanity** (each was a real AI-mesh bug on MK47): `usti hlavne`/`konec hlavne` share Y and
Z (level bore); `bolt_axis` parallel to bore; eject direction within ~25° of the reference; `eye` height
over bore ≈ reference. → `p3d-selection-contract.md` §"memory-point sanity".
## PARITY-FIRST — debinarize the vanilla weapon you inherit, diff against it
The through-line of both projects. Pick the vanilla/pack weapon whose behavior you want (AKM for
AK-pattern, AKS74U/PM73 for an SMG), debinarize it (external ODOL→MLOD converter), read its **memory LOD** and
its **config**, and match: named selections present, memory points shaped the same, config base chosen
for its ammo / mags / recoil / sounds / anims. Every preflight item above falls out of this one diff
instead of error-by-error in-game. → `p3d-selection-contract.md`, `cfgweapons-contract.md`.
(hasta 1.29: that vanilla weapon is always in the matching `weapons_*.pbo`.) (desde 1.30: **W-STAGING1**
— on 1.30.164014 the scripts for `SCARL` / `Luger` / `LeeEnfield` / `MP18` are not a licence to unpack
those classnames: debinarize `SCARH\ScarH.p3d` (listed in `work\pbo-listings\exp__Addons__weapons_firearms.txt`)
or another packed peer. On 1.30.164200 their own models are in `weapons_nasdara.pbo`. Details:
`dayz-1-30-weapons.md`.)
## QUICK TRIAGE
| Symptom | Likely cause | Reference |
|---|---|---|
| Invisible / white / crash-on-equip | W-BUILD1 model-path points at root not `data\`, or no `-Clean` (stowaway MLOD) | `import-rule-v4.md` §model-path |
| Edited winding/normals, in-game unchanged | served MLOD / diag not the binarized ODOL (W-BUILD2) | `import-rule-v4.md` |
| Bolt / charging handle doesn't move | selection mis-authored (W-SEL1) OR missing bone-remap OR no `weaponStateAnim` bolt channel | `p3d-selection-contract.md` §mis-authored; `bone-remap.md` |
| Trigger dead on fire | no `trigger`→`Weapon_Trigger` remap (the vanilla fire/reload anims drive that bone) | `bone-remap.md` |
| Casings eject the wrong side | W-MEM1 — flip `nabojnice*` in the memory LOD | `p3d-selection-contract.md` |
| Stuck in single / full-auto missing | W-CFG1 — `Mode_*` declared inside `CfgWeapons` instead of ROOT scope | `cfgweapons-contract.md` §Mode_* |
| Tilted fire line / muzzle flash off-axis | memory-point sanity: `usti`/`konec` not level, or `usti hlavne` misplaced | `p3d-selection-contract.md` §sanity |
| Magazine won't attach / wrong slot | `magazines[]` / `inventorySlot` mismatch vs the mag class | `cfgweapons-contract.md` §attachments |
| New magazine hangs below the magwell or sinks into the receiver | W-MAG1 — the `.p3d` is not in the vanilla magazine's frame | W-MAG1 above |
| Test quick reload refused with a script-given magazine | W-MAG2 — the magazine is empty; `GetPreparedMagazine` skips it | W-MAG2 above |
| Optics / attachment slot won't accept X | `attachments[]` slot name vs the attachment's `inventorySlot`; mount-gated optics | `cfgweapons-contract.md` §attachments |
| **Grip / hands / ADS / rider pose wrong** | NOT this skill — anim | `dayz-animation-pipeline` → `weapon-in-hands.md` |
| **Bolt-slide / reload / fire / jam-unjam MOTION** | NOT this skill — anim (`.anm`/`.asi` authoring) | `dayz-animation-pipeline` → `weapon-anim-*` |
| Spawn/class missing for SCARL/Luger/LeeEnfield/MP18 (1.30.164014) | W-STAGING1 — script+IK present, no CfgWeapons / `.p3d` in that build's weapon PBOs; 1.30.164200 ships them in `weapons_nasdara.pbo` | `dayz-1-30-weapons.md` |
| Compile fail on `GetExplosionParticleID` (1.30) | API replaced by `AmmoTypesAPI.GetExplosiveEffectData(ammo, surface)` | `dayz-1-30-weapons.md` §ammo |
| Pistol slide/toggle anim IDs wrong (1.30) | override `Get*PistolAnimState()`; do not fork the pistol FSM classes | `dayz-1-30-weapons.md` §pistol |
## DELEGATION MAP — ANIM vs ENTITY, and the generic-pipeline hand-offs
| Concern | Owner |
|---|---|
| `.p3d` selection + memory-point CONTRACT (which must EXIST, cover the right part), casing side | **THIS skill** → `p3d-selection-contract.md` |
| `AddItemBoneRemap` — WHICH selection → WHICH bone, selection-covers-part precondition | **THIS skill** → `bone-remap.md` |
| CfgWeapons: inheritance, chamber/mag/muzzle/optics slots, fire modes, recoil, dispersion, jam CONFIG | **THIS skill** → `cfgweapons-contract.md` |
| Model-path / REGLA DE IMPORTS / winding / serve-binarized | **THIS skill** → `import-rule-v4.md` |
| Grip / hand pose / ADS line, `AddItemInHandsProfileIK` semantics, player skeleton bones | `dayz-animation-pipeline` → `weapon-in-hands.md`, `player-skeleton.md` |
| The weapon-states `.anm` (bolt slide, bullet eject), fire/reload/chamber **action anims**, unjam loop | `dayz-animation-pipeline` → `weapon-anim-*`, `weapon-in-hands.md` |
| The memory-point catalog table + the grip viewer `weapon_grip_viewer.py` | `dayz-animation-pipeline` → `weapon-in-hands.md` (referenced, not copied) |
| Geometry assembly / LODs / procedural textures | `dayz-model-pipeline` |
| Texture / rvmat zones | `dayz-texture-pipeline` |
| `.p3d` collision / action / path audit | `dayz-p3d-audit` |
| Enforce Script (`modded class`, config-script side) rules | `dayz-enforce-script-reference` |
| PBO packaging / binarize | `dayz-pbo-build` |
| In-game build/deploy/launch + auto-verify | `dayz-test-ingame` (+ `dayz-mcp-verify`) |
| 1.30 pistol anim-state getters, open-bolt mag detach, explosion FX API, Nasdara weapons | **THIS skill** → `dayz-1-30-weapons.md` |
## CITE-THEN-VERIFY
Weapon config fields and named selections are easy to half-remember, and the vanilla firearm hierarchy
is NOT a straight line (`RifleBoltFree_Base` extends `Rifle_Base`, but `BoltActionRifle_Base` and
`Pistol_Base` extend `Weapon_Base` DIRECTLY — see `cfgweapons-contract.md`). Before writing a class name,
field, or selection, grep it in vanilla (`P:\scripts\4_world\entities\firearms\`, a debinarized vanilla
`.p3d`) or the cited references, and keep the provenance labels the references use: `[VERIFIED in-game]`
(a real in-game test in a project handoff) vs `[VERIFIED-vanilla]` (read off disk) vs `[UNVERIFIED]`
(inferred, not confirmed). Anchor every new weapon lesson to a real mod with `path:line`, never memory.
(hasta 1.29: pistol stable states were constructed with `PistolAnimState.*` constants —
`stable-1.29` `Pistol_Base.c:203-212`.) (desde 1.30: `InitStateMachine()` passes
`GetDischargedPistolAnimState()` / `GetChargedPistolAnimState()` / `GetOpenPistolAnimState()` /
`GetJammedPistolAnimState()` — `exp\scripts\scripts\4_World\Entities\Firearms\Pistol_Base.c:203-212`.
Override those getters on an atypical pistol (Luger: charged→`DEFAULT`, jammed→`CLOSED_CHARGED` in
`Pistol\Luger.c:8-21`). Do not duplicate the `Pistol_CLO_*` FSM. → `dayz-1-30-weapons.md`.)
## AMMO CLASSIFICATION SERVER-SIDE (added 2026-08-13, LFPowerGrid turret)
Reading a cartridge ROLE (pistol / intermediate / full-power / shell / arrow) at runtime — needed by any
system that must behave differently per ammo class WITHOUT a classname whitelist (turrets, per-class
ballistics, loot logic, scaling that must also work for modded weapons):
- `enum CartridgeType { None=0, Pistol=1, Intermediate=2, FullPower=3, Shell=4, Arrow=5 }` —
`P:\scripts\4_world\entities\itembase\magazine\magazine.c:3-11` `[VERIFIED-vanilla]`
- The class lives on the MAGAZINE/pile config, not on CfgAmmo:
`g_Game.ConfigGetInt("CfgMagazines " + pileType + " iconCartridge")` — `magazine.c:32`
`[VERIFIED-vanilla]`. Guard with `ConfigIsExisting("CfgMagazines " + pileType)` first (`magazine.c:29`);
a modded pile that omits the key yields 0 (`None`), so choose an explicit fallback band rather than
trusting that zero.
- **Two paths, and the guard covers only one.** The constructor PRE-loads `Magazine.m_AmmoData` inside
`if (!g_Game.IsDedicatedServer())` (`magazine.c:45-64`), but the static accessor
`Magazine.GetAmmoData(classname)` fills the map LAZILY with **no** such guard (`magazine.c:117-132`)
`[VERIFIED-vanilla]` — so it does work server-side. The real caveat is allocation, not availability: the
first miss constructs an `AmmoData` (`:123-125`), so never take that path inside a hot loop. Read it once
on an attachment event and cache it yourself. (Corrects an earlier version of this entry that claimed the
map is never populated on a dedicated server.)
- **Gate on `IsAmmoPile()` when you mean loose rounds, not magazines.** `Object.IsAmmoPile()` returns false
by default (`3_game\entities\object.c:571-574`) and `Ammunition_Base` overrides it to true
(`4_world\entities\itembase\magazine\ammunitionpiles.c:27-30`) `[VERIFIED-vanilla]`. Detachable magazines
do NOT declare `iconCartridge`, so any per-cartridge-class logic must reject them first or it silently
classifies every mag as `None`.
- **`iconCartridge` coverage is NOT total in vanilla.** `Ammunition_Base` sets it to 0, and at least five
concrete `scope=2` ammo classes resolve to 0/`None` (CupidsBolt, RPG7_HE, RPG7_AP, LAW_HE, GrenadeM4).
Any band table needs an explicit policy for `None`, and must separate "0 declared" from "key absent" —
what `ConfigGetInt` returns for a missing path is undocumented, so probe with `ConfigIsExisting` first.
- **You can read binarized vanilla configs without a `P:\DZ` tree**: run Mikero/BI `CfgConvert -txt` over
the installed game's PBOs (`…\Steam\steamapps\common\DayZ\Addons\weapons_ammunition.pbo`,
`weapon_magazines.pbo`). This is how the coverage numbers above were established on a machine with no
unpacked vanilla tree — reach for it before declaring a config claim unverifiable.
- Cartridge -> ammo type for the damage system: `AmmoTypesAPI.MagazineTypeToAmmoType(magType, out ammoType)`
— `P:\scripts\3_game\global\ammotypes.c:26`, used by vanilla in `weapon_base.c:868` `[VERIFIED-vanilla]`.
Do not hand-roll a `CfgMagazines <t> ammo` lookup.
(up to 1.29: `ammotypes.c:14`, used in `weapon_base.c:848`.) (since 1.30: `MagazineTypeToAmmoType` is
`exp\scripts\scripts\3_Game\Global\AmmoTypes.c:26`; vanilla `Weapon_Base.c:868`.
`GetExplosionParticleID` is gone — MUST call `AmmoTypesAPI.GetExplosiveEffectData(ammoName, surfaceName)`
and read `m_ParticleID` / `m_SoundSetName` on `ExplosiveEffectData`. → `dayz-1-30-weapons.md`.)
- A cartridge damage profile is readable BEFORE firing:
`ConfigGetFloat("CfgAmmo " + ammoType + " DamageApplied Health damage")` (also `Blood damage`,
`Shock damage`) — `P:\scripts\4_world\entities\dayzplayerimplementfalldamage.c:273-275`
`[VERIFIED-vanilla]`. This is how a mod caps absurd modded ammo without a whitelist.
- `iconCartridge` is nominally a UI icon field reused as the cartridge class: confirm per-pile coherence
against a debinarized config before shipping balance that depends on it. `[UNVERIFIED]`
## DayZ 1.30
What changes, what breaks, and the migration checklist. Full citations and `[EXACT]` blocks:
`dayz-1-30-weapons.md`. Recoil curves and Luger/LeeEnfield bone remaps:
`bone-remap.md`, `cfgweapons-contract.md`.
**What changes**
- Four firearm scripts (`SCARL_Base : SCARH_Base`, `Luger_Base`, `LeeEnfield_Base`, `MP18_Base`) plus
`P1907_Bayonet` and mag stubs — scripts and (for Luger/LeeEnfield) extra `AddItemBoneRemap` arrays;
IK `.asi`/`.anm` packed; **no** `CfgWeapons` / weapon `.p3d` in the 1.30.164014 PBO set (W-STAGING1).
1.30.164200 ships them in `nasdara\addons\weapons_nasdara.pbo`.
- Pistol FSM anim IDs are virtual getters on `Pistol_Base` (`Pistol_Base.c:611-629`, wired at `:203-212`).
- `OpenBolt_Base.SetActions()` adds `FirearmActionDetachMagazine` (`OpenBolt_Base.c:388`).
- `Weapon_Base.EEItemDetached` calls `ValidateAndRepair()` when the detached item is a magazine (`Weapon_Base.c:1149`).
- Explosion FX: `ExplosiveEffectData` + `GetExplosiveEffectData(string, string)` replace
`GetExplosionParticleID`. `ExplosivesBase.SetParticleExplosion` / `AddExplosionEffectForSurface` are
`[Obsolete("1.30: Handled in AmmoTypes instead")]`.
- Attach mag action requires `TestAttachMagazine(...)` (`FirearmActionAttachMagazine.c:256`).
- Chamber helper uses `LocalAcquireCartridgeEx` (`weapon_utils.c:9`).
**What breaks for a 1.29 weapon mod**
1. Compile error if you still call `AmmoTypesAPI.GetExplosionParticleID`.
2. Reload never starts if `TestAttachMagazine` is too strict/wrong on a custom muzzle.
3. Open-bolt mag-detach workarounds fight the new `AddAction(FirearmActionDetachMagazine)`.
4. On 1.30.164014, spawning `SCARL` / `Luger` / `LeeEnfield` / `MP18` / `Mag_Luger_8Rnd` / `Mag_MP18_Drum32Rnd`
from types/traders fails — no config class. On 1.30.164200 the classes are in `weapons_nasdara.pbo`, and
the vanilla Nasdara `types.xml` spawns them. `[CHANGELOG]` `SoundHitType` / `GetSoundHitType()` are **not**
in Enforce `SurfaceInfo.c` on this build (T189758); do not call them from weapon scripts.
**Migration checklist**
- [ ] Replace explosion-particle lookups with `GetExplosiveEffectData(ammoType, surfaceType)`.
- [ ] Drop `SetParticleExplosion` / script surface-particle maps; set `particle` on `CfgAmmo`.
- [ ] Atypical pistols: override `Get*PistolAnimState()`, keep the stock pistol FSM.
- [ ] Confirm `TestAttachMagazine` for custom mag/bolt states.
- [ ] Use `LocalAcquireCartridgeEx` in custom chamber helpers.
- [ ] Parity-first: debinarize a **packed** model; on 1.30.164014 that is a peer, not the staged classnames.
- [ ] On 1.30.164014, do not add the staged classnames to `types.xml`: that build has no CfgWeapons or
`.p3d` for them (1.30.164200 ships both).
## On Linux
Everything above is the Windows workflow and stays valid there. On Linux, the Proton setup, the measured tool matrix and the pitfalls are in [`_shared/linux-proton.md`](../_shared/linux-proton.md); this section only says what changes for this skill.
- Pack, sign and binarize with dayzmake >= 3.1.0, bzed's DayZ fork of armake2 (https://github.com/bzed/dayzmake), pinned to `v3.1.0`; 3.x fixes a lot of security and file-handling issues of the earlier releases, so do not use an older build. Install the release binary `dayzmake-v3.1.0-debian-trixie-x86_64.tar.gz` from https://github.com/bzed/dayzmake/releases/tag/v3.1.0 only after verifying it against the release's GPG-signed `SHA256SUMS` (key fingerprint `6624 41B3 6A57 85AD 18FB 8667 DF75 3D99 D064 EB7E`; commands and the list of fixes in `dayz-pbo-build/references/dayzmake-linux.md`, "Get the right dayzmake"), or `cargo install --locked --git https://github.com/bzed/dayzmake --tag v3.1.0`: use `dayzmake build`, `keygen`, `sign`, and `build --proton-binarize` where needed. Upstream armake2 is no substitute: it is built for Arma, its V3 file hash omits `*.c` files (dayzmake includes them) and lacks the DayZ-only functions dayzmake keeps adding. `skills/_shared/scripts/dayz-mod-pack.sh` wraps them (`init`, `keygen`, `build [--binarize-models]`, `check`, `publish-hint`; `dayz-pbo-build/references/dayzmake-linux.md`). The author's 2026-11-03 textured-cube comparison with BI binarize from a `P:` root matched byte for byte (fork commit `7dcb3cf`, then still named armake2; `v1.0.0` and later contain it); this is not an in-game ODOL check. See `skills/_shared/linux-proton.md` for setup and limits.
- `P:\` is a plain directory mapped by `skills/_shared/scripts/dayz-proton.sh init <dir>`; a `P:\<Mod>\...` path in this skill is `<dir>/<Mod>/...`.
- Object Builder and TexView run under Proton: `dayz-proton.sh gui ObjectBuilder <p3d>`, `gui TexView <paa>`. Object Builder opened and displayed a model; editing in it was not exercised. Offline checks (`py3d`, `dayz-model-preflight`, `dayz-3d-viewer`) are Python and run natively.
- In-game checks: the Linux notes of `dayz-test-ingame`.
## Building, testing and publishing the mod
When this work has to end in a mod that builds, loads and ships (`config.cpp`/`CfgMods`, `requiredAddons`, the PBO and its signature, a boot on a local server, the Workshop), follow the loop and the rules every mod task needs in [`dayz-mod-dev`](../dayz-mod-dev/SKILL.md), the Pack's entry point for mod development.
## DayZ Model Tools harvest (third-party leads)
- `references/dayz-model-tools-harvest.md` — what the MIT Blender add-on "DayZ Model Tools" 1.37.2 encodes about template-based weapon fitting, memory points, optics (2D eyepiece, `OpticsInfo`, FOV rule), melee fitting and LOD decimation ratios. Read from its source with upstream `path:line` citations; this pack has not verified it against vanilla or in game, so check an item before adopting it.