Raised This Month: $ Target: $400
 0% 

Change effect of HE Grenade..


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Exolent[jNr]
Veteran Member
Join Date: Feb 2007
Location: Tennessee
Old 03-15-2011 , 16:48   Re: Change effect of HE Grenade..
Reply With Quote #6

PHP Code:
// -- handling function for "grenade" entity thinking
public ham_grenade_think(ent// -- "ent" is the entity index
{
    
// -- ignore this part because it isn't needed here
    // not a frostnade
    //if(!pev(ent,pev_bInDuck)) return FMRES_IGNORED;
    
    // -- get the gametime value of when the grenade should explode
    
new Float:dmgtime;
    
pev(ent,pev_dmgtime,dmgtime);
    
    
// -- check if the explode time has not happened yet
    
if(dmgtime get_gametime()) return FMRES_IGNORED;
    
    
// -- call function made for frostnade damage/effects.
    // -- this can be ignore and/or changed to your own function
    // and boom goes the dynamite
    
frostnade_explode(ent);

    
// -- block grenade from exploding
    
return FMRES_SUPERCEDE;

Quote:
Originally Posted by Screeaam.. View Post
And into my code must I include this:

PHP Code:
fw_setmodel(ent,model[]) 
?
No. The author only included that for trails.
__________________
No private work or selling mods.
Quote:
Originally Posted by xPaw View Post
I love you exolent!
Exolent[jNr] 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 14:39.


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