About headshots..
#8

Quote:
Originally Posted by Jay420
But I doubt the headshot detecting can be implemented in the current version of SA:MP.
For players, of course not, but since NPCs don't have a true response to players, it can be implemented for them.

I've learned quite a lot of things working on Camera Detection.
The player's camera coordinates (as far as the server is concerned) is only accurate when the player is aiming (or KEY_HANDBRAKE, 128, is being pressed) Otherwise, it updates about once per second.
The camera's coordinates aren't offsets of the player's angle, but rather offsets of the players position in coordinance to the world (so if you're looking north, the X coordinate will be 0, regardless of the player's facing angle)
Getting the actual vertical and horizontal angle is a pain in the ass >:|
Reply


Messages In This Thread
About headshots.. - by lameguy - 31.03.2010, 14:33
Re: About headshots.. - by Jay420 - 31.03.2010, 15:57
Re: About headshots.. - by Joe Staff - 31.03.2010, 16:37
Re: About headshots.. - by [MWR]Blood - 31.03.2010, 16:38
Re: About headshots.. - by Joe Staff - 31.03.2010, 16:40
Re: About headshots.. - by bajskorv123 - 31.03.2010, 17:21
Re: About headshots.. - by Jay420 - 31.03.2010, 17:23
Re: About headshots.. - by Joe Staff - 31.03.2010, 17:51
Re: About headshots.. - by lameguy - 01.04.2010, 13:00
Re: About headshots.. - by cozza123456 - 01.04.2010, 13:03

Forum Jump:


Users browsing this thread: 1 Guest(s)