This plugin will allow the CT to instantly defuse the bomb when it is undoubted to succeed. Any live molotov near the bomb or any thrown nade in the map ( I do not know nor care enough to handle calculating trajectory of nade to see if it'll reach the bomb ) will forbid instant defuse. If all dangers clear and a defuse is already running, instant defuse will auto-activate.
The command !settings will allow certain players to disable instant defuse for themselves for whatever reason they deem necessary.
Cvars:
instant_defuse_noob_margin - To prevent noobs from abusing instant defuse into knowing a defuse is impossible, a margin for the noobs exists. The formula to whether or not an instant defuse will occur is
defuse will occur if (Defuse Time Left) + (Noob Margin Cvar) < OR = (Bomb Explosion Time Left). A Valve's previous update made the bomb defuse if it's supposed to both defuse and explode, therefore it's < OR = and not just <. The cvar defaults to 5.2, and setting it to 0 will allow instant defuse to always work given the defuse is capable of working. Setting to a negative value will
give CT defuse hacks AKA instant defuse will be allowed even if the bomb wasn't supposed to explode, therefore you shouldn't set it to a negative value ever.
instant_defuse_pref_default - If 1, new players to the server will have auto defuse preference cookie ( the one changable in !settings ) set to enabled by default. If 0, the exact same thing but disabled by default.
The inferno cvars are meaningless for CS:S
instant_defuse_inferno_duration - Valve constant that indicates the duration of molotov. Default 7.0
instant_defuse_inferno_distance - Valve constant that indicates how far can the molotov spread + you standing as far away as possible to defuse it. Default 225.0
To do:
Make the plugin work on CS:S, which will require you to take this plugin into a CS:S server and report all errors so I know what differences to put.
DO NOT EVER PRESS GET PLUGIN AS IT WILL REMOVE UPDATER AND AUTOEXECCONFIG FUNCTIONALITIES EVEN IF YOUR SERVER HAS THE PLUGINS NEEDED.
Optional includes to properly compile the .sp:
updater.inc
autoexecconfig.inc
Forwards if you ever need ( for example allow instant defuse only with kit etc.. ):
Code:
public Action InstantDefuse_OnInstantDefusePre(int client, int c4)
// int client = The client attempting to defuse.
// int c4 = The c4 being defused.
// return Plugin_Continue or Plugin_Changed to allow instant defuse, Plugin_Handled or higher to stop instant defuse. Non of the parameters can be changed with Plugin_Change.
public void InstantDefuse_OnInstantDefusePost(int client, int c4)
// int client = The client attempting to defuse.
// int c4 = The c4 being defused.
// return = No return
Previous downloads: 312.
List of servers that use this ( might not work for CS:GO ):
https://www.gametracker.com/search/?...l&sort=&order=
Take the plugin from the Updater github, I want to switch to github to manage issues and PRs better:
https://github.com/eyal282/Alliedmod.../InstantDefuse
__________________
I am available to make plugins for pay.
Discord: Eyal282#1334