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

[TF2] Amputator Fix (Non-functional)


Post New Thread Reply   
 
Thread Tools Display Modes
Author
Geit
Senior Member
Join Date: Oct 2009
Location: Home
Plugin ID:
2150
Plugin Version:
Plugin Category:
General Purpose
Plugin Game:
Any
Plugin Dependencies:
    Servers with this Plugin:
     
    Plugin Description:
    Fixes the Permanent Heal Glitch caused by Taunting with the Amputator then disconnecting
    Unapprover:
    Reason for Unapproving:
    Non-functional
    Old 01-01-2011 , 00:17   [TF2] Amputator Fix (Non-functional)
    Reply With Quote #1

    EDIT:

    After posting this I found a very large problem with the plugin (the infinite heal glitch returns whenever the client is healed, even with the normal medigun), and I cannot think of a suitable fix, as such I am withdrawing the plugin, but here is the code should you want it:

    Code:
    #pragma semicolon 1
    
    #define PL_VERSION "1.0"
    
    #include <sourcemod>
    #include <tf2>
    #include <tf2_stocks>
    
    new bool:g_ClientBeingAmputated[MAXPLAYERS+1] = false;
    
    public Plugin:myinfo =
    {
        name = "Amputator Fix",
        author = "Geit",
        description = "Fixes the Amputator Glitch",
        version = PL_VERSION,
        url = "Gamingmasters.co.uk"
    };
    
    public OnClientDisconnect(client)
    {
            g_ClientBeingAmputated[client] = false;
    }
    
    public OnGameFrame()
    {
        for(new client=1; client <= MaxClients; client++)
        {
            if (IsClientInGame(client))
            {
                new flags = TF2_GetPlayerConditionFlags(client);
                
                if(flags & (1 << 20) && flags & (1 << 21))
                {
                    g_ClientBeingAmputated[client] =  true;
                }
                
                if(g_ClientBeingAmputated[client] && flags & (1 << 20) && flags & (1 << 21))
                {
                    g_ClientBeingAmputated[client] =  true;
                } 
                else if (g_ClientBeingAmputated[client])
                {
                    g_ClientBeingAmputated[client] =  false;
                    SetEntProp(client, Prop_Send, "m_nNumHealers", 0);
                    
                    new new_flags;
                    if (flags-(1 << 21) < 0)
                    {
                        new_flags = 0;
                    }
                    else
                    {
                        new_flags=flags-(1 << 21);
                    }
                    
                    SetEntProp(client, Prop_Send, "m_nPlayerCond", new_flags);
                }
            }
        }
    }

    Last edited by Geit; 01-01-2011 at 03:20.
    Geit is offline
    FoxMulder
    Senior Member
    Join Date: Jan 2009
    Location: Orlando, FL
    Old 01-01-2011 , 01:13   Re: [TF2] Amputator Fix (Non-functional)
    Reply With Quote #2

    heh, I thought I had a fix as well but ran into the same problem as you.
    __________________
    FoxMulder is offline
    FoxMulder
    Senior Member
    Join Date: Jan 2009
    Location: Orlando, FL
    Old 01-01-2011 , 08:16   Re: [TF2] Amputator Fix (Non-functional)
    Reply With Quote #3

    I think I might have fixed it. I just make the client explode if they were trying to do the exploit when they were disconnecting (http://forums.alliedmods.net/showthread.php?t=146788)

    I tested it out and everything looked fine.
    __________________
    FoxMulder is offline
    Boltersdriveer
    Member
    Join Date: Jan 2011
    Old 01-01-2011 , 08:18   Re: [TF2] Amputator Fix (Non-functional)
    Reply With Quote #4

    Yep, I can confirm that the one FoxMulder posted works.
    Boltersdriveer 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 09:58.


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