AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Plugins (https://forums.alliedmods.net/forumdisplay.php?f=108)
-   -   [L4D2] Spawn uncommon Infected (https://forums.alliedmods.net/showthread.php?t=109623)

AtomicStryker 11-19-2009 13:47

[L4D2] Spawn uncommon Infected
 
18 Attachment(s)
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"
            
}
        }
    }



Thraka 11-19-2009 19:07

Re: [L4D2] Spawn uncommon Infected
 
Cool :) When I get around to getting it I'll figure out how to use this...

So the only thing that sets the common infected apart from eachother (like abilities, being fire proof whatever) is the model?

triggerman 11-19-2009 19:41

Re: [L4D2] Spawn uncommon Infected
 
both commands cause an immediate server crash on my linux server.

elyk371 11-19-2009 22:46

Re: [L4D2] Spawn uncommon Infected
 
When I tested it. I was able to spawn a single riot cop in a versus match. But then I switched to campaign mode and the commands cause an immediate crash on my Linux server.

DarthNinja 11-20-2009 00:28

Re: [L4D2] Spawn uncommon Infected
 
Nice
/Request admin menu support

-Edit
Looks like spawning CEDAs crashes the server.

AtomicStryker 11-20-2009 03:02

Re: [L4D2] Spawn uncommon Infected
 
I spawned all kinds of Infected single and as Hordes without crashing my local (windows) server, and i dont see why it should on linux..

Try changing the map once before utilizing it - the uncommon models arent precached and have to be loaded first!

triggerman 11-20-2009 03:38

Re: [L4D2] Spawn uncommon Infected
 
it crashes whenever you try to spawn an uncommon on a level that doesnt feature it.

AtomicStryker 11-20-2009 03:47

Re: [L4D2] Spawn uncommon Infected
 
Okay, there was a problem with the model precache command not being executed. Try now :)


Also added 'random' String to spawn a randomized uncommon or randomized hordes of them!!

ALIENMODSX 11-20-2009 14:14

Re: [L4D2] Spawn uncommon Infected
 
Can you add the fallen survivor? http://www.youtube.com/watch?v=ObiPxnaLiQ8&fmt=22

AtomicStryker 11-20-2009 16:15

Re: [L4D2] Spawn uncommon Infected
 
Added.


All times are GMT -4. The time now is 10:34.

Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.