How do i solve this ammo issue

so i made a mod which makes all of the us tech tree have auto and semi auto modes, no recoil, 0.5 second reload, 50 million round magazine, this mod i made DOESN’T include event, gold order and premium weapons.

everything does work, it def does, as i literally just copy and paste code but change the gun obv, so for example, m1 garand perfectly works, yet some smgs dont work, yet others do, idk why this happens, as is the same exact code, so it obv SHOULDNT happen, yet it does