From e75ffd765c8f21f4c924aec6209bc6bbac71cace Mon Sep 17 00:00:00 2001 From: Gamaun007 Date: Thu, 21 May 2026 13:27:03 +0200 Subject: [PATCH] Fix MAC-18 missing from magazines system The Weapon Pack converts wpn_mac10 from 9x19 (MAC-10) to 9x18 (MAC-18) via mod_system_zzzzz_gamma_mac18.ltx, and its base_mac10.ltx rewrites the [mac10_9x19] base type's caliber from 9x19 to 9x18 to match. However the upstream weapon-magazine lookup (from 487- MAC10 Quality Control) only maps ammo_9x19_fmj -> mac10_9x19, so after the conversion the gun has no base_type binding for its actual ammo and the magazine system silently skips it. Adds w_mac10_mac18.ltx with a DLTX merge override (![wpn_mac10]) supplying the missing ammo_9x18_fmj mapping. Non-destructive: the existing 9x19 and 11.43x23 mappings from the upstream lookup are preserved. Filename sorts alphabetically after the upstream w_mac10.ltx so the override targets a section that already exists. Co-Authored-By: Claude Sonnet 4.6 --- .../magazines/weapons/w_mac10_mac18.ltx | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) create mode 100644 G.A.M.M.A/modpack_addons/G.A.M.M.A. Weapon Pack/gamedata/configs/magazines/weapons/w_mac10_mac18.ltx diff --git a/G.A.M.M.A/modpack_addons/G.A.M.M.A. Weapon Pack/gamedata/configs/magazines/weapons/w_mac10_mac18.ltx b/G.A.M.M.A/modpack_addons/G.A.M.M.A. Weapon Pack/gamedata/configs/magazines/weapons/w_mac10_mac18.ltx new file mode 100644 index 000000000..9b3a4ac0c --- /dev/null +++ b/G.A.M.M.A/modpack_addons/G.A.M.M.A. Weapon Pack/gamedata/configs/magazines/weapons/w_mac10_mac18.ltx @@ -0,0 +1,18 @@ +; Magazine lookup fix for the G.A.M.M.A. Weapon Pack's MAC-18 conversion. +; +; The Weapon Pack converts wpn_mac10 from 9x19 (MAC-10) to 9x18 (MAC-18) via +; mod_system_zzzzz_gamma_mac18.ltx, and its base_mac10.ltx rewrites the +; [mac10_9x19] base type's caliber from 9x19 to 9x18 to match. +; +; However the weapon-magazine lookup (originally from 487- MAC10 Quality Control) +; still only maps ammo_9x19_fmj to the mac10_9x19 base type. With the gun now +; firing 9x18, there is no base_type binding for its actual ammo and the +; magazine system skips the gun entirely. +; +; This file merges the missing 9x18 mapping into the existing [wpn_mac10] entry. +; Filename starts with "w_mac10_" so it loads alphabetically after the upstream +; w_mac10.ltx, ensuring the !-override targets a section that already exists. + +![wpn_mac10] +;base_type for the MAC-18 (9x18) conversion +ammo_9x18_fmj = mac10_9x19