Skocz do zawartości

Nowy szablon forum

mygo.pl

Stworzyliśmy dla Was nowy wygląd forum. Z pewnością znajdziesz rzeczy, które wg Ciebie mogą zostać zmienione - wspomnij o tym w specjalnym wątku.

Czytaj więcej

Jak założyć własną sieć

serwerów CS

Zastanawiasz się nad prowadzeniem własnej sieci serwerów? Przeczytaj podstawowe informacje, na które należy zwrócić uwagę, przy takim projekcie.

Czytaj więcej

Tworzymy spis sieci

dodaj swoją

Dodaj sieć do której należysz, pozwoli to na promocję i budowę ogólnopolskiej bazy sieci CS.

Czytaj więcej

RSS[DOD:S] Teamplay Auto team balance


MYGO.pl
 Udostępnij

Rekomendowane odpowiedzi

  • RSSy
[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)

Wyświetl pełny artykuł

Odnośnik do komentarza
Udostępnij na innych stronach

Gość
Ten temat został zamknięty. Brak możliwości dodania odpowiedzi.
 Udostępnij

  • Ostatnio przeglądający   0 użytkowników

    • Brak zarejestrowanych użytkowników przeglądających tę stronę.
×
×
  • Dodaj nową pozycję...