Page 2 of 2

Re: Svar Codes?

Posted: Mon Jun 20, 2011 8:59 am
by Cyber
back to the ivar23...
Just to put teams off/on for 1+2,3+4,5+6,7+8,9+10,11+12,13+14 would mean that the teams are unbalanced. Better than nothing but not good.
Let me think about this today, will response if I got a better idea ;)

Re: Svar Codes?

Posted: Mon Jun 20, 2011 1:25 pm
by Nielk1
Cyber wrote:back to the ivar23...
Just to put teams off/on for 1+2,3+4,5+6,7+8,9+10,11+12,13+14 would mean that the teams are unbalanced. Better than nothing but not good.
Let me think about this today, will response if I got a better idea ;)
That was basically what I wanted you to see and why I can't just do it quick. A lot of though has to go into the how. I don't want to end up with a 5 mile scroll list of team combinations.

Re: Svar Codes?

Posted: Mon Jun 20, 2011 1:33 pm
by Cyber
:D

Well, it would be a huge list. My idea: Random Teams. Could there be a button "Random Teams" ?

Or...

6way: 1+2+3 vs 4+5+6 and 1+2,3+4,5+6

8way: 1+2, 3+4, 5+6, 7+8

14way: 1+2, 3+4, 5+6, 7+8, 9+10, 11+12 , 13+14 and 1+3 , 2+4, 5+7, 6+8, 9+11, 10+12 , 13+14 (for having 2 options to balance teams)

Re: Svar Codes?

Posted: Tue Jul 12, 2011 5:38 pm
by Cyber
Nielk,
could you allready create this FFA-options and may involve them into the new b89 - test build?

Re: Svar Codes?

Posted: Tue Jul 12, 2011 6:35 pm
by Dataanti
I wish there was a super list of vehicles, every vehicle that is in 1.3pb6.1, even the ones from single player, and other special ones that are not normally on the list...

Re: Svar Codes?

Posted: Tue Jul 12, 2011 8:12 pm
by VSMIT
You know what's amazing? It's not like it's difficult to see what vehicles are used. You could do it yourself. Instead of wishing for something to happen for you.

Re: Svar Codes?

Posted: Tue Jul 12, 2011 9:18 pm
by Dataanti
VSMIT wrote:You know what's amazing? It's not like it's difficult to see what vehicles are used. You could do it yourself. Instead of wishing for something to happen for you.
I know but I don't only wish it for my self, I wish it for others to. Also I have done it to one of my previous installs, I just didn't bother to redo it yet, and I probably wont cause I very rarely host.

Re: Svar Codes?

Posted: Tue Jul 12, 2011 9:23 pm
by VSMIT
But you could still do it so that others have it.

Re: Svar Codes?

Posted: Wed Jul 13, 2011 4:24 am
by Red Devil
the list is limited to 32 vehicles, but you can have multiple lists and buttons to select them, like is done in G66 and FE.

Re: Svar Codes?

Posted: Wed Jul 13, 2011 5:02 am
by Cyber
Did you know that you can add the bomber to the svar4-list?
If you enter the map, it usually will bail. But: network.stratstarting.entry0 = ibbomb is placing a bomberbay on a ST or MPI map.

But back to my question:
Cyber wrote:Nielk,
could you allready create this FFA-options and may involve them into the new b89 - test build?

Re: Svar Codes?

Posted: Thu Jul 14, 2011 3:57 am
by Nielk1
I should try...

I need to gather notes so I don't forget.

Re: Svar Codes?

Posted: Sun Jul 17, 2011 10:35 am
by Nielk1
Someone please review this, it made me go cross-eyed.

Please note how Case statements work when you read this. Case Switches are more like GOTOs than IFs. Basically, the logic goes-to the first case that fits the condition and then does all code after until it hits a break; This allows one to fulfill several cases when only one is true.

One reason I didn't just set 7 pairs for use on all FFA maps is I do not know if a map might wish to use teams 14, 13, 12, 11, etc for other purposes and I do not want to shatter the existing alliance system on maps. If a map wants to use one of these schemes, its custom EO page has to explicitly allow the correct ivar value by button. IE: no accidental map f*ck-ups caused by this.

