gScramble, a Comprehensive Team Manager for TF2
For recent changes, look at:
http://projects.mygsn.net/projects/show/simple-plugins
Requirements
- to compile:
autoupdater by MikeJS, not required to run
- to enforce reconnect team blocking:
clientprefs, not required to run
Thanks
- Antithasys for all the help every time i bugged him when I didn't know what i was doing, letting me use his project site, and approving the plugin!
- MikeJS for help with team-score manipulation and Auto-Update
- Everyone for making suggestions and finding my dumb bugs so this could be such a useful script
Features 2.4.52 (most features have a corresponding ConVar in cfg/sourcemod/plugin.gscramble.cfg)
Scramble-Modes- 1: Sort randomly, 2: by score, or 3: by score^2/time(in seconds)
- Make admins, medics, or engineers immune from scramble
- Respawn everyone after scramble depending on time and setting
- Restart round after scramble depending on time and setting
- Charge medic ubercannon if scramble occurs during setup
- Reset setup timer if scramble occurs during setup
Auto-Scramble
- scramble when one team is over-powered
- can trigger a vote instead of scrambling
Auto-Balance
- Balance valid players (admin, engineers, top scoring players, players helping their team (cp captures, flag touching, sentry destroying), and medics all can be made immune)
- Force balance after teams have been imbalanced too long
Force-Balance
- Admin can execute force-balance command
- Force-balance can happen between rounds
- Force-balance can happen if teams become too imbalanced
General
- Admin menu integration
- Force clients to accept their new team by blocking join team commands (detect reconnecting with clientprefs)
- RTV-style votescramble starting
- Admin commands for starting a scramble vote
- Allow clients to choose what team they'd prefer to be on (overrides auto-balance)
- Native bool gs_isBlocked(client) to see if the plugin is blocking someone from swapping teams
- (Experimental) Ask clients recently swapped if they want to rejoin their old team when someone reconnects and gets forced onto a team
- If enabled, block clients from changing to spectate if it will cause an imbalance
- If enabled, allow clients to choose a buddy to protect themselves from auto-balance and scramble.
- If enabled, block public voting when admins are present.
Commands
Code:
sm_cancel admin Cancels any active scramble. Blocks auto-scramble check if run during bonusround
sm_forcebalance admin Forces a team balance if an imbalance exists.
sm_preference console Allows clients to choose what team they prefer
sm_resetvotes admin Resets all public votes.
sm_scramble admin sm_scramble <delay> <respawn> <mode>
sm_scrambleround admin Scrambles at the beginning of the next round
sm_scramblevote admin Start a vote. sm_scramblevote <now/end>
sm_addbuddy console add a buddy
Changes/Additions:
2.4.53
- fix auto-balance message coming up when auto-balance is disabled
- fix center text error message being logged
- updated French translation
2.4.52
- fix force-balance (again) D:<
2.4.51
- fix small bug with sequential auto-scramble checking
- updated ES translation
- fix typo in EN translation
2.4.5
- add convar to disable public voting when an admin is present.
- add simple buddy system that protects you and your buddy from auto-balance. disabled by default
- add feature to block people from changing to spectator if it will cause an imbalance. disabled by default. obeys the admin team-swap block convar and flags.
- re-do the scramble function to better deal with people immune from scramble.
-
added a bunch to the translation. be sure to update that, or you will get errors.
2.4.02
- amended version since i believe any further changes will be minor
- add more options to the scramble now menu
- removed the restartround option for scramble now, since the command mp_restartround is bugged
2.4.2
- fix instances where force-balance timer wasn't getting started
- added more events to the teamwork protection section:
=> medic death *add when charged medic is killed
=> sapper placed *add when spy places sapper
=> charge deployed *add for medic and target when medic deploys uber
2.4.1
- fix it printing messages about balance when auto-balance is disabled
2.4
- !fix death message blocking for when an admin starts a long scramble delay
- !minor fixes and tweaks with autobalance checking:
=> changed way priority is gotten, should improve selection during force balance
- +convar to block auto-scramble when a scramble has happened recently
-
be sure to update translation files and note the new convars in the cfg
Donations
This has taken a lot of time and effort, and I'd be proud to accept any forms of appreciation.
If your method is monetary, then click
here.
Translations THANKS!!
French Translation: Cadav0r --
complete
Danish Translation: OziOn -- NOT complete
Russian Translation: krolus -- NOT complete
Spanish Translation: jack_wade --
complete
Hungarian Translation: KhyrOO-- NOT complete
German Translation: Guggie-- NOT complete
Italian Translation: Dagon-- NOT complete
INSTALL
unzip to tf dir
the plugin will auto-make the cfg if it's not there, but the one included is cleaner and organized better.