AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Scripting Help (https://forums.alliedmods.net/forumdisplay.php?f=11)
-   -   [HELP] Detect Players in Front (https://forums.alliedmods.net/showthread.php?t=272775)

Depresie 10-06-2015 02:06

[HELP] Detect Players in Front
 
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
http://i61.tinypic.com/2weyjvs.jpg

wickedd 10-06-2015 06:41

Re: [HELP] Detect Players in Front
 
is_in_viewcone

Depresie 10-06-2015 13:18

Re: [HELP] Detect Players in Front
 
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


All times are GMT -4. The time now is 22:15.

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