Raised This Month: $32 Target: $400
 8% 

[L4D] Car Alarm - Bots Block (1.6) [07-Nov-2023]


Post New Thread Reply   
 
Thread Tools Display Modes
Author
Silvers
SourceMod Plugin Approver
Join Date: Aug 2010
Location: SpaceX
Plugin ID:
6793
Plugin Version:
1.6
Plugin Category:
Gameplay
Plugin Game:
Left 4 Dead
Plugin Dependencies:
    Servers with this Plugin:
     
    Plugin Description:
    Blocks the car alarm when bots shoot the vehicle or stand on it.
    Old 11-04-2019 , 18:41   [L4D] Car Alarm - Bots Block (1.6) [07-Nov-2023]
    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.
    • Default game behaviour bots can trigger car alarms.
    • This plugin prevents bots from triggering the alarm when shooting or standing on a car.


    CVars:

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

    PHP Code:
    l4d_car_alarm_bots_allow "1"         // 0=Plugin off, 1=Plugin on.
    l4d_car_alarm_bots_modes ""          // Turn on the plugin in these game modes, separate by commas (no spaces). (Empty = all).
    l4d_car_alarm_bots_modes_off ""      // Turn off the plugin in these game modes, separate by commas (no spaces). (Empty = none).
    l4d_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.
    l4d_car_alarm_bots_type "3"          // 1=Block alarm trigger when bots shoot the car. 2=Block alarm trigger when bots stand on the car. 3=Both.
    l4d_car_alarm_bots_version           // Car Alarm - Bots Trigger plugin version. 


    Changes:
    Code:
    1.6 (07-Nov-2023)
        - Fixed not deleting 1 handle on plugin start.
    
    1.5 (11-Dec-2022)
        - Changes to fix compile warnings on SourceMod 1.11.
    
    1.4 (28-Jul-2021)
        - Fixed errors on Linux. Thanks to "ReCreator" for reporting.
        - Removed DHooks requirement. Plugin will use some more processing resources.
        - Thanks to "Lux", "nosoop", "Crasher_3637" and "asherkin" for help trying to fix the detour method.
        - Would prefer to use detour method if that worked.
        - GameData file and plugin updated.
    
    1.3a (23-Jul-2021)
        - Fixed the signature being broken on Linux. Thanks to "ReCreator" for reporting.
    
    1.3 (30-Sep-2020)
        - Fixed compile errors on SM 1.11.
    
    1.2 (10-May-2020)
        - Added better error log message when gamedata file is missing.
        - Extra checks to prevent "IsAllowedGameMode" throwing errors.
        - Fixed the plugin not following the allow cvar.
        - Various changes to tidy up code.
    
    1.1 (01-Apr-2020)
        - Fixed "IsAllowedGameMode" from throwing errors when the "_tog" cvar was changed before MapStart.
    
    1.0 (05-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 l4d_car_alarm_bots.txt (1.0 KB, 334 views)
    File Type: sp Get Plugin or Get Source (l4d_car_alarm_bots.sp - 118 views - 13.3 KB)
    __________________

    Last edited by Silvers; 11-07-2023 at 02:35.
    Silvers is offline
    tRololo312312
    Senior Member
    Join Date: Apr 2015
    Old 11-05-2019 , 06:44   Re: [L4D] Car Alarm - Bots Block (1.0) [05-Nov-2019]
    Reply With Quote #2

    Thank you for this, much appreciate it!
    tRololo312312 is offline
    CosmicD
    Senior Member
    Join Date: Dec 2009
    Location: Hasselt, Belgium
    Old 03-24-2021 , 12:48   Re: [L4D] Car Alarm - Bots Block (1.3) [30-Sep-2020]
    Reply With Quote #3

    i've updated to the latest dhooks and plugin, and I'm always getting the error that the plugin doesn't start, something about missing carprops variable.
    __________________
    CosmicD is offline
    Psyk0tik
    Veteran Member
    Join Date: May 2012
    Location: Homeless
    Old 03-24-2021 , 12:51   Re: [L4D] Car Alarm - Bots Block (1.3) [30-Sep-2020]
    Reply With Quote #4

    Show the error log so others can help you.
    __________________
    Psyk0tik is offline
    ReCreator
    Member
    Join Date: Nov 2017
    Location: Ukraine,Kyiv
    Old 07-22-2021 , 22:11   Re: [L4D] Car Alarm - Bots Block (1.3) [30-Sep-2020]
    Reply With Quote #5

    Quote:
    L 07/23/2021 - 05:09:49: [SM] Exception reported: Failed to find "CCarProp::InputSurvivorStandingOnCar" signature.
    L 07/23/2021 - 05:09:49: [SM] Blaming: l4d_car_alarm_bots.smx
    L 07/23/2021 - 05:09:49: [SM] Call stack trace:
    L 07/23/2021 - 05:09:49: [SM] [0] SetFailState
    L 07/23/2021 - 05:09:49: [SM] [1] Line 116, l4d_car_alarm_bots.sp::OnPluginStart
    L 07/23/2021 - 05:09:49: [SM] Unable to load plugin "l4d_car_alarm_bots.smx": Error detected in plugin startup (see error logs)
    It seems to me that CosmicD had this error
    __________________
    Sorry for my pure English...
    ReCreator is offline
    Silvers
    SourceMod Plugin Approver
    Join Date: Aug 2010
    Location: SpaceX
    Old 07-23-2021 , 03:05   Re: [L4D] Car Alarm - Bots Block (1.3a) [23-Jul-2021]
    Reply With Quote #6

    Thanks fixed.

    This is why it's useful to provide error logs or details on what happens.
    __________________
    Silvers is offline
    ReCreator
    Member
    Join Date: Nov 2017
    Location: Ukraine,Kyiv
    Old 07-23-2021 , 06:29   Re: [L4D] Car Alarm - Bots Block (1.3a) [23-Jul-2021]
    Reply With Quote #7

    Server crashes without errors when bots standing on the car.
    When they shoot, works fine.
    I uploaded new plugin ver and signature.
    __________________
    Sorry for my pure English...

    Last edited by ReCreator; 07-23-2021 at 06:32.
    ReCreator is offline
    Silvers
    SourceMod Plugin Approver
    Join Date: Aug 2010
    Location: SpaceX
    Old 07-23-2021 , 07:13   Re: [L4D] Car Alarm - Bots Block (1.3a) [23-Jul-2021]
    Reply With Quote #8

    Nothing I tried has been able to fix this detour on L4D1 Linux server. If anyone knows how or solves please tell me.
    __________________

    Last edited by Silvers; 07-27-2021 at 05:37.
    Silvers is offline
    Silvers
    SourceMod Plugin Approver
    Join Date: Aug 2010
    Location: SpaceX
    Old 07-28-2021 , 05:00   Re: [L4D] Car Alarm - Bots Block (1.4) [28-Jul-2021]
    Reply With Quote #9

    Code:
    1.4 (28-Jul-2021)
        - Fixed errors on Linux. Thanks to "ReCreator" for reporting.
        - Removed DHooks requirement. Plugin will use some more processing resources.
        - Thanks to "Lux", "nosoop", "Crasher_3637" and "asherkin" for help trying to fix the detour method.
        - Would prefer to use detour method if that worked.
        - GameData file and plugin updated.
    __________________
    Silvers is offline
    Reply



    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 19:42.


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