Raised This Month: $ Target: $400
 0% 

HEs destroy grenades 1.1.1


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
BeasT
Senior Member
Join Date: Apr 2007
Location: Lithuania
Old 12-01-2013 , 12:33   Re: HEs destroy grenades
Reply With Quote #8

Quote:
Originally Posted by ConnorMcLeod View Post
What you should do for nade type detection is :

1. check m_bIsC4 so you can filter c4
Will do.

Quote:
Originally Posted by ConnorMcLeod View Post
2. check m_usEvent (use get_pdata_short (is integrated to amxx1.8.3 or you can find a stock))
if value is 0 : flashbang
if value is m_usExplo ( = precache_event(1, "events/createexplo.sc") ) -> he
I don't need to check for flash and HE, only for smoke, which I do by...

Quote:
Originally Posted by ConnorMcLeod View Post
else if value is m_usSmoke ( = precache_event(1, "events/createsmoke.sc") ) -> smoke
...using this check: if(get_pdata_int(nearbyNade, m_usEvent, XO_WEAPON) & SMOKENADE)
As far as I tested it works fine.



Quote:
Originally Posted by hornet View Post
Something you do need, during Think, check for either entity owner = 0, or for EF_NODRAW to prevent the final useless think after explosion.
Checking owner will do fine, imo.



Quote:
Originally Posted by ANTICHRISTUS View Post
very good idea, but I have some questions/suggestions:
1. Those won't get destroyed, because they are not "grenade" ents.
2. Should work.

Last edited by BeasT; 12-01-2013 at 12:35.
BeasT is offline
Send a message via Skype™ to BeasT
 



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 00:50.


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