AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Scripting Help (https://forums.alliedmods.net/forumdisplay.php?f=11)
-   -   is_in_viewcone help (https://forums.alliedmods.net/showthread.php?t=89908)

whosyourdaddy 04-11-2009 22:07

is_in_viewcone help
 
ok well my issue is that it does do everything in the right direction but it will also effect those who cant be seen. for example i can hide behind a wall but if this is put into check it would return true when they cant really see me but are aimin at my direction, anyway to fix this?

Bugsy 04-11-2009 22:29

Re: is_in_viewcone help
 
You can also do an is_visible() <engine> check. Though, I don't think there is a 100% accurate way of determining whether a player is visible or not. The problem happens when a portion of a players model (arms\hands\feet) is visible but is_visible() will return as not being visible.

whosyourdaddy 04-11-2009 23:03

Re: is_in_viewcone help
 
would this also work http://forums.alliedmods.net/showpos...10&postcount=3

Bugsy 04-11-2009 23:06

Re: is_in_viewcone help
 
That will do the same thing as the engine function is_visible. You will get the same result that I mentioned above. anakin_cstrike mentions it at the bottom of the post.

Exolent[jNr] 04-12-2009 00:09

Re: is_in_viewcone help
 
You can try Ham_FVisible.
Also, you can try checking the player's bounding box to see if it is visible like in "Peeping Tom".

It checks:
  • Top
  • Left/Right Sides
  • Bottom


All times are GMT -4. The time now is 02:23.

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