View Single Post
hornet
AMX Mod X Plugin Approver
Join Date: Mar 2010
Location: Australia
Old 11-30-2013 , 05:09   Re: HEs destroy grenades
Reply With Quote #13

Quote:
Originally Posted by BeasT View Post
I don't want to use orpheu for such a simple plugin, unless it's a must for aproval. Also is the second method reliable? The sounds could be changed or blocked...
I can't imagine why anyone wouldn't want to use Orpheu since some of the most powerful plugins are powered by it.
The second method is reliable, so long as the sounds have not been changed or blocked.

You don't need either of those in order for approval, but it would still be preferable.
Something you do need, during Think, check for either entity owner = 0, or for EF_NODRAW to prevent the final useless think after explosion.

Optional: Another and more efficient way with using think would be to use Ham_Think ( Post ) and only register the think when a grenade is thrown. On explosion, check for other grenade's existance, and then unregister think. This will also prevent the planted C4 from thinking ( Unless of course a HE grenade is thrown during C4 countdown ).
hornet is offline