January 24, 2022, 10:02:26 am

The Gang Garrison 2 Forum

Please login or register.

Login with username, password and session length
Advanced search  

News:

NOTICE: Due to a rise in bot activity, new posters need to be approved before posting.

Join the community Discord server!

Pages: [1]

Author Topic: Auto-Balance should not switch players holding the intel (High) [PUSHED]  (Read 2171 times)

Silent Boom

  • Lucky Member
  • *******
  • Karma: 17
  • Offline Offline
  • Posts: 1013

Quite simple really.
« Last Edit: May 13, 2012, 12:04:38 pm by Wareya »
Logged

BassMakesPaste

  • Guest
Re: Auto-Balance should not switch players holding the intel
« Reply #1 on: April 26, 2012, 01:04:01 am »

Mmhmm.
Logged

Humble Master

  • 2012 Haxxy Award Winner
  • *
  • Karma: 0
  • Offline Offline
  • Posts: 1262
  • Maker of Drakora
Re: Auto-Balance should not switch players holding the intel
« Reply #2 on: April 26, 2012, 08:26:53 am »

Go directly to Accepted Future Requests. Do not pass GO!, do not collect $200.
Logged
Finally returned

NAGN

  • Developer
  • ******
  • Karma: 146
  • Offline Offline
  • Posts: 16769
  • Yeah so now I have an idea
Re: Auto-Balance should not switch players holding the intel (High)
« Reply #3 on: April 29, 2012, 01:11:15 pm »

Autobalance doesn't actually balance in 10 seconds though so long as the guy on the other team isn't dead... letting the stacked team keep going for quite a while
Logged

Ultros

  • Veteran Beta Tester
  • *****
  • Karma: 62
  • Offline Offline
  • Posts: 1757
Re: Auto-Balance should not switch players holding the intel (High)
« Reply #4 on: April 29, 2012, 01:30:08 pm »

