I'm currently working on a game where gear varies, instead of being built in a steady progression of better and better stuff. Players will have an incentive to still use older equipment, even as they find new ones.
One of the things I've been wanting to incorporate into this is ammunition. However, instead of it being a resource for certain weapons to use, I wanted it to be a slottable modifier so players could alter the performance of their weapons. For example, armor piercing (with a % bypass of target damage reduction) or incendiary (with a chance to inflict a burn).
However, the only scripts I've been able to find that cover ammunition involve it being kept either in an actor's off-hand or in the inventory, and all are rigged to use it up as a resource. With the former, this also disallows dual wielding, even if the weapons used are one-handed.
What I wanted to do was have an ammunition slot in a weapon, with the ammunition item working as a kind of slottable modification. It wouldn't be consumable. This goes against practically everything in the currently existing ammunition scripts that I've found.
One of the things I've been wanting to incorporate into this is ammunition. However, instead of it being a resource for certain weapons to use, I wanted it to be a slottable modifier so players could alter the performance of their weapons. For example, armor piercing (with a % bypass of target damage reduction) or incendiary (with a chance to inflict a burn).
However, the only scripts I've been able to find that cover ammunition involve it being kept either in an actor's off-hand or in the inventory, and all are rigged to use it up as a resource. With the former, this also disallows dual wielding, even if the weapons used are one-handed.
What I wanted to do was have an ammunition slot in a weapon, with the ammunition item working as a kind of slottable modification. It wouldn't be consumable. This goes against practically everything in the currently existing ammunition scripts that I've found.