Raised This Month: $ Target: $400
 0% 

Change effect of HE Grenade..


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Screeaam..
Senior Member
Join Date: Jun 2010
Location: Poland
Old 03-15-2011 , 14:59   Re: Change effect of HE Grenade..
Reply With Quote #5

I found..

Should it run?

PHP Code:
RegisterHam(Ham_Think,"grenade","ham_grenade_think",0); 
Can someone translate each of the lines of the code? :

PHP Code:
// grenade is ticking away
public ham_grenade_think(ent)
{
    
// not a frostnade
    
if(!pev(ent,pev_bInDuck)) return FMRES_IGNORED;
    
    new 
Float:dmgtime;
    
pev(ent,pev_dmgtime,dmgtime);
    if(
dmgtime get_gametime()) return FMRES_IGNORED;
    
    
// and boom goes the dynamite
    
frostnade_explode(ent);

    return 
FMRES_SUPERCEDE;

And into my code must I include this:

PHP Code:
fw_setmodel(ent,model[]) 
?

Last edited by Screeaam..; 03-15-2011 at 15:01.
Screeaam.. 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