CureInfection Plugin
This plugin is an advanced version of the original pillscure plugin where people can further customize what items cure, how often they cure, and other side effects. This plugin seeks to build upon/expand pillscure and how it works.
How It Works
The Cure Infection plugin allows players to cure (or allows the chance to cure) the infection a player can receive from the zombies. Like the original pillscure plugin it can cure the infection from a user, however, unlike the original, you can control which health items cure infection, if they have a random chance to cure or not cure the infection, if it can backfire, or if a user cannot rely on the cure to cure the infection if they have been infected for too long.
Code and Plugin Download
Below is the download link and code for the plugin:
How To Install Plugin
To install the plugin, simply download the files, unzip them, and then copy the addons and cfg folders into your game server's main directory. This will add ALL of the files into your game's "addons/sourcemod" and "cfg" directories. If asked to merge folders, click yes. You should not be asked to overwrite the files unless you have a plugin with a similar name or have an older version of the plugin.
The plugin also has several cvars that you can use to configure the cure infection functionality, which are as follows:
// This file was auto-generated by SourceMod (v1.7.3-dev+5317) // ConVars for plugin "zps_cureinfection.smx" // Enable/Disable Cure Infection plugin. // Enable = 1 // Disable = 0 // - // Default: "1" // Minimum: "0.000000" // Maximum: "1.000000" sm_cureinfection_enabled "1" // Allow/Disallow pills to cure infection. // Enable = 1 // Disable = 0 // - // Default: "1" // Minimum: "0.000000" // Maximum: "1.000000" sm_cureinfection_pills "1" // The chance that pills will cure infection. // 0.1 (10%)- Lowest chance to cure infection, // 1.0 (100%)- Guarantees cure infection. // - // Default: "1.0" // Minimum: "0.100000" // Maximum: "1.000000" sm_cureinfection_pchance "1.0" // Allow/Disallow healthkits to cure infection. // Enable = 1 // Disable = 0 // - // Default: "1" // Minimum: "0.000000" // Maximum: "1.000000" sm_cureinfection_healthkits "1" // The chance that healthkits will cure infection. // 0.1 (10%)- Lowest chance to cure infection, // 1.00 (100%)- Guarantees cure infection. // - // Default: "1.0" // Minimum: "0.100000" // Maximum: "1.000000" sm_cureinfection_hkchance "1.0" // Enable/Disable option to have the cure backfire. // Enable = 1 // Disable = 0 // - // Default: "0" // Minimum: "0.000000" // Maximum: "1.000000" sm_cureinfection_backfire "0" // Enable/Disable the option to only cure players who aren't about to turn, but are just infected. // Enable = 1 // Disable = 0 // - // Default: "0" // Minimum: "0.000000" // Maximum: "1.000000" sm_cureinfection_fargone "0" // The time of infection, in seconds, when the cure becomes ineffective. // 5.0 = 5 seconds before turning into a zombie // - // Default: "5.0" // Minimum: "0.100000" // Maximum: "0.000000" sm_cureinfection_fgonetime "5.0"
The current defaults act similar to the original pillscure plugin in that it guarantees that the user is cured if the health item is used. You can change this at your discretion in order to tweak gameplay and make things a bit more interesting.
This guide also assumes you are using Sourcemod/Metamod, so if you haven't installed those, do so before adding the plugin files to your server! This version of the plugin was compiled on SM 1.7.3, so it should work for Sourcemod 1.7.3 or later. If you need this for an older/specialized version of Sourcemod, you may want to compile the plugin (script files are included) for your version of Sourcemod.
All of this is provided "as is". While this plugin should not cause harm, any harm caused by the plugin, user handling, or anything else Vertigo Gaming and all associated coders are not responsible for it. Use at your own risk!