Quote:
Originally Posted by Th3822
PHP Code:
#include <amxmodx>
#include <fakemeta>
#include <reapi>
public plugin_init()
{
register_plugin("No HE Smoke", "0.1", "Th3-822");
RegisterHookChain(RG_CGrenade_ExplodeHeGrenade, "HE_Exploded", 1);
}
public HE_Exploded(iEnt)
{
// Remove "smoke & remove" think
set_ent_data(iEnt, "CBaseEntity", "m_pfnThink", 0);
// Remove grenade (yes, there are "better" methods to do this, but i'm lazy to add more lines)
engfunc(EngFunc_RemoveEntity, iEnt);
}
|
This is actually sort of a really good thought process, I would have never thought of doing it this way lol.
I would have just unprecached black_smoke1,2,3,4.spr, but idk if its also used in clientside.
__________________