This site is a testing version, but all data is shared with the live forum.


Raised This Month: $ Target: $400
 0% 

Is player in smoke?


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
Brreaker
Senior Member
Join Date: Oct 2009
Location: Constanta, Romania
Old 05-21-2010 , 09:00   Is player in smoke?
Reply With Quote #1

As simple as that.How can I detect if somebody is in the smoke of a smokegrenade?
__________________
There are 10 kinds of people.Those who understand binary, and those who don't.
Also, for those who understand binary, there is a donation tab too!
No steam || PM support!
Brreaker is offline
Send a message via MSN to Brreaker Send a message via Yahoo to Brreaker
wrecked_
Veteran Member
Join Date: Jan 2010
Location: New York (GMT-5)
Old 05-21-2010 , 15:53   Re: Is player in smoke?
Reply With Quote #2

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).
__________________
[ Paid Requests ]
DO NOT PM ME ABOUT BLOCKMAKER
NO PRIVATE SUPPORT
wrecked_ 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:00.


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