Requires
Zombie:Reloaded.
This was a request from
this post:
Quote:
Originally Posted by Zerovize
Hey Guys,
... Is there an Addon that teleports a knifed zombie to the T's /CT's Spawn? So that the Zombie can't knife his mates?
|
DESCRIPTION:
What this plugin does is extend the infection options beyond the simple zr_infect_mzombie_respawn. This plugin allows you to teleport newly infected zombies, freeze newly infected zombies, and/or disarm newly infected zombies. You can apply these infection options to the mother zombie as well.
New in 0.0.1.2 are igniting and speed changing newly infected zombies for a specified time.
By disarming the zombies when they're infected, you can prevent the sometimes ultra mass zombie infection if everyone is in a choke point on a map and the infections just domino on top of one another.
Freezing the newly infected zombie (without disarming them) might allow for one or two more infections in a choke point.
sm_zrio_options
- Sepcifies the infection options which should be used. Add up the values below to get the functionality you want.
1: Teleport all newly infected zombies back to their spawn
2: Use sm_zrio_teleporttime
4: Disarm all newly infected zombies (remove their claws)
8: Only disarm zombies after teleport time expires
16: Freeze all newly infected zombies
32: Only freeze zombies after teleport time expires
64: Apply these infection options to Mother Zombies
128: Ignite all newly infected zombies (set time with sm_zrio_ignitetime)
256: Only ignite zombies after teleport time expires?
512: Set speed on newly infected zombies (set speed with sm_zrio_speed and time with sm_zrio_speedtime)
1024: Only alter speed after teleport time expires?
The above is the CVar to turn on and off the extra infection options. If you set sm_zrio_options to 65, then all, not just the mother, zombies will be transported back to their spawn point. If you set it to 67, then they will only be teleported back to spawn during the seconds defined in sm_zrio_teleporttime (see CVars below).
Use any one or all of the infection options, as you see fit. There are CVars to the freeze and disarm time limits so you can set how long a player will remain froze or disarmed (individually).
Currently I do not have Updater attached to this plugin (mainly because it's late right now), but I'll include it in a later update. I'm going to add an ignite option for newly infected zombies and possibly a speed option, both with timers.
REQUIREMENTS:
Zombie:Reloaded 3.0-b2 patch-r675 (or latest)
SDKHooks
TO DO List
* Add more options (suggest some)
Credits:
* Richard and Greyscale for Zombie:Reloaded stuff
* berni for SMLib
* SDKHooks developers
Notes:
If you are going to compile yourself, you'll need the includes for SDKHooks, Zombie:Reloaded, and SMLib.
INSTALLATION:
Put the .smx in your plugins folder, then edit the automatically created config file plugin.zr_infect_options.cfg
I've included the cfg file here since the sm_zrio_options gets cut off when it gets auto-created.
If you want the debug version, edit the .sp and set the _DEBUG to 1 then compile.