AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Scripting Help (https://forums.alliedmods.net/forumdisplay.php?f=11)
-   -   View direction vector (https://forums.alliedmods.net/showthread.php?t=65283)

JuXas 01-05-2008 06:07

View direction vector
 
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'?

ConnorMcLeod 01-05-2008 06:47

Re: View direction vector
 
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


All times are GMT -4. The time now is 11:02.

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