Raised This Month: $ Target: $400
 0% 

How to make a smoke grenade explode ?


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

Hi,

All in the title.

What i've tried :

Code:
        set_pev(ent, pev_movetype, MOVETYPE_STEP)         set_pev(ent, pev_velocity, {0.0,0.0,-200.0})
The nade fall on the ground but then take few seconds to explode (best way i've foung at the moment.)



Code:
        set_pev(ent, pev_velocity, {0.0,0.0,0.0})         engfunc(EngFunc_DropToFloor, ent)
Not better



Code:
dllfunc(DLLFunc_Touch, ent, 0)
Doesn't work

Code:
dllfunc(DLLFunc_Touch, 0, ent)
Doesn't work


P.S.: set_pev(ent, pev_dmgtime, 0.0) just work fine for HE and Flash, but not for smokes.

Last edited by ConnorMcLeod; 11-09-2007 at 11:56.
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