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

[L4D & L4D2] Block Bots Shooting Players (1.4)


Post New Thread Reply   
 
Thread Tools Display Modes
Author
Silvers
SourceMod Plugin Approver
Join Date: Aug 2010
Location: SpaceX
Plugin ID:
1905
Plugin Version:
1.4
Plugin Category:
Gameplay
Plugin Game:
Left 4 Dead
Plugin Dependencies:
    Servers with this Plugin:
     
    Plugin Description:
    Block the survivor bots from shooting at survivor players causing the screen to shake.
    Unapprover:
    Reason for Unapproving:
    It seems this is no longer needed. This works: sm_cvar sb_allow_shoot_through_survivors 0
    Old 08-22-2010 , 15:08   [L4D & L4D2] Block Bots Shooting Players (1.4)
    Reply With Quote #1

    It seems this is no longer needed. This works: sm_cvar sb_allow_shoot_through_survivors 0



    About:
    - My first simple plugin which will detect when the survivor bots are looking directly at a survivor player and attacking. Then block any attacks from the bots for the next 2 seconds. This is to stop the camera shake you get when the bots are shooting through you.


    Installation/removal:
    - Download the .smx file and put into your plugins folder: \left4dead2\addons\sourcemod\plugins

    - To stop the plugin simply delete it from the plugins folder or change the extension from .smx to something else such as .temp


    Known Bugs:
    -The bots can still cause your screen to shake, thankfully only once before the timer kicks in and blocks them shooting.


    CVars:
    PHP Code:
    l4d_block_bots_shooting_players_version // Version cvar 
    Changes:
    Code:
    1.4
        - Fixed array error.
    
    1.3.1
        - Removed cvar saving to file!
    
    1.3
        - Added version cvar.
        - Now individually blocks shooting from bots.
    
    1.2
        - Moved HookEvents to OnPluginStart.
        - Fixed infected players not being shot at.
        - Allowed to work in L4D 1
    
    1.1
        - Added HookEvents to detect when players should be shot at!
    
    1.0
        - Initial release.
    Attached Files
    File Type: sp Get Plugin or Get Source (l4d_block_bots_shooting_players_1.4.sp - 1714 views - 4.9 KB)

    Last edited by Silvers; 05-20-2011 at 21:13. Reason: sm_cvar sb_allow_shoot_through_survivors 0
    Silvers is offline
    dYZER
    Member
    Join Date: Jan 2010
    Location: Germany
    Old 08-23-2010 , 12:04   Re: [L4D2] Block Survivor Bots Shooting From Behind
    Reply With Quote #2

    sb_allow_shoot_through_survivors 0
    simple way ?
    dYZER is offline
    DieTeetasse
    Senior Member
    Join Date: Jul 2009
    Old 08-23-2010 , 12:30   Re: [L4D2] Block Survivor Bots Shooting From Behind
    Reply With Quote #3

    This plugin would block the survivor bots to shoot at human si xD
    __________________
    DieTeetasse is offline
    djdani1341
    BANNED
    Join Date: Aug 2010
    Old 08-23-2010 , 14:15   Re: [L4D2] Block Survivor Bots Shooting From Behind
    Reply With Quote #4

    sb_friendlyfire 1 no camera shake , but bots do Friendly Fire to you like in the beta video's
    djdani1341 is offline
    McFlurry
    Veteran Member
    Join Date: Mar 2010
    Location: RemoveEdict(0);
    Old 08-23-2010 , 15:23   Re: [L4D2] Block Survivor Bots Shooting From Behind
    Reply With Quote #5

    You didn't check the team of the human they're shooting. So as DieTeetasse said, they wont be able to shoot human infected.
    __________________
    McFlurry is offline
    Send a message via Skype™ to McFlurry
    Silvers
    SourceMod Plugin Approver
    Join Date: Aug 2010
    Location: SpaceX
    Old 08-23-2010 , 15:26   Re: [L4D2] Block Survivor Bots Shooting From Behind
    Reply With Quote #6

    I have updated the plugin with some hooks for the special infected, which the bots should shoot.


    Quote:
    Originally Posted by dYZER View Post
    sb_allow_shoot_through_survivors 0
    simple way ?
    Quote:
    Originally Posted by djdani1341 View Post
    sb_friendlyfire 1 no camera shake , but bots do Friendly Fire to you like in the beta video's

    These don't stop it for me which is why I wrote the plugin. Is there anything else I need to input to the console?
    Silvers is offline
    pisdone
    Member
    Join Date: Sep 2010
    Location: Italy
    Old 09-20-2010 , 05:04   Re: [L4D & L4D2] Block Survivor Bots Shooting Players (24-Aug-2010 v1.2)
    Reply With Quote #7

    Can't NOT try this one too THX man, these bots are making me crazy...
    pisdone is offline
    Silvers
    SourceMod Plugin Approver
    Join Date: Aug 2010
    Location: SpaceX
    Old 09-20-2010 , 23:33   Re: [L4D & L4D2] Block Survivor Bots Shooting Players (1.3)
    Reply With Quote #8

    Updated, stops bots individually, rather than all at the same time.
    __________________
    Silvers is offline
    aka120
    New Member
    Join Date: Oct 2010
    Old 11-08-2010 , 11:37   Re: [L4D & L4D2] Block Bots Shooting Players (1.4)
    Reply With Quote #9

    I get this error when the plugin loads
    Code:
    L 11/08/2010 - 03:12:04: [SM] Plugin encountered error 25: Call was aborted
    L 11/08/2010 - 03:12:04: [SM] Native "SetFailState" reported: The plugin 'Block Bots Shooting Players' only supports L4D & L4D2
    L 11/08/2010 - 03:12:04: [SM] Displaying call stack trace for plugin "l4d_block_bots_shooting_players_1.4.smx":
    L 11/08/2010 - 03:12:04: [SM]   [0]  Line 63, /home/groups/alliedmodders/forums/files/8/5/7/7/8/75849.attach::OnPluginStart()
    But the bots do stop shooting me after the first initial shot taken.

    EDIT
    Its probably just a plugin conflict, i disabled all plugins and let l4d_block_bots_shooting_players_1.4.smx run alone and I don't seem to get the error anymore. Please disregard then, thanks.

    Last edited by aka120; 11-08-2010 at 11:58.
    aka120 is offline
    paul92
    Senior Member
    Join Date: Sep 2010
    Old 05-15-2011 , 17:01   Re: [L4D & L4D2] Block Bots Shooting Players (1.4)
    Reply With Quote #10

    Very good plugin! Can you put in a cvar to enable-disable this? Because i want this to be used in my server only on Versus-Game... I'd like a cvar, so i can put it in my my personal .cfg ready to be executed in-game!
    paul92 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 21:30.


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