. Detonation Control (l4d_det_cntrl) by Mystik Spiral
Control gascan/molotov detonation based on survivor proximity.
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/mods that allow bots to throw molotovs!
It is also helpful if someone makes a bad throw/shot, whether on purpose or accidentally, that would kill a survivor or the entire team.
For molotovs: Once a thrown molotov hits the ground, if it is too close to a survivor, the molotov will remain undetonated and the wick is extinguished. The molotov can be picked up and thrown again. Throw the molotov out of the survivor burn proximity you defined 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 the survivor burn proximity you defined and it will behave normally.
Language translations: English, French, Spanish, Russian, Chinese
Options:
Separate proximity values for gascan and molotov
Separate proximity values for vertical and vector distance
Separate proximity values for survivor self/incapped/other
Separately enable/disable gascan and molotov protection
Separately display/suppress gascan and molotov chat messages
Console Variables:
Spoiler
Shown with default values:
// 0=Plugin off, 1=Plugin on
l4d_detctl_enabled "1"
Vertical proximity is checked first. If no self/incapped/other survivor is in the vertical proximity you defined, then detonation will happen as normal and the vector proximity check is skipped.
Vertical proximity refers to the distance in height only (above/below).
Vector proximity 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.
Acknowledgements:
Silvers (SilverShot): Game type/mode detection/enable/disable template, left4dhooks plugin, examples, fixes, and general community help.
Do not attempt to display chat message when attacker is world (client 0). [reported by yezi]
Most recent update:
Code:
04-Oct-2024 v1.0.1
- Do not attempt to display chat message when attacker is world (client 0). [reported by yezi]