Create a combo function for all weapons

hi guys!! i am creating a true frst person rpg that when the character looks up he does a combo( i take the camera rotation) and when he looks forward or down he does a diferent combo for each one, the number of the combo ( 3 attacks). but i have diferent animations for all guns, Can I do a function that modifies the animations when I change the weapon?( something like shadow warrior 2) because create three types of combo for all weapons gonna be too big