AlliedModders

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

Doc-Holiday 09-18-2011 22:01

know when player is in smoke
 
Whats the best method of catching if player is sitting in smoke. or a radius of the smoke gren mdl.

fysiks 09-18-2011 22:04

Re: know when player is in smoke
 
Quote:

Originally Posted by Doc-Holiday (Post 1558479)
a radius of the smoke gren mdl.

That wording kinda tells you right now. If you can get the origin of the grenade then you can find enties within a radius of it (it's a sphere if you don't already know).

Doc-Holiday 09-18-2011 22:08

Re: know when player is in smoke
 
Quote:

Originally Posted by fysiks (Post 1558480)
That wording kinda tells you right now. If you can get the origin of the grenade then you can find enties within a radius of it (it's a sphere if you don't already know).

Ive never been able to get the sphere to return correctly thats why i was asking..

It seems to only return the closest to the origin

fysiks 09-18-2011 23:05

Re: know when player is in smoke
 
IIRC, you have to loop with it and then when you find the entity that you were looking for then you stop the loop. Anything beyond that advice I can't help :|

Doc-Holiday 09-18-2011 23:32

Re: know when player is in smoke
 
Quote:

Originally Posted by fysiks (Post 1558494)
IIRC, you have to loop with it and then when you find the entity that you were looking for then you stop the loop. Anything beyond that advice I can't help :|

Ill play with it some more.. any ideas on the origin of the grenade? i know that

The Grenade is thrown. Then Entity created. then the CreateSmoke or w/e is called lol but whats the location of the smoke entity.


All times are GMT -4. The time now is 19:36.

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