Update: updated the infect player extension for 1.25b server
We've been doing this with sourcemod on West Coast 24/7 for awhile, might as well release some of our stuff! The attached sourcemod script fixes the infected_chance and infected_turntime console variables. They can now be set without sv_cheats 1 and infected_turntime has been tweaked so it can now be set to 0 allowing for instantaneous infections! We use this to set infected_chance to 0 for our melee rounds.
infected_turntime <time in minutes>
infected_chance <[0, 100] percent chance>
If you enjoy pissing off every survivor on the server:
infected_turntime 0;infected_chance 100;
For people with linux servers, you can try the infection extension which allows admins to infect any player.
zie_infectplayer <userid> <time in seconds>
(Get userid from the 'status' command.)
Works with sourcemod 1.0.0
Windows or Linux(if you dont want the linux player infection extension):
extract and compile zpsinfectionlite.sp f
copy the resulting zpsinfectionlite.smx to sourcemod/plugins
Linux (has the player infection extension):
Download sm_zie.1.25.tar.gz.zip (this is a tar.gz file but the board wanted a .zip extension so ignore that crap)
extract it to your addons/sourcemod/ directory
compile /sourcemod/scripting/zpsinfectionlite.sp to sourcemod/plugins/zpsinfectionlite.smx
will load on server start or, if already running, enter 'sm plugins load zpsinfectionlite' into server console.
This is a stripped down version but I think it should work okay. The one we use also has the ability to spread infection via touching but requires another sourcemod extension (Hacks) that I needed to modify for zps. I may release that one soon, once I have a nice way of distributing the 'fixed' Hacks extension.
The infection extension may not work on later server binaries, depending on if certain data structures change. Should work for the current (1.21b version) No warranty etc.. might kill your grandmother, sorry! I'm just pioneering new ways to make the ZPS linux server crash in hopes of getting on the development team. (Mostly joking, thanks for a fun game that I probably play too much!)
More download links:
New linux download (w/ infect player capabilities):