[FUNCTION] IsPlayerAimingAt
#10

Quote:
Originally Posted by niCe
Посмотреть сообщение
This function uses RedShirt's "DistanceCameraTargetToLocation" and modified GetPlayerFacingAngleToPoint, which I have altered to GetPointAngleToPoint.

When you want to detect, if a player is aiming at any position, you don't need only camera pos and camera front vector, since the crosshair position is not correlating the camera vector. I've set the function IsPlayerAimingAt so it reflects all angle (both horizontal and vertical) differences upon the weapons.

And this one should reliably detect a headshot (I haven't tested this one though).
Thanks you, It work's great for me.
Reply


Messages In This Thread
[FUNCTION] IsPlayerAimingAt - by niCe - 10.04.2010, 13:19
Re: [FUNCTION] IsPlayerAimingAt - by MafiaGuy™ - 10.04.2010, 14:20
Re: [FUNCTION] IsPlayerAimingAt - by niCe - 10.04.2010, 14:32
Re: [FUNCTION] IsPlayerAimingAt - by ¤Adas¤ - 10.04.2010, 18:18
Re: [FUNCTION] IsPlayerAimingAt - by RyDeR` - 10.04.2010, 18:53
Re: [FUNCTION] IsPlayerAimingAt - by clavador - 06.06.2010, 18:38
Re: [FUNCTION] IsPlayerAimingAt - by ViruZZzZ_ChiLLL - 06.06.2010, 18:48
Re: [FUNCTION] IsPlayerAimingAt - by Luka P. - 06.06.2010, 19:21
Re: [FUNCTION] IsPlayerAimingAt - by markis95 - 07.06.2010, 13:11
AW: [FUNCTION] IsPlayerAimingAt - by Littl3j0hNy - 23.07.2010, 19:25

Forum Jump:


Users browsing this thread: 1 Guest(s)