Raised This Month: $ Target: $400
 0% 

Origin based on where the player looks


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Liverwiz
Veteran Member
Join Date: Feb 2010
Location: Maryland
Old 09-15-2012 , 11:01   Re: Origin based on where the player looks
Reply With Quote #9

get_user_origin(id, origin, mode=3)

Notes:

Modes:

0 - current position.
1 - position from eyes (weapon aiming).
2 - end position from player position.
3 - end position from eyes (hit point for weapon).
4 - position of last bullet hit (only CS).


That what you're looking for? granted, it won't be 100 units, but you could trim it down by using mode 1 and 3. Though this will raise your position a bit because its from the eyes, not the ground/feet.
__________________
What an elegant solution to a problem that doesn't need solving....
Liverwiz 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 08:16.


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