Spawn uncommon Infected at will, anytime
No Campaign or Censorship limits
Load a map or restart the server once before using!
Convars:
- l4d2_spawn_uncommons_hordecount (default 25, how many zombies from horde spawning shall be made uncommon)
- l4d2_spawn_uncommons_autoshuffle (default 1, do you want the plugin to randomize Zombies into any Uncommon on all maps)
- l4d2_spawn_uncommons_autochance (default 15, Every 'THIS' zombie spawning will be statistically turned uncommon if autoshuffle is active)
- l4d2_spawn_uncommons_autotypes (default 19, binary flag of allowed autoshuffle zombies. 1 = riot, 2 = ceda, 4 = clown, 8 = mudman, 16 = roadcrew, 32 = jimmy, 64 = fallen); riot + ceda + roadcrew = 19
- l4d2_spawn_uncommons_healthoverride (default -1, set to health value if you want something nonstandard)
Commands:
sm_spawnuncommon <riot|ceda|clown|mud|roadcrew|jimmy|fallen|ra ndom>
sm_spawnuncommonhorde <riot|ceda|clown|mud|roadcrew|jimmy|fallen|ra ndom>
Changelog:
1.0.0 - release
1.0.1 - fixed models not being precached properly, added 'random'
1.0.2 - added 'fallen Survivor', changed 'random' to only spawn the first 5 uncommons
1.0.3 - rewritten horde functionality to use SDKHooks
1.0.4 - Added small mapchange bugfix
1.0.5 - sm_spawnuncommonhorde does not require to be run ingame anymore, added auto shuffle convars
1.0.6 - added auto shuffle allowed UCI convar
1.0.7 - fixes, random zombies/hordes now obey allowed zombie convar
1.0.8 - protection against model precache errors
1.0.9 - added uncommon health override convar
Requires Metamod 1.8 and SM version capable of L4D2 aswell as
SDKHooks
Optional:
If you want these Commands in your Admin Menu, add something like this to your adminmenu_custom.cfg in sourcemod/configs/
PHP Code:
"Commands"
{
"Spawn Uncommons"
{
"Spawn Uncommon Zombie"
{
"cmd" "sm_spawnuncommon @1"
"admin" "sm_spawnuncommon"
"execute" "player"
"1"
{
"1" "riot"
"1." "Riot Cop (Parish)"
"2" "ceda"
"2." "CEDA Agent (Center)"
"3" "clown"
"3." "Clown (Carnival)"
"4" "mud"
"4." "Mudman (Swamp)"
"5" "roadcrew"
"5." "Road Worker (Rain)"
"6" "jimmy"
"6." "Jimmy Gibbs Jr. (Extra)"
"7" "fallen"
"7." "Fallen Survivor (Extra)"
"8" "random"
"8." "Randomized"
}
}
"Spawn Uncommon Horde"
{
"cmd" "sm_spawnuncommonhorde @1"
"admin" "sm_spawnuncommonhorde"
"execute" "player"
"1"
{
"1" "riot"
"1." "Riot Cop (Parish)"
"2" "ceda"
"2." "CEDA Agent (Center)"
"3" "clown"
"3." "Clown (Carnival)"
"4" "mud"
"4." "Mudman (Swamp)"
"5" "roadcrew"
"5." "Road Worker (Rain)"
"6" "jimmy"
"6." "Jimmy Gibbs Jr. (Extra)"
"7" "fallen"
"7." "Fallen Survivor (Extra)"
"8" "random"
"8." "Randomized"
}
}
}
}