Trigger Bomb Detonation in CS
Is there a way to cause a planted bomb to detonate? I am working on a dead-man's switch plugin. If the player who planted the bomb is killed, I want to trigger the bomb to explode.
|
Re: Trigger Bomb Detonation in CS
I found the answer in http://forums.alliedmods.net/showthread.php?t=40164
Code:
fm_find_ent_by_model comes from Fakemeta Utilities: http://forums.alliedmods.net/showthread.php?t=28284 If I'm interpreting this correctly, offset 100 is the gametime at which the bomb explodes. The above code triggers a "natural" explosion by setting offset 100 to the current gametime. |
Re: Trigger Bomb Detonation in CS
I don't know if with get_gametime() works, but with this is working...
Code:
set_pdata_float(*Ent, 100, 0.0); |
Re: Trigger Bomb Detonation in CS
Quote:
|
Re: Trigger Bomb Detonation in CS
Quote:
|
| All times are GMT -4. The time now is 11:00. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.