Suicide Intercept
4 Attachment(s)
DESCRIPTION:
This plugin is the result of a request by wazzgod - he had the idea of a plugin that would intercept player suicides and instead of instant death, have it be a delayed death (http://forums.alliedmods.net/showthread.php?t=162870) I know I get frustrated when I'm about to get a kill stat and they kill themselves, robbing me of a stat. Well, this plugin will delay that request, notify the player of the intercept via chat and center chat, and if they survive my attack somehow, they'll be slain anyways after X seconds (set in config file SuicideIntercept.plugin.cfg in cstrike/cfg/sourcemod). This plugin will intercept player suicide attempts by capturing the following commands * kill * jointeam * joinclass * spectate * explode Plugin can be en/disabled via cvar sm_suicideintercept_enabled 1/0 Configurable number of delay seconds to carry out players requested suicide. By default, ROOT admins are immune to the delays this plugin imposes. If you'd like to grant other admin flags immunity to this plugin, just add the following in the admin_overrides.cfg "bypass_suicideintercept" "abo" The above would allow those players with flags "a" "b" AND "o" immunity from delays this plugin imposes.
CVARS
REQUIREMENTS: Plugin was compiled with SourceMod 1.4.0 OPTIONAL: Updater plugin if you want this plugin to stay updated with changes and bug fixes. CREDITS: wazzgod for idea (REQ thread) - he posted one, but requested I post mine for approval (here) KyleS for the suggestions on cleaning up the code :) INSTALLATION: - Put the SMX in your cstrike/addons/sourcemod/plugins folder - Put the SuicideIntercept.phrases.txt in your cstrike/addons/sourcemod/translations folder - Either manually start the plugin, change the map, or restart your server -------------------------- Thanks again to wazzgod for the idea!! I hope people find this plugin useful and fun. BTW, the reason I included joinclass as a suicide command to intercept is because Zombie:Reloaded uses it and this plugin "could" be used with that mod if you wanted to delay the suicide instead of outright blocking it (which is an option in ZR) If you find a bug, post it here and I'll jump on it. If there are additional commands players can type to suicide, post it here and I'll add them.
CHANGE LOG
NOTES: You'll have to download the attached .smx file because the web compiler cannot compile due to the <colors> include. Version 1.5.6 + Added ability to disable immunity UPGRADING? You'll need to get the updated translation file as well - I've added a bunch of different phrases in there since 1.4b. You should backup your config file and let the plugin create a new one, then edit the one it creates since I added a new CVar as of 1.5.6 If you have Updater, the plugin will auto-update itself if you have the CVar set to 1 |
Re: [CS:S] Suicide Intercept
Nice plugin. It would be cool if sm_suicideintercept_delaydeathtime was set to 0 that the plugin just blocks the commands.
EDIT: Also, the FindConVar's are kind of wrong since CreateConVar returns a Handle to the ConVar. |
Re: [CS:S] Suicide Intercept
Is this available for other games too, or just CS:S?
I'm asking more for others than myself, as the only Source game I host (Team Fortress 2) awards kills for suicides (and environment deaths in general) to the last person to damage a person before they die. Incidentally, this plugin would be useless in TF2 for that very reason. |
Re: [CS:S] Suicide Intercept
Quote:
I'll look at the FindConVar's to see if I can see what you're talking about - I might need a little direction ...:: TnT Edit ::... Are you talking about this part?: PHP Code:
PHP Code:
|
Re: [CS:S] Suicide Intercept
Thx for all your hard work TnTSCS :)
|
Re: [CS:S] Suicide Intercept
KyleS - ha, I looked at your code and LoL'd
PHP Code:
|
Re: [CS:S] Suicide Intercept
I was curious, were you planning on releasing one where delay death could be set to 0?
|
Re: [CS:S] Suicide Intercept
I'll fix that up right now :)
I'll update the OP when it's done... sorry for the delay ...:: TnT Edit ::... Updated OP with v1.1 :) |
Re: [CS:S] Suicide Intercept
You might have to delete the old config file and let the plugin create a new one
|
Re: [CS:S] Suicide Intercept
Quote:
|
All times are GMT -4. The time now is 01:47. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.