AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Scripting Help (https://forums.alliedmods.net/forumdisplay.php?f=11)
-   -   How to add delay to grenade explosion? (https://forums.alliedmods.net/showthread.php?t=75853)

Howdy! 08-13-2008 13:21

How to add delay to grenade explosion?
 
Is it possible to add delay to grenade explosion?

marcellus 08-13-2008 13:42

Re: Block grenade from exploding?
 
i think setting pev_nexthink on the grenade's entity should work.

PHP Code:

set_pev(entpev_nextthinkget_gametime() + 999.9// block from exploding 

set the duration you want instead of 999.9 .

Howdy! 08-13-2008 13:46

Re: Block grenade from exploding?
 
Quote:

Originally Posted by marcellus (Post 669094)
i think setting pev_nexthink on the grenade's entity should work.

PHP Code:

set_pev(entpev_nextthinkget_gametime() + 999.9// block from exploding 

set the duration you want instead of 999.9 .

Thanks, i will try that. ;)

Exolent[jNr] 08-13-2008 14:20

Re: How to add delay to grenade explosion?
 
I thought it was pev_dmgtime.

Emp` 08-13-2008 14:43

Re: How to add delay to grenade explosion?
 
Quote:

Originally Posted by Exolent[jNr] (Post 669110)
I thought it was pev_dmgtime.


Exolent[jNr] 08-13-2008 14:46

Re: How to add delay to grenade explosion?
 
You can take a look at the frostnades code.
It uses pev_dmgtime to detect when the grenade will explode.

Howdy! 08-13-2008 15:18

Re: How to add delay to grenade explosion?
 
Quote:

Originally Posted by Exolent[jNr] (Post 669123)
You can take a look at the frostnades code.
It uses pev_dmgtime to detect when the grenade will explode.

Thanks for the tip. Haven't succeeded so far. :)


It worked marcellus. Exolent couldnt get the dmgtime to work. (If it even works).


All times are GMT -4. The time now is 03:06.

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