Raised This Month: $ Target: $400
 0% 

Explode the C4


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
FromTheFuture
Senior Member
Join Date: Jan 2013
Old 07-04-2014 , 12:55   Explode the C4
Reply With Quote #1

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.
FromTheFuture is offline
SicknessArG
Junior Member
Join Date: Oct 2012
Location: Paraná, Entre Ríos (ARG)
Old 07-04-2014 , 13:53   Re: Explode the C4
Reply With Quote #2

See the code of 'Grenade Realism' by ot_207.
SicknessArG is offline
Send a message via MSN to SicknessArG Send a message via Skype™ to SicknessArG
Eagle07
Veteran Member
Join Date: May 2014
Location: Morocco :D
Old 07-04-2014 , 14:23   Re: Explode the C4
Reply With Quote #3

https://forums.alliedmods.net/showthread.php?p=227464
__________________
Eagle07 is offline
meTaLiCroSS
Gaze Upon My Hat
Join Date: Feb 2009
Location: Viña del Mar, Chile
Old 07-04-2014 , 15:59   Re: Explode the C4
Reply With Quote #4

PHP Code:
const m_flC4Blow 100

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

__________________
Quote:
Originally Posted by joropito View Post
You're right Metalicross
meTaLiCroSS is offline
GuskiS
Veteran Member
Join Date: Aug 2007
Location: Latvia
Old 07-04-2014 , 16:40   Re: Explode the C4
Reply With Quote #5

Quote:
Originally Posted by meTaLiCroSS View Post
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);
__________________
Finished mods:
Trouble in Terrorist Town
MurderMod
The Hidden
Cowboys vs Indians
JailBreak Supreme
Survival Madness
GuskiS is offline
FromTheFuture
Senior Member
Join Date: Jan 2013
Old 07-04-2014 , 17:53   Re: Explode the C4
Reply With Quote #6

Okay, but how to get entity ID?
FromTheFuture is offline
FromTheFuture
Senior Member
Join Date: Jan 2013
Old 07-04-2014 , 17:57   Re: Explode the C4
Reply With Quote #7

This is it, right?
PHP Code:
 if ((bomb fm_find_ent_by_model(-1"grenade""models/w_c4.mdl"))) 
Thank you guys!
FromTheFuture is offline
Reply



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 21:18.


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