Separate XBowBolt ammo types for Ballistic Knives and Crossbow
I'd like to make the arccw_bo1_ballistic_knife
SWEP have 2 extra knives in the reserve ammo pool, but I've run into a few issues:
- The ammo type
XBowBolt
isn't defined inArcCW.TTTAmmoToClipMax
, which creates the following error withinENT:ApplyAmmo()
:
L 09/12/2023 - 11:46:03: Lua Error:
[[ArcCW] Arctic's Customizable Weapons (Base)] lua/entities/arccw_ammo.lua:126: attempt to perform arithmetic on a nil value
1. ApplyAmmo - lua/entities/arccw_ammo.lua:126
2. unknown - lua/entities/arccw_ammo.lua:204
- The Explosive Crossbow also uses the
XBowBolt
ammo type, so it is possible to pick up already shot Ballistic Knives and have them converted to additional explosive crossbow ammo.
We would either need to use a different ammo type for the ballistic knife + knife world entity.