14.11.2010, 08:26
Quote:
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) .. |