Raised This Month: $51 Target: $400
 12% 

Best way to tell if a certain entity is above head


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
ALKINDA
Member
Join Date: Aug 2013
Old 06-01-2016 , 21:38   Best way to tell if a certain entity is above head
Reply With Quote #1

hey,

wondering how to do this.
im thinking my best way is to somehow set a trace stemming straight from the players skull 1m high, and stay straight with the players movements. when it intersects a certain entity it should know.

thanks.
__________________

Last edited by ALKINDA; 06-01-2016 at 21:40.
ALKINDA is offline
8guawong
AlliedModders Donor
Join Date: Dec 2013
Location: BlackMarke7
Old 06-01-2016 , 22:00   Re: Best way to tell if a certain entity is above head
Reply With Quote #2

a traceray on game frame?
__________________
8guawong is offline
Phil25
AlliedModders Donor
Join Date: Feb 2015
Old 06-02-2016 , 04:26   Re: Best way to tell if a certain entity is above head
Reply With Quote #3

Perhaps a more optimized way is to create a trigger_multiple above each player's head, parent it to them and hook StartTouch or StartTouchPost.

The only entity which doesn't get detected by trigger_multiple I know of is tf_projectile_pipe_remote, which are TF2 stickies.
Phil25 is offline
Neuro Toxin
Veteran Member
Join Date: Oct 2013
Location: { closing the void; }
Old 06-02-2016 , 05:02   Re: Best way to tell if a certain entity is above head
Reply With Quote #4

Do you the entity index above the players head?
__________________
Neuro Toxin is offline
ALKINDA
Member
Join Date: Aug 2013
Old 06-02-2016 , 06:30   Re: Best way to tell if a certain entity is above head
Reply With Quote #5

Quote:
Originally Posted by Phil25 View Post
Perhaps a more optimized way is to create a trigger_multiple above each player's head, parent it to them and hook StartTouch or StartTouchPost.

The only entity which doesn't get detected by trigger_multiple I know of is tf_projectile_pipe_remote, which are TF2 stickies.
i like this idea.. this is for csgo btw
__________________
ALKINDA 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 04:50.


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