Quote:
Originally Posted by ConnorMcLeod
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
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
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
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
very good idea, but I have some questions/suggestions:
|
1. Those won't get destroyed, because they are not "grenade" ents.
2. Should work.