View Single Post
Author Message
Marttt
Veteran Member
Join Date: Jan 2019
Location: Brazil
Old 01-02-2023 , 20:57   [L4D1 & L4D2] Healing Distance Exploit Fix [v1.0.2 | 25-January-2023]
Reply With Quote #1

Description

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

Exploit often done in the finale chapter of L4D2 Parish (c5m5_bridge) by griefers, which don't let their survivor teammates climb the ladders, causing them to fall and get stuck for a while, until the progress bar is cancelled or completed.

Also fixes a bug where it is possible to keep healing a teammate even after the target is punched by a Tank and goes beyond the healing radius.

Steps to Reproduce

Spoiler


Cvars

A configuration file named "l4d_healing_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"
l4d_healing_dist_fix_enable "1" 
Admin Commands
  • sm_print_cvars_l4d_healing_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!
  • HarryPotter - for reporting the Tank punch + keep healing bug.
  • KadabraZz - for reporting the same bug in L4D1.

Related Plugins

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

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

Last edited by Marttt; 02-15-2023 at 20:11.
Marttt is offline