Code: Select all

	if(IsTeamplayOn())
	{
		m_Alliances = 0; // clear this 
	}
	else
	{
		m_Alliances = GetVarItemInt("network.session.ivar23");
		switch (m_Alliances)
		{
		// Original Teams
		case 1: // 1+2 vs 3+4
			Ally(1, 2);
			Ally(2, 1);
			Ally(3, 4);
			Ally(4, 3);
			break;

		case 2: // 1+3 vs 2+4
			Ally(1, 3);
			Ally(3, 1);
			Ally(2, 4);
			Ally(4, 2);
			break;

		case 3: // 1+4 vs 2+3
			Ally(1, 4);
			Ally(4, 1);
			Ally(2, 3);
			Ally(3, 2);
			break;

		// Mass Pairs
		case 11: // vs 13+14
			Ally(13, 14);
			Ally(14, 13);
		case 12: // vs 11+12
			Ally(11, 12);
			Ally(12, 11);
		case 13: // vs 9+10
			Ally( 9, 10);
			Ally(10,  9);
		case 14: // vs 7+8
			Ally( 7,  8);
			Ally( 8,  7);
		case 15: // 1+2 vs 3+4 vs 5+6
			Ally( 5,  6);
			Ally( 6,  5);
			Ally( 3,  4);
			Ally( 4,  3);
			Ally( 1,  2);
			Ally( 2,  1);
			break;

		// Mass Triads
		case 16: // vs 10+11+12
			Ally(10, 11);
			Ally(10, 12);
			Ally(11, 10);
			Ally(11, 12);
			Ally(12, 10);
			Ally(12, 11);
		case 17: // vs 7+8+9
			Ally( 7,  8);
			Ally( 7,  9);
			Ally( 8,  7);
			Ally( 8,  9);
			Ally( 9,  7);
			Ally( 9,  8);
		case 18: // 1+2+3 vs 4+5+6
			Ally( 4,  5);
			Ally( 4,  6);
			Ally( 5,  4);
			Ally( 5,  6);
			Ally( 6,  4);
			Ally( 6,  5);
			Ally( 1,  2);
			Ally( 1,  3);
			Ally( 2,  1);
			Ally( 2,  3);
			Ally( 3,  1);
			Ally( 3,  2);
			break;

		// Mass Quartets
		case 19: // vs 9+10+11+12
			Ally( 9, 10);
			Ally( 9, 11);
			Ally( 9, 12);
			Ally(10,  9);
			Ally(10, 11);
			Ally(10, 12);
			Ally(11,  9);
			Ally(11, 10);
			Ally(11, 12);
			Ally(12,  9);
			Ally(12, 10);
			Ally(12, 11);
		case 20: // 1+2+3+4 vs 5+6+7+8
			Ally( 5,  6);
			Ally( 5,  7);
			Ally( 5,  8);
			Ally( 6,  5);
			Ally( 6,  7);
			Ally( 6,  8);
			Ally( 7,  5);
			Ally( 7,  6);
			Ally( 7,  8);
			Ally( 8,  5);
			Ally( 8,  6);
			Ally( 8,  7);
			Ally( 1,  2);
			Ally( 1,  3);
			Ally( 1,  4);
			Ally( 2,  1);
			Ally( 2,  3);
			Ally( 2,  4);
			Ally( 3,  1);
			Ally( 3,  2);
			Ally( 3,  4);
			Ally( 4,  1);
			Ally( 4,  2);
			Ally( 4,  3);
			break;

		// Mass Mixed Quartets
		case 21: // vs 9+10+11+12
			Ally( 9, 10);
			Ally( 9, 11);
			Ally( 9, 12);
			Ally(10,  9);
			Ally(10, 11);
			Ally(10, 12);
			Ally(11,  9);
			Ally(11, 10);
			Ally(11, 12);
			Ally(12,  9);
			Ally(12, 10);
			Ally(12, 11);
		case 22: // 1+3+5+7 vs 2+4+6+8
			Ally( 2,  4);
			Ally( 2,  6);
			Ally( 2,  8);
			Ally( 4,  2);
			Ally( 4,  6);
			Ally( 4,  8);
			Ally( 6,  2);
			Ally( 6,  4);
			Ally( 6,  8);
			Ally( 8,  2);
			Ally( 8,  4);
			Ally( 8,  6);
			Ally( 1,  3);
			Ally( 1,  5);
			Ally( 1,  7);
			Ally( 3,  1);
			Ally( 3,  5);
			Ally( 3,  7);
			Ally( 5,  1);
			Ally( 5,  3);
			Ally( 5,  7);
			Ally( 7,  1);
			Ally( 7,  3);
			Ally( 7,  5);
			break;

		// Heptets
		case 23: // 1+2+3+4+5+6+7 vs 8+9+10+11+12+13+14
			Ally( 1,  2);
			Ally( 1,  3);
			Ally( 1,  4);
			Ally( 1,  5);
			Ally( 1,  6);
			Ally( 1,  7);
			Ally( 2,  1);
			Ally( 2,  3);
			Ally( 2,  4);
			Ally( 2,  5);
			Ally( 2,  6);
			Ally( 2,  7);
			Ally( 3,  1);
			Ally( 3,  2);
			Ally( 3,  4);
			Ally( 3,  5);
			Ally( 3,  6);
			Ally( 3,  7);
			Ally( 4,  1);
			Ally( 4,  2);
			Ally( 4,  3);
			Ally( 4,  5);
			Ally( 4,  6);
			Ally( 4,  7);
			Ally( 5,  1);
			Ally( 5,  2);
			Ally( 5,  3);
			Ally( 5,  4);
			Ally( 5,  6);
			Ally( 5,  7);
			Ally( 6,  1);
			Ally( 6,  2);
			Ally( 6,  3);
			Ally( 6,  4);
			Ally( 6,  5);
			Ally( 6,  7);
			Ally( 7,  1);
			Ally( 7,  2);
			Ally( 7,  3);
			Ally( 7,  4);
			Ally( 7,  5);
			Ally( 7,  6);
			Ally( 8,  9);
			Ally( 8, 10);
			Ally( 8, 11);
			Ally( 8, 12);
			Ally( 8, 13);
			Ally( 8, 14);
			Ally( 9,  8);
			Ally( 9, 10);
			Ally( 9, 11);
			Ally( 9, 12);
			Ally( 9, 13);
			Ally( 9, 14);
			Ally(10,  8);
			Ally(10,  9);
			Ally(10, 11);
			Ally(10, 12);
			Ally(10, 13);
			Ally(10, 14);
			Ally(11,  8);
			Ally(11,  9);
			Ally(11, 10);
			Ally(11, 12);
			Ally(11, 13);
			Ally(11, 14);
			Ally(12,  8);
			Ally(12,  9);
			Ally(12, 10);
			Ally(12, 11);
			Ally(12, 13);
			Ally(12, 14);
			Ally(13,  8);
			Ally(13,  9);
			Ally(13, 10);
			Ally(13, 11);
			Ally(13, 12);
			Ally(13, 14);
			Ally(14,  8);
			Ally(14,  9);
			Ally(14, 10);
			Ally(14, 11);
			Ally(14, 12);
			Ally(14, 13);
			break;

		// Mixed Heptets
		case 24: // 1+3+5+7+9+11+13 vs 2+4+6+8+10+12+14
			Ally( 1,  3);
			Ally( 1,  5);
			Ally( 1,  7);
			Ally( 1,  9);
			Ally( 1, 11);
			Ally( 1, 13);
			Ally( 3,  1);
			Ally( 3,  5);
			Ally( 3,  7);
			Ally( 3,  9);
			Ally( 3, 11);
			Ally( 3, 13);
			Ally( 5,  1);
			Ally( 5,  3);
			Ally( 5,  7);
			Ally( 5,  9);
			Ally( 5, 11);
			Ally( 5, 13);
			Ally( 7,  1);
			Ally( 7,  3);
			Ally( 7,  5);
			Ally( 7,  9);
			Ally( 7, 11);
			Ally( 7, 13);
			Ally( 9,  1);
			Ally( 9,  3);
			Ally( 9,  5);
			Ally( 9,  7);
			Ally( 9, 11);
			Ally( 9, 13);
			Ally(11,  1);
			Ally(11,  3);
			Ally(11,  5);
			Ally(11,  7);
			Ally(11,  9);
			Ally(11, 13);
			Ally(13,  1);
			Ally(13,  3);
			Ally(13,  5);
			Ally(13,  7);
			Ally(13,  9);
			Ally(13, 11);
			Ally( 2,  4);
			Ally( 2,  6);
			Ally( 2,  8);
			Ally( 2, 10);
			Ally( 2, 12);
			Ally( 2, 14);
			Ally( 4,  2);
			Ally( 4,  6);
			Ally( 4,  8);
			Ally( 4, 10);
			Ally( 4, 12);
			Ally( 4, 14);
			Ally( 6,  2);
			Ally( 6,  4);
			Ally( 6,  8);
			Ally( 6, 10);
			Ally( 6, 12);
			Ally( 6, 14);
			Ally( 8,  2);
			Ally( 8,  4);
			Ally( 8,  6);
			Ally( 8, 10);
			Ally( 8, 12);
			Ally( 8, 14);
			Ally(10,  2);
			Ally(10,  4);
			Ally(10,  6);
			Ally(10,  8);
			Ally(10, 12);
			Ally(10, 14);
			Ally(12,  2);
			Ally(12,  4);
			Ally(12,  6);
			Ally(12,  8);
			Ally(12, 10);
			Ally(12, 14);
			Ally(14,  2);
			Ally(14,  4);
			Ally(14,  6);
			Ally(14,  8);
			Ally(14, 10);
			Ally(14, 12);
			break;

		// Quintet
		case 25: // 1+2+3+4+5 vs 6+7+8+9+10
			Ally( 1,  2);
			Ally( 1,  3);
			Ally( 1,  4);
			Ally( 1,  5);
			Ally( 2,  1);
			Ally( 2,  3);
			Ally( 2,  4);
			Ally( 2,  5);
			Ally( 3,  1);
			Ally( 3,  2);
			Ally( 3,  4);
			Ally( 3,  5);
			Ally( 4,  1);
			Ally( 4,  2);
			Ally( 4,  3);
			Ally( 4,  5);
			Ally( 5,  1);
			Ally( 5,  2);
			Ally( 5,  3);
			Ally( 5,  4);
			Ally( 6,  7);
			Ally( 6,  8);
			Ally( 6,  9);
			Ally( 6, 10);
			Ally( 7,  6);
			Ally( 7,  8);
			Ally( 7,  9);
			Ally( 7, 10);
			Ally( 8,  6);
			Ally( 8,  7);
			Ally( 8,  9);
			Ally( 8, 10);
			Ally( 9,  6);
			Ally( 9,  7);
			Ally( 9,  8);
			Ally( 9, 10);
			Ally(10,  6);
			Ally(10,  7);
			Ally(10,  8);
			Ally(10,  9);
			break;

		case 26: // 1+3+5+7+9 vs 2+4+6+8+10
			Ally( 1,  3);
			Ally( 1,  5);
			Ally( 1,  7);
			Ally( 1,  9);
			Ally( 3,  1);
			Ally( 3,  5);
			Ally( 3,  7);
			Ally( 3,  9);
			Ally( 5,  1);
			Ally( 5,  3);
			Ally( 5,  7);
			Ally( 5,  9);
			Ally( 7,  1);
			Ally( 7,  3);
			Ally( 7,  5);
			Ally( 7,  9);
			Ally( 9,  1);
			Ally( 9,  3);
			Ally( 9,  5);
			Ally( 9,  7);
			Ally( 2,  4);
			Ally( 2,  6);
			Ally( 2,  8);
			Ally( 2, 10);
			Ally( 4,  2);
			Ally( 4,  6);
			Ally( 4,  8);
			Ally( 4, 10);
			Ally( 6,  2);
			Ally( 6,  4);
			Ally( 6,  8);
			Ally( 6, 10);
			Ally( 8,  2);
			Ally( 8,  4);
			Ally( 8,  6);
			Ally( 8, 10);
			Ally(10,  2);
			Ally(10,  4);
			Ally(10,  6);
			Ally(10,  8);
			break;

		case 0:
		default:
			m_Alliances = 0; // clear this in case it wasn't in 0..3 or 11..26
		}
	} // Teamplay is off

