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

[HELP] Detect Players in Front


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
Depresie
Veteran Member
Join Date: Nov 2013
Old 10-06-2015 , 02:06   [HELP] Detect Players in Front
Reply With Quote #1

Is there any way to detect other players or certain entities in front of the player like get_user_aiming but with an increased value on the Y and Z vectors?

For example get_user_aiming detects the target within the red square, i want a method to detect the tergets withing the green square

Last edited by Depresie; 10-06-2015 at 03:31.
Depresie is offline
wickedd
Veteran Member
Join Date: Nov 2009
Old 10-06-2015 , 06:41   Re: [HELP] Detect Players in Front
Reply With Quote #2

is_in_viewcone
__________________
Just buy the fucking game!!!!
I hate No-Steamers and lazy ass people.
wickedd is offline
Depresie
Veteran Member
Join Date: Nov 2013
Old 10-06-2015 , 13:18   Re: [HELP] Detect Players in Front
Reply With Quote #3

thanks, but this detects all the entities in the VOF, i want to detect and retrieve the index of the entities only from the green square on a distance of 128...

so bassicaly, i want to detect the entities in a rectangle with definable vector value in the direction of the aim, or a in cone with definable degrees and distance from the user's origin

i also want to ignore entities that are not visible at all, for example entities behind a wall

Last edited by Depresie; 10-06-2015 at 14:28.
Depresie 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:33.


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