[quote=“Blaze, post:14075, topic:42”][quote=“pisskop, post:14073, topic:42”]I cant figure out why this custom gun wont accept this custom ammo.
Ive made the proper ammo type.
Ive set the ammo to this type.
The gun is set to accept this ammo type.
The game loads without error.
The gun wont accept any of the several ammo variants Ive prepped for testing.[/quote]
Barring a misspelling or botched github update, I can’t really tell unless I see the code.[/quote]
{
“id”: “bomblet_launcher”,
“type”: “GUN”,
“symbol”: “)”,
“color”: “magenta”,
“name”: “double bomblet launcher”,
“description”: “A simple doubled-barreled homemade launcher for bomblets.”,
“price”: 135000,
“material”: [“steel”, “wood”],
“flags”: [“MODE_BURST”, “NEVER_JAMS”, “RELOAD_ONE”, “RELOAD_EJECT”],
“skill”: “launcher”,
“ammo”: “bomblet”,
“weight”: 3759,
“volume”: 9,
“bashing”: 12,
“to_hit”: -3,
“dispersion”: 300,
“sight_dispersion”: 150,
“aim_speed” : 0,
“recoil”: 60,
“durability”: 7,
“burst”: 2,
“clip_size”: 2,
“reload”: 350,
“range”: 24,
“valid_mod_locations”: [[ “accessories”, 4 ],[ “grip”, 1 ],[ “mechanism”, 4 ],[ “rail”, 1 ],[ “sights”, 1 ],[ “stock”, 1 ],[ “underbarrel”, 1 ]]
}
{
"type" : "AMMO",
"id" : "bomblet_explosive",
"price" : 10000,
"name" : "bomblet",
"symbol" : "*",
"color" : "brown",
"description" : "A small cylinder filled with explosive putty. Can be loaded into a specially-designed carrier manhack with the proper tools so it can use them.",
"material" : ["plastic", "powder"], "///" : "Not actually powder, here it means 'something that burns fast/explodes",
"volume" : 1,
"weight" : 50,
"phase" : "liquid",
"ammo_type" : "bomblet",
"damage" : 1,
"pierce" : 0,
"range" : 1,
"count" : 3,
"effects" : ["EXPLOSIVE", "SMOKE", "NEVER_MISFIRES"]
}
{
"type" : "ammunition_type",
"id" : "bomblet",
"name" : "bomblet",
"default" : "bomblet_explosive"
}