Quote:
Originally Posted by GoD-Tony
Whoa, this part shouldn't be changed at all. It's there because of the way that the angles need to be calculated.
Code:
/* Using these values as an example: vLastAngles = -179 vAngles = 170 */ /* GetVectorDistance( ) will return 349 in this case, but the player didn't do such a large spin. */ fAngleDiff = GetVectorDistance(vLastAngles, vAngles); // The max a player could snap is 180, and the above case is accounted for here. if (fAngleDiff > 180) fAngleDiff = (fAngleDiff - 360) * -1; // Player snapped 11 degrees.
I probably should have commented the code as I went along, but this went from a small test case to SMAC pretty quickly.
|
hehe =) but i was desperate and wanted the aimbot detection to be more aggressive but i change it back then,
but its funny as i aint got one false detection yet, but ok its an war server, so the player amount is not that big