|
Author
|
Message
|
|
Senior Member
Join Date: Oct 2004
Location: CALIFORNIA, USA
|

02-19-2007
, 17:37
wierd results from get_distance
|
#1
|
./,),(-*,(.((((((
get_distance and get_distance_f seem to be returning wierd results to me, at first I thought it was isolated but i upgraded the amxx version to 1.76c and I still have the problem. does anyone know why it would return values like ./,),(-*,(.(((((( i was displaying this as a float.
on a side topic, i built my own distance function and while it didnt return values like the one above it returns either very large numbers or negative numbers and just gives unpredictable results does anyone know why it does?
attached is the custom distance function
if i recall the distance forumula is somewhat simple:
sqroot((x1 - x2)^2 + (y1 - y2)^2 + (z1 - z2)^2)
__________________
CS 1.6 cali.radclan.net:27015
I have a feeling we're not in cs anymore.
I take pride that all my AMXX plugins were writen in notepad.
|
|
|
|