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

[L4D2] Car Alarm - Bots Trigger (1.9a) [26-Jun-2021]


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Author
Silvers
SourceMod Plugin Approver
Join Date: Aug 2010
Location: SpaceX
Plugin ID:
6786
Plugin Version:
1.9a
Plugin Category:
Gameplay
Plugin Game:
Left 4 Dead
Plugin Dependencies:
    Servers with this Plugin:
    37 
    Plugin Description:
    Sets off the car alarm when bots shoot the vehicle or stand on it.
    Old 11-01-2019 , 01:21   [L4D2] Car Alarm - Bots Trigger (1.9a) [26-Jun-2021]
    Reply With Quote #1

    Related Plugins:


    About:
    • Thanks to "Iizuka07" for the idea and request in L4D2.
    • Thanks to "tRololo312312" for the idea and request in L4D1.
    • Thanks to "epzminion" for fixing the Linux version.
    • Default game behaviour bots cannot trigger car alarms.
    • This plugin enables bots to trigger the alarm when shooting or standing on a car.


    CVars:

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

    PHP Code:
    l4d2_car_alarm_bots_allow "1"         // 0=Plugin off, 1=Plugin on.
    l4d2_car_alarm_bots_modes ""          // Turn on the plugin in these game modes, separate by commas (no spaces). (Empty = all).
    l4d2_car_alarm_bots_modes_off ""      // Turn off the plugin in these game modes, separate by commas (no spaces). (Empty = none).
    l4d2_car_alarm_bots_modes_tog "0"     // Turn on the plugin in these game modes. 0=All, 1=Coop, 2=Survival, 4=Versus, 8=Scavenge. Add numbers together.
    l4d2_car_alarm_bots_type "3"          // 1=Trigger alarm when bots shoot the car. 2=Trigger alarm when bots stand on the car. 3=Both.
    l4d2_car_alarm_bots_infected "3"      // Allow SI to trigger the car alarm. 0=OFF. 1=Enable for SI human players. 2=Enable for SI bots. 3=Both.
    l4d2_car_alarm_bots_survivor_distance "500"     // Max distance that a survivor can be from the SI to trigger the alarm. 0=No check.
    l4d2_car_alarm_bots_version           // Car Alarm - Bots Trigger plugin version. 


    Changes:
    Code:
    1.9a (26-Jun-2021)
        - L4D2: Linux only. Compatibility update for "2.2.1.3" update.
        - GameData .txt file updated.
    
    1.9 (15-Feb-2021)
        - Added team Infected support. Thanks to "Mart" for the feature update.
        - Added new cvars "l4d2_car_alarm_bots_infected" and "l4d2_car_alarm_bots_survivor_distance" for this feature.
    
    1.8 (30-Sep-2020)
        - Fixed compile errors on SM 1.11.
    
    1.7 (10-May-2020)
        - Extra checks to prevent "IsAllowedGameMode" throwing errors.
        - Removed unused test command.
        - Various changes to tidy up code.
    
    1.6 (01-Apr-2020)
        - Fixed "IsAllowedGameMode" from throwing errors when the "_tog" cvar was changed before MapStart.
    
    1.5 (25-Mar-2020)
        - Fixed not working on Linux. Thanks to "epzminion" for reporting the correct offset to patch.
        - GameData and plugin updated for Linux fix.
    
    1.4 (29-Feb-2020)
        - Fixed accidentally enabling the plugin when cvars change. Thanks to "TommyCD1" for reporting.
    
    1.3 (25-Jan-2020)
        - Fixed AI special infected from triggering alarms. Thanks to "jamalsheref2" for reporting.
    
    1.2 (05-Nov-2019)
        - Fixed hooking entities when the plugin should be turned off.
    
    1.1 (01-Nov-2019)
        - Renamed plugin and cvar config and restricted to L4D2 only since it's not required in L4D1.
    
    1.0 (01-Nov-2019)
        - Initial release.


    Installation
    1. Click "Get Plugin" and put the .smx file into your servers \addons\sourcemod\plugins\ folder.
    2. Download the .txt gamedata file and put into your servers \addons\sourcemod\gamedata\ folder.
    Attached Files
    File Type: txt l4d2_car_alarm_bots.txt (1.1 KB, 1128 views)
    File Type: sp Get Plugin or Get Source (l4d2_car_alarm_bots.sp - 2113 views - 15.7 KB)
    __________________

    Last edited by Silvers; 06-25-2021 at 19:30.
    Silvers is offline
     



    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 07:30.


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