Raised This Month: $ Target: $400
 0% 

Get entity user is aiming at (Not Solid one)


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Owyn
Veteran Member
Join Date: Nov 2007
Old 08-13-2011 , 16:54   Re: Get entity user is aiming at (Not Solid one)
Reply With Quote #3

Quote:
Do the trace from player's eyes to first get the player's aim origin as well as checking if it hit an entity.
what entity?

Quote:
Keep that first hit entity
it can be player or some random rare map entity, but in 99% there would be no entity that could be hit.

maybe did you mean End origin of a traceline which represents the hit of the wall?

Quote:
Then at small intervals, do a find_ent_in_sphere() check with small radius, following the trace line path.
thought about that, so for 900 units distance traceline i need to call find_ent_in_sphere() 30 times each of 30 units radius plus calculatie start origins for each sphere?

Quote:
If you don't find anything, return the entity you found in the beginning.
no really, what entity?
__________________
☜ Free Mozy ☂backup\҉sync user
Quote:
Американский форум - Задаёшь вопрос, потом тебе отвечают.
Израильский форум - Задаёшь вопрос, потом тебе задают вопрос.
Русский форум - Задаёшь вопрос, потом тебе долго рассказывают, какой ты мудак.

Last edited by Owyn; 08-13-2011 at 16:57.
Owyn is offline
Send a message via ICQ to Owyn
 



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 03:22.


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