View Single Post
Plugin Info:     Modification:          Category:          Approver:   Hawk552 (427)
ot_207
Veteran Member
Join Date: Jan 2008
Location: Romania The Love Country
Old 09-22-2009 , 09:21   Grenade Realism v2.0 [HL alike and MOAR!]
Reply With Quote #1

Description:
This makes the grenade explode in hand if kept too long after the pin is pulled.
It supports even weapon change and all the grenades!

Modules:

HamSandWich
Engine
Fakemeta


Cvars:
Code:
// Put this in amxx.cfg

hdex_cutexplotime 1 // If set to 1 the time after the nade would normally explode will be reduced by the time it was helled in the hand

hdex_affected_nades 7 // 1 - He grenade, 2 - Flashbang, 4 Smoke, add them to use multiple nades. Ex: 5 means he grenade and smokegrenade!

hdex_smoke_compatibility 1 // Set this to 1 when you use the normal smoke grenade and the nade is affected by the plugin!

hdex_secatt_gren_candetonate 1 // If set to 1 this plugin will use a different gameplay read after the cvars

hdex_he_limit 2 // Ammo limit of he grenades
hdex_he_limit 4 // Ammo limit of flash grenades
hdex_he_limit 2 // Ammo limit of smoke grenades
    
hdex_removeafter 0.0 // below and equal to 0.0 means removal of dumb grenades on round end, more than 0.0 means removal after the cvar value in seconds

hdex_message_pin "Carefull! If you hold it too much it will blow!" // Warning if the nade will explode in his hands!

hdex_message_mustpull "You must pull the safety lever to arm the grenade! [Right Click] // Message send to client if he needs to activate the grenade
Special gameplay:
This will work only if hdex_secatt_gren_candetonate isn't set to 0.
In this situation the player must arm the grenade with right click before throwing it!
If the grenade isn't armed it can be picked up!
If armed then the grenade will explode, if it is too much held in the hand it will explode!

Useful Links:
Servers using this

Changelog:
PHP Code:
-  2.0 Hawk suggestion implemented, new name
-  1.5 smoke grenade compatibility improvementsadded one cvar that controls the affected nadesremoved the FIRE IN THE HOLE sounds/texts when the nade is forced to detonate
-  1.0 initial release 
Credits:
Grenade Realism made by P3Anut

Note to plugin approvers:
Unapprove the old plugin since this works better. (if you want)

Note to Approvers from Exolent:
This plugin was moved from unapproved back to submissions after it had been readded to the first post.
If your verdict is to unapprove this plugin, you will have to manually move the thread rather than pushing the "unapprove" button.
Attached Files
File Type: sma Get Plugin or Get Source (grenade_realism.sma - 5816 views - 15.9 KB)
__________________
My approved plug-ins | Good for newbies! | Problems?

Back, will come around when I have time.

Last edited by Exolent[jNr]; 10-12-2009 at 23:56. Reason: Added note at the bottom.
ot_207 is offline