Thats a nice function
Though missing sqrt, so I post your intsqrt() and the 2 sqrt-function of the extension:
PHP Code:
sqrt(arg) { return closer(800, arg); }
invSqrt(arg) { return closer(801, arg); } // check: http://www.beyond3d.com/content/articles/8/
intsqrt(input)
{
output = 0;
while(output * output < input)
output++;
if(maps\mp\_utility::abs(input - output * output) > maps\mp\_utility::abs(input - (output - 1) * (output - 1)))
output--;
return output;
}
File is here: http://killtube.org/downloads/cod2/e...n/std/math.gsc