AlliedModders
XFactor Servers

[TF2] gScramble Auto-Scramble + Auto-Balance 2.4.53


Post New Thread Reply   
 
Thread Tools Display Modes
Author
BrutalGoerge
SourceMod Donor
Join Date: Jul 2007
Plugin ID:
864
Plugin Version:
2.4.53
Plugin Category:
All
Plugin Game:
Team Fortress 2
Plugin Dependencies:
    Approver:
    Plugin Description:
    Automatically scramble the teams. Automatically balance the teams. Vote scramble, force team balance.
    Servers with this Plugin:
    54 
    Old 04-02-2009 , 19:05   [TF2] gScramble Auto-Scramble + Auto-Balance 2.4.53
    Reply With Quote #1

    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.
    Attached Files
    File Type: zip gScramble.zip (85.4 KB, 272 views)
    __________________

    Last edited by BrutalGoerge; 01-11-2010 at 22:03..
    BrutalGoerge is offline
    Send a message via ICQ to BrutalGoerge Send a message via MSN to BrutalGoerge
    MikeJS
    Senior Member
    Join Date: Nov 2008
    Old 04-02-2009 , 19:34   Re: [tf2]Goerge's Scrambler, Automatic Steamroll Scramble
    Reply With Quote #2

    Config files can be made by adding AutoExecConfig to OnPluginStart()

    Line 257: PrintToChatAll("Scrambling has been cancelled");

    Very cool idea though
    __________________
    MikeJS is offline
    BrutalGoerge
    SourceMod Donor
    Join Date: Jul 2007
    Old 04-02-2009 , 19:38   Re: [tf2]Goerge's Scrambler, Automatic Steamroll Scramble
    Reply With Quote #3

    Quote:
    Originally Posted by MikeJS View Post
    Config files can be made by adding AutoExecConfig to OnPluginStart()

    Line 257: PrintToChatAll("Scrambling has been cancelled");

    Very cool idea though
    1 typo? new record for me. ;p

    i got the idea to do a config as i submitted the thread
    __________________

    Last edited by BrutalGoerge; 11-06-2009 at 16:01..
    BrutalGoerge is offline
    Send a message via ICQ to BrutalGoerge Send a message via MSN to BrutalGoerge
    Inflikted
    SourceMod Donor
    Join Date: Jan 2009
    Old 04-03-2009 , 12:14   Re: [tf2]Goerge's Scrambler, Automatic Steamroll Scramble 1.1
    Reply With Quote #4

    ive seen on some custom tf2 servers, like a team wins 3 rounds in a row, and does a teamswitch based on that. i no some people say its not possible, but obviously some have figured it out hehe anyway to have that put in? but i do like this script its nice
    Inflikted is offline
    BrutalGoerge
    SourceMod Donor
    Join Date: Jul 2007
    Old 04-04-2009 , 00:34   Re: [tf2]gScrambler, Automatic Steamroll Scramble 1.1
    Reply With Quote #5

    I can make it scramble every X rounds, but a team winning so many in a row gets weird.

    like some maps, like dustbowl, you may not want a scramble if a team wins all 3 stages.

    It would only really work on single-stage maps.


    And

    1.2 out,
    --fixed some bugs with the voting
    --added new cvar to control how many people must be connected before steamroll scrambles happen
    __________________
    BrutalGoerge is offline
    Send a message via ICQ to BrutalGoerge Send a message via MSN to BrutalGoerge
    Inflikted
    SourceMod Donor
    Join Date: Jan 2009
    Old 04-04-2009 , 02:50   Re: [TF2] gScrambler, + Automatic Steamroll Scramble 1.2 (update 4-03-09)
    Reply With Quote #6

    ya, i no
    but like one of the servers i run is a 24/7 1 map server, thats ctf. so something like that would work pretty well for it i think.
    Inflikted is offline
    DontWannaName
    Veteran Member
    Join Date: Jun 2007
    Location: VALVe Land, WA
    Old 04-04-2009 , 03:26   Re: [TF2] gScrambler, + Automatic Steamroll Scramble 1.2 (update 4-03-09)
    Reply With Quote #7

    He can do it, he is just selfish. Give the guy some karma and he will add whatever you need and more... ;)
    __________________

    DontWannaName is offline
    Send a message via Yahoo to DontWannaName
    BrutalGoerge
    SourceMod Donor
    Join Date: Jul 2007
    Old 04-05-2009 , 22:52   Re: [TF2] gScrambler, + Automatic Dominating Team Scramble 1.4 (update 4-05-09)
    Reply With Quote #8

    1.4 updated, adds new cvars, logging, and better checks for the auto-scramble triggering.
    __________________
    BrutalGoerge is offline
    Send a message via ICQ to BrutalGoerge Send a message via MSN to BrutalGoerge
    jasonfrog
    Member
    Join Date: Mar 2008
    Old 04-11-2009 , 15:32   Re: [TF2] gScrambler, + Automatic Dominating Team Scramble 1.5 (update 4-07-09)
    Reply With Quote #9

    Would love this if it had the option of having a vote menu ;P
    jasonfrog is offline
    BrutalGoerge
    SourceMod Donor
    Join Date: Jul 2007
    Old 04-12-2009 , 02:23   Re: [TF2] gScrambler, + Automatic Dominating Team Scramble 1.6 (update 4-11-09)
    Reply With Quote #10

    D:<

    You have no idea how much I loathe vote menus. I wish all the stock vote plugins had options for them to all be text based

    I might add one if I'm bored.

    1.6 uploaded, added a bunch of stuff. Lot of it though is stuff I thought I needed for my servers... but it might be useful to other people.
    __________________
    BrutalGoerge is offline
    Send a message via ICQ to BrutalGoerge Send a message via MSN to BrutalGoerge
    Reply


    Thread Tools
    Display Modes

    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 09:15.


    Powered by vBulletin® Version 3.8.1
    Copyright ©2000 - 2010, Jelsoft Enterprises Ltd.
    Theme made by Freecode Sponsored by Layered Technologies