Posts: 3,351
Threads: 780
Joined: Jan 2010
Hello,since i'm scripting an antispeedhack,there is a problem.
I set the max velocity for vehicles at 320km/h and for planes,heli 400km/h.
The problem is,when a player falls down from a mountain or a long road,he will sure exceed the 320km/h,how to avoid that?
Posts: 10,066
Threads: 38
Joined: Sep 2007
Reputation:
0
I presume that you could get the player/vehicle's Z velocity first and see if that exceeds a set maximum. You'd have to test a lot to find what the maximum is, though.
Posts: 52
Threads: 1
Joined: Jun 2008
Reputation:
0
Will if your setting them for just in a vehicle, then detect if there in a vehicle or not.
If it's on foot, couldn't in your code before it flags the warning, it just checks if the speed was due to going downwards, instead of forward / backwards?
Posts: 3,351
Threads: 780
Joined: Jan 2010
Quote:
Originally Posted by Lee_Percox
Will if your setting them for just in a vehicle, then detect if there in a vehicle or not.
If it's on foot, couldn't in your code before it flags the warning, it just checks if the speed was due to going downwards, instead of forward / backwards?
|
The antispeedhack is for vehicles only,so only if player IS in a vehicle and exceeds the max speed.
Posts: 3,351
Threads: 780
Joined: Jan 2010
Can u explain better please?
Posts: 2,726
Threads: 85
Joined: Jul 2010
Reputation:
0
Instead of actually doing that, why don't you send administrators a message, that a player could possibly be hacking if it exceeds the value? Systems like this can never be 100% accurate, but admins can solve that. AFAIK very few anticheats can be 100% accurate.