Raised This Month: $ Target: $400
 0% 

get_user_origin keeps returning 0,0,0


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
jameszhao00
Junior Member
Join Date: Jan 2008
Old 01-05-2008 , 14:37   Re: get_user_origin keeps returning 0,0,0
Reply With Quote #8

I was only debugging my code with mode 0. I originally did mode 3 - mode 1, which returns the view vector. Then in my other program I batch convert them to angles.

Edit. Now I look at it, it does include traceline, which is a bit heavy. Does anyone know if pev_v_angle returns ints or floats?

Edit: Here's the weird part. pev_v_angle only returns x,y view dir, but not z.
Code:
    new Float:angle[3];
    new text[30];
    pev(id, pev_v_angle, angle);
    format(text, 30, " %f, %f, %f", angle[0], angle[1], angle[2]);
Edit: NVM. I think it's strictly the view angle, which doesn't have a z. I was thinking of the view vectors.

Last edited by jameszhao00; 01-05-2008 at 15:00.
jameszhao00 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 11:08.


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