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..
And into my code must I include this:
PHP Code:
fw_setmodel(ent,model[])
?
|
No. The author only included that for trails.
__________________