for idle animations for the character you would just have to take into account if the socket is populated. so you may have a different idle for holding a gun vs empty handed. or you could sheath/ holster the wep. as for the wep animation just have it set to where if its not doing a firing animation its doing its idle just like a character would do.