18.08.2009, 14:39
You can do that with OnPlayerKeyStateChange.
Detect if player is pressing fire button when he has deagle in active weapon slot. Then make a loop of all players and choose those which are XX away from you. Find how much health one deagle bullet takes and then mix everything together.
On the end you need to get that if you press the fire button with deagle in active weapon slot and someone is less than XX meters away from you and loses YY health (one deagle bullet) that player is target of animation.
Detect if player is pressing fire button when he has deagle in active weapon slot. Then make a loop of all players and choose those which are XX away from you. Find how much health one deagle bullet takes and then mix everything together.
On the end you need to get that if you press the fire button with deagle in active weapon slot and someone is less than XX meters away from you and loses YY health (one deagle bullet) that player is target of animation.