AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Scripting Help (https://forums.alliedmods.net/forumdisplay.php?f=11)
-   -   Is player in smoke? (https://forums.alliedmods.net/showthread.php?t=127446)

Brreaker 05-21-2010 09:00

Is player in smoke?
 
As simple as that.How can I detect if somebody is in the smoke of a smokegrenade?

wrecked_ 05-21-2010 15:53

Re: Is player in smoke?
 
You wouldn't be able to get it directly or as simply as it sounds, but you could find the radius of a smoke grenade's explosion and then on client_PreThink or a prethink forward you could get the distance from the player to the grenade (collect the origin in a global variable when it explodes).


All times are GMT -4. The time now is 03:32.

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