Player Movement and Animations when hit by projectile

I have been trying to alter the code for some player impact scripts but to no avail. I am trying to make a script for a player that comes to action when hit with a projectile. If I could get this then I could modify the effects based on the weapon type.
I want a script that makes the player who gets shot, 1) move back a little based on how where the hit came from, 2) react to the hit with the dazed animation for X amount of time, 3) active the rag-doll (only for the stronger weapons) .

I haven't been able to find a basic script to add to server effects of a weapon that has those three options. Any help would be much appreciated. Thx