Raised This Month: $ Target: $400
 0% 

wierd results from get_distance


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Author Message
genesis
Senior Member
Join Date: Oct 2004
Location: CALIFORNIA, USA
Old 02-19-2007 , 17:37   wierd results from get_distance
Reply With Quote #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)
Attached Files
File Type: txt custom_distance.txt (394 Bytes, 95 views)
__________________
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.
genesis is offline
 



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 00:35.


Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Theme made by Freecode