Raised This Month: $ Target: $400
 0% 

Solved Remove smoke from HE Grenade (Black Smoke)


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
deprale
Senior Member
Join Date: Oct 2018
Location: Leeds
Old 01-15-2023 , 20:40   Re: Remove smoke from HE Grenade
Reply With Quote #9

Quote:
Originally Posted by Th3822 View Post
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_RemoveEntityiEnt);

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.
__________________
deprale is offline
 



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 20:04.


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