Is it possible?
#1

Can I make it so that if a Cop shoots a player with a SDPistol it tazes them?
Reply
#2

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) ..
Reply
#3

Quote:
Originally Posted by Simon
Посмотреть сообщение
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) ..
And if you don't understand that you can find one in an Released Gamemode somewhere, probabbly Godfather.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)