View Single Post
Author Message
_david_
SourceMod Donor
Join Date: Apr 2013
Old 07-04-2013 , 12:59   [TF2] gScramble (Redux)
Reply With Quote #1

gScramble (Redux)

Because the original author of this plugin has been inactive for quite some time i have decided to go ahead and take on this plugin the best that i can, i am mostly focused on keeping the plugin work/fixing bugs but if anyone has a good feature request and maybe is willing to help getting it implemented that you can always shoot me a pm!

Requirements
  • Optional HlxCE api Plugin for HlxCE sorting (fixed version can be found here)
  • Optional gameME plugin for the gameME sorting

Thanks
  • BrutalGoerge Original author of this plugin
  • GameMe for adding the native functions for querying the DB
  • Psychonic for HLX


Features(most features have a corresponding ConVar in cfg/sourcemod/plugin.gscramble.cfg)

Scramble-Modes
  • 14 Sort Modes
    • 1 = Random
    • 2 = Scoreboard Scores
    • 3 = A ratio of score and connection time
    • 4 = Player kill/death ratios
    • 5 = Swap the top players on each team
    • 6 = Use GameMe rank
    • 7 = Use GameMe Skill
    • 8 = Use GameMe Global Rank
    • 9 = Use GameMe Global Skill
    • 10 = Use GameME session skill change
    • 11 = Use HlxCE Rank
    • 12 = Use HlxCE Skill
    • 13 = Sort players by player class
    • 14 = Plugin randomly chooses a mode from all the available
  • Make admins, medics, or engineers immune from scramble
  • Respawn everyone 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
  • Dueling players immune from 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.
  • If enabled, block clients from changing teams when mp_forceautoteam is enabled
  • If enabled, select spectators during scramble and force-balance. (People who have recently connected, and people who have chosen spectator)

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


Changelog

Code:
7-7-2014 (v3.0.20)
* Fixed typo in flag event (Thanks SephirothSG for submitting the fix)                       

18-12-2013 (v3.0.19)
* Fixed a rare bug  (Thanks reji)

15-12-2013 (v3.0.18)
* Fixed a bug with getting topplayers (Thanks reji & Dr. McKay)

2-8-2013 (v3.0.17)
* Fixed a bug when retrieving player m_iScore (Thanks vitorhnn & Powerlord)

8-7-2013 (v3.0.16)
* Fixed problem with GetEntProp

5-7-2013 (v3.0.15)
* Fixed big memory leak

4-7-2013 (v3.0.14)
* Changed Plugin name to gScramble (Redux) to avoid confusion
* Changed version cvar to "gscramble_version" to avoid confusion
* Fixed deprecated warnings.
* Included the latest gameme include file to fix the gameme errors.
* Added a new convar "gs_onescrambleperround" to enable/disable only allowing one scramble per round.
Old Changelog: http://pastebin.com/beSRbgE7
Original Thread: https://forums.alliedmods.net/showthread.php?t=89136

Translations
  • 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
  • Polish Translation: Mariano-- NOT COMPLETE

Installing
unzip to tf map
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: sp Get Plugin or Get Source (gscramble.sp - 541 views - 80.7 KB)
File Type: zip Gscramble (redux).zip (117.7 KB, 1202 views)

Last edited by _david_; 07-16-2014 at 11:32. Reason: v3.0.20
_david_ is offline