For the time being I don't want to change some entries in FO4Edit,
then it forces their unplayable weapons to require at least 1 normal ammo
(without consume it) instead of the special and unlimited companion ones.
The goal is to prevent them to use their unplayable weapons
in favor of the ranged weapons that you give them, also forcing your followers
to attack with bare hands if they don't have weapons or ammunitions available.
"Technically", I've just changed the ammo entry in their special unplayable weapons.
For example Piper has the line "CompanionAmmo10mm "10mm Round" [AMMO:00245D6A]
that I've changed in Ammo10mm "10mm Round" [AMMO:0001F276], the normal ones.
Danse has CompanionAmmoFusionCell "Fusion Cell" [AMMO:00245D69]
changed to AmmoFusionCell "Fusion Cell" [AMMO:000C1897]
etc....it's all! Very simple.
Ammo they need (but they don't consume them) to use their unplayable ranged weapons: