When hit a player
#2

Well, I think this is possible but hard to script. I know only one way of doing that:
When player lose some health, you check all other players in a certain range from his position. If someone have a gun and this gun can do damage on such distance, and if his face is turned to that player, and he press KEY_FIRE or KEY_SECONDARY_ATTACK (correct me if I'm wrong), then POSSIBLY he has hit the player.
This is just theory.

For health checking you can use YUP by ****** (it has OnPlayerHealthChange callback), or something else.
Reply


Messages In This Thread
When hit a player - by Butilka - 07.11.2009, 13:36
Re: When hit a player - by Zeex - 07.11.2009, 15:48
Re: When hit a player - by Tigerbeast11 - 07.11.2009, 15:50
Re: When hit a player - by Butilka - 07.11.2009, 17:23
Re: When hit a player - by Backwardsman97 - 07.11.2009, 18:06
Re: When hit a player - by Butilka - 07.11.2009, 21:15
Re: When hit a player - by Backwardsman97 - 07.11.2009, 21:40
Re: When hit a player - by Butilka - 08.11.2009, 13:46
Re: When hit a player - by Tigerbeast11 - 09.11.2009, 18:17
Re: When hit a player - by saiberfun - 09.11.2009, 19:21

Forum Jump:


Users browsing this thread: 1 Guest(s)