View Full Version : DoD TeamManager (v1.4)
Firestorm
07-09-2006, 11:16 AM
DESCRIPTION:
This Plugin is for Day of Defeat ONLY!
This is a very effective (maybe even the most effective)
AutoTeamBlancer for Day of Defeat! Admins basically don't
have to care about even (by number of players!) teams
anymore as it's all handled by the plugin.
Furthermore there's a bunch of nice features for team
management included.
FEATURES:
AutoTeamBalancer:
- team checking independent from scoreboard
(sometimes DoD shows players in a team which
just started to connect to the server)
- if the axis and allied team are even, a new player can
choose any of both.
- if axis team has 1 player more than allied team, new player
can only join the allied team and vice versa.
- if the teams are even players can't switch teams
(don't we all hate those "winning-team-joiners?)
- "Auto-Assign" obeys locked teams
- new players that chose a locked team can automatically
be assigned to the unlocked team
- the team "spectators" can be locked by default
- if a player leaves, the teams are checked and the next killed
player of the team with more players will be switched over
to balance the teams.
- admins can still manually switch players when the teams are uneven.
- ability to manually start a team check/balance after moving players
- admins can switch teams and join spectators
- admis are not auto-switched to balance the teams
(if dod_tm_adminimmunity is set to 1)
- if teams are even and an admin switches and makes the teams uneven,
another non-admin player will automatically be switched to balance
again.
- bots can be ignored, so only human players are counted/balanced
Additional Features:
- bots can completely be excluded from all actions
- no death when switching teams
- teams can be locked (Axis OR Allies) & Specatators
- admins can slay a team whole team
- teams can be swapped
- admins and public players can be devided into teams
- players can be switched independent from balancing
and can be locked/unlocked to/from teams
- teams can completely be kicked
- admins are immune to all (but the swapteam) command(s).
//
// USAGE:
// ======
//
//
// CVARs:
// ------
//
// dod_teammanager_autobalance <1/0> = enable/disable automatic balancing
//
// dod_teammanager_playerdiff <amount > = sets amount of players that a team
// can have more than the other before
// the plugin balances the teams!
// (default is 1, so the plugin balances
// once there are 2 players difference)
//
// dod_teammanager_adminimmunity <1/0> = enable/disable admins' immunity
// from being switched by AutoTeamBalancing
//
// dod_teammanager_ignorebots <1/0> = enable/disable excluding bots from
// all actions
//
// dod_teammanager_autoteamjoin <1/0> = enable/disable auto assigning new
// players to the smaller team
//
// dod_teammanager_nochangedeath <1/0> = enable/disable "soft" killing of
// players that swith team
// (deaths won't be increased!)
//
// dod_teammanager_spectatorlock <1/0> = lock/unlock Spectators by default
//
// dod_teammanager_teamslayfx <1/0> = enable/disable special effects
// for teamslay (fire explosion)
//
//
// ADMIN COMMANDs:
// ---------------
//
// amx_teamlock <teamname> = lock/unlock specified team
//
// amx_axis <player> = switch player to axis
//
// amx_allies <player> = switch player to allies
//
// amx_spec <player> = switch player to spec
//
// amx_lock <player> = lock/unlock player to/from
// his current team
//
// amx_slayteam <teamname> = slay specified team
// (admins stay alive!)
//
// amx_adminteam <teamname> = switch all admins to specified
// team and all public players to
// the opposite team.
// (admin team will be auto-locked)
//
// amx_swapteams = switch axis to allies and vice versa
// (including admins!)
//
// amx_kickteam <teamname> = kick all players of specified team
// (admins excluded!)
//
// amx_balanceteams = remove team locks and balance
//
// CHANGELOG:
// ==========
//
// - 25.11.2004 Version 0.5beta
// Initial Release
//
// - 27.11.2004 Version 0.6beta
// added features:
// - slay/respawn teams
// - swap teams
// - kick teams
// - switch players with option
// to lock them
// - all admins to one team,
// all public players to the other
// and lock the admin team
// generic changes:
// - DoDx module is required now
// - name changed to "DoD TeamManager"
//
// - 29.11.2004 Version 0.7beta
// added feature:
// - players don't get their deaths
// increased anymore when they switch
// teams as they don't really die before
// they change team.
// bug fixes:
// - kickteam is working now
// - autoswitching of players should
// work fine as well now
// generic changes:
// - changed team "spectators" to "spec"
// as it's faster to type in your
// commands.
// - renamed command "amx_checkteams"
// to "amx_balanceteams" and changed
// the way it works.
// it now removes all locks from teams
// and balances them.
// player specific locks stay active!
//
// - 01.12.2004 Version 0.8beta
// added feature:
// - new players can automatically be sent
// to the unlocked team if they chose a
// locked team.
// (new cvar: dod_tm_autojointeam <1/0>)
// bug fixes:
// - optimized swapteams and adminteam features,
// this should prevent the server from crashing
// when there are a lot of players as the processing
// load was decreased by 50%
// - fixed minor bugs with "Auto-Assign" handling
//
// - 08.12.2004 Version 0.85beta
// - players can't be switched to even the
// teams two times in a row anymore.
//
// - 12.12.2004 Version 0.90beta
// - optimized the swap teams feature again
// - fixed some minor bugs
//
// - 13.07.2005 Version 0.91beta
// just a little update:
// - added cvar "dod_tm_autoteambalance" to enable/disable
// automatic team balancing
//
// - 08.08.2005 Version 0.95beta
// * major upgrades:
// - bots can be excluded from all actions
// - added special effects for slayteam command
// - simplified/optimized all commands (review them!)
// - fixed bugs in slayteam commands
// - added/changed cvars (review them!)
//
// - 17.08.2005 Version 0.95beta2
// just a little update:
// - added cvar "dod_tm_playerdiff" with what you can
// specify the amount of players that one team can have
// more than the other before the plugin auto balances
// (default is 1 player difference, so plugin balances
// if one team has 2 players more)
// NOTE: this only applies for the auto balancer, so don't
// that players can still get on a team with more
// players!
//
// - 22.04.2006 Version 1.0
// ( Thx goes to cadav0r )
// just little update:
// - added mutlilanguage support
// - added admin show acitvity
// - fixed adressee message
//
// - 17.06.2007 Version 1.1 BETA
// - optimized player-per-team calculation
// now using "dod_client_changeteam" to determine
// the number of players per team
// - now only dead players will be switched to
// balance uneven teams with using "client_death"
// to check the teams
// - now using "get_pcvar_num" instead of the old
// "get_cvar_num"
// - minor code optimizations
//
// - 19.06.2007 Version 1.2
// - first of all BIG thanks to diamond-optic for his
// great help getting into scripting again a bit better!
// - changed from "dod_client_changeteam" to hooking
// the "PTeam"-Message again as bots weren't counted
// - optimized switching dead players with adding 0.1second
// delay, so the game doesn't count a normal kill as teamkill
// - added complete recalculation of players on "dod_client_spawn"
// so the calculation cannot be messed up anymore with players
// disconnecting without "client_disconnect" being called
// - added new cvar "dod_tm_adminimmunity" to have the ability
// to let the TeamManager Autobalance even switch admins to
// balance the teams
// - fixed command "amx_balanceteams", now the teams are balanced
// immediately no matter if players are dead or alive.
// - fixed some minor problems concerning bots
// - fixed switching players to a wrong team
//
// - 21.06.2007 Version 1.3
// - once again thanks to diamond-optic for helping me out a bit
// - added team calculation & balancing on round end in addition
// to only switching killed players to balance.
// - player-per-team calculation should be bullet-proof now
//
// - 02.07.2007 Version 1.4
// - added round state "Draw" to team balancing events
// - renamed all cvars, please review them!
// - added global tracking cvar
//
testnumero
07-15-2006, 08:00 AM
thanks you very much
Brice
07-17-2006, 11:35 AM
Hello Firestorm, thanks for your job, but I can't download the files sma and txt because there are no link :/
Could I know why ??
Thanks ;)
darkcola
07-17-2006, 12:32 PM
i want dl too ><
old version has bug when changelevel
dannyowan
07-17-2006, 02:08 PM
i want dl too ><
old version has bug when changelevel
-_- ? why can not download the Attachments ??
and can not reply by quickly-reply?
testnumero
07-17-2006, 02:51 PM
me too:confused:
Brice
07-18-2006, 03:35 PM
So is there anybody who can tell us how to do ?? ;)
dannyowan
07-19-2006, 04:51 AM
So is there anybody who can tell us how to do ?? ;)
They may be update this plugin .. so turn off the download access
Hell Phoenix
07-19-2006, 12:09 PM
The new site is broken untill Zor comes back and fixes it =(
Untill then some plugins arent allowed to be downloaded.
Quick reply works, you need to click the icon to the right of the quote button first.
Brice
07-19-2006, 10:58 PM
ok ok so i'll wait for him.
Thanks for your post ;)
raphxyz
07-29-2006, 03:29 PM
hi all,
just a council! Change this in the code.
In plugin_init() add the line:
register_cvar("dod_tm_switchbytime","0") // < 0 - 1 >
And change the functions:
check_axis(){
new switchme = 0
if(get_cvar_num("dod_tm_switchbytime") == 0) {
new finish = 0
while(finish==0) {
new maxslots = get_maxplayers()
new nid = random_num(1,maxslots)
if(!is_user_connected(nid)) continue
if(get_user_flags(nid)&ADMIN_TEAM) continue
if(!g_player_axis[nid]) continue
if(g_player_locked[nid]) continue
if(g_autoswitch_lock[nid]) continue
finish = 1
switchme = nid
}
}
else {
new maxslots = get_maxplayers()
new playtime, unlimited = 0x7fffffff
for(new i = 1; i <= maxslots; ++i){
if(!is_user_connected(i)) continue
if(get_user_flags(i)&ADMIN_TEAM) continue
if(!g_player_axis[i]) continue
if(g_player_locked[i]) continue
if(g_autoswitch_lock[i]) continue
playtime = get_user_time(i)
if(unlimited > playtime){
unlimited = playtime
switchme = i
}
}
}
return switchme
}
check_allies(){
new switchme = 0
if(get_cvar_num("dod_tm_switchbytime") == 0) {
new finish = 0
while(finish==0) {
new maxslots = get_maxplayers()
new nid = random_num(1,maxslots)
if(!is_user_connected(nid)) continue
if(get_user_flags(nid)&ADMIN_TEAM) continue
if(!g_player_allies[nid]) continue
if(g_player_locked[nid]) continue
if(g_autoswitch_lock[nid]) continue
finish = 1
switchme = nid
}
}
else {
new maxslots = get_maxplayers()
new playtime, unlimited = 0x7fffffff
for(new i = 1; i <= maxslots; ++i){
if(!is_user_connected(i)) continue
if(get_user_flags(i)&ADMIN_TEAM) continue
if(!g_player_allies[i]) continue
if(g_player_locked[i]) continue
if(g_autoswitch_lock[i]) continue
playtime = get_user_time(i)
if(unlimited > playtime){
unlimited = playtime
switchme = i
}
}
}
return switchme
}
Why?
If the plugin switch the player by time his connected, it switch always the same player.
Exemple:
18 players are connected when a last player (John) connects himself and it choose the clan axis.
Then, 2 players allied leave the server -> (John) is switched
Then, 2 allied leave the server -> (John) is switched
Then 1 player change clan to axis by desire -> (John) is switched
Then John goes on another server!
It is not a good thing to transfer according to time's from connextion!
Hell Phoenix
07-29-2006, 05:01 PM
And when all that happens you dont think someone will have joined by then? I have been using this plugin for years and never had a problem like you describe.
raphxyz
07-29-2006, 11:18 PM
However it is logical! It is not really a bug!
The lasted connected is switched
The last connected would be the one who would have the lowest cap/frag count and therefore be the logical one to switch.
BTW where do I put the txt file? In the config folder?
PenDragon
08-30-2006, 08:37 PM
BTW where do I put the txt file? In the config folder?
dod/addons/amxmodx/data/lang
Boule
09-13-2006, 09:58 AM
With this version, i have a problem:
players with slot reserved are swichted !
with version 0.95beta2 there is no problem.
In version 1.0, can we delete the line: #define ADMIN_TEAM ADMIN_IMMUNITY
and replace all ADMIN_TEAM
by: ADMIN_RESERVATION ?
=|[76AD]|= TatsuSaisei
09-13-2006, 01:10 PM
With this version, i have a problem:
players with slot reserved are swichted !
with version 0.95beta2 there is no problem.
In version 1.0, can we delete the line: #define ADMIN_TEAM ADMIN_IMMUNITY
and replace all ADMIN_TEAM
by: ADMIN_RESERVATION ?
um you change the ADMIN_IMMUNITY in the define to ADMIN_RESERVATION and yes, that would work.... you dont have to replace ALL, that is the purpose of the coder putting in the define... make the change their... leave ADMIN_TEAM aloone but change the ADMIN_IMMUNITY to the flag you want...
Boule
09-13-2006, 05:14 PM
ok so i will write:
#define ADMIN_TEAM ADMIN_RESERVATION
Thanks again TatsuSaisei
SyNeRgY
01-10-2007, 03:58 PM
i im french so sorry for my english XD ! how do for admin inmunity ON ? Thanks
OnkelBazi
02-02-2007, 08:18 PM
Hi
since 2 Days the Team Manahger doenst work any more
Give it Probems with the Steam Update or anything?
Sory for my bad english
diamond-optic
02-03-2007, 12:15 AM
like it loads ok but just doesnt do anything, like the auto-balance or anything?
i havent played on my server much lately so i havent noticed but if i play soon ill see if its working on mine..
Ba5ic
03-23-2007, 05:33 AM
// DESCRIPTION:
// ============
//
// This Plugin is for Day of Defeat ONLY!
//
// This is a very effective (maybe even the most effective)
// AutoTeamBlancer for Day of Defeat! Admins basically don't
// have to care about even (by number of players!) teams
// anymore as it's all handled by the plugin.
// Furthermore there's a bunch of nice features for team
// management included.
//
//
// FEATURES:
// =========
//
// AutoTeamBalancer:
// - team checking independent from scoreboard
// (sometimes DoD shows players in a team which
// just started to connect to the server)
// - if the axis and allied team are even, a new player can
// choose any of both.
// - if axis team has 1 player more than allied team, new player
// can only join the allied team and vice versa.
// - if the teams are even players can't switch teams
// (don't we all hate those "winning-team-joiners?)
// - "Auto-Assign" obeys locked teams
// - new players that chose a locked team can automatically
// be assigned to the unlocked team
// - the team "spectators" can be locked by default
// - if a player leaves, the teams are checked and the freshest
// player of the team with more players will be switched over
// to balance the teams.
// - admins can still manually switch players when the teams are uneven.
// - ability to manually start a team check/balance after moving players
// - admins with a reserved slot can switch teams and join spectators
// - admis with a reserved slot are not auto-switched to balance
// the teams
// - if teams are even and an admin switches and makes the teams uneven,
// another non-admin player will automatically be switched to balance
// again.
// - bots can be ignored, so only human players are counted/balanced
//
// Additional Features:
// - bots can completely be excluded from all actions
// - no death when switching teams
// - teams can be locked (Axis OR Allies) & Specatators
// - admins can slay a team whole team
// - teams can be swapped
// - admins and public players can be devided into teams
// - players can be switched independent from balancing
// and can be locked/unlocked to/from teams
// - teams can completely be kicked
// - admins with a reserved slot are immune to all
// but the swapteam command(s).
Hey Guys
I've just started using this plugin again. What i want is for only team members to join spectators and not the general public - i know it can be done because i used to use but i can't for the life of me figure it out!.
I have this set in my amxx.cfg :- dod_tm_spectatorlock 1
I can join spectators but my fellow admins can't - i'm just guessing but does the spec lock only work on flag "A" as i am the only member to have this access?.
If so how can i change it to flag access "B" reserved slot status.
Sorry for the stupid question but i'm getting old :)
Many Thanks
TooLz
03-23-2007, 08:16 AM
Looks like they have to have immunity to me, which is flag A, you can pretty easily change that here:
#define ADMIN_TEAM ADMIN_IMMUNITY
Close to the top of the code after all of the comments, just change that to:
#define ADMIN_TEAM ADMIN_RESERVATION
That is anyone with the B flag, also known as Reservation flag. That should solve your problem :)
Cya
Ba5ic
03-23-2007, 08:55 AM
Looks like they have to have immunity to me, which is flag A, you can pretty easily change that here:
#define ADMIN_TEAM ADMIN_IMMUNITY
Close to the top of the code after all of the comments, just change that to:
#define ADMIN_TEAM ADMIN_RESERVATION
That is anyone with the B flag, also known as Reservation flag. That should solve your problem :)
Cya
Thanks Toolz, worked a treat - great support as always. :p
TooLz
03-23-2007, 09:10 AM
hehe, no problem at all. Let me know if ya need anything else.
Cya
jondoe
04-25-2007, 11:22 PM
I have been seeing some unwanted activity from this plugin.
I run a linux server with shrikebots and i do not have the bot balancing turned on because i use this plugin to balance the teams.
This plugin has switched two players from allies to axis all day long. Unbalancing the teams by two in favour of the axis.
it is also letting players join the stonger team making the teams uneven by 3 players at times.
Here is what i have in my amx.cfg
//dod_teammanager cvars
dod_tm_autoteambalance 1
dod_tm_autoteamjoin 1
dod_tm_playerdiff 1
dod_tm_nochangedeath 1
dod_tm_ignorebots 0
--------------------
also here are the plugins i'm running.
[ 1] Admin Base 1.76c AMXX Dev Team admin.amxx running
[ 2] Admin Commands 1.76c AMXX Dev Team admincmd.amxx running
[ 3] Admin Help 1.76c AMXX Dev Team adminhelp.amxx running
[ 4] Menus Front-End 1.76c AMXX Dev Team menufront.amxx running
[ 5] Commands Menu 1.76c AMXX Dev Team cmdmenu.amxx running
[ 6] Players Menu 1.76c AMXX Dev Team plmenu.amxx running
[ 7] Maps Menu 1.76c AMXX Dev Team mapsmenu.amxx running
[ 8] Admin Chat 1.76c AMXX Dev Team adminchat.amxx running
[ 9] Info. Messages 1.76c AMXX Dev Team imessage.amxx running
[ 10] Admin Votes 1.76c AMXX Dev Team adminvote.amxx running
[ 11] NextMap 1.76c AMXX Dev Team nextmap.amxx running
[ 12] TimeLeft 1.76c AMXX Dev Team timeleft.amxx running
[ 13] Stats Configuration 1.76c AMXX Dev Team statscfg.amxx running
[ 14] DoD Stats 1.76c AMXX Dev Team stats.amxx running
[ 15] DoD Sounds Precache 1.76c AMXX Dev Team statssounds.amx running
[ 16] Stats Logging 1.76c AMXX Dev Team stats_logging.a running
[ 17] Loading Sound 1.0 Amxx User loadingsound.am running
[ 18] DoD Random Skymap 1.2 AMXX DoD Team dod_random_skym running
[ 19] Ultimate Gore 1.5 JTP10181 amx_gore_ultima running
[ 20] DoD Melee Bonus 0.6beta AMXX DoD Team dod_meleebonus. running
[ 21] DoD TeamManager 1.0 AMXX DoD Team dod_teammanager running
[ 22] DoD Say Ratio 0.2 AMXX DoD Team dod_say_ratio.a running
[ 23] admin alltalk 0.1 GORT admin_alltalk.a running
[ 24] DoD AFK Kicker 0.9.4 Fractal dod_anti_afk.am running
[ 25] Simple Slots 2.1 DynAstY simpleslots.amx running
[ 26] SlowHack 1.19 Unkind slowhack.amxx running
[ 27] Connect Announce 0.2 v3x connect_announc running
[ 28] Exec 1.0 ToXiC amx_exec.amxx running
[ 29] DoD EvilAdmin 0.5beta AMXX DoD Team dod_eviladmin.a running
[ 30] Aim Bot Detector 0.1d Amxmodx DoD Comm amx_aimbotdetec running
[ 31] Player Disconnect Info 0.2 v3x disconnect_info running
[ 32] DoD Reset at 255 0.4 AMXX DoD Plugins dod_xkills.amxx running
[ 33] DoD Tackle 1.2b AMXX DoD Team dod_tackle.amxx running
[ 34] Secret Spectate 1.0 29th ID dod_secretspect running
34 plugins, 34 running
I dont know were to begin searching in the code to try to fix this but was wondering if you all might?.
diamond-optic
04-25-2007, 11:26 PM
sometimes this does get a little wierd on me and it makes the teams uneven... but its not that often and is usually fixed by a restart/changelevel
..ive also noticed it happen both while running bots and also while not running them..
dont really have any idea why lol
jondoe
04-25-2007, 11:31 PM
sometimes this does get a little wierd on me and it makes the teams uneven... but its not that often and is usually fixed by a restart/changelevel
..ive also noticed it happen both while running bots and also while not running them..
dont really have any idea why lol
Hmm rats. Ok thanks for the quick reply dude.
one other question, how do i allow it to switch my admins as well ?.
what would i have to change to do this.
i think allowing this may solve the problem.
diamond-optic
04-25-2007, 11:39 PM
hmm well it would be places where "ADMIN_RESERVATION" is used...
but theres quite a few of them in the code and im not sure (without really looking at it in detail) which ones exactly would affect the auto balance
maybe in the 'check_allies', 'check_axis', and maybe the 'handle_teamjoin' function too... (i think all 3 should be towards the bottom of the plugin source.. tho im not entirely sure cause i know the one i have i chopped up a bit here and there :p)
so you could try changing those to like ADMIN_IMMUNITY or something that most (if not all) of your admins lack access to
jondoe
04-25-2007, 11:43 PM
Ok ill try futtzing around with it , But i also have the original plugin around here somewere and i thought it just had a cvar you could change in the amx.cfg.
Once again thanks for the quick reply. :)
diamond-optic
04-26-2007, 12:12 AM
ehh the plugin should probably be cleaned up a bit and such (sorry zor lol) and that admin level should def be set thru a define :-\
FeuerSturm
06-20-2007, 04:46 PM
//
// - 19.06.2007 Version 1.2
// - first of all BIG thanks to diamond-optic for his
// great help getting into scripting again a bit better!
// - changed from "dod_client_changeteam" to hooking
// the "PTeam"-Message again as bots weren't counted
// - optimized switching dead players with adding 0.1second
// delay, so the game doesn't count a normal kill as teamkill
// - added complete recalculation of players on "dod_client_spawn"
// so the calculation cannot be messed up anymore with players
// disconnecting without "client_disconnect" being called
// - added new cvar "dod_tm_adminimmunity" to have the ability
// to let the TeamManager Autobalance even switch admins to
// balance the teams
// - fixed command "amx_balanceteams", now the teams are balanced
// immediately no matter if players are dead or alive.
// - fixed some minor problems concerning bots
// - fixed switching players to a wrong team
//
New Version is up now, be sure to grab and injoy it!
Big thanks to diamond-optic for introducing me again
after a long time without touching any plugin!
Let me know if you experience any problems!
The updated Version (v1.2) can be downloaded in the first post!
Stefan
diamond-optic
06-20-2007, 08:48 PM
lol one more thing bout dod_client_spawn..
unless you use the beta modules or until the next amxx release.. the forward isnt fired on the 'respawning' after a round is won lol
as a temporary fix for this in a lot of my plugins.. i hook the ResetHud message to call the function but i also hook the fullupdate client command and have it return PLUGIN_HANDLED to block the command so clients cant force a hud reset.. tho technically it doesnt seem like it would matter if clients used fullupdate as the function wouldnt really cause any harm being run..
but it might not be totally important & you can get away with skipping the function one those occasions
anothing thing i noticed.. you could probably take out the PTeam function stuff.. if your going to calculate the actual team counts on client spawn.... tho i suppose if say a client spawns and it sets the team counts then a player joins or something and teams end up uneven that the player count could be wrong when someone dies..
it might actually be easier to just take out the PTeam stuff, and the dod_client_spawn stuff (and probably even like client disconnect stuff.. like anywhere you ++ or -- team counts).. and just calculate the team counts in the death forward function.. because your calculating them afterwards anyway.. might cut down a bit of stuff going on to just take care of it in one place and then you have a 99.9% correct team count right before any possible team switch...
then also have it calculate the team counts when using the amx_balanceteams command
** ehh i was just thinking.. if you did that then you'd probably have to calculate the team count all over (like jointeam function and all) tho could easily write a little stock to get team counts.. so you dont have to put the actual code in all the places.. but idk.. whatever lol
Hell Phoenix
06-20-2007, 09:38 PM
If you dont block the fullupdate command people can crash your server ;)
FeuerSturm
06-21-2007, 02:55 AM
is there anything working at all in the current amxx????? :eek:
well, as for the player calculation only after spawning:
when the map is changed and people choose their team
once thje next map is loaded, it 's possible that ALL people
go either axis or allies as no calculation was made at that point.
calculating the way it works at the moment is not perfect (because of knwon
client_disconnect issue), but the respawn re-calculation corrects it if
it has wrong values.
i'll think about a better solution, but as for now it seems to be the best to use.
FeuerSturm
06-21-2007, 03:19 AM
just had an idea for the spawn-after-round-won problem:
i'll just hook the "RoundState" message and will let it immediately
balance the teams if the round is finished by one of the teams.
that way i can be sure that players aren't in a firefight and can simply
switch them over.
i'll implement that after i get home from work!
FeuerSturm
06-21-2007, 04:29 PM
//
// - 21.06.2007 Version 1.3
// - once again thanks to diamond-optic for helping me out a bit
// - added team calculation & balancing on round end in addition
// to only switching killed players to balance.
// - player-per-team calculation should be bullet-proof now
//
Like always, please let me know about any problems that might occur!
diamond-optic
06-21-2007, 09:13 PM
ya thats fine.. maybe ill play around with different methods and see what works the best if i ever have time hehe..
and lol.. another thing thats definitly not important.. but should probably be added for a future update release.. in the RoundState message.. you might also want to use "1=5" for round draws.. tho not really common anymore.. there are still maps floating around that use the timer.. but again.. not a rush on that tho..
FeuerSturm
07-02-2007, 06:27 PM
//
// - 02.07.2007 Version 1.4
// - added round state "Draw" to team balancing events
// - renamed all cvars, please review them!
// - added global tracking cvar
//
As always, please report bugs with the new version immediately!
Enjoy!
jondoe
08-10-2007, 10:28 PM
I'm seeing this in chat messages and in console.
Anyone know why this might be happening.
[DoD TeamManager] ML_NOTFOUND: AUTOSWITCHALLIED
FeuerSturm
08-11-2007, 03:09 AM
I'm seeing this in chat messages and in console.
Anyone know why this might be happening.
[DoD TeamManager] ML_NOTFOUND: AUTOSWITCHALLIED
Did you install the dictionary-file (dod_teammanager.txt) correctly?
- please look for it inside the folder "addons/amxmodx/data/lang/"
Is that the only message that you get and the rest of the messages works?
tom jones
11-06-2007, 10:19 AM
I've loaded the sma. file and the txt file in the data/lang folder but am i missing an amxx file? in the plugins config i have dod_teammanager and tried .amx,,, .amxx,,,, .txt ????? i think i'm missing something,,, any advice??? thanks...TJ
knife108
11-06-2007, 11:33 AM
I've loaded the sma. file and the txt file in the data/lang folder but am i missing an amxx file? in the plugins config i have dod_teammanager and tried .amx,,, .amxx,,,, .txt ????? i think i'm missing something,,, any advice??? thanks...TJ
u should compile the sma file and then u will get the amxx file need to be loaded :cool:
tom jones
11-06-2007, 11:55 AM
Thank you very much..... Just starting out and thats exactly what it needed,,,,, TJ
SgtDome1980
12-14-2007, 09:13 AM
Hi guys, Today I downloaded and installed this on my dod server. It works great, I just ave a couple questions.
I Have AMXXMOD and the only other plugin i have is DOD_BOTCLASS.
I have HLTV always in spec, I have SHRIKEBOT and I have the max_bots set to 15. So when people or bots are on the server its 7 on 7.
When I log on and I go into Spectate, its just me and the HLTV.
so when im in spectate why do the teams go and stay on 6 on 7. I would like it if me or others were in Spectate, than a bot would be added on the team with 6.
If that can be fixed, How do I fix that?
And I want real people to take priority over the bots. so if someone if the teams are 7 on 7 and a person wants to switch teams thay can, and then a bot will just fill the spot that the person left.
I might be able to figure this out by myself, but It would take MUCH less time if I asked you guys. THANKS ALOT :D
SgtDome1980
12-26-2007, 04:23 AM
Since I made the abouve post I just turned off AUTOBALANCE. Ill just manualy do it.
But if anyone know the answer to the above question id sure like to know it. If not Its okay I guess. All I gatta say is I love this plugin, especially the additional features!
:)
=|[76AD]|= TatsuSaisei
12-29-2007, 02:04 PM
Started using this plugin a week ago and it works exactly as designed !! I only have one minor complaint about an "issue" it has... every so often it gets "stuck" on a player and spends the next few minutes changing the poor guy from one team back to the other ... over and over until the guy finally quits out of the server....
This only happens rarely, so it is not MAJOR.... yet.... just thought I would let you know....
Otherwise, the plugin is excellent and worth adding if you have trouble keeping teams balanced AND use bots !!!
SgtDome1980
01-04-2008, 04:06 AM
i know what your talking about, It happens on my server also, unfortunatly I cannot tell you how to fix that, but I can tell you what ive done to stop it...
The plugin comes with some cool commands. and yes it works just like it is supose to, but I personaly dont think there is a way to fix your problem, so what i did was simply turn AUTO TEAM BALANCE OFF, and just made a bind for it, so I can do it manually, that works for me.
johnnyskid
05-02-2008, 06:24 PM
when you make ur bind.. how do you?
meathead
05-08-2008, 08:42 AM
either edit your config file and bind a key to amx_balanceteams
or use your console and type,
bind "F6" "amx_balanceteams "
to bind it to the F6 button.
CLICKBOOM
05-13-2008, 09:55 PM
Hi i use a few of the plugins posted here.
I am currently trying to get the teammanager working. Is there a more descriptive post on the installation of this plugin. None of the commands are working. i put the .sma folder with the others in my ftp n the text folder went in data/lang. I would appreciate any help.
meathead
05-14-2008, 08:52 AM
Did you compile it and put the .amxx file in the plugins directory?
Then enable it in your plugins.ini file?
winice
05-20-2008, 06:42 PM
hello !
The admins can't join any team they wants if the team is full what can i place in the .sma for what the admins can join any team they wants , and any players they are in the team ,thanks !!!!
Private Dyin
08-19-2008, 11:21 PM
Is anyone still doing anything with this plugin? I get the most complaints when the server is full of people and they get switched back and forth. The time this plugin is really needed is when there are bots on the server. Without the plugin we would always get teams of 7 humans vs 2 humans with bots filling up the rest of the teams. With the plugin it keeps the number of humans even. When there aren't any bots on the server we don't need any balancing. So is it possible for someone to add something where it checks if there are any bots before switching players?
Thanks
meathead
08-20-2008, 02:03 AM
// dod_teammanager_adminimmunity <1/0> = enable/disable admins' immunity
// from being switched by AutoTeamBalancing
//
// dod_teammanager_ignorebots <1/0> = enable/disable excluding bots from
// all actions
Private Dyin
08-20-2008, 02:10 AM
Its regular players who get switched back and forth when the server has no bots. Admin immunity isn't an issue.
I wish it would turn off when there aren't any bots on the server. I already ignore the bots in actions.
meathead
08-20-2008, 02:21 AM
Ok, then the only thing I know to do is turn it off when you don't want it on.
I have fuerstorms plugin for rand weapons set up this way. I have a file called randomon.cfg and randomoff.cfg in my main server dir. Then added this to the configs.ini menu.
"Random off" "exec dodrandomoff.cfg;servercfgfile \'\'" "a" "h"
So when admins with the right settings hit the config menu they can turn it off or on.
Private Dyin
08-20-2008, 02:24 AM
I don't think that would work well for us. Thanks anyways.
meathead
08-20-2008, 02:35 AM
The time this plugin is really needed is when there are bots on the server
Its regular players who get switched back and forth when the server has no bots.
Thats kind of hard to tell what you need.
Private Dyin
08-20-2008, 02:38 AM
Sorry maybe I wasn't explaining it very clearly. I only want the plugin to balance if there are non-human players. If there are only human players then I want the plugin to do nothing.
meathead
08-20-2008, 02:49 AM
// dod_teammanager_ignorebots <1/0> = enable/disable excluding bots from
// all actions
_________________
So this doesn't work?
If you have shrikebot, make sure you have
bot_team_balance on/off turned to off , or they could just switch over to balance it out.
Private Dyin
08-20-2008, 02:53 AM
When we have all humans on the server we can balance it ourselves. We don't need the help.
FeuerSturm
08-20-2008, 02:54 AM
I will take a look at that problem!
and hand out a version that checks if bots are on the server and then
doesn't balance at all.
Private Dyin
08-20-2008, 02:56 AM
I will take a look at that problem!
and hand out a version that checks if bots are on the server and then
doesn't balance at all.
Thanks FeuerSturm! :D
meathead
08-20-2008, 02:58 AM
Got ya, but you cant have it both ways. You will just have to turn it on /off. It's always running, and balancing your teams when on. Thats what it does. The only way to stop that, is to manually turn it off and on. Add it in to your cfg.s as I said earlier. Thats the only way as is. Otherwise, we both have to learn how to write our own plugins!
Feuer is the man.
noddy
11-09-2009, 07:57 PM
I have had several people complain that when they are swopped they spawn with no weapons, anyone know of a fix for this ?
vBulletin® v3.8.6, Copyright ©2000-2012, Jelsoft Enterprises Ltd.