Raised This Month: $ Target: $400
 0% 

How to make a smoke grenade explode ?


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
ConnorMcLeod
Veteran Member
Join Date: Jul 2006
Location: France (95)
Old 11-09-2007 , 12:22   Re: How to make a smoke grenade explode ?
Reply With Quote #5

Quote:
Originally Posted by [ --<-@ ] Black Rose View Post
make it explode on command
Something like that.
Just make it explode as fast as possible.
I just rewrite the grenade realism plugin and i'm just stuck on the smoke grenade :

Code:
public fwdSetModel(ent, model[]) {     if(!g_explode_enable)         return FMRES_IGNORED     static classname[8]     pev(ent, pev_classname, classname, charsmax(classname))     if (!equal(classname, "grenade"))         return FMRES_IGNORED     if (get_pdata_int(ent, 96) & (1<<8))         return FMRES_IGNORED     static owner     owner = pev(ent, pev_owner)     if(!owner)         return FMRES_IGNORED     if(!g_explode[owner])         return FMRES_IGNORED     static bits     bits = get_pdata_int(ent, 114)     if(!bits || bits & (1<<0))     {         static Float:velocity[3]         pev(owner, pev_velocity, velocity)         set_pev(ent, pev_velocity, velocity)         set_pev(ent, pev_dmgtime, 0.0)     }     else if(bits & (1<<1))   // SmokeGrenade Here     {         set_pev(ent, pev_movetype, MOVETYPE_STEP)         set_pev(ent, pev_velocity, {0.0,0.0,-100.0})     }     return FMRES_HANDLED }
ConnorMcLeod 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 01:12.


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