AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Approved Plugins (https://forums.alliedmods.net/forumdisplay.php?f=8)
-   -   Grenade explosion ( TIME ) (https://forums.alliedmods.net/showthread.php?t=156326)

bboygrun 05-04-2011 13:09

Grenade explosion ( TIME )
 
1 Attachment(s)
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

ANTICHRISTUS 05-04-2011 15:51

Re: Grenade explosion ( TIME ) v1.0
 
a good plugin to set the grenade's explosion time like in the reality (like in DOD) :up:.

Ethan 05-04-2011 21:44

Re: Grenade explosion ( TIME ) v1.0
 
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?

bboygrun 05-05-2011 10:35

Re: Grenade explosion ( TIME ) v1.0
 
Already exist ^^ : http://forums.alliedmods.net/showthr...hlight=explode

Ethan 05-05-2011 21:40

Re: Grenade explosion ( TIME ) v1.0
 
Quote:

Originally Posted by bboygrun (Post 1463643)
Already exist ^^

my bad, so we have to use both plugins for nice bombing:D

ConnorMcLeod 05-06-2011 02:57

Re: Grenade explosion ( TIME ) v1.0
 
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.

K.K.Lv 05-06-2011 06:12

Re: Grenade explosion ( TIME ) v1.0
 
http://forums.alliedmods.net/showpos...9&postcount=91

bboygrun 05-07-2011 10:46

Re: Grenade explosion ( TIME ) v1.0
 
Update.

ConnorMcLeod 05-07-2011 12:10

Re: Grenade explosion ( TIME ) v1.0
 
Why have you removed c4 check from VEN's stock ?

bboygrun 05-07-2011 12:14

Re: Grenade explosion ( TIME ) v1.0
 
Oups, sorry, i add it ^^.


All times are GMT -4. The time now is 07:09.

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