Raised This Month: $12 Target: $400
 3% 

[L4D & L4D2] Auto Infected Spawner


Post New Thread Reply   
 
Thread Tools Display Modes
Author
Tordecybombo
Junior Member
Join Date: Sep 2009
Plugin ID:
1210
Plugin Version:
1.0.0
Plugin Category:
Gameplay
Plugin Game:
Left 4 Dead
Plugin Dependencies:
    Servers with this Plugin:
    11 
    Plugin Description:
    Manages its own system of automatic infected spawning
    Old 10-06-2009 , 22:02   [L4D & L4D2] Auto Infected Spawner
    Reply With Quote #1

    This is my first plugin.

    I wanted some way to keep pummeling survivors with special infected while making some special infected spawn more often than others (since I loved killing lots of boomers, I wanted boomers to spawn much more often than smokers and hunters). I decided to make this plugin when other plugins and built-in cvars didn't spawn infected exactly how I wanted.


    DESCRIPTION

    Manages its own system of automatic infected spawning. Change a specific special infected's chance of spawn by changing its weight. The higher the weight, the higher the chance it spawns, vice versa.

    - The probability of a special infected spawning is (its weight)/(sum of all weights).
    - The plugin for now can spawn upto 14 special infected (excluding witch) at once.
    - Tank can have an exception of having -1 weight, which isn't factored into the weight sum. Instead, the director manages the spawning of the tanks (i.e. lottery system at each checkpoint).
    - Witches aren't considered in these weights since they're the only non-playable special infected. Witches have their own spawning system. A setting of -1 on the witch limit cvar is director handled.
    - Randomized spawn time mode: random spawn time between min and max spawn time
    - Incremental spawn time mode: spawn time slows down as there are more special infected on the map at once; speeds up when there are less special infected
    - Decremental spawn time mode: spawn time speeds up as there are more special infected; slows down when there are less special infected
    - Constant witch spawn time mode: one witch spawns at the end of a witch spawn time interval
    - Variable witch spawn time mode: one witch spawns anytime within a witch spawn time interval


    CONFIG
    If you don't want the settings to reset every map change, edit the cvars in the automatically generated l4d_autoSI.cfg at the cfg/sourcemod directory.


    CVARS
    l4d_ais_version - Auto Infected Spawner Version
    l4d_ais_enabled - "1" - Disable/Enable functionality of the plugin
    l4d_ais_disable_in_versus - "1" - Automatically disable plugin in versus mode
    l4d_ais_fast_response - "0" - Disable/Enable faster special infected response
    l4d_ais_fast_spawn - "0" - Disable/Enable faster special infected spawn (Enable when SI spawn rate is high)
    l4d_ais_safe_spawn - "0" - Disable/Enable special infected spawning while survivors are in safe room
    l4d_ais_boomer_weight - "100" - The weight for a boomer spawning
    l4d_ais_hunter_weight - "100" - The weight for a hunter spawning
    l4d_ais_smoker_weight - "100" - The weight for a smoker spawning
    l4d_ais_tank_weight - "-1" - The weight for a tank spawning [-1 = Director spawns tanks]
    l4d_ais_witch_limi
    t - "-1" - The max amount of witches present at once (independant of l4d_ais_limit) [-1 = Director spawns witches]
    l4d_ais_witch_period - "300.0" - The time (seconds) interval in which exactly one witch will spawn
    l4d_ais_witch_period_mode - "1" - The witch spawn rate consistency [0 = CONSTANT | 1 = VARIABLE]
    l4d_ais_limit - "3" - The max amount of special infected at once
    l4d_ais_spawn_size - "1" - The amount of special infected spawned at each spawn interval
    l4d_ais_time_mode - "1" - The spawn time mode [0 = RANDOMIZED | 1 = INCREMENTAL | 2 = DECREMENTAL]
    l4d_ais_time_min - "0.0" - The minimum auto spawn time (seconds) for infected
    l4d_ais_time_max - "60.0" - The maximum auto spawn time (seconds) for infected


    ADMIN CMDS
    l4d_ais_reset - Reset by slaying all special infected and restarting the timer
    l4d_ais_start - Manually start the spawn timer
    l4d_ais_time - Set a constant spawn time (seconds) by setting l4d_ais_time_min and l4d_ais_time_max to the same value
    l4d_ais_preset - Set spawn weights to given presets <default|none|boomer|smoker|hunter|tank>


    PROBLEMS
    - It might conflict with other spawn plugins, such as infectedbots. I put a cvar that automatically disables the plugin in versus.
    - Possible conflict with Kigen's anticheat since this plugin uses the z_spawn cheat


    CREDITS
    djromero for laying the foundation of the infected bots plugin.
    mi123645 for letting me use some code from his infectedbots plugin.
    FuzzOne and TacKLER for porting this plugin to L4D2.
    Munch for updating plugin for L4D2

    VERSION HISTORY
    1.0.0 - Initial release (l4d_autoIS)

    L4D1 version: l4d_autoIS
    L4D2 version: l4d2_autoIS
    Attached Files
    File Type: sp Get Plugin or Get Source (l4d_autoIS.sp - 8374 views - 29.7 KB)
    File Type: sp Get Plugin or Get Source (l4d2_autoIS.sp - 8375 views - 36.8 KB)

    Last edited by Tordecybombo; 09-14-2014 at 17:17. Reason: added Munch's update to l4d2 version
    Tordecybombo is offline
    uriel18
    Senior Member
    Join Date: Apr 2009
    Old 10-07-2009 , 09:02   Re: [L4D] Auto Infected Spawner
    Reply With Quote #2

    Thx dude, i will try.
    __________________
    uriel18 is offline
    Stormhold
    New Member
    Join Date: Oct 2009
    Old 10-18-2009 , 08:49   Re: [L4D] Auto Infected Spawner
    Reply With Quote #3

    Sounds interesting... Wonder if it will fit with l4100. I'll try this mod and coment, but maybe not today.
    Stormhold is offline
    LTR.2
    Veteran Member
    Join Date: Aug 2009
    Old 10-18-2009 , 11:21   Re: [L4D] Auto Infected Spawner
    Reply With Quote #4

    this could fix that glicth that makes a entire team have 4 hunters.

    however, too bad it doesn't work with mi123456's plugin =S

    any plans to fix that in the future?
    LTR.2 is offline
    mi123645
    Veteran Member
    Join Date: Feb 2009
    Old 10-18-2009 , 21:03   Re: [L4D] Auto Infected Spawner
    Reply With Quote #5

    Very impressive work, Tordecybombo. The use of weights to determine the chance of an infected spawning is very interesting. Once again, kudos.
    mi123645 is offline
    dave_with_beer_bottle
    Senior Member
    Join Date: Jul 2009
    Old 10-20-2009 , 06:29   Re: [L4D] Auto Infected Spawner
    Reply With Quote #6

    hi Tordecybombo,
    i was just wonder if you could help me little with this,because i can't get it ,don't even know if its possible
    how can i set 3 boomers,2 smokers and 4 hunters come at us at same time,lets say like every 15 sec
    + 2 tanks and 3 witches whenever tank or witch is spawned
    thanks in advanced

    Last edited by dave_with_beer_bottle; 10-20-2009 at 06:32.
    dave_with_beer_bottle is offline
    Tordecybombo
    Junior Member
    Join Date: Sep 2009
    Old 10-20-2009 , 07:59   Re: [L4D] Auto Infected Spawner
    Reply With Quote #7

    not possible yet but it should work after I add limit functionality for each specific special infected
    Tordecybombo is offline
    leonil7
    BANNED
    Join Date: May 2009
    Location: GB
    Old 10-29-2009 , 17:20   Re: [L4D] Auto Infected Spawner
    Reply With Quote #8

    great plugin. thanks!
    leonil7 is offline
    Send a message via ICQ to leonil7 Send a message via AIM to leonil7 Send a message via Yahoo to leonil7 Send a message via Skype™ to leonil7
    Grass
    Junior Member
    Join Date: Sep 2009
    Old 10-30-2009 , 12:01   Re: [L4D] Auto Infected Spawner
    Reply With Quote #9

    works great in co-op but messes up infected spawn in versus can this be fixed? People get stuck in spawn mode and can't spawn. My server did it after i put this plug in on it and after that i took it off and works great. hope it can be fixed great plug in.

    Last edited by Grass; 10-30-2009 at 12:03.
    Grass is offline
    leonil7
    BANNED
    Join Date: May 2009
    Location: GB
    Old 11-01-2009 , 18:14   Re: [L4D] Auto Infected Spawner
    Reply With Quote #10

    works with multitank plugin at COOP games but messes at the rescue maps. tanks will not spawn at finale.
    and most of all, server crashes many times.

    its probably due to the conflict between tank and special spawns.

    Last edited by leonil7; 11-01-2009 at 18:17.
    leonil7 is offline
    Send a message via ICQ to leonil7 Send a message via AIM to leonil7 Send a message via Yahoo to leonil7 Send a message via Skype™ to leonil7
    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 13:09.


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