[Include] GetPlayerAimedBodyPart - Detect Headshots, Armshots, Legshots !
#10

Thanks for the feedback

I tested the script with 3 mates yesterday and they all thought it worked fine, even with a little lag (I was running the server with a Wifi connexion). Only the armshot is kind of difficult to get.

Quote:
Originally Posted by Maxips2
Посмотреть сообщение
What if the target is in movement? (His arms would swing and his legs would move)
What if the target is falling/jumping?

Does it detect those things?
Basically the script calculates where the player is aiming and, if the target (whose Pos is X Y Z for example) is hit and if the shooter aims below Z-0.3, the player is aiming the legs. Then if the target moves, the script doesn't care if the legs move, it just determines if the player is aiming below Z-0.3.

It is almost the same with the arms, except it depends on the X and Y coordinates (and the facing angle then) - that actually makes the armshot the toughest to detect.

About the falling/jumping stuff, it should work just as fine as any other movement (player running...).

Quote:
Originally Posted by RubenZone
Посмотреть сообщение
I have a doubt. How you declared, "Casque"? xD is it a normal variable?
Lol "casque" means "helmet" in French, it is just a variable in my test script
Reply


Messages In This Thread

Forum Jump:


Users browsing this thread: 1 Guest(s)