This is more of an FYI for anyone who wants to make gun mods that modify the capacity of fixed mag guns. The main notes is that this feature is in the game from experimental build #10833 onward.
An example based on an edited belt feed adapter mod
{
“id”: “beltfeed”,
“type”: “GUNMOD”,
“name”: { “str”: “belt feed adapter” },
“description”: “A test item to test the pastabilities of increasing the capacity of fixed mag weapons.”,
“weight”: “950 g”,
“volume”: “750 ml”,
“integral_volume”: “250 ml”,
“price”: 32000,
“material”: [ “steel” ],
“symbol”: “:”,
“color”: “green”,
“location”: “mechanism”,
“mod_targets”: [ “rifle” ],
“acceptable_ammo”: [ “223”, “308”, “50” ],
“pocket_mods”: [
{
“pocket_type”: “MAGAZINE”,
“rigid”: true,
“ammo_restriction”: { “223”: 10, “308”: 10, “50”: 10 }
}
],
“flags”: [ “INSTALL_DIFFICULT”, “IRREMOVABLE” ]
},
The only other thing to note so far is that due to allowing multiple ammo types this will make the modded weapon load any of the listed ammo but the gun will only work when loaded with the originally intended ammo.
This can also be used to convert a fixed mag gun into a detachable mag gun and vice versa.
Just replace the MAGAZINE part with MAGAZINE_WELL instead
{
“id”: “beltfeed”,
“type”: “GUNMOD”,
“name”: { “str”: “belt feed adapter” },
“description”: “A test item to test the pastabilities of increasing the capacity of fixed mag weapons.”,
“weight”: “950 g”,
“volume”: “750 ml”,
“integral_volume”: “250 ml”,
“price”: 32000,
“material”: [ “steel” ],
“symbol”: “:”,
“color”: “green”,
“location”: “mechanism”,
“mod_targets”: [ “rifle” ],
“acceptable_ammo”: [ “223”, “308”, “50” ],
“pocket_mods”: [
{
“pocket_type”: “MAGAZINE_WELL”,
“holster”: true,
“max_contains_volume”: “20 L”,
“max_contains_weight”: “20 kg”,
“item_restriction”: [ “scarhmag”, “scarhbigmag”, “scarhmag_30rd”, “scarh_makeshiftmag” ]
}
],
“flags”: [ “INSTALL_DIFFICULT”, “IRREMOVABLE” ]
},