Raised This Month: $32 Target: $400
 8% 

Validating mousedx mousedy with player's viewangles


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
ayyyyyyylmao
Junior Member
Join Date: Apr 2018
Old 07-09-2020 , 06:09   Validating mousedx mousedy with player's viewangles
Reply With Quote #1

Hi, i want to calculate mousedx mousedy in OnPlayerRunCmd forward to check is player using aimbot(compare server mouse with client mouse, with a bit of inaccuracies of course). How i can build it properly? Currently, i found in the internet bunch of methods but it's all not even closer to client side mouse.

The method I tried:
PHP Code:
for (int i 0;i2;i++)
{
    
float delta viewangles[i] - old_angles[client][i];
    
float mouse = ( old_angles[client][i] - delta ) / (m_pitch_yaw[client][i]  /* * cl_sensitivity[client]*/);

    
old_angles[client][i] = viewangles[i];

Any suggestions?
ayyyyyyylmao is offline
Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 05:54.


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