14.11.2010, 07:55
Can I make it so that if a Cop shoots a player with a SDPistol it tazes them?
Yes.
Use OnPlayerKeyStateChange to detect when they shoot, use GetPlayerCameraVector to detect where they're looking at, check if any players are in the players view (+check if health was lost and if they're streamed in/distance since you cannot natively detect objects in the way), then do whatever you want to simulate the effect of tazing (e.g. animation or whatever) .. |