Quote:
Originally Posted by red_bull2oo6
@fysiks i'll try your idea tonight when i reach home.
@claudiuhsk i suk at c++  and i don't really understand.
@avril-lavighe i think i tried it..
i'll edit later. ty for your answers.
|
PHP Code:
stock math_CancelApplicate(Vector[3])
{
Vector[2] = 0;
}
stock math_CancelApplicateF(Float:Vector[3])
{
Vector[2] = 0.0;
}
stock math_Distance2D(VectorA[3], VectorB[3])
{
math_CancelApplicate(VectorA);
math_CancelApplicate(VectorB);
return get_distance(VectorA, VectorB);
}
stock Float:math_DistanceF2D(Float:VectorA[3], Float:VectorB[3])
{
math_CancelApplicateF(VectorA);
math_CancelApplicateF(VectorB);
return get_distance_f(VectorA, VectorB);
}
__________________