. Detonation Control (l4d_det_cntrl) by Mystik Spiral
Prevent gascan/molotov detonation based on customizable range to survivors.
Features:
If a gascan or molotov would ignite too close to a survivor then prevent detonation, otherwise treat normally. You can define your own ranges... one for self, one for incapacitated survivors, and one for other survivors. This is very helpful if you have plugins that allow bots to throw molotovs, or someone just makes a bad throw or shot that would burn/kill a survivor or the whole team.
For molotovs: Once a thrown molotov hits the ground, if it is too close to a survivor, the molotov will remain undetonated. The molotov can be picked up and thrown again. Throw the molotov out of proximity and it will behave normally.
For gascans: Shooting the gascan when it is too close will cause the gascan to remain undetonated. Shoot the gascan out of proximity and it will behave normally.
Options:
Separate proximity values for gascan and molotov
Separate proximity values for vertical and vector distance
Separate proximity values for self, incapped, and other
Separately enable/disable gascan and molotov protection
Separately display/surpress gascan and molotov chat messages
Language translations: English, French, Spanish, Russian, Chinese
Console Variables:
Spoiler
Shown with default values:
// 0=Plugin off, 1=Plugin on
l4d_detctl_enabled "1"
Vertical proximity is checked first. If no survivor is in vertical proximity, then detonation will happen as normal and the vector proximity check is skipped.
Vertical refers to the distance in height only (above/below).
Vector refers to the distance in three-dimensional space.
Distance is measured from the detonation location to the survivors eye position.
Requirements:
The Left 4 DHooks Direct (left4dhooks.smx) plugin version 1.138 or higher is REQUIRED, and must be downloaded/copied to your server's "\addons\sourcemod\plugins\ directory.
Credits:
Silvers (SilverShot): Game type/mode detection/enable/disable template, left4dhooks plugin, examples, fixes, and general community help.