![]() |
How to know if a someone's crosshair is on someone else?
Here I have 2 persons, A and B lets say.
If A is aiming at B, how can I know that? I've tried using edict->v_angle and some vector functions but no luck, any advices? |
Re: How to know if a someone's crosshair is on someone else?
Basicaly we are using DotProduct function to consider aiming.
Code:
|
Re: How to know if a someone's crosshair is on someone else?
Thanks it worked.
|
All times are GMT +2. The time now is 04:28. |
Powered by vBulletin® Version 3.8.2
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.