Raised This Month: $319 Target: $400
 79%   Almost there!

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


Post New Thread Reply   
 
Thread Tools Display Modes
Author
Silvers
AlliedModders Donor
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:
    7 
    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, 164 views)
    File Type: sp Get Plugin or Get Source (l4d2_car_alarm_bots.sp - 578 views - 15.7 KB)
    __________________

    Last edited by Silvers; 06-25-2021 at 19:30.
    Silvers is offline
    zappydogs
    New Member
    Join Date: Nov 2019
    Old 11-01-2019 , 07:36   Re: [L4D2] Car Alarm - Bots Trigger (1.1) [01-Nov-2019]
    Reply With Quote #2

    the "get plugin" link doesnt work.
    __________________
    im here for plugins & reporting.
    zappydogs is offline
    Silvers
    AlliedModders Donor
    Join Date: Aug 2010
    Location: SpaceX
    Old 11-01-2019 , 08:14   Re: [L4D2] Car Alarm - Bots Trigger (1.1) [01-Nov-2019]
    Reply With Quote #3

    Thanks fixed. The forum defaulted to use SourceMod version 1.1 compiler.

    If anyone downloaded when I first posted, the linux signatures were missing the @ symbol and gamedata uploaded.
    __________________
    Silvers is offline
    Iizuka07
    Member
    Join Date: Aug 2018
    Old 11-03-2019 , 12:46   Re: [L4D2] Car Alarm - Bots Trigger (1.1) [01-Nov-2019]
    Reply With Quote #4

    This will be fun.
    __________________
    死が待っている
    Iizuka07 is offline
    tRololo312312
    Senior Member
    Join Date: Apr 2015
    Old 11-04-2019 , 16:16   Re: [L4D2] Car Alarm - Bots Trigger (1.1) [01-Nov-2019]
    Reply With Quote #5

    Could you do the opposite for L4D1? aka make them not trigger the alarms.
    tRololo312312 is offline
    Silvers
    AlliedModders Donor
    Join Date: Aug 2010
    Location: SpaceX
    Old 11-04-2019 , 18:43   Re: [L4D2] Car Alarm - Bots Trigger (1.1) [01-Nov-2019]
    Reply With Quote #6

    Quote:
    Originally Posted by tRololo312312 View Post
    Could you do the opposite for L4D1? aka make them not trigger the alarms.
    Done: https://forums.alliedmods.net/showthread.php?t=319513

    I decided to post in a separate thread because it's differently coded and requires dHooks.
    __________________
    Silvers is offline
    zappydogs
    New Member
    Join Date: Nov 2019
    Old 11-05-2019 , 09:25   Re: [L4D2] Car Alarm - Bots Trigger (1.2) [05-Nov-2019]
    Reply With Quote #7

    i had tested this plugin and it worked perfectly well & in love with this.
    Just like in l4d1 where the bots can trigger the car alarms. i hope you can make more of plugins restore the things that only existed in l4d1 but not l4d2.
    like hunter wall jumping animations or special infected high-impacted ragdolls (i love how i can send their ragdolls flying when shot them with hunting rifle), etc.
    __________________
    im here for plugins & reporting.
    zappydogs is offline
    Xanaguy
    Senior Member
    Join Date: Jan 2017
    Old 11-23-2019 , 16:56   Re: [L4D2] Car Alarm - Bots Trigger (1.2) [05-Nov-2019]
    Reply With Quote #8

    Will the Wandering Witch be getting the same treatment soon?
    Xanaguy is offline
    jamalsheref2
    Member
    Join Date: May 2017
    Old 01-25-2020 , 15:09   Re: [L4D2] Car Alarm - Bots Trigger (1.2) [05-Nov-2019]
    Reply With Quote #9

    There's a problem the plugin works and all but the Ai Tank can trigger car alarm why is that? Can you please fix this

    Last edited by jamalsheref2; 01-25-2020 at 15:09.
    jamalsheref2 is offline
    Silvers
    AlliedModders Donor
    Join Date: Aug 2010
    Location: SpaceX
    Old 01-25-2020 , 15:30   Re: [L4D2] Car Alarm - Bots Trigger (1.2) [05-Nov-2019]
    Reply With Quote #10

    Quote:
    Originally Posted by jamalsheref2 View Post
    There's a problem the plugin works and all but the Ai Tank can trigger car alarm why is that? Can you please fix this
    Thanks, done.
    __________________
    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 01:52.


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