AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Scripting Help (https://forums.alliedmods.net/forumdisplay.php?f=11)
-   -   Let a grenade explode (https://forums.alliedmods.net/showthread.php?t=27698)

Ramono 04-27-2006 04:05

Let a grenade explode
 
How to let a grenade explode?

Somthing that activates the DLL from CS.
or just some script :P

He and flashbang grenade.

Thanks,
Ramon

v3x 04-27-2006 04:15

Code:
entity_set_float(grenade , EV_FL_nextthink , entity_get_float(grenade , EV_FL_nextthink) - 1.0);
or something

VEN 04-27-2006 05:01

Think time expanding will not help. You probably confused it with dmgtime.

This method will let grenade explode almost instantly:
Code:
entity_set_float(entid, EV_FL_dmgtime, get_gametime() - 7)

Also take a look here http://forums.alliedmods.net/showthread.php?t=9607

Ramono 04-27-2006 09:45

Quote:

Originally Posted by VEN
Think time expanding will not help. You probably confused it with dmgtime.

This method will let grenade explode almost instantly:
Code:
entity_set_float(entid, EV_FL_dmgtime, get_gametime() - 7)

Also take a look here http://forums.alliedmods.net/showthread.php?t=9607

Thanks it works :D:D:D
Added it to plugin Steer nade
(your credit in it)

+k


All times are GMT -4. The time now is 05:01.

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