View Single Post
Author Message
Jamster
Veteran Member
Join Date: Jun 2008
Old 05-22-2010 , 21:27   [TF2] Arena Fix (1.0.7)
Reply With Quote #1

This is a really simple plugin that fixes what it says at the top, pretty handy for those of us who run arena maps or pure arena servers as this is a bug that isn't properly fixed yet.

When the round starts all health and ammo will be restored to full and any loadout changes will take effect, very simply done just using the new stock TF2_RegeneratePlayer.

Post any problems you have but I think I have everything covered here.

Change log:

1.0
- Initial release.

1.0.1
- Small optimisation.
- Added check for dead/spec players.

1.0.2
- Plugin now takes into account for melee mode plugins.

1.0.3
- Fixed heavy sandvich exploit, there's a posh way (via SDKHooks) which removes the sandvich if thrown, or a rough way via regular slot removal on round start/player spawn if SDKHooks is not present.
- Added in TF2 check just in case.
- Fixed a slight bug with the melee code, shouldn't have caused any serious problems though.
- Optimisations.

1.0.4
- Fixed sandvich being restored if you have no SDKHooks and have melee mode enabled.

1.0.5
- Fixed disconnect hook.
- Fixed version string.

1.0.6
- Fixed a rare bug where the sandvich SDKHook could continue to work in non-arena maps.

1.0.7
- Made weapon check more accurate.
- Made non-SDKHook check only remove sandvich now.

Please note as of 1.0.3 that this plugin optionally uses SDKHooks, so it will not compile on the forums, either download the compiled plugin or download the source and compile yourself, thank you.
Attached Files
File Type: sp Get Plugin or Get Source (tf2arenafix.sp - 691 views - 6.1 KB)
File Type: smx tf2arenafix.smx (5.5 KB, 803 views)

Last edited by Jamster; 07-23-2010 at 12:32. Reason: Update posted
Jamster is offline