Raised This Month: $ Target: $400
 0% 

help with origin


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
stupok
Veteran Member
Join Date: Feb 2006
Old 10-20-2009 , 22:22   Re: help with origin
Reply With Quote #1

This doesn't make sense:

Code:
abs(gDeathPosition[iClient][0] != gSpawnPosition[iClient][0])
abs() takes the absolute value of the parameter.

For example,

abs(-3) = 3
abs(0) = 0
abs(3) = 3

The result of "x != y" is either 0 or 1, so it does not make sense to pass it into abs().
__________________
stupok is offline
Hawk552
AMX Mod X Moderator
Join Date: Aug 2005
Old 10-20-2009 , 22:33   Re: help with origin
Reply With Quote #2

You should either use xs_vec_equal() or do a Google search on "Epsilon float precision".
__________________
Hawk552 is offline
Send a message via AIM to Hawk552
Reply



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 17:40.


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