Some people already suggested that, it is always awful to switch to other soldier and find you MG34 whit only one bullet. but the magic of this topic is not using K individual order menu. but something different.
has you can see, the ammo will appears in every soldier. and instead of pressing the left mouse button to switch you press the right mouse button to order him to reload.
additional details in the color will make easier to you see how much bullets you have in your squad. nice and easy.
i don’t think its hardcoded at all. and will help us not ever selecting a ammo depleted soldier has well give reload order to he.
if all your guys are out of ammo just press R while in alt for a while and everybody will reload.
cheers.