01.01.2013, 11:39
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.
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...).
Lol "casque" means "helmet" in French, it is just a variable in my test script

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:
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? |
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:
I have a doubt. How you declared, "Casque"? xD is it a normal variable?
|
