[SOLVED] Get player's 'hands' origin
Hi, I need to get the player's 'hands' origin (or, if you want,get the origin of a player model's attachment). I know the engine does it, as messages like TE_BEAMFOLLOW accept and entid ORed with an attachment bitflag. Does anybody know how to do this?
Thanks in advance. |
Re: Get player's 'hands' origin
Nevermind,I found a better way: instead of getting their hand pos,I just use angle_vector() to get a normalized vector pointing to where they are looking at, and add it to the user's origin. The code:
Code:
if(++iPlayerJump_Thinks[id] >= 10) |
| All times are GMT -4. The time now is 05:40. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.