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

Mackerel+Bonk Exploit Fix


Post New Thread Reply   
 
Thread Tools Display Modes
Author
FoxMulder
Senior Member
Join Date: Jan 2009
Location: Orlando, FL
Plugin ID:
2003
Plugin Version:
Plugin Category:
General Purpose
Plugin Game:
Any
Plugin Dependencies:
    Servers with this Plugin:
     
    Plugin Description:
    Unapprover:
    Reason for Unapproving:
    No longer needed
    Old 10-12-2010 , 02:02   Mackerel+Bonk Exploit Fix
    Reply With Quote #1

    No longer required. Vulnerability has been fixed:
    http://store.steampowered.com/news/4483/
    Quote:
    Updates to Team Fortress 2 have been released. The updates will be applied automatically when your Steam client is restarted. The major changes include:

    Team Fortress 2
    • Fixed server crash caused by a Scout using the Sandman on an enemy Scout who has used Bonk!
    • Made Ellis' Cap and the Frying Pan tradable
    • Added "Automatically respawn after loadout changes in respawn zones" option to the Options->Multiplayer->Advanced dialog
    • Fixed a problem with the Lugermorph model

    Requires:
    SDKHooks (https://forums.alliedmods.net/showthread.php?t=106748)

    What does this prevent?
    This prevents players from equipping both the Holy Mackerel and the Atomic Bonk. If this player were to get hit by a Sandman ball with both of the weapons equipped and while in the Bonk effect the server will instantly crash! (What are the chances of this happening? ehh crashes are never nice)

    How does the plugin handle this?

    The plugin just removes the weapon (Bonk or Mackerel) from the player which results in only 2 available slots. If they want to play with all 3 slots then they should switch their loadout.

    Video on how to replicate bug
    http://www.youtube.com/watch?v=_gvWeqbcVKo


    Credits:
    I used a good chunk of code from Wazz's Unlock Replacer (http://forums.alliedmods.net/showthread.php?t=93537)

    Screenshot

    Attached Files
    File Type: smx mackerel_fix.smx (3.2 KB, 306 views)
    File Type: sp Get Plugin or Get Source (mackerel_fix.sp - 447 views - 2.3 KB)
    __________________

    Last edited by FoxMulder; 10-13-2010 at 00:08.
    FoxMulder is offline
    retsam
    Veteran Member
    Join Date: Aug 2008
    Location: so-cal
    Old 10-12-2010 , 02:19   Re: Mackerel+Bonk Exploit Fix
    Reply With Quote #2

    Nice fox. Thx for heads up. If they wouldnt have posted the video, prolly would have been having server crashes without knowing why.

    Just curious are there any smarter ways to code this without removing a weapon from people? Like, messing with sdkhooks damage if someone with condition bonked was hit with a baseball or something? Did you look into anything like that?
    __________________

    Last edited by retsam; 10-12-2010 at 03:04.
    retsam is offline
    DarthNinja
    SourceMod Plugin Approver
    Join Date: Mar 2009
    Location: PreThinkHook()
    Old 10-12-2010 , 15:07   Re: Mackerel+Bonk Exploit Fix
    Reply With Quote #3

    Quote:
    Originally Posted by retsam View Post
    Nice fox. Thx for heads up. If they wouldnt have posted the video, prolly would have been having server crashes without knowing why.

    Just curious are there any smarter ways to code this without removing a weapon from people? Like, messing with sdkhooks damage if someone with condition bonked was hit with a baseball or something? Did you look into anything like that?
    Ask psychonic, he was trying to do it that way iirc.
    __________________
    DarthNinja is offline
    FoxMulder
    Senior Member
    Join Date: Jan 2009
    Location: Orlando, FL
    Old 10-12-2010 , 15:10   Re: Mackerel+Bonk Exploit Fix
    Reply With Quote #4

    I tried setting the stunflags on the user to 0 if they got hit by the ball when they had both items equipped but it was always too late and it would crash. :\
    __________________
    FoxMulder is offline
    Clavus
    Junior Member
    Join Date: May 2010
    Old 10-12-2010 , 15:11   Re: Mackerel+Bonk Exploit Fix
    Reply With Quote #5

    Are players notified that their weapons are removed when they equip the bonk and fish?
    Clavus is offline
    alinayg
    Senior Member
    Join Date: Apr 2009
    Location: USA, RI
    Old 10-12-2010 , 15:13   Re: Mackerel+Bonk Exploit Fix
    Reply With Quote #6

    Thanks, for the quick fix.
    __________________
    alinayg is offline
    Devilfish
    Senior Member
    Join Date: Jan 2006
    Old 10-12-2010 , 15:14   Re: Mackerel+Bonk Exploit Fix
    Reply With Quote #7

    Explains alot and how many servers are going to get crashed late at night for nefarious means?
    __________________
    SimianCage - Where Monkeys have Guns & Drink beer!
    >Join Simiancage Steam Community Here<
    Is it fixed? D3v can break it!
    Devilfish is offline
    Send a message via ICQ to Devilfish
    psychonic

    BAFFLED
    Join Date: May 2008
    Old 10-12-2010 , 15:14   Re: Mackerel+Bonk Exploit Fix
    Reply With Quote #8

    Quote:
    Originally Posted by DarthNinja View Post
    Ask psychonic, he was trying to do it that way iirc.
    I was blocking CTFStunBall::PipeBombTouch if it was about to touch a bonk-drunken scout, but I hadn't had a chance to test it. Just heard back 5 minutes ago that it still crashed.
    psychonic is offline
    FoxMulder
    Senior Member
    Join Date: Jan 2009
    Location: Orlando, FL
    Old 10-12-2010 , 15:23   Re: Mackerel+Bonk Exploit Fix
    Reply With Quote #9

    Added a screenshot on first post.
    __________________
    FoxMulder is offline
    extremo
    Member
    Join Date: Jan 2010
    Old 10-12-2010 , 16:21   Re: Mackerel+Bonk Exploit Fix
    Reply With Quote #10

    heya,

    so its only "Atomic Punch" thats affected or is this also possible with "Crit-A-Cola"?

    thanks and greetings
    extremo
    extremo 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 19:51.


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