Here is what it equates too, if it is coded right:

Code: Select all

 0 	FFA
 1 	1+2 vs 3+4
 2 	1+3 vs 2+4
 3 	1+4 vs 2+3
11	1+2 vs 3+4 vs 5+6 vs 7+8 vs 9+10 vs 11+12 vs 13+14
12	1+2 vs 3+4 vs 5+6 vs 7+8 vs 9+10 vs 11+12
13	1+2 vs 3+4 vs 5+6 vs 7+8 vs 9+10
14	1+2 vs 3+4 vs 5+6 vs 7+8
15	1+2 vs 3+4 vs 5+6
16	1+2+3 vs 4+5+6 vs 7+8+9 vs 10+11+12
17	1+2+3 vs 4+5+6 vs 7+8+9
18	1+2+3 vs 4+5+6
19	1+2+3+4 vs 5+6+7+8 vs 9+10+11+12
20	1+2+3+4 vs 5+6+7+8
21	1+3+5+7 vs 2+4+6+8 vs 9+10+11+12
22	1+3+5+7 vs 2+4+6+8
23	1+2+3+4+5+6+7 vs 8+9+10+11+12+13+14
24	1+3+5+7+9+11+13 vs 2+4+6+8+10+12+14
25	1+2+3+4+5 vs 6+7+8+9+10
26	1+3+5+7+9 vs 2+4+6+8+10
I will work on EO CFGs now.

EDIT: Added quintets.