[b]This addon requires [url=http://www.eventscripts.com/pages/Es_fire]es_fire[/url] to run: [url]http://forums.eventscripts.com/viewtopic.php?f=27&t=42620[/url]
Please run this if you are experiencing crashes: [url]http://forums.eventscripts.com/viewtopic.php?f=95&t=41981[/url][/b]
Allows players to pull the pin on the grenade of an opponent by attacking with a knife. Requires only ES 2.1+
Options:[syntax="es"]// KnifeGrenade release 6 options
// ./addons/eventscripts/knifegrenade/knifegrenade.cfg
// http://addons.eventscripts.com/addons/view/knifegrenade
// Load this addon with: es_load knifegrenade
// To configure language settings for KnifeGrenade please see knifegrenade_languages.ini
// This script will turn on eventscripts_noisy. More information on eventscripts_noisy can be found here:
// http://www.eventscripts.com/pages/Eventscripts_noisy
// Thanks to 7355608 for this idea! PinPull can be found here:
// http://addons.eventscripts.com/addons/view/12412
// ***** Pin pull options *****
// If a player is attacked with a knife and has a HE grenade, that grenade will explode in a few seconds.
// Credit for the explosion will go to the player who attacked with the knife as env_explosion damage.
knifegrenade_pinpull_givegrenade 1
// 0 = no change, 1 = if the attacker has a HE grenade and the victim doesn't,
// the attacker's grenade will be given to the victim, 2 = always give the victim a grenade [default 1]
knifegrenade_pinpull_explodeondeath 1
// 0 = no change, 1 = players with a ticking grenade that die will explode when they die [default 1]
// ***** Grenade detonation options *****
knifegrenade_detonate_delay 4
// Number of seconds after a pin pull a grenade explodes [default 4]
knifegrenade_detonate_radius 350
// Radius of explosion when a grenade with its pin pulled explodes--default HE grenade radius is 350 [default 350]
knifegrenade_detonate_magnitude 300
// Radius of explosion when a grenade with its pin pulled explodes--default HE grenade magnitude is 100 [default 300]
// ***** Sound options *****
knifegrenade_sound_percentpinpull 85
// Percent of the map that can hear grenade pin pulls--set to 0 to eliminate [default 85]
knifegrenade_sound_percenttick 60
// Percent of the map that can hear grenade ticks--set to 0 to eliminate [default 60]
knifegrenade_sound_percentdetonate 45
// Percent of the map that can hear grenade explosions--set to 0 to eliminate [default 45]
// ***** Announcement options *****
knifegrenade_announce_victim 0
// 0 = no change, 1 = announce to player when the pin is pulled on his or her grenade [default 0]
knifegrenade_announce_attacker 1
// 0 = no change, 1 = announce to player when he or she pulls the pin on another player's grenade [default 1]
knifegrenade_announce_all 2
// 0 = no change, 1 = announce to all players when a player has a grenade pin pulled in chat area,
// 2 = announce to all players when a player has a grenade pin pulled on the console [default 2][/syntax]
Please see the forum link below for more translations or if you have a translation to add. Please also post general questions or comments.
Updated on: 2010-07-25 22:23:39 EST by SuperDave (View Zip Contents)
- Updated to be compatible with the OrangeBox
- Updated kills to be credited to [b]weapon_hegrenade[/b] rather than [b]env_explosion[/b]
- Fixed a typo, changing cvar [b]knifegrenade_pinpullexplodeondeath[/b] to [b]knifegrenade_pinpull_explodeondeath[/b]
- Added German translation (thanks, shortii13!)