Warning: array_merge() [function.array-merge]: Argument #1 is not an array in [path]/archive/global.php(40) : eval()'d code on line 2
Gravelpit style CP - Switch teams? [Archive] - TF2Maps.net Forums

PDA

View Full Version : Gravelpit style CP - Switch teams?


Fyfey
01-30-2008, 06:46 AM
I'm currently working on a single round gravelpit style CP map.

I've got most of the mechanics working... setup time triggers doors ok, the cap layout's fine and the game is winnable by either team. But if I try and have it switch teams at round reset, the score get's changed teams too!

I was playing on Blue, let the timer run out and Red won and scored 1 point. It then put me on Red... great! Now when I win again on Red, the scoreboard says Blu 1 - 1 Red. The Red "Team" took their score with them when being switched to Blu it seems?

My setup is...
team_round_timer
team_control_point_master
team_control_point x 2
game_round_win (red - triggered on timer Finished)

I thought that if I wanted it to change teams I would just say yes in the control_point_master and the game_round_win. Then when either team won, the teams were switched.

Any help appreciated,

Fyfey

Ganon11
01-30-2008, 06:58 AM
So let me get this straight:

You are playing on Blue and you let the timer go. So Red wins. The score is Blue 0, Red 1. Then teams switch, and you (now on Red) win. The score is Blue 1, Red 1. That's what should happen - you let yourself lose once (on Blue team), and then won once (on Red team), so you're 1-1.

Fyfey
01-30-2008, 07:41 AM
But the red team won both times, so the score should be red 2 - 0 blu.

spaceweasels
01-30-2008, 07:58 AM
But the red team won both times, so the score should be red 2 - 0 blu.

Actually, the game knows the players of the team switched, so the score also followed the switched players. That's why, although Red won twice, you (as a player) lost once and won once.

You'll notice the same happens in Dustbowl and Gravelpit.

Fyfey
01-30-2008, 09:05 AM
ah right! My bad. I assumed it just scored by the colour of the team.

I'll put it back in and give it a little test.

Thanks for the replies,

Fyfey