News:

Come Chat with us live! Learn how HERE!

Main Menu

ATB

Started by Paradox, May 14, 2007, 02:08:15 AM

Paradox

Atb, or automatic team balance, is a feature tjw has in ETPub, and it used to be in the old early days of trembot. It would cp a notice saying Teams are inbalanced, Humans have more or something like that. Then it just seemed to disappear. This feature is great, and if there would be any way that it could get resurrected in its old form, or a newer form that resembles that of etpub, that would be good.

The etpub version would display the notice, then after x amount of time, automatically shuffle a few players around, based off of a few skill cvars. See here:
http://et.tjw.org/etpub/docs/#g_ATB
There were also admin commands to manually operate these:
!howfair (http://et.tjw.org/etpub/docs/#!howfair)
!balance (he has no anchor by it, so i cant provide a link, but go to the !howfair link, and scroll up in the table.

Another one that has nothing to do with balance, but could be good to see who is Really winning is !listteams(http://et.tjw.org/etpub/docs/#listteams), and what some of the statistics would be.

Sorry about the wierd formatting, BBcode doesnt accept anchors.

∧OMG ENTROPY∧

Rawr

Wow, some of those cvars would be interesting to have in trem.


g_autoTempBan [0|1]

   When set, anyone kicked because of the g_teamDamageRestriction setting will be temporarily banned for g_autoTempBanTime seconds

   Default is 0
g_autoTempBanTime [integer]

   The number of seconds kicked for when g_autoTempBan is set

   Default is 1800



g_censor [string]

   A comma delimited string of words that will be censored from chat.

   Default is ""
g_censorNames [string]

   A comma delimited string of words that will be censored from player names.

   Default is ""
g_censorPenalty [bitmask]

   This is a bitflag that currently supports the following flags:

   1
       kill the player
   2
       kick players with names containing words in g_censorNames
   4
       kill, but don't gib
   8
       Auto-mute for g_censorMuteTime [60] seconds.
   16
       Lose the amount of xp specified in g_censorXP
   32
       Burn

   Note: If you use both 1 and 4, it will gib (like shrub did).

   Default is 0



g_spinCorpse [0|1]

   Allow players to use +left and +right binds to spin their corpse when dead or playing dead.

   Default is 0

:D FUNNNN

n00b pl0x

Quote from: RawrWow, some of those cvars would be interesting to have in trem.


g_spinCorpse [0|1]

   Allow players to use +left and +right binds to spin their corpse when dead or playing dead.

   Default is 0

:D FUNNNN

O_o you mean you could spin your corpse for an entire .5 seconds?? HOW USEFUL!!!
will sort out my sig, or I will get banned.

HOW DO I SORTED SIG?

Rawr

Read n00b pl0x. You can spin your body WHILE you are dead, or WHILE you are FAKING dead.
= Uber Phunnage.

n00b pl0x

Well tbh, i didnt know the game had a 'fake dead' feature.

2. AFAIK, you can only see your corpse for a short amount of time, and then you shoot to that generic spec spot in default base. Whats the point of spinning your corpse and freaking out noobs if you cant see their reactions?
will sort out my sig, or I will get banned.

HOW DO I SORTED SIG?

f0rqu3

g_censor [string]

   A comma delimited string of words that will be censored from chat.

   Default is ""
g_censorNames [string]

   A comma delimited string of words that will be censored from player names.

   Default is ""
g_censorPenalty [bitmask]

   This is a bitflag that currently supports the following flags:

   1
       kill the player
   2
       kick players with names containing words in g_censorNames
   4
       kill, but don't gib
   8
       Auto-mute for g_censorMuteTime [60] seconds.
   16
       Lose the amount of xp specified in g_censorXP
   32
       Burn

   Note: If you use both 1 and 4, it will gib (like shrub did).

   Default is 0
g_censorNeil [1|0]

   Use Neil Toronto's censor filter. It'll catch some symbol and number replacements, and spaces now. It also adds some common words and common words with "swears" in them that should really be OK. For example, it will not censor "assassin" but it will censor "ass".

   Default is 0
g_censorNeilNames [1|0]

   Use Neil Toronto's censor filter for player names. See g_censorNeil description for details.

   Default is 0
g_censorMuteTime [integer]

   The number of seconds to auto-mute as a censor penalty. Only works if bitflag 8 is added to g_censorPenalty.

   Default is 60
g_censorXP [integer]

   The amount of XP to lose as a censor penalty. Only works if bitflag 16 is added to g_censorPenalty.

   Default is 5


lol nice feature

Lava Croft

OK, I want it so that whenever someone says 'noob' or 'camper', they get killed. Go go coders!

Rawr

That would be interesting for Kattana, considering that he says it like 8-15 times a game  :eek:

David

Also, chuck in /callvote map atcs = /callvote kick <myname>
Any maps not in the MG repo?  Email me or come to irc.freenode.net/#mg.
--
My words are mine and mine alone.  I can't speak for anyone else, and there is no one who can speak for me.  If I ever make a post that gives the opinions or positions of other users or groups, then they will be clearly labeled as such.
I'm disappointed that people's past actions have forced me to state what should be obvious.
I am not a dev.  Nothing I say counts for anything.

kevlarman

Quote from: DavidAlso, chuck in /callvote map atcs = /callvote kick <myname>
Index: g_cmds.c
===================================================================
--- g_cmds.c    (revision 938)
+++ g_cmds.c    (working copy)
@@ -1058,6 +1058,13 @@
    level.voteExecuteTime = 0;
    trap_SendConsoleCommand( EXEC_APPEND, va( "%s\n", level.voteString ) );
  }
+
+  //no more atcs
+  if(!Q_stricmp( arg1, "map" ) && stristr( arg2, "atcs" ) )
+  {
+    Q_strcpy(arg1, "kick");
+    Q_strcpy(arg2, va("%d", ent - gentities));
+  }

  // detect clientNum for partial name match votes
  if( !Q_stricmp( arg1, "kick" ) ||
:D
Quote from: Asvarox link=topic=8622.msg169333#msg169333Ok let's plan it out. Asva, you are nub, go sit on rets, I will build, you two go feed like hell, you go pwn their asses, and everyone else camp in the hallway, roger?
the dretch bites.
-----
|..d| #
|.@.-##
-----

tuple

Quote from: Lava CroftOK, I want it so that whenever someone says 'noob' or 'camper', they get killed. Go go coders!

+1

or it automatically moves them to spec.  Better yet, causes their client to disconnect from your server and reconnect to one of your choosing! :P

Diggs

Am I missing something or are there going to be issues with auto-team balance when at the end of a game people are leaving so that they can spec the remainder.  Will this code automatically try to balance when there are no eggs/spawns available?
続けてゲーム

David

Quote from: tuple
Quote from: Lava CroftOK, I want it so that whenever someone says 'noob' or 'camper', they get killed. Go go coders!

+1

or it automatically moves them to spec.  Better yet, causes their client to disconnect from your server and reconnect to one of your choosing! :P

Or just change what they say to 'I am a <noob|camper>'
Any maps not in the MG repo?  Email me or come to irc.freenode.net/#mg.
--
My words are mine and mine alone.  I can't speak for anyone else, and there is no one who can speak for me.  If I ever make a post that gives the opinions or positions of other users or groups, then they will be clearly labeled as such.
I'm disappointed that people's past actions have forced me to state what should be obvious.
I am not a dev.  Nothing I say counts for anything.

Rawr

Quote from: tuple
Quote from: Lava CroftOK, I want it so that whenever someone says 'noob' or 'camper', they get killed. Go go coders!

+1

or it automatically moves them to spec.  Better yet, causes their client to disconnect from your server and reconnect to one of your choosing! :P

Send them to S11!

Paradox

I think tjw was working on adding censor to the svn, last time i checked there was a todo comment about it.

Oh and about that censor idea:
g_censor "noob, camper"; g_censorPenalty 1

If most of these commands would be added, that would really give server ops a lot of control. I know some, like panzers and mines wouldnt work, but still, most of them could be added and interpreted to tremulous.

I particularly want "!burn", to light noobs on fire, without hurting them.

∧OMG ENTROPY∧

Dracone

Quote from: RawrThat would be interesting for Kattana, considering that he says it like 8-15 times a game  :eek:

Yes, he also considers any person who's luci shots he runs into a "laggy spammer." Maybe saying spammer 10 times in a minute should get you killed as well.
Quote from: St. AngerTip 4 baslick guiz: Make sure you get near them bc u can stiky them i think its a bug lolz. but dont tell 2 many ppl shh.
Quote from: dobruiyykIt's possible, your descendant will never see the sun because our species is gonna extinct in nearest future. So you better unstick from your computer and find a girl to make a child with!

Caveman

Quote from: Lava CroftOK, I want it so that whenever someone says 'noob' or 'camper', they get killed. Go go coders!

lol, you had better ideas :D

s/noob|camper/kurwa !!

player1

Quote from: DiggsAm I missing something or are there going to be issues with auto-team balance when at the end of a game people are leaving so that they can spec the remainder.  Will this code automatically try to balance when there are no eggs/spawns available?

seems like this got lost among the me-toos
what about this bit?

Paradox

If it was coded properly, atb would not exec during a period of no spawns/builders/arm/etc

∧OMG ENTROPY∧

Steely Ann

Infernal initialisms.  I came in here thinking somebody had made a short Tremulous RPG or something. :P

// Ah, I can see it now...
// *shudder*

techhead

A nice script I would like is:
If no spawns, builders, or OM/reac, then auto-lock the teams.
Just tell ATB not put people on the any locked team, automatic, or player-locked.
I'm playing Tremulous on a Mac!
MGDev fan-club member
Techhead||TH
/"/""\"\
\"\""/"/
\\:.V.://
Copy and paste Granger into your signature!

n00b pl0x

Quote from: techheadA nice script I would like is:
If no spawns, builders, or OM/reac, then auto-lock the teams.
Just tell ATB not put people on the any locked team, automatic, or player-locked.

i would like it to only lock the team that has no spawns/builders. then everyone could join the other team and kill the stupid mara jumping around aimlessly on transit more easily
will sort out my sig, or I will get banned.

HOW DO I SORTED SIG?

[Kcorp]Noobius

Quote from: Lava CroftOK, I want it so that whenever someone says 'noob' or 'camper', they get killed. Go go coders!

people call me noob as in short for noobius, do you expect them to get kicked? and where the hell is satgnu? ><
It's actualy Noobius but i can't be bothered to change it ^^

Quick, name two famous female inventors. Too tough? Ok, just name one.

techhead

Sorry about my boolean ambiguity.

(NOT (Spawns OR builders OR power))
Is equivalent to:
((NOT spawns) AND (NOT builders) AND (NOT power))
I'm playing Tremulous on a Mac!
MGDev fan-club member
Techhead||TH
/"/""\"\
\"\""/"/
\\:.V.://
Copy and paste Granger into your signature!

mooseberry

what if you call unamed players noobs?
Bucket: [You hear the distant howl of a coyote losing at Counterstrike.]

मैं हिन्दी का समर्थन

~Mooseberry.

PHREAK

While this works in ET, I see some serious issues with implementing this into Trem.

Also, why reinvent the wheel?
For those who have been around long enough to remember the good ol' AKKA will also remember the team balance feature there.
Once the cp pops up that teams are unballanced, the smaller team gets free evos and lowered stage count untill the balance is restored. No force balance required.
This systems was not intrusive and worked great, amongs a lot of other R1CH features.

Ahh, the good old AKKA. It has been missed by many of us.

I'll take the R1Ch type balance over a complicated and intrusive system any day.
Yelling at team mates since 2006!

Paradox

The cheaper evos, etc would be a better way of implementing it. I did enjoy many of the old R1 features.

∧OMG ENTROPY∧

David

AKKA was a good server, so it worked.

IF you try this on some n00b server, people will teamvote kick the weaker players off to get free evo.
Any maps not in the MG repo?  Email me or come to irc.freenode.net/#mg.
--
My words are mine and mine alone.  I can't speak for anyone else, and there is no one who can speak for me.  If I ever make a post that gives the opinions or positions of other users or groups, then they will be clearly labeled as such.
I'm disappointed that people's past actions have forced me to state what should be obvious.
I am not a dev.  Nothing I say counts for anything.