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

[L4D2] Timed Button Distance Exploit Fix [v1.0.1 | 15-January-2023]


Post New Thread Reply   
 
Thread Tools Display Modes
Author
Marttt
Veteran Member
Join Date: Jan 2019
Location: Brazil
Plugin ID:
8351
Plugin Version:
1.0.1
Plugin Category:
Gameplay
Plugin Game:
Left 4 Dead
Plugin Dependencies:
    Servers with this Plugin:
    4 
    Plugin Description:
    Resets the button progress bar when the activator distance exceeds the maximum allowed
    Old 01-01-2023 , 20:03   [L4D2] Timed Button Distance Exploit Fix [v1.0.1 | 15-January-2023]
    Reply With Quote #1

    L4D2 ONLY

    In L4D1 this exploit doesn't work, so this plugin isn't necessary.

    Description

    Resets the button progress bar when the activator distance exceeds the maximum allowed. (96, defined by the player_use_radius cvar)

    More useful for versus servers.

    Exploit often done in the first chapter of L4D2 Sacrifice (c7m1_docks), which gives the activator some advantage as the survivor position is harder to be hit.

    Steps to Reproduce

    Spoiler


    Cvars

    A configuration file named "l4d2_timedbutton_dist_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"
    l4d2_timedbutton_dist_fix_enable "1" 
    Related Game Cvars
    • player_use_radius => Maximum radius for a player to be able to trigger the "USE" functions. (default: 96)

    Admin Commands
    • sm_print_cvars_l4d2_timedbutton_dist_fix => Print the plugin related cvars and their respective values to the console. (z flag required)

    Change Log

    Spoiler


    Notes
    • The radius check still isn't 100% accurate according to the game core logic, because it does several checks, but is better than vanilla behavior. (search for: CBasePlayer::FindUseEntity())

    Thank you!
    • Shao - for reporting a bug where the plugin wasn't working with non-solid buttons.

    Related Plugins

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

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

    Last edited by Marttt; 02-19-2023 at 20:07.
    Marttt is offline
    HarryPotter
    Veteran Member
    Join Date: Sep 2017
    Location: Taiwan, Asia
    Old 01-02-2023 , 10:11   Re: [L4D2] Timed Button Distance Exploit Fix [v1.0.0 | 01-January-2023]
    Reply With Quote #2

    Does it also apply when the survivor tries to heal teammate but distance exceeds the maximum allowed.
    For example, being healed while climbing the ladder or being healed while tank punch.
    __________________

    Last edited by HarryPotter; 01-02-2023 at 10:13.
    HarryPotter is offline
    Marttt
    Veteran Member
    Join Date: Jan 2019
    Location: Brazil
    Old 01-02-2023 , 10:20   Re: [L4D2] Timed Button Distance Exploit Fix [v1.0.0 | 01-January-2023]
    Reply With Quote #3

    Quote:
    Originally Posted by HarryPotter View Post
    Does it also apply when the survivor tries to heal teammate but distance exceeds the maximum allowed.
    For example, being healed while climbing the ladder or being healed while tank punch.
    Released another plugin for that case as well.
    __________________

    Last edited by Marttt; 01-03-2023 at 19:34.
    Marttt is offline
    HarryPotter
    Veteran Member
    Join Date: Sep 2017
    Location: Taiwan, Asia
    Old 01-04-2023 , 15:39   Re: [L4D2] Timed Button Distance Exploit Fix [v1.0.0 | 01-January-2023]
    Reply With Quote #4

    Quote:
    Originally Posted by Marttt View Post
    Released another plugin for that case as well.
    Well done
    __________________
    HarryPotter is offline
    Shao
    Senior Member
    Join Date: Jan 2015
    Old 02-11-2023 , 17:01   Re: [L4D2] Timed Button Distance Exploit Fix [v1.0.0 | 01-January-2023]
    Reply With Quote #5

    This plugin interferes with https://forums.alliedmods.net/showthread.php?p=2780813 somehow. It causes survivors to t-pose and the progress bar to not appear.
    Shao is offline
    Marttt
    Veteran Member
    Join Date: Jan 2019
    Location: Brazil
    Old 02-15-2023 , 20:13   Re: [L4D2] Timed Button Distance Exploit Fix [v1.0.1 | 15-January-2023]
    Reply With Quote #6

    Thanks for reporting @Shao.

    Plugin updated (1.0.1)

    Code:
    1.0.1 (15-February-2023)
        - Fixed plugin not working with non-solid buttons. (thanks "Shao" for reporting)
    __________________

    Last edited by Marttt; 02-15-2023 at 20:14.
    Marttt is offline
    RhondaWright
    New Member
    Join Date: Feb 2023
    Old 02-16-2023 , 05:36   Re: [L4D2] Timed Button Distance Exploit Fix [v1.0.1 | 15-January-2023]
    Reply With Quote #7

    Timed Button Distance Exploit Fix plugin is one of my favorite plugins. I like to use it because I can easily reset the button progress bar when the activator distance exceeds the maximum allowed. I found this plugin by mistake. Because I was actually searching for the https://www.torontomike.com/2022/11/...-plagiarizing/ website because I want to know how to summarize an article without plagiarizing. When I was looking for it on google search, I found your post link.

    Last edited by RhondaWright; 02-23-2023 at 02:54.
    RhondaWright is offline
    Shao
    Senior Member
    Join Date: Jan 2015
    Old 08-11-2023 , 23:12   Re: [L4D2] Timed Button Distance Exploit Fix [v1.0.1 | 15-January-2023]
    Reply With Quote #8

    Seems like it conflicts with the barricade plugin, removing the plugin fixes the weird conflict.
    Shao 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 11:28.


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