About headshots..
#1

Hi,
I want script which instantly kills the other player, when you shoot him with sniper to head.
I've been looking around on forums, but i haven't found any which would work correctly.
But since R7 server was released, i started to think if it's now possible to detect headshots correctly.
Maybe with function GetPlayerCameraFrontVector?
it seemed for me the most promising one.

So is it possible to create script which detects the headshots shot with sniper correctly.
And if it is, i would appreciate if someone could accomplish it.

Best Regards, Johnson_boy
Reply
#2

I think this can't be implemented.

You can detect the damage the weapon makes, and set the player health to "0" if it's the snipers damage though.
The head shot detecting would be awesome.
Reply
#3



heheh
Reply
#4

Quote:
Originally Posted by Joe Staff


heheh
Just message, he didn't die.
Reply
#5

It's a bot

He's just there for testing, if you hadn't noticed, it said HEAD SHOT only when I... shot his head...
Reply
#6

Quote:
Originally Posted by Joe Staff
It's a bot

He's just there for testing, if you hadn't noticed, it said HEAD SHOT only when I... shot his head...
Omg gimme gimme gimme code

Pm if you dont wanna post just gimme

Or you use that cleo Headshot script? :P
Reply
#7

Quote:
Originally Posted by Joe Staff
It's a bot

He's just there for testing, if you hadn't noticed, it said HEAD SHOT only when I... shot his head...
Lol.. Seems like the text appears every time you shoot someone where ever you just hit or something.
But I doubt the headshot detecting can be implemented in the current version of SA:MP.
Reply
#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
#9

So is it possible or not?
Reply
#10

Quote:
Originally Posted by Joe Staff
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.
No.. Read next time.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)