Raised This Month: $ Target: $400
 0% 

How to add delay to grenade explosion?


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
Howdy!
Senior Member
Join Date: Feb 2007
Old 08-13-2008 , 13:21   How to add delay to grenade explosion?
Reply With Quote #1

Is it possible to add delay to grenade explosion?
__________________
[IMG]http://img221.**************/img221/5608/howdyfinnishhq2.jpg[/IMG]

Last edited by Howdy!; 08-13-2008 at 13:42.
Howdy! is offline
marcellus
Senior Member
Join Date: Mar 2004
Old 08-13-2008 , 13:42   Re: Block grenade from exploding?
Reply With Quote #2

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 .
__________________
www.war-cs.com
french cz community
marcellus is offline
Howdy!
Senior Member
Join Date: Feb 2007
Old 08-13-2008 , 13:46   Re: Block grenade from exploding?
Reply With Quote #3

Quote:
Originally Posted by marcellus View Post
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. ;)
__________________
[IMG]http://img221.**************/img221/5608/howdyfinnishhq2.jpg[/IMG]
Howdy! is offline
Exolent[jNr]
Veteran Member
Join Date: Feb 2007
Location: Tennessee
Old 08-13-2008 , 14:20   Re: How to add delay to grenade explosion?
Reply With Quote #4

I thought it was pev_dmgtime.
__________________
No private work or selling mods.
Quote:
Originally Posted by xPaw View Post
I love you exolent!
Exolent[jNr] is offline
Emp`
AMX Mod X Plugin Approver
Join Date: Aug 2005
Location: Decapod 10
Old 08-13-2008 , 14:43   Re: How to add delay to grenade explosion?
Reply With Quote #5

Quote:
Originally Posted by Exolent[jNr] View Post
I thought it was pev_dmgtime.
Emp` is offline
Send a message via AIM to Emp` Send a message via MSN to Emp` Send a message via Yahoo to Emp` Send a message via Skype™ to Emp`
Exolent[jNr]
Veteran Member
Join Date: Feb 2007
Location: Tennessee
Old 08-13-2008 , 14:46   Re: How to add delay to grenade explosion?
Reply With Quote #6

You can take a look at the frostnades code.
It uses pev_dmgtime to detect when the grenade will explode.
__________________
No private work or selling mods.
Quote:
Originally Posted by xPaw View Post
I love you exolent!
Exolent[jNr] is offline
Howdy!
Senior Member
Join Date: Feb 2007
Old 08-13-2008 , 15:18   Re: How to add delay to grenade explosion?
Reply With Quote #7

Quote:
Originally Posted by Exolent[jNr] View Post
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).
__________________
[IMG]http://img221.**************/img221/5608/howdyfinnishhq2.jpg[/IMG]

Last edited by Howdy!; 08-14-2008 at 13:22.
Howdy! 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 10:43.


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