Posts: 91
Threads: 10
Joined: Jun 2009
Reputation:
0
Hello! I have one idea. Maybe good, maybe not. So, when you shoot somebody and hit him, a TextDraw, SendClientMessage, GameText (no matter) says next " You hit player (blablabla) and decrease his health on (blablabla) points". Is it possible to do? If it is, help please. Tried to search, got nothing.
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.
Posts: 771
Threads: 135
Joined: Aug 2009
Reputation:
0
I dont think this is possible
P.S why would you wanna do this, itd spam the screen, lol!
Posts: 91
Threads: 10
Joined: Jun 2009
Reputation:
0
Thanks. Maybe another thoughts will come.
Posts: 1,501
Threads: 19
Joined: Nov 2007
Reputation:
0
Yeah, there really is no efficient way of doing this.
Posts: 91
Threads: 10
Joined: Jun 2009
Reputation:
0
Hm...But I saw that is realisied at least on one server.
Posts: 1,501
Threads: 19
Joined: Nov 2007
Reputation:
0
Yeah it can be done but not efficiently. So it would be buggy.
Posts: 91
Threads: 10
Joined: Jun 2009
Reputation:
0
Yes, but you can try to do it, and I dont have even ad idea.
Posts: 771
Threads: 135
Joined: Aug 2009
Reputation:
0
There is a script called Useful Callbacks which contains a whole range of callabacks!
Including, OnPlayerLoseHealth!!!! Use that!