AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Plugins (https://forums.alliedmods.net/forumdisplay.php?f=108)
-   -   [TF2] Arena Fix (1.0.7) (https://forums.alliedmods.net/showthread.php?t=127597)

Jamster 05-22-2010 21:27

[TF2] Arena Fix (1.0.7)
 
16 Attachment(s)
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.

DrWagstaff 05-22-2010 21:39

Re: [TF2] Arena Fix
 
Trying it out on my 24 slot arena which is full most of the time, if there's any bugs time will tell :) Thanks for your effort, this is an annoying problem for me.

Jamster 05-23-2010 13:37

Re: [TF2] Arena Fix
 
New version! I think that should be it now though, I might not have even had to add the new checks but I wanted them there just to be sure.

DrWagstaff 05-24-2010 19:14

Re: [TF2] Arena Fix
 
I've run in to a problem with your plugin. My server uses a (slightly old) melee only vote sometimes. If melee only mode is enabled, the players only spawn with their melee weapons. Then your plugin refreshes them, and they no longer have only melee weapons. Can you change the plugin to take this in to account? I'd like to continue using your plugin but I can't unless it doesn't break melee only mode :(.

BTW, if this helps, sm_meleemode_enable 1 is what is set when melee only mode is on, sm_meleemode_enable 0 is off. I dont know if you would handle it this way, but perhaps it would be best to preserve the weapons loadout of the player through refreshes, and only handle the health and ammo with your plugin. I know this would completely change your angle of attack, but like I said, can't use your plugin if it breaks melee only as my players use the vote at least once a day.

Jamster 05-25-2010 13:54

Re: [TF2] Arena Fix
 
Ugh, yeah, meleemode plugins usually disable lockers to get weapons back and of course this plugin is essentially doing the equivalent of this. :\

Ideally a melee plugin would just check again if a player tripped a regen rather than blocking the lockers totally. I'll think on it but I might just end up doing my own melee plugin if this is the case, or maybe do a weapon check on regen then restore how the weapons were before. That might work (if possible). You might have to give me a while to do that though, lol.

DrWagstaff 05-26-2010 01:54

Re: [TF2] Arena Fix
 
Cool. Might I make a request? Add an extended melee mode where the operator can also opt in for certain things like medics healgun, PDA that can build dispensers/teles etc. I really want something like this, and am not sure if the plugins currently exist to make it possible to just vote on/of this mode with customvotes.

Jamster 05-26-2010 15:12

Re: [TF2] Arena Fix
 
I think there is a melee plugin that does that, I seem to remember one anyway, hah.

Anyway, I will try and fix this issue once I have fixed my other plugin rcplus. I am confident that I can probably find a way to restore weapon slot layouts once I execute the restoration.

Jamster 05-27-2010 12:30

Re: [TF2] Arena Fix
 
Good news, new version posted and it takes into account of melee plugins! The idea I had in my head actually worked (that's a first, lol). If you have any problems then let me know.

Jamster 07-07-2010 12:26

Re: [TF2] Arena Fix (1.0.3)
 
New version, fixes a possible exploit with heavy sandviches which optionally uses SDKHooks (it is highly recommended). With SDKHooks it automatically removes any sandviches that are thrown during the round warm up, without it it just removes the second weapon slot until the round starts (but keeps off if melee is on). Also fixed a small bug with the melee code, though nothing pressing.

Any problems then let me know, if you aren't bothered about the possible exploit then feel free to not download the new version!

Jamster 07-07-2010 21:02

Re: [TF2] Arena Fix (1.0.4)
 
Ugh, another update, sorry, messed up the code a tad if you had no SDKHooks and melee mode enabled.


All times are GMT -4. The time now is 10:35.

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