Author Topic: Team Deathmatch  (Read 53450 times)

Not to take anything away from good code commenting, I think I'd rather have code that is properly tabbed.  Using spaces instead of tabs as block delimiters is a detriment to readability in my opinion.  I do like that Space Guy returns his braces to the next line though.

Code: [Select]
blah()
{
}

is much more readable than

Code: [Select]
blah(){
}

to me.

I understand what you are saying. I hate it when people code like that too. That is why I have found my self to code as you said with the bracket on a new line. It is just a habbit of Ephi to do that. It does not mean tha it is unreadable though.

umm a little confused on somthing how could i make a certain team spawn on a certain series of spawn points?

- Place Team 1, 2, 3, etc. spawn points (These are in the SpaceMods tab of the brick menu) in each base or spawn area you need.
- Go to minigame menu and set it to a Team Deathmatch game mode
- Go to Teams tab and create teams in the same order as spawns. If your Team 1 Spawn Points are in the Red base, make that the Red team.
- Make sure you change the colours of each team to prevent confusion and set items for them.

yay! its out!  :cookieMonster: ice cream for you space guy!  :iceCream:

 WEWT its finaly here. i have been w8inf for this for years. Glad its finaly ready.i have 7 awsome tdm stages ready for years. thx man dis is freakin awsome

Got a new bug.  I don't have any of the incompatible add-ons installed.

When the Auto Sort is set to "fix" mode, whenever the teams become unbalanced, everyone is switched to the other side. 

It doesn't actually balance the game, it just switches everyone to the opposite side of the one they were on, effectively restarting the game.  It's really annoying.

It resorts the teams every time. If someone as an "odd" number in the game leaves, this means that everyone after them will be switched to the other team.

I guess I don't understand.  Wouldn't it just be easier so make it like this?

5 people on Team 1, 4 people on Team 2.

One guy from Team 2 leaves the game.

One guy from Team 1 gets switched to Team 2 to make it 4v4.


Unless the context is wrong, in which case you'll have to explain it to me, because right now it seems to work like this:

5 people on Team 1, 5 people on Team 2.

One guy from Team 2 leaves.

All 5 people on Team 1 switch to Team 2.

All 4 people from Team 2 switch to Team 1.

awsome!!!!let  :cookie:'s rain upon you shoulders

Woot epic is this, Master Block Builder

I guess I don't understand.  Wouldn't it just be easier so make it like this?

5 people on Team 1, 4 people on Team 2.

One guy from Team 2 leaves the game.

One guy from Team 1 gets switched to Team 2 to make it 4v4.


Unless the context is wrong, in which case you'll have to explain it to me, because right now it seems to work like this:

5 people on Team 1, 5 people on Team 2.

One guy from Team 2 leaves.

All 5 people on Team 1 switch to Team 2.

All 4 people from Team 2 switch to Team 1.

If the people are in order
1 Red
2 Blue
3 Red
4 Blue
5 Red
6 Blue


and then number two leaves:
1 Red
3 Red
4 Blue
5 Red
6 Blue


it will re-sort the teams:
1 Red
3 Blue   3 has been moved to Blue. (Auto Sort)
4 Red    4 has been moved to Red. (Auto Sort)
5 Blue   5 has been moved to Blue. (Auto Sort)
6 Red    6 has been moved to Red. (Auto Sort)


I'm not sure how to make an algorithm smart enough to balance the teams with the sort ratios, including zero, in the smallest number of moves possible, so I had to do it like this. It re-sorts from the start (with an offset at round ends for team swapping), so if somebody leaves the game with others joining after him with "Fix" mode on or during a round end team swap, some players may not get sorted or it will appear to swap everybody.

Updated to v3.

- Fix for Swap Teams countdown
- Various other fixes
- Team player type and items now set to the minigame settings instead of Standard Player/NONE
- Added TeamAllow and TeamDeny restrictions if JVS Doors v15 is enabled - input team IDs (1-6, 0 for none) or team names into the text box to allow/deny those teams from using the Door.
- Bump

EDIT: Redownload if you were so quick to get it before I posted this message - I left a test code in there which would stop TDM actually functioning. (GMT 07:53)
« Last Edit: May 04, 2009, 02:54:02 AM by Space Guy »

Updated to v3.

- Fix for Swap Teams countdown
- Various other fixes
- Team player type and items now set to the minigame settings instead of Standard Player/NONE
- Added TeamAllow and TeamDeny restrictions if JVS Doors v15 is enabled - input team IDs (1-6, 0 for none) or team names into the text box to allow/deny those teams from using the Door.
- Bump

EDIT: Redownload if you were so quick to get it before I posted this message - I left a test code in there which would stop TDM actually functioning. (GMT 07:53)

*Thanks god.


*Thanks space guy :D

Updated to v3.

- Fix for Swap Teams countdown
- Various other fixes
- Team player type and items now set to the minigame settings instead of Standard Player/NONE
- Added TeamAllow and TeamDeny restrictions if JVS Doors v15 is enabled - input team IDs (1-6, 0 for none) or team names into the text box to allow/deny those teams from using the Door.
- Bump

EDIT: Redownload if you were so quick to get it before I posted this message - I left a test code in there which would stop TDM actually functioning. (GMT 07:53)

YES YES YES

THANK YOU!

We need A auto leader Option

For a Search & Destroy I am making

and a Player can't move but is spawned for awhile then it counts down 3.2.1 ect. and then the mini-game starts
« Last Edit: May 04, 2009, 03:55:44 PM by Flying Ace »