Any reason why we don't just teamswitch the next person to die?  I think that's how TF2 does it, and I kinda like the idea.  Makes things get evened up quicker, and the person being switched is less likely to be the weakest member of the opposing team (which doesn't do much to level the playing field).
Logged
11:42 PM - Ultros: http://grooveshark.com/s/Faces/3h83um?src=5  Foooooooooolk
11:43 PM - Snowblind Aces: :0
11:43 PM - Snowblind Aces: this song has 3 fans
11:43 PM - Snowblind Aces: 2 of them are you

Phantom Brave

  • All Hail Classicwell
  • Moderator
  • *****
  • Karma: 70
  • Offline Offline
  • Posts: 12701
  • Another one --
Re: Auto-Balance should not switch players holding the intel (High)
« Reply #5 on: April 29, 2012, 02:37:22 pm »

TF2 has "preferences" of who to balance and if people keep dying that it doesn't want to balance then it never balances anyone.
Logged

http://steamcommunity.com/id/wareya/
ladies and gentlemen i would like to announce that the fact of the matter is up that the fact of the matter is a fact and it matters

Ultros

  • Veteran Beta Tester
  • *****
  • Karma: 62
  • Offline Offline
  • Posts: 1757
Re: Auto-Balance should not switch players holding the intel (High)
« Reply #6 on: April 29, 2012, 04:55:51 pm »

Ah, okay, so it's more complicated than that.  Still, just about anything would be better than always balancing the lowest scorer like we do now; could we come up with something?
Logged
11:42 PM - Ultros: http://grooveshark.com/s/Faces/3h83um?src=5  Foooooooooolk
11:43 PM - Snowblind Aces: :0
11:43 PM - Snowblind Aces: this song has 3 fans
11:43 PM - Snowblind Aces: 2 of them are you

I_am_awesome

  • Guest
Re: Auto-Balance should not switch players holding the intel (High)
« Reply #7 on: April 29, 2012, 05:01:40 pm »

Balance the guy with the least erotic name.
Logged

Footpöp

  • Veteran Member
  • ******
  • Karma: 24
  • Offline Offline
  • Posts: 4115
  • I /saw/ him
Re: Auto-Balance should not switch players holding the intel (High)
« Reply #8 on: April 29, 2012, 08:43:57 pm »

Any reason why we don't just teamswitch the next person to die?  I think that's how TF2 does it, and I kinda like the idea.  Makes things get evened up quicker, and the person being switched is less likely to be the weakest member of the opposing team (which doesn't do much to level the playing field).
I like this idea, certainly better than the shit going on now.
Logged
Team /ABC/

maciej01

  • Fool
  • *
  • Karma: 0
  • Offline Offline
  • Posts: 373
  • hhhehehe
Re: Auto-Balance should not switch players holding the intel (High)
« Reply #9 on: April 30, 2012, 03:47:40 am »

Any reason why we don't just teamswitch the next person to die?  I think that's how TF2 does it, and I kinda like the idea.  Makes things get evened up quicker, and the person being switched is less likely to be the weakest member of the opposing team (which doesn't do much to level the playing field).
I like this idea, certainly better than the shit going on now.
This idea make grefing even more easier for griefiers! I approve  :z6:
Logged


Redo

  • The Best
  • Veteran Beta Tester
  • *****
  • Karma: 43
  • Offline Offline
  • Posts: 1100
Re: Auto-Balance should not switch players holding the intel (High)
« Reply #10 on: April 30, 2012, 08:11:51 pm »

Any reason why we don't just teamswitch the next person to die?  I think that's how TF2 does it, and I kinda like the idea.  Makes things get evened up quicker, and the person being switched is less likely to be the weakest member of the opposing team (which doesn't do much to level the playing field).
I like this idea, certainly better than the shit going on now.
This idea make grefing even more easier for griefiers! I approve  :z6:
How so?
Logged

Dokurider

  • Humble Servant of the Trinity
  • Veteran Beta Tester
  • *****
  • Karma: 14
  • Offline Offline
  • Posts: 1496
  • Your sins have no absolution
Re: Auto-Balance should not switch players holding the intel (High)
« Reply #11 on: May 01, 2012, 11:45:58 am »

Any reason why we don't just teamswitch the next person to die?  I think that's how TF2 does it, and I kinda like the idea.  Makes things get evened up quicker, and the person being switched is less likely to be the weakest member of the opposing team (which doesn't do much to level the playing field).
I like this idea, certainly better than the shit going on now.
This idea make grefing even more easier for griefiers! I approve  :z6:
I'm pretty sure the odds of getting teamswitched while griefing are getting hit by lightning odds.
Logged
Liked Final Fantasy Tactics, but wanted more? Then come visit:

Phantom Brave

  • All Hail Classicwell
  • Moderator
  • *****
  • Karma: 70
  • Offline Offline
  • Posts: 12701
  • Another one --

plus: Ubers, being the only person doing some single particular objective oriented thing at all
Logged

http://steamcommunity.com/id/wareya/
ladies and gentlemen i would like to announce that the fact of the matter is up that the fact of the matter is a fact and it matters

Orpheon

  • Moderator
  • *****
  • Karma: 15
  • Offline Offline
  • Posts: 6426
  • Developer

Code: [Select]
        var someoneIsDead;
        someoneIsDead = false;
        for(i=0; i<ds_list_size(global.players); i+=1) {
            player = ds_list_find_value(global.players, i);
            if player.team == balance
            {
                if someoneIsDead
                {
                    if player.object == -1
                    {
                        if player.stats[POINTS] < points
                        {
                            points = player.stats[POINTS];
                            balanceplayer=player;
                        }
                    }
                }
                else
                {
                    if player.object != -1
                    {
                        if player.object.intel or player.object.ubered
                        {
                            continue;// Skip the player if he/she has taken the intel
                        }
                        else if player.stats[POINTS] < points
                        {
                            points = player.stats[POINTS];
                            balanceplayer=player;
                        }
                    }
                    else
                    {
                        someoneIsDead = true;
                        points = player.stats[POINTS];
                        balanceplayer=player;   
                    }
                }
            }
        }

Pushing to git now.
Logged
Pages: [1]
 

Page created in 0.043 seconds with 37 queries.