Code Monkey home page Code Monkey logo

betterbalance's Introduction

Contributors Forks Stargazers Issues MIT License


Better Balance

Auto Balance Plugin for CS2 using CounterStrikeSharp

Table of Contents
  1. Commands
  2. Balance Mode
  3. Move Mode
  4. Plugin Config
  5. Todo

About The Project

Here's a plugin for CounterStrikeSharp that automatically balances teams based on different modes. It provides various commands and configurations for efficient team balancing.

Commands

  1. css_balance: requires 2 arguments(balance mode, move mode)
    • Usage: !balance 1 1
  2. css_scramble: requires 1 arguments(scramble mode)
    • Usage: !scramble 2

Balance Mode

  • 1 - Max Difference: Based on team's difference in numbers of players, auto balanced if difference > Config.MaxDifference
  • 2 - Team Limits: Based on max players can be on each team, defined in config
  • 3 - Scramble: This will affect all players

Move Mode

  • 1 - Move Recent: Move the last player that joins the server
  • 2 - Move Random: Move a random player

Scramble Mode:

  • 1 - Scramble Random: Randomly putting each player on both teams
  • 2 - Scramble Based On Kills: Putting players to both teams based on kills and will put the extra player(if any) on the opposite team of player with highest kill

Plugin Config

{
  "AutoBalance": true,
  "PermissionRequired": "@css/generic",
  "ChatPrefix": "[BetterBalance]",
  "BalanceCommand": "css_balance",
  "ScrambleCommand": "css_scramble",
  "ImBalanceMessage": "{red} Teams are imbalanced, balancing now!",
  "BalanceMode": 1,
  "MoveMode": 1,
  "KillPlayerOnBalance": false,
  "MaxDifference": 1,
  "Max_CT_Players": 1,
  "Max_T_Players": 1,
  "ConfigVersion": 2
}

Roadmap

  • Custom Commands
  • Custom Perms
  • Custom Message
  • Custom max diff per team
  • Schedule balance on round end

(back to top)

betterbalance's People

Contributors

tianxsky avatar

Stargazers

Bahodir avatar VEGETA ! avatar guugugu avatar filimorka avatar Bakugo avatar  avatar  avatar Roxhers avatar Rodopoulos avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.