So, if you've ever run an arena server with tf_arena_use_queue set to 0, you probably noticed that it doesn't scramble the teams. Ever.
This plugin fixes that. Specifically, if re-implements the arena scoring and scramble system while having the queue disabled.
How does it work
When the arena win panel comes up, it checks if the number of rounds the winning team has is greater than the tf_arena_max_streak cvar. If it is, it tells the GameRules to scramble teams on the next round start.
It also resets the losing team's score to 0.
Both teams scores are set to 0 prior to the scramble.
Prerequisities
This plugin relies on SDKTools, so if that's not working for whatever reason, this plugin doesn't work.
Installation instructions:- Put tf2scramble.txt into addons/sourcemod/gamedata/
- Put tf2-arena-scramble.smx into addons/sourcemod/plugins/
How to use
Just install and go. This plugin will only activate when the map is arena and tf_arena_use_queue is set to 0.
Compatibility
This plugin
should work correctly with the following plugins:
- PropHunt Redux 3.4 (3.3 using DHooks for team switching... kinda works).
- Huntsman Hell
- Arena: Respawn
- Resurrection
- Arena: Reloaded
- Dodgeball (all versions)
It kinda works for PropHunt Redux without DHooks, but that's more if one kind of team wins 3 rounds in a row as PH doesn't switch team scores on its own.
This plugin should
not be used in conjunction with and/or doesn't really do anything with the following plugins:
- GScramble
- GScramble Redux
- The Scramble Powerlord says he working on but hasn't touched for months.
- Vs. Saxton Hale
- Freak Fortress 2
- Deathrun
- The Hidden
- Slender Fortress
- Zombie Fortress
Changelog
- 1.1.0
- The team names in the arena max streak scramble message are now correctly localized.
- The plugin now uses SourceMod's score changing commands instead of manually manipulating the scores using the GameRules entity.
- The timing for changing team scores on scramble now happens before the round start event is sent instead of after.
- Updated gamedata for Passtime update.
- 1.0.0
Known issues- The arena max streak isn't displayed in color like it is for Valve's version of the message. It's not clear why this is as the client is doing the translation itself.
- tf_arena_use_queue is toggled on for a brief second while the Arena win panel is displayed. This is required in order to show the "playing to X rounds" bit on the win panel.