Raised This Month: $99 Target: $400
 24% 

[L4D2] Survivor Bot Holdout (1.4.2) [03-Jul-2019]


Post New Thread Reply   
 
Thread Tools Display Modes
Author
Silvers
AlliedModders Donor
Join Date: Aug 2010
Location: SpaceX
Plugin ID:
3060
Plugin Version:
1.4.2
Plugin Category:
Gameplay
Plugin Game:
Left 4 Dead
Plugin Dependencies:
    Servers with this Plugin:
    13 
    Plugin Description:
    Create up to 4 bots (Bill, Francis, Louis and Zoey) to holdout their surrounding area, c6m3_port style.
    Old 07-02-2012 , 08:05   [L4D2] Survivor Bot Holdout (1.4.2) [03-Jul-2019]
    Reply With Quote #1




    About:
    • Create Bill, Francis, Louis and Zoey to holdout their surrounding area.
    • Bots are frozen and throw items just as they do on "c6m3_port".
    • A file called l4d2_holdout.nut is saved to your servers \left4dead2\left4dead2\scripts\vscripts\ folder and is required to function.
    • The config which stores the bots spawn location data is saved to \sourcemod\data\l4d2_holdout.cfg.


    Known Bugs:
    • No control over which items are thrown.
    • Cannot use this plugin on "c6m1_riverbank" or "c6m3_port" maps.


    Thanks:
    • Don't Fear The Reaper
    • disawar1
    • Herbie
    • Zbeer
    • DrDarkTempler


    Admin Commands: (requires "z" flag)

    PHP Code:
    sm_holdout        // Saves to the config for auto spawning or Deletes if already saved. Usage: sm_holdout <1=Francis, 2=Louis, 3=Zoey, 4=Bill> [weapon name, eg: rifle_ak47].
    sm_holdout_temp   // Spawn a temporary survivor (not saved). Usage: sm_holdout_temp <1=Francis, 2=Louis, 3=Zoey, 4=Bill> [weapon name, eg: rifle_ak47].
    sm_holdout_give   // Makes one of the survivors give an item. 

    CVars:

    Saved to l4d2_holdout.cfg in your servers \cfg\sourcemod\ folder.

    PHP Code:
    // 0=Plugin off, 1=Plugin on.
    l4d2_holdout_allow "1"

    // 0=Allow bots to move and take items. 1=Prevent bots from moving (old method).
    l4d2_holdout_freeze "1"

    // 0=No. 1=Give the survivors laser sights.
    l4d2_holdout_lasers "1"

    // 0=No. The chance out of 100 for Louis to get a minigun.
    l4d2_holdout_minigun "75"

    // Turn on the plugin in these game modes, separate by commas (no spaces). (Empty = all).
    l4d2_holdout_modes ""

    // Turn off the plugin in these game modes, separate by commas (no spaces). (Empty = none).
    l4d2_holdout_modes_off ""

    // Turn on the plugin in these game modes. 0=All, 1=Coop, 2=Survival, 4=Versus, 8=Scavenge. Add numbers together.
    l4d2_holdout_modes_tog "0"

    // 0=Off, 1=Spawn an ammo pile next to a survivor when spawning them.
    l4d2_holdout_pile "1"

    // 0=Off, -1=Infinite. How many items can survivors throw in total.
    l4d2_holdout_throw "-1"

    // 0=Off. Maximum time before allowing the survivors to give an item.
    l4d2_holdout_time_max "90"

    // 0=Off. Minimum time before allowing the survivors to give an item.
    l4d2_holdout_time_min "45"

    // Survivor Bot Holdout plugin version.
    l4d2_holdout_version 


    Changes:
    Code:
    1.4.2 (03-Jul-2019)
        - Minor changes to code, has no affect and not required.
    
    1.4.1 (28-Jun-2019)
        - Removed VScript file, directly executes the VScript code instead.
    
    1.4 (03-Jun-2019)
        - Fixed conflicts with playable survivors, holdout survivors should now spawn correctly.
        - Changed cvar "l4d2_holdout_freeze" removed option 2 - memory patching method.
        - Removed cvar "l4d2_holdout_prevent". No longer required thanks to the latest fixes.
        - Removed gamedata dependency.
    
    1.3 (05-May-2018)
        - Converted plugin source to the latest syntax utilizing methodmaps. Requires SourceMod 1.8 or newer.
    
    1.2.2 (29-Apr-2017)
        - Fixed server crash on certain maps.
    
    1.2.1 (04-Dec-2016)
        - Renamed some variables because of SourceMod updating reserved keywords.
    
    1.2 (11-Jul-2013)
        - Added Bill to spawn list!
        - Updated gamedata txt file.
    
    1.1 (07-Oct-2012)
        - Added cvar "l4d2_holdout_pile" to create ammo piles next to survivors with primary weapons.
        - Added cvar "l4d2_holdout_freeze" to optionally freeze bots in their place.
        - Changed the freeze method to memory patching, which prevents dust under the bots feet.
        - Requires the added gamedata "l4d2_holdout.txt" for memory patching.
    
    1.0 (02-Jul-2012)
        - Initial release.

    Installation:
    1. Click "Get Plugin" and put the .smx file into your servers \addons\sourcemod\plugins\ folder.

    Updating from 1.3:
    • New cvars have been added: use the Cvar Configs Updater, or delete the old cvars config or manually add them.
    Attached Files
    File Type: sp Get Plugin or Get Source (l4d2_holdout.sp - 117 views - 31.8 KB)
    __________________

    Last edited by Silvers; 07-03-2019 at 09:54.
    Silvers is offline
    SilentBr
    Veteran Member
    Join Date: Jan 2009
    Old 07-02-2012 , 09:51   Re: [L4D2] Survivor Bot Holdout (1.0) [02-Jul-2012]
    Reply With Quote #2

    Great plugin Silvers. I ll test later.

    As always you rock doing plugins!

    Thank you very much for helping L4D2 servers!
    SilentBr is offline
    alexip121093
    Senior Member
    Join Date: Dec 2009
    Location: Hong Kong
    Old 07-02-2012 , 11:53   Re: [L4D2] Survivor Bot Holdout (1.0) [02-Jul-2012]
    Reply With Quote #3

    another plugin to improve the gameplay of l4d2
    GJ
    __________________
    alexip121093 is offline
    Send a message via MSN to alexip121093
    Sev
    Veteran Member
    Join Date: May 2010
    Old 07-02-2012 , 13:02   Re: [L4D2] Survivor Bot Holdout (1.0) [02-Jul-2012]
    Reply With Quote #4

    Great work on this plugin Silver.

    Just when I thought we had expended all options on creativity with this game.

    Shame about Bill. I assume its the windows issue or just him not having that code that came with the Passing set of survivors?

    Regarding ammo. Just wondering.

    Do the L4D1 survivors have infinite ammo in their primaries or do they run out? I'd hope for infinite only because it would be lame for them to run out in a stationary spot.

    Though I suppose for realism, you could probably make them run out of ammo and grab ammo nearby if near it.
    Sev is offline
    Silvers
    AlliedModders Donor
    Join Date: Aug 2010
    Location: SpaceX
    Old 07-02-2012 , 13:24   Re: [L4D2] Survivor Bot Holdout (1.0) [02-Jul-2012]
    Reply With Quote #5

    Quote:
    Originally Posted by Sev View Post
    Shame about Bill. I assume its the windows issue or just him not having that code that came with the Passing set of survivors?
    Something like that yeah.


    Quote:
    Originally Posted by Sev View Post
    Regarding ammo. Just wondering.

    Do the L4D1 survivors have infinite ammo in their primaries or do they run out? I'd hope for infinite only because it would be lame for them to run out in a stationary spot.
    I've not tested that enough to know. Ammo is set to 9999 but when I picked up the weapon after slaying them it had the default maximum ammo (this is before I made it remove the weapon/kick the bot). I did not check after they had been shooting if the ammo was less (which would confirm if they had more than default ammo previous to being slayed).


    Quote:
    Originally Posted by Sev View Post
    Though I suppose for realism, you could probably make them run out of ammo and grab ammo nearby if near it.
    They are frozen in place, to prevent them teleporting and running around stupidly, so no they won't scavenge for other weapons, if anything they have pistols.
    __________________
    Silvers is offline
    Sev
    Veteran Member
    Join Date: May 2010
    Old 07-02-2012 , 18:20   Re: [L4D2] Survivor Bot Holdout (1.0) [02-Jul-2012]
    Reply With Quote #6

    Quote:
    Originally Posted by Silvers View Post
    I've not tested that enough to know. Ammo is set to 9999 but when I picked up the weapon after slaying them it had the default maximum ammo (this is before I made it remove the weapon/kick the bot). I did not check after they had been shooting if the ammo was less (which would confirm if they had more than default ammo previous to being slayed).
    Something to ponder.

    I gave them the specialty weapons (M60/Nade Launcher) and they use them. However they do drop the m60 so it must run out of ammo. The Nade launcher doesn't seem to run out of ammo that I've noticed.
    Sev is offline
    SyluxLockjaw100
    Senior Member
    Join Date: Jul 2010
    Location: Novaya Russia
    Old 07-03-2012 , 01:01   Re: [L4D2] Survivor Bot Holdout (1.0) [02-Jul-2012]
    Reply With Quote #7

    Nice!!! Great job again as usual Silvers!
    SyluxLockjaw100 is offline
    adrianman
    Senior Member
    Join Date: Sep 2010
    Old 07-03-2012 , 07:05   Re: [L4D2] Survivor Bot Holdout (1.0) [02-Jul-2012]
    Reply With Quote #8

    people like you never cease to amaze me,good job once again
    __________________
    The best thing in life's for free
    adrianman is offline
    l4d2master
    Member
    Join Date: Jun 2012
    Old 07-03-2012 , 15:32   Re: [L4D2] Survivor Bot Holdout (1.0) [02-Jul-2012]
    Reply With Quote #9

    Can you make a command like sm_holdoutdel to remove the holdout from the save file like the jukebox spawner https://forums.alliedmods.net/showthread.php?p=1405042
    or the mic spawner
    https://forums.alliedmods.net/showthread.php?p=1622558
    l4d2master is offline
    Silvers
    AlliedModders Donor
    Join Date: Aug 2010
    Location: SpaceX
    Old 07-03-2012 , 15:58   Re: [L4D2] Survivor Bot Holdout (1.0) [02-Jul-2012]
    Reply With Quote #10

    Quote:
    Originally Posted by l4d2master View Post
    Can you make a command like sm_holdoutdel to remove the holdout from the save file like the jukebox spawner https://forums.alliedmods.net/showthread.php?p=1405042
    or the mic spawner
    https://forums.alliedmods.net/showthread.php?p=1622558
    Quote:
    sm_holdout // Saves to the config for auto spawning or Deletes if already saved. Usage: sm_holdout <1=Francis, 2=Louis, 3=Zoey> [weapon name, eg: rifle_ak47].
    Why does no one read?
    __________________

    Last edited by Silvers; 07-03-2012 at 15:59.
    Silvers 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 21:08.


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