Raised This Month: $276 Target: $400
 69% 

Grenade explosion ( TIME )


Post New Thread Reply   
 
Thread Tools Display Modes
Plugin Info:     Modification:   ALL        Category:   Admin Commands        Approver:   Arkshine (91)
bboygrun
CHOMP
Join Date: May 2010
Location: France
Old 05-04-2011 , 13:09   Grenade explosion ( TIME )
Reply With Quote #1

PLUGIN : Grenade explosion ( TIME )


: | Description | :

With this plugin you can set the time of a grenade's explosion ( Flash - HE - SMOKE )

: | Cvars | :


HE = He grenade
FL = Flashbang
SK = Smokegrenade

Grenade_TIME_HE : The nade will explose X seconds after you thrown it. ( DEFAULT 3.0 )
Grenade_TIME_FL : The nade will explose X seconds after you thrown it. ( DEFAULT 2.0 )
Grenade_TIME_SK : The nade will explose X seconds after you thrown it. ( DEFAULT 4.0 )



** IMPORTANT : IF THE TIME IS SET TO 0, THE PLUGIN DOESNT CHANGE THE TIME OF THE GRENADE. **
( And don't forget to restart the round when you change a SK cvar )
: | Credits | :


- Here come the idea : http://forums.alliedmods.net/showthread.php?t=155670
- VEN : http://forums.alliedmods.net/showpos...9&postcount=91
- ConnorMcLeod & Arkshine for improvements
Attached Files
File Type: sma Get Plugin or Get Source (grenade_time.sma - 2065 views - 3.0 KB)
__________________

Last edited by bboygrun; 04-20-2012 at 17:18. Reason: Update 2.0
bboygrun is offline
ANTICHRISTUS
kingdom of weird stuff
Join Date: Jun 2010
Location: My kingdom is not in thi
Old 05-04-2011 , 15:51   Re: Grenade explosion ( TIME ) v1.0
Reply With Quote #2

a good plugin to set the grenade's explosion time like in the reality (like in DOD) .
__________________
ANTICHRISTUS is offline
Ethan
Junior Member
Join Date: Mar 2009
Location: Russia, Saratov
Old 05-04-2011 , 21:44   Re: Grenade explosion ( TIME ) v1.0
Reply With Quote #3

Nice! Maybe you could add feature to release the trigger lever, while holding the grenade, to start timer, while you still holding it? Or it's already done somewhere?
Ethan is offline
bboygrun
CHOMP
Join Date: May 2010
Location: France
Old 05-05-2011 , 10:35   Re: Grenade explosion ( TIME ) v1.0
Reply With Quote #4

Already exist ^^ : http://forums.alliedmods.net/showthr...hlight=explode
__________________
bboygrun is offline
Ethan
Junior Member
Join Date: Mar 2009
Location: Russia, Saratov
Old 05-05-2011 , 21:40   Re: Grenade explosion ( TIME ) v1.0
Reply With Quote #5

Quote:
Originally Posted by bboygrun View Post
Already exist ^^
my bad, so we have to use both plugins for nice bombing
Ethan is offline
ConnorMcLeod
Veteran Member
Join Date: Jul 2006
Location: France (95)
Old 05-06-2011 , 02:57   Re: Grenade explosion ( TIME ) v1.0
Reply With Quote #6

Using a Trie to store model would prevent you from looping through the 3 models. (Detection by model is not really good though, search for VEN get_grenade_index stock).
About FM_Think, use Ham_Think with "grenade" class would be more efficient.
Also the task system doesn't seem a good way for what you do (only timers), also, i'm not sure but should be tested, if you set Smoke to a high value (15-20 should be enough to test), smoke nade should explode as if your plugin was not installed.
__________________
- tired and retired -

Last edited by ConnorMcLeod; 05-06-2011 at 03:00.
ConnorMcLeod is offline
K.K.Lv
Veteran Member
Join Date: Aug 2008
Location: GameFolder
Old 05-06-2011 , 06:12   Re: Grenade explosion ( TIME ) v1.0
Reply With Quote #7

http://forums.alliedmods.net/showpos...9&postcount=91
__________________
QQ:116268742
K.K.Lv is offline
Send a message via MSN to K.K.Lv
bboygrun
CHOMP
Join Date: May 2010
Location: France
Old 05-07-2011 , 10:46   Re: Grenade explosion ( TIME ) v1.0
Reply With Quote #8

Update.
__________________
bboygrun is offline
ConnorMcLeod
Veteran Member
Join Date: Jul 2006
Location: France (95)
Old 05-07-2011 , 12:10   Re: Grenade explosion ( TIME ) v1.0
Reply With Quote #9

Why have you removed c4 check from VEN's stock ?
__________________
- tired and retired -
ConnorMcLeod is offline
bboygrun
CHOMP
Join Date: May 2010
Location: France
Old 05-07-2011 , 12:14   Re: Grenade explosion ( TIME ) v1.0
Reply With Quote #10

Oups, sorry, i add it ^^.
__________________
bboygrun is offline
Reply


Thread Tools
Display Modes

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 12:26.


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