AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Plugins (https://forums.alliedmods.net/forumdisplay.php?f=108)
-   -   [L4D2] Heal Revive Exploit Bug Fix (1.5) [11-Dec-2022] (https://forums.alliedmods.net/showthread.php?t=297585)

Silvers 05-18-2017 00:02

[L4D2] Heal Revive Exploit Bug Fix (1.5) [11-Dec-2022]
 
12 Attachment(s)
Info:
  • This shouldn't be required for L4D1. The Engine seems to have it fixed, on revive the healing is stopped.


Thanks:

CVars:

PHP Code:

// Heal Revive Exploit Bug Fix plugin version.
l4d_heal_revive_fix 


Changes:
Code:

1.4a (09-Jul-2021)
    - L4D2: GameData file updated. Thanks to "Crasher_3637" for updating.

1.4 (10-May-2020)
    - Added better error log message when gamedata file is missing.
    - Various changes to tidy up code.

1.3 (26-Jun-2018)
    - Fixed invalid entity error - Thanks to "midnight9" for reporting.

1.2 (05-May-2018)
    - Converted plugin source to the latest syntax utilizing methodmaps. Requires SourceMod 1.8 or newer.

1.1 (28-Jun-2017)
    - Converted to new syntax.
    - Now only supports L4D2.

1.0 (18-May-2017)
    - 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.

cravenge 05-19-2017 00:34

Re: [L4D & L4D2] Heal Revive Exploit Bug Fix (1.0) [18-May-2017]
 
First to reply. Hehe, Silver, I noticed that:

Quote:

Originally Posted by Silvers (Post 2521272)
CVars:

PHP Code:

// Knife Unlock plugin version. -> Typo?
l4d_heal_revive_fix 


Also, tested this on both L4D1 and L4D2 windows. It works like a charm! Nice release!

SEGA EMPRESS ERIS 05-23-2017 01:17

Re: [L4D & L4D2] Heal Revive Exploit Bug Fix (1.0) [18-May-2017]
 
Ok I tested this under Linux L4D2 from gameservers.com server which is a Linux L4D2 Dedicated. Anyway the block works properly on bots however on human survivors that are down it just blocks 1 time then still resumes picking up the survivor even while healing. Could you possibly fix under linux?

Reason im using linux is All 8 L4D2 Survivors work under linux. If im not mistaken Zoey was broke on Windows where as before it was Bill then later they were all fixed under linux l4d2.

JohnnyDave255 05-23-2017 05:13

Re: [L4D & L4D2] Heal Revive Exploit Bug Fix (1.0) [18-May-2017]
 
Is this like a Self Revive plugin? Just only asking :)

Silvers 05-23-2017 07:40

Re: [L4D & L4D2] Heal Revive Exploit Bug Fix (1.0) [18-May-2017]
 
Quote:

Originally Posted by XJR15 (Post 2522440)
Ok I tested this under Linux L4D2 from gameservers.com server which is a Linux L4D2 Dedicated. Anyway the block works properly on bots however on human survivors that are down it just blocks 1 time then still resumes picking up the survivor even while healing. Could you possibly fix under linux?

Reason im using linux is All 8 L4D2 Survivors work under linux. If im not mistaken Zoey was broke on Windows where as before it was Bill then later they were all fixed under linux l4d2.

Find "0.1" in the code (without quotes) and change to 0.5 or something. See if that works.

The plugin detects revive start, after the above number of seconds (0.5), it checks if the user is healing themselves, and if so stops the revive.

cravenge 05-25-2017 05:25

Re: [L4D & L4D2] Heal Revive Exploit Bug Fix (1.0) [18-May-2017]
 
Whoops, my bad. It's my fault for posting too soon.

Silvers, I wondered why you used the L4D2 signature for L4D1 in the gamedata. They aren't the same plus this plugin is not needed in L4D1 since the 1.0.3.1 update. It looks like Valve already fixed it.

Also, a suggestion: Hook "heal_start" so that way, the plugin can check both actions but I think there may be a downside and that's an unexpected crash caused by constantly calling the signature.

midnight9 06-26-2018 11:41

Re: [L4D2] Heal Revive Exploit Bug Fix (1.2) [05-May-2018]
 
Hey, any idea how to fix that?
Code:

L 06/25/2018 - 19:45:46: SourceMod error session started
L 06/25/2018 - 19:45:46: Info (map "c2m1_highway") (file "errors_20180625.log")
L 06/25/2018 - 19:45:46: [SM] Native "GetEntPropEnt" reported: Entity 3 (3) is invalid
L 06/25/2018 - 19:45:46: [SM] Displaying call stack trace for plugin "l4d_heal_revive_fix.smx":
L 06/25/2018 - 19:45:46: [SM]  [0]  Line 77, /home/forums/content/files/8/5/7/7/8/162841.attach::TmrBlock()
L 06/25/2018 - 19:53:20: Error log file session closed.


Silvers 06-26-2018 12:11

Re: [L4D2] Heal Revive Exploit Bug Fix (1.2) [05-May-2018]
 
Quote:

Originally Posted by midnight9 (Post 2599389)
*snip*

Updated:

Quote:

1.3 (26-Jun-2018)
- Fixed invalid entity error - Thanks to "midnight9" for reporting.

midnight9 06-26-2018 12:52

Re: [L4D2] Heal Revive Exploit Bug Fix (1.2) [05-May-2018]
 
Quote:

Originally Posted by Silvers (Post 2599394)
Updated:

Awesome, thanks

tRololo312312 07-08-2021 17:50

Re: [L4D2] Heal Revive Exploit Bug Fix (1.4) [10-May-2020]
 
[SM] Exception reported: Unable to find the "CTerrorPlayer::StopRevivingSomeone" signature.

Windows.

Psyk0tik 07-08-2021 18:04

Re: [L4D2] Heal Revive Exploit Bug Fix (1.4) [10-May-2020]
 
Quote:

Originally Posted by tRololo312312 (Post 2752252)
[SM] Exception reported: Unable to find the "CTerrorPlayer::StopRevivingSomeone" signature.

Windows.

PHP Code:

/*
 *    CTerrorPlayer::StopRevivingSomeone(bool)
 */
"CTerrorPlayer::StopRevivingSomeone"
{
    
"library"    "server"
    "linux"        "@_ZN13CTerrorPlayer19StopRevivingSomeoneEb"
    "windows"    "\x55\x8B\x2A\xD9\x2A\x83\x2A\x2A\x53\x56"
    
/* 55 8B ? D9 ? 83 ? ? 53 56 */
    /* Search: "revive_end" */



tRololo312312 07-08-2021 18:27

Re: [L4D2] Heal Revive Exploit Bug Fix (1.4) [10-May-2020]
 
Thank you!

bumblebee0001 01-25-2024 21:13

Re: [L4D2] Heal Revive Exploit Bug Fix (1.5) [11-Dec-2022]
 
Hi Silvers, I have an issue with this plugin https://forums.alliedmods.net/showthread.php?t=109655 L4D2 Meds Munch, which is a popular plugin but it is causing a black screen bug where only survivor aura, hud and chat are visible, everything else is pitch black and only restarting the game can fix this bug, AFK and rejoin team doesn't work, rejoin server doesn't work. only restart game entirely. The black screen bug happens when pressing E to revive with pills or adrenaline and survivor stands up into a black screen. it happens seemingly randomly, but I think it is more consistent to happen when something happens to the survivor like getting bowled by charger, damaged by that bowl and put into incap state, then trying to revive.

I installed this plugin fix however the problem still occurs, I was wondering if this Plugin was designed to fix this particular scenario, or designed just to fix when being revived by another player, or if you know of the reason for this glitch. i have noticed this bug in other servers too and it can be very annoying for players :(

I also looked into the plugin code and it makes use of a progress bar for reviving, I am noob at code but could that cause an issue with black screen?

Silvers 01-25-2024 21:22

Re: [L4D2] Heal Revive Exploit Bug Fix (1.5) [11-Dec-2022]
 
No, this plugin only: "Prevents survivors self healing and reviving players at the same time".

Don't know that issue. There are so many self revive plugins, many unsupported or with random updates by others. I don't follow that stuff because it's such a mess. I would suggest using the Incapped Weapons plugin I wrote instead which allows self revive, maybe not with as many options since there are plenty other plugins and hundreds more options people want customized for their usage, which is not something I have an interest or time in to accommodate, but it should be more stable and bug free than most.

bumblebee0001 01-25-2024 23:57

Re: [L4D2] Heal Revive Exploit Bug Fix (1.5) [11-Dec-2022]
 
Thank you silvers, I'll check out your plugin :)


All times are GMT -4. The time now is 22:19.

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