Raised This Month: $32 Target: $400
 8% 

[DOD:S] Teamplay Auto team balance


Post New Thread Reply   
 
Thread Tools Display Modes
Author
Bacardi
Veteran Member
Join Date: Jan 2010
Location: mom's basement
Plugin ID:
8623
Plugin Version:
1.0
Plugin Category:
Gameplay
Plugin Game:
Day of Defeat: Source
Plugin Dependencies:
    Servers with this Plugin:
     
    Plugin Description:
    Auto team balance for day of defeat source
    Old 01-23-2024 , 13:38   [DOD:S] Teamplay Auto team balance
    Reply With Quote #1

    [DOD:S] Teamplay Auto team balance windows/linux
    - Auto team balance for day of defeat source.

    Rant:
    There are more better auto team balancer plugins than this.


    Another team balance plugin. But this team balance system try mimic CTeamplayRoundBasedRules::BalanceTeams( bool bRequireSwitcheesToBeDead )
    what can be found from Source SDK files.

    - DHooks required, get latest SourceMod version.
    - This not have admin immunity
    - This balance everyone, in team (bots, human players)




    How it works.
    - There is 60 seconds cooldown at round start, so there not happen any team balance first.
    - After cooldown, respawnwaves will trigger unbalance team check, and based of that it will start balance players to another team.
    - On specific respawnwave (from "heavier" team side) when auto team balance kicks in, 2 seconds before respawn those lucky dead once have transferred to another team.

    At this point team balance could work slowly. You may start thinking "this not work" but it works.
    It depends of players time spend on server, have player forced team change lately, is player dead and how many players need transfer.
    This team balance system use own simple score system based of those previous mentioned conditions.
    - For simple way to say this, specific players pending team change, but those need to get killed. That takes some time.



    How sm_autoteambalance setting works, use addition 1 + 2
    0 = Team balance disabled.
    1 = Team balance enabled, by default team balance dead players on respawnwave, silently.
    +2 = Team balance alive players. Will team balance both dead and alive players on respawnwave, killing alive player during team change. Team balancing is faster.
    +4 = Do team balance on round start event. Team change kill player.
    +8 = Disable team balance on respawnwaves.
    +16 = Show team balance system chat messages and play one sound.


    Team balance enabled, chat messages: 1 + 16 = sm_autoteambalance 17
    - Value 16 works as well, number 1 kindy already included on every setting.

    Team balance also alive players, chat messages, balance on round start: 2 + 16 + 4 = sm_autoteambalance 22

    Disable team balance on respawnwaves, do balance on round start: 8 + 4 = sm_autoteambalance 12

    Silent team balance: sm_autoteambalance 1





    Chat messages






    Plugin cvars
    Code:
     "sm_teams_unbalance_limit" = "1" min. 0.000000 max. 30.000000
     - Teams are unbalanced when one team has this many more players than the other team. (0 disables check)
     
     "sm_autoteambalance" = "1" min. 0.000000
     - Automatically balance the teams based on sm_teams_unbalance_limit. 0 = off, 1 = dead players on respawnwave

    Code:
    ├───addons
    │   └───sourcemod
    │       ├───gamedata
    │       │       dhooks-dods-teambalance.games.txt
    │       │
    │       ├───plugins
    │       │       dodsteamplayautoteambalance.smx
    │       │
    │       └───scripting
    │           │   dodsteamplayautoteambalance.sp
    │           │
    │           └───dodsteamplayautoteambalance
    │                   teambalance.sp
    │
    └───cfg
            readme_dodsteamplayautoteambalance.txt
    If you experience any server crashes, please remove this plugin from your server and look again.
    To compile plugin source code, get SourceMod pack and use that, not web compiler.
    There is ready compiled plugin smx
    Attached Files
    File Type: zip dodsteamplayautoteambalance.zip (15.3 KB, 122 views)
    __________________
    Do not Private Message @me
    Bacardi is offline
    Reply



    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 08:34.


    Powered by vBulletin®
    Copyright ©2000 - 2024, vBulletin Solutions, Inc.
    Theme made by Freecode