31.03.2010, 17:51
Quote:
Originally Posted by Jay420
But I doubt the headshot detecting can be implemented in the current version of SA:MP.
|
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 >:|