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

[L4D & L4D2] Witch - Bots Trigger (1.2) [10-May-2020]


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Author
Silvers
SourceMod Plugin Approver
Join Date: Aug 2010
Location: SpaceX
Plugin ID:
6825
Plugin Version:
1.2
Plugin Category:
Gameplay
Plugin Game:
Left 4 Dead
Plugin Dependencies:
    Servers with this Plugin:
    12 
    Plugin Description:
    Makes bots startle the Wandering Witch or block bots startling any Witch when shooting her.
    Old 11-27-2019 , 12:26   [L4D & L4D2] Witch - Bots Trigger (1.2) [10-May-2020]
    Reply With Quote #1

    About:
    • The cvar l4d_witch_trigger_type "1": Makes bots startle the Wandering Witch when shooting her.
    • By default game only does this for Witches that are sitting.
    • This is not required for L4D1.
    • The cvar l4d_witch_trigger_type "0": Blocks bots from startling any Witch they shoot.
    • Bots can still startle the Witch by standing too near and shooting.


    Thanks:

    Cvars:

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

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

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

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

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

    // 0=Prevent bots from startling any Witches when shot. 1=Startle all Witches when bots shoot them.
    l4d_witch_trigger_type "1" // Value of "0" in L4D1.

    // Witch - Bots Trigger plugin version.
    l4d_witch_trigger_version 


    Changes:
    Code:
    1.2 (10-May-2020)
        - Extra checks to prevent "IsAllowedGameMode" throwing errors.
    
    1.1 (01-Apr-2020)
        - Fixed "IsAllowedGameMode" from throwing errors when the "_tog" cvar was changed before MapStart.
    
    1.0 (27-Nov-2019)
        - Initial release.


    Installation:
    1. Click "Get Plugin" and put the .smx file into your servers \addons\sourcemod\plugins\ folder.
    Attached Files
    File Type: sp Get Plugin or Get Source (l4d_witch_trigger.sp - 1720 views - 9.4 KB)
    __________________

    Last edited by Silvers; 05-10-2020 at 07:22.
    Silvers is offline
     


    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 04:28.


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