=FAS=Shigawire Posted September 14, 2008 Share Posted September 14, 2008 Yo, ATM i am working on several anti-cheat scripts. Now i try to script something against aimbots. Is it posssible to define the time between right klick (start aiming) and the headshot? I guess an aimbot only needs some miliseconds to aim at the players Head. And no player is able to aim so fast and accurat. I saw an article about time-measuring in the wiki, but i forgot how it was called. Or measuring the movementspeed of the mouse until it reaches the Object ( = Head ) Would it be possible to script something like that? Link to comment
50p Posted September 14, 2008 Share Posted September 14, 2008 Yes, it would be. You could getTickCount( ) when player right-click and getTickCount( ) when a player dies. Then compare the values and see if the difference is greater then the specified amount of milliseconds. Link to comment
Gamesnert Posted September 14, 2008 Share Posted September 14, 2008 Yes, it would be. You could getTickCount( ) when player right-click and getTickCount( ) when a player dies. Then compare the values and see if the difference is greater then the specified amount of milliseconds. Yes, but I know some people who click LMB as soon as they pressed RMB... =/ EDIT: Besides, if a player has 1HP, and another shoots on him, he would probably be under the limit... =/ Link to comment
DiSaMe Posted September 14, 2008 Share Posted September 14, 2008 Yes, it would be. You could getTickCount( ) when player right-click and getTickCount( ) when a player dies. Then compare the values and see if the difference is greater then the specified amount of milliseconds. Yes, but I know some people who click LMB as soon as they pressed RMB... =/ And it's also possible to hit the head without pressing RMB. With things like these it's much harder to detect if player is cheating or just pro. Link to comment
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now