AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Plugins (https://forums.alliedmods.net/forumdisplay.php?f=108)
-   -   [TF2] Medic Amputator Glitch Fix (https://forums.alliedmods.net/showthread.php?t=146788)

FoxMulder 01-01-2011 08:13

[TF2] Medic Amputator Glitch Fix
 
2 Attachment(s)
About:
Prevents Medic Amputator glitch that allows others to have permanent regenerating health.

CVar:
sm_medic_glitchfix_enable [0/1]

How:
*Checks to see if client was taunting with the Amputator when disconnecting.
*If they were then a FakeClientCommand of Explode is sent to that client so that the game itself can cleanup the effects.

Alerts:
When a possible exploit is attempted the following message is logged and printed to chat
Quote:

Possible exploit attempt by: UserName [SteamID]
Updates in 1.0.1:
  • Fixed description for plugin
  • Added check for active weapon being Amputator
  • Actions are now saved to the SourceMod logs
  • Cleaned up code a bit

Boltersdriveer 01-01-2011 08:16

Re: [TF2] Medic Amputator Glitch Fix
 
Hi! Thanks for this. I just installed it on a TF2 Server and it works flawlessly. Until Valve patches this, this is a good fix for the problem ;)

xomp 01-01-2011 11:21

Re: [TF2] Medic Amputator Glitch Fix
 
Thanks for this, there's already several movements to troll servers with this new glitch on FP so I'm glad to nip it in the bud early.

LordFear 01-01-2011 11:35

Re: [TF2] Medic Amputator Glitch Fix
 
Explode is one of the protected commands and can't be executed on a client.

I'm not denying that it works though. I just tried it. But I find it strange.

Kevin_b_er 01-01-2011 14:36

Re: [TF2] Medic Amputator Glitch Fix
 
FakeClientCommand doesn't send the command to the client, it ends up sending the command the server's API for processing commands from clients. The server is made to think the client ran a command.

You should look into the "%N" and "%L" format specifiers. They could make things cleaner.

Afronanny 01-01-2011 16:29

Re: [TF2] Medic Amputator Glitch Fix
 
And to think. I was editing Wazz's old CTFPlayerShared extension to clean it up without killing anyone. Such hackery wasn't even necessary...

Kevin_b_er 01-01-2011 17:38

Re: [TF2] Medic Amputator Glitch Fix
 
OK so it appears I was a bit premature in approval for want to see the exploit patched sooner.

1. Doesn't check m_hActiveWeapon, so a taunt disconnect with any weapon while amputator is equipped will trip it.
2. Description used for sm_medic_glitchfix_enable is utterly wrong. (Copied from another plugin).

Please fix those.

FoxMulder 01-01-2011 19:36

Re: [TF2] Medic Amputator Glitch Fix
 
Oops, was in a rush when I released this.

Changes:
  • Fixed description for plugin
  • Added check for active weapon being Amputator
  • Actions are now saved to the SourceMod logs
  • Cleaned up code a bit

Kevin_b_er 01-01-2011 19:37

Re: [TF2] Medic Amputator Glitch Fix
 
And now there's no plugin attached.

Cuz 01-01-2011 21:10

Re: [TF2] Medic Amputator Glitch Fix
 
Thank You !


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

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