View Single Post
Damizean
SourceMod Donor
Join Date: Mar 2009
Old 08-14-2010 , 10:53   Re: NegateVector() broken?
Reply With Quote #10

Your issue is that the - unary operator doesn't work with floats, I came across that issue recently, so your code would need to be:
PHP Code:
VecNegated[0] = 0.0 Vec[0];
VecNegated[1] = 0.0 Vec[1];
VecNegated[2] = 0.0 Vec[2]; 
__________________
Dat annoying guy
Damizean is offline
Send a message via AIM to Damizean Send a message via MSN to Damizean