Raised This Month: $ Target: $400
 0% 

View direction vector


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
JuXas
Member
Join Date: Jul 2005
Location: Panavezys, Lithuania
Old 01-05-2008 , 06:07   View direction vector
Reply With Quote #1

How to get viewing direction vector?

I have solved half of this question. I calculate it from 'user origin' and 'end position from eyes'. It would be ok if i know what is offset of eyes relative to user origin. How to get that offset? Or, is there easier way to get that 'viewing direction vector'?
__________________
-- Nothing Here --
JuXas is offline
ConnorMcLeod
Veteran Member
Join Date: Jul 2006
Location: France (95)
Old 01-05-2008 , 06:47   Re: View direction vector
Reply With Quote #2

If mode is passed, the origin changes:
0 - current position (Default)
1 - Position from eyes (weapon aiming)
2 - End position from player position
3 - End position from eyes (hit point for weapon)
4 - Position from last bullet hit (only CS)

http://www.amxmodx.org/funcwiki.php?...igin&go=search


Use mode 1 and mode 3
__________________
- tired and retired -

- my plugins -
ConnorMcLeod is offline
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 11:02.


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