AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Scripting Help (https://forums.alliedmods.net/forumdisplay.php?f=11)
-   -   Explode the C4 (https://forums.alliedmods.net/showthread.php?t=243441)

FromTheFuture 07-04-2014 12:55

Explode the C4
 
Hi, how to blow up a threat bomb?
This can be done through this, right?
PHP Code:

while((grenade find_ent_by_class(grenade,"grenade"))) 

But I don't know hot to do it.

SicknessArG 07-04-2014 13:53

Re: Explode the C4
 
See the code of 'Grenade Realism' by ot_207.

Eagle07 07-04-2014 14:23

Re: Explode the C4
 
https://forums.alliedmods.net/showthread.php?p=227464

meTaLiCroSS 07-04-2014 15:59

Re: Explode the C4
 
PHP Code:

const m_flC4Blow 100

stock DetonateC4Bomb
(c4entid)
{
    
set_pdata_float(c4entidm_flC4Blow0.0)
    
dllfunc(DLLFunc_Thinkc4entid)



GuskiS 07-04-2014 16:40

Re: Explode the C4
 
Quote:

Originally Posted by meTaLiCroSS (Post 2162006)
PHP Code:

const m_flC4Blow 100

stock DetonateC4Bomb
(c4entid)
{
    
set_pdata_float(c4entidm_flC4Blow0.0)
    
dllfunc(DLLFunc_Thinkc4entid)



Or cstrike> cs_set_c4_explode_time(ent, get_gametime() + 0.01);

FromTheFuture 07-04-2014 17:53

Re: Explode the C4
 
Okay, but how to get entity ID?

FromTheFuture 07-04-2014 17:57

Re: Explode the C4
 
This is it, right?
PHP Code:

 if ((bomb fm_find_ent_by_model(-1"grenade""models/w_c4.mdl"))) 

Thank you guys!


All times are GMT -4. The time now is 21:18.

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