AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Scripting Help (https://forums.alliedmods.net/forumdisplay.php?f=11)
-   -   [need calculations :(-] (https://forums.alliedmods.net/showthread.php?t=196781)

avril-lavigne 09-25-2012 14:26

[need calculations :(-]
 
My idea is to calculate how far was the attacker crosshair from enemy before shoot / hit
1st get the view direction
PHP Code:

static  iEndOrigin[3], iStartOrigin[3]
    
get_user_origin(idiStartOrigin1
    
get_user_origin(idiEndOrigin3)
    
make_line(iStartOriginiEndOrigin

2. calculate distance from view line to the closest enemy.
3. compre distance and possibility to make headshot or hit for amount of time ( 0.3 sec - not possible )
and ban him for aimbot. because humans cant shot in head if they looking to the ground. am I right?

avril-lavigne 09-26-2012 15:36

Re: [need calculations :(-]
 
https://forums.alliedmods.net/showthread.php?t=66544


All times are GMT -4. The time now is 08:16.

Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.