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

[L4D1 & L4D2] Choose Door Fix for Incapacitated Survivors [v1.0.2 | 21-April-2022]


Post New Thread Reply   
 
Thread Tools Display Modes
Author
Marttt
Veteran Member
Join Date: Jan 2019
Location: Brazil
Plugin ID:
8030
Plugin Version:
1.0.2
Plugin Category:
Gameplay
Plugin Game:
Left 4 Dead
Plugin Dependencies:
    Servers with this Plugin:
    9 
    Plugin Description:
    Fixes an exploit that allows incapacitated survivors to open/close doors with 'choose_opendoor' / 'choose_closedoor' console commands
    Old 04-16-2022 , 16:51   [L4D1 & L4D2] Choose Door Fix for Incapacitated Survivors [v1.0.2 | 21-April-2022]
    Reply With Quote #1

    Description

    This plugin fixes an exploit that allows incapacitated survivors to open/close doors with choose_opendoor or choose_closedoor console commands.

    Features
    • Block survivors from being able to open/close doors while incapacitated/hanging. (L4D1 and L4D2)
    • Block survivors from being able to open/close doors while immobilized by hunter/smoker. (L4D1 only)

    Steps to reproduce

    L4D1/L4D2:
    • Being a survivor, become incapacitated near a door.
    • Send a choose_opendoor or choose_closedoor console command while aiming at the door.
    • The door will open/close.

    L4D1 only:
    • Being a survivor, let a hunter/smoker immobilize you near a door.
    • Send a choose_opendoor or choose_closedoor console command while aiming at the door.
    • The door will open/close.

    This has been reported already in GitHub:
    Also mentioned in Valve wiki as a hidden command.

    And mentioned by Lux in [L4D2]Survivor_Legs_Restore plugin as well.

    Cvars

    A configuration file named "l4d_incap_door_fix.cfg" will automatically be created for you upon the first run in the "\cfg\sourcemod\" folder.

    PHP Code:
    // Enable/Disable the plugin.
    // 0 = Disable, 1 = Enable.
    // -
    // Default: "1"
    // Minimum: "0.000000"
    // Maximum: "1.000000"
    l4d_incap_door_fix_enable "1" 
    Admin Commands
    • sm_print_cvars_l4d_incap_door_fix => Print the plugin related cvars and their respective values to the console. (z flag required)

    Change Log

    Spoiler


    Thank you!
    • lunatixxx - for reporting the bug and opening an issue to Valve fix it.
    • Lux - for mentioning the bug.
    • HarryPotter - for reporting the same behavior while being immobilized by SI in L4D1.

    Related Plugins

    Post Reply
    • Any feedback, bug reports, fixes, improvements, translations or suggestions for the plugin are welcome.

    Installation
    • Put the "l4d_incap_door_fix.smx" file (click Get Plugin) in your "\addons\sourcemod\plugins\" folder.
    Attached Files
    File Type: sp Get Plugin or Get Source (l4d_incap_door_fix.sp - 308 views - 9.3 KB)
    __________________

    Last edited by Marttt; 01-15-2023 at 12:22.
    Marttt is offline
    Lux
    Veteran Member
    Join Date: Jan 2015
    Location: Cat
    Old 04-16-2022 , 17:13   Re: [L4D1 & L4D2] Choose Door Fix for Incapacitated Survivors [v1.0.0 | 16-April-2022
    Reply With Quote #2

    Nice one thanks, i'm surprised you remember the comment i made in the legs, it's here 2018 i removed it
    https://github.com/LuxLuma/-L4D2-Sur...b1c99f3197L137
    __________________
    Connect
    My Plugins: KlickME
    [My GitHub]

    Commission me for L4D
    Lux is offline
    Toranks
    Senior Member
    Join Date: Dec 2021
    Location: Spain
    Old 04-16-2022 , 18:02   Re: [L4D1 & L4D2] Choose Door Fix for Incapacitated Survivors [v1.0.0 | 16-April-2022
    Reply With Quote #3

    LOL for me, this is a feature! i've searching for a plugin to do exactly this. Now I don't need this, it is enough to bind those commands to use key.
    https://forums.alliedmods.net/showpo...8&postcount=13
    I'm still looking for a plugin that does the same with any kind of buttons to activate things, it looks very epic when an incapacitated survivor reactivates the sacrifice generator in his last seconds, for example
    Toranks is offline
    HarryPotter
    Veteran Member
    Join Date: Sep 2017
    Location: Taiwan, Asia
    Old 04-20-2022 , 22:11   Re: [L4D1 & L4D2] Choose Door Fix for Incapacitated Survivors [v1.0.0 | 16-April-2022
    Reply With Quote #4

    nice fix
    __________________
    HarryPotter is offline
    HarryPotter
    Veteran Member
    Join Date: Sep 2017
    Location: Taiwan, Asia
    Old 04-21-2022 , 14:02   Re: [L4D1 & L4D2] Choose Door Fix for Incapacitated Survivors [v1.0.0 | 16-April-2022
    Reply With Quote #5

    There is another similar glitch, when hunter pounces the survivor, the survivor can open/close doors with 'choose_opendoor' / 'choose_closedoor' console commands, same happen with jockey, charger, smoker

    You can add check for this
    PHP Code:

    int GetInfectedAttacker
    (int client)
    {
        
    int attacker;

        if(
    L4D2Version)
        {
            
    /* Charger */
            
    attacker GetEntPropEnt(clientProp_Send"m_pummelAttacker");
            if (
    attacker 0)
            {
                return 
    attacker;
            }

            
    attacker GetEntPropEnt(clientProp_Send"m_carryAttacker");
            if (
    attacker 0)
            {
                return 
    attacker;
            }
            
    /* Jockey */
            
    attacker GetEntPropEnt(clientProp_Send"m_jockeyAttacker");
            if (
    attacker 0)
            {
                return 
    attacker;
            }
        }

        
    /* Hunter */
        
    attacker GetEntPropEnt(clientProp_Send"m_pounceAttacker");
        if (
    attacker 0)
        {
            return 
    attacker;
        }

        
    /* Smoker */
        
    attacker GetEntPropEnt(clientProp_Send"m_tongueOwner");
        if (
    attacker 0)
        {
            return 
    attacker;
        }

        return -
    1;

    __________________

    Last edited by HarryPotter; 04-21-2022 at 14:02.
    HarryPotter is offline
    Marttt
    Veteran Member
    Join Date: Jan 2019
    Location: Brazil
    Old 04-21-2022 , 16:57   Re: [L4D1 & L4D2] Choose Door Fix for Incapacitated Survivors [v1.0.2 | 21-April-2022
    Reply With Quote #6

    Thanks for reporting @Harry.

    Although, I was only able to reproduce it in L4D1. I believe in L4D2 this has been patched already.

    If someone is still able to do it in L4D2 tell me.

    Plugin updated. (1.0.2)
    __________________

    Last edited by Marttt; 04-21-2022 at 18:10.
    Marttt is offline
    HarryPotter
    Veteran Member
    Join Date: Sep 2017
    Location: Taiwan, Asia
    Old 04-21-2022 , 21:37   Re: [L4D1 & L4D2] Choose Door Fix for Incapacitated Survivors [v1.0.2 | 21-April-2022
    Reply With Quote #7

    Quote:
    Originally Posted by Marttt View Post
    Thanks for reporting @Harry.

    Although, I was only able to reproduce it in L4D1. I believe in L4D2 this has been patched already.

    If someone is still able to do it in L4D2 tell me.

    Plugin updated. (1.0.2)
    __________________
    HarryPotter 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 06:48.


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