Raised This Month: $168 Target: $400
 42% 

[L4D2] Spawn uncommon Infected


Post New Thread Reply   
 
Thread Tools Display Modes
Author
AtomicStryker
Veteran Member
Join Date: Apr 2009
Location: Teutonia!!
Plugin ID:
1281
Plugin Version:
1.0.9
Plugin Category:
General Purpose
Plugin Game:
Left 4 Dead
Plugin Dependencies:
    Servers with this Plugin:
    89 
    Plugin Description:
    Spawn uncommon infected, single or hordes!
    Old 11-19-2009 , 13:47   [L4D2] Spawn uncommon Infected
    Reply With Quote #1

    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"
                
    }
            }
        }

    Attached Files
    File Type: sp Get Plugin or Get Source (l4d2_spawnuncommons.sp - 2520 views - 9.6 KB)
    File Type: smx l4d2_spawnuncommons.smx (6.9 KB, 3916 views)

    Last edited by AtomicStryker; 08-15-2011 at 08:43.
    AtomicStryker is offline
    Thraka
    AlliedModders Donor
    Join Date: Aug 2005
    Old 11-19-2009 , 19:07   Re: [L4D2] Spawn uncommon Infected
    Reply With Quote #2

    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?
    Thraka is offline
    triggerman
    Senior Member
    Join Date: Jun 2009
    Old 11-19-2009 , 19:41   Re: [L4D2] Spawn uncommon Infected
    Reply With Quote #3

    both commands cause an immediate server crash on my linux server.
    triggerman is offline
    elyk371
    SourceMod Donor
    Join Date: Mar 2006
    Old 11-19-2009 , 22:46   Re: [L4D2] Spawn uncommon Infected
    Reply With Quote #4

    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.
    elyk371 is offline
    DarthNinja
    SourceMod Plugin Approver
    Join Date: Mar 2009
    Location: PreThinkHook()
    Old 11-20-2009 , 00:28   Re: [L4D2] Spawn uncommon Infected
    Reply With Quote #5

    Nice
    /Request admin menu support

    -Edit
    Looks like spawning CEDAs crashes the server.
    __________________

    Last edited by DarthNinja; 11-20-2009 at 01:07.
    DarthNinja is offline
    AtomicStryker
    Veteran Member
    Join Date: Apr 2009
    Location: Teutonia!!
    Old 11-20-2009 , 03:02   Re: [L4D2] Spawn uncommon Infected
    Reply With Quote #6

    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!
    AtomicStryker is offline
    triggerman
    Senior Member
    Join Date: Jun 2009
    Old 11-20-2009 , 03:38   Re: [L4D2] Spawn uncommon Infected
    Reply With Quote #7

    it crashes whenever you try to spawn an uncommon on a level that doesnt feature it.
    triggerman is offline
    AtomicStryker
    Veteran Member
    Join Date: Apr 2009
    Location: Teutonia!!
    Old 11-20-2009 , 03:47   Re: [L4D2] Spawn uncommon Infected
    Reply With Quote #8

    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!!

    Last edited by AtomicStryker; 11-20-2009 at 03:51.
    AtomicStryker is offline
    ALIENMODSX
    BANNED
    Join Date: Nov 2008
    Old 11-20-2009 , 14:14   Re: [L4D2] Spawn uncommon Infected
    Reply With Quote #9

    Can you add the fallen survivor? http://www.youtube.com/watch?v=ObiPxnaLiQ8&fmt=22
    ALIENMODSX is offline
    AtomicStryker
    Veteran Member
    Join Date: Apr 2009
    Location: Teutonia!!
    Old 11-20-2009 , 16:15   Re: [L4D2] Spawn uncommon Infected
    Reply With Quote #10

    Added.
    AtomicStryker is offline
    Reply


    Thread Tools
    Display Modes

    Posting Rules
    You may not post new threads
    You may not post replies
    You may not post attachments
    You may not edit your posts

    BB code is On
    Smilies are On
    [IMG] code is On
    HTML code is Off

    Forum Jump


    All times are GMT -4. The time now is 16:15.


    Powered by vBulletin®
    Copyright ©2000 - 2017, vBulletin Solutions, Inc.
    Theme made by Freecode