Pukefection Plugin

From Vertigo Gaming Wiki
Revision as of 14:37, 1 April 2017 by Silence (talk | contribs)

(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search

This ZPS plugin gives the zombies the ability to puke and damage/possibly infect players via puking. This is based on the original plugin, but with the server crash issues and infection fixed.

How It Works

Pukefection creates puke that can be used by zombies to injure/infect survivors. The plugin can change the puke's range, how long puke lasts once it is activated, how long it takes to infect, and the chance of infection. You can also specify if the carrier is the only one that can puke or if all zombies can puke.

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" directories. If asked to merge folders, click yes. If asked to overwrite, click yes. The plugin also has several cvars that it uses, which are as follows:

// Only the carrier zombie may puke
// -
// Default: "0"
pukefection_carrier_only "0"

// Probability a puke hit will infect the survivor
// -
// Default: "0.1"
// Minimum: "0.000000"
// Maximum: "1.000000"
pukefection_chance "0.1"

// Damage done per hit
// -
// Default: "5.0"
pukefection_damage "5.0"

// Delay between pukes
// -
// Default: "6.0"
pukefection_delay "6.0"

// Turn on Pukefection
// -
// Default: "1"
pukefection_enabled "1"

// puke particle effect
// -
// Default: "blood_advisor_shrapnel_spurt_2"
pukefection_particle "blood_advisor_shrapnel_spurt_2"

// Throw up before transforming into zombie?
// -
// Default: "1"
pukefection_pretransform_puke "1"

// How far the infect attack reaches
// -
// Default: "85.0"
pukefection_range "85.0"

// Interval between infection attacks while puking
// -
// Default: "0.3"
pukefection_rate "0.3"

// How long each puke lasts
// -
// Default: "5.5"
pukefection_time "5.5"

// If infected by puke, upper bound on seconds until player turns zombie
// -
// Default: "45"
pukefection_turn_time_high "45"

// If infected by puke, lower bound on seconds until player turns zombie
// -
// Default: "5"
// Minimum: "0.000000"
pukefection_turn_time_low "5"
 

The defaults are recommended, but it can be changed. The puke effects used are native to ZPS, so if you want custom effects (as in, something not native to ZPS), you'll need to add them then have them precached and available for download via fast download. This can be accomplished by using either a precaching plugin or by editing this plugin's source code and recompiling.

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!