Author Topic: Team reset after score.  (Read 2378 times)

0 Members and 1 Guest are viewing this topic.

Offline Boblekonvolutt

  • Soldier
  • **
  • Posts: 222
  • "YOU are a CAR."
Re: Team reset after score.
« Reply #20 on: April 05, 2008, 11:33:12 am »
Well, it should... I haven't tested it, but I don't see why not?

Offline Mercury92

  • Camper
  • ***
  • Posts: 284
Re: Team reset after score.
« Reply #21 on: April 05, 2008, 02:07:47 pm »
I have tested this script
Code: [Select]
procedure OnFlagScore(ID, TeamFlag: Byte);
var i: Integer;
begin

// if its alpha flag
if TeamFlag = 1 then begin

// First, move all to bravo
for i := 1 to 32 do
Command('/setteam2 ' + inttostr(i));

// Then, repeat this loop until someone is on alpha
while AlphaPlayers < 1 do
Command('/setteam1 ' + inttostr(Random(1, 32)));
end;
end;

And it doesn't work at all. (with bots)
As I understand When Bravo scores, then all moves to Bravo and random player to Alpha.
[saw]  on 1.5.1

Offline Boblekonvolutt

  • Soldier
  • **
  • Posts: 222
  • "YOU are a CAR."
Re: Team reset after score.
« Reply #22 on: April 05, 2008, 04:56:17 pm »
I tested it (with just bots and with bots + me), works fine for me. Unless you don't want to to move all to bravo and then one to alpha...?

Offline Mercury92

  • Camper
  • ***
  • Posts: 284
Re: Team reset after score.
« Reply #23 on: April 06, 2008, 02:17:39 am »
Yeah, your right everything works good. But when I play INF Game mode. And when all Bravo players killed or Alpha. Score will reset, it possible to avoid such thing.
[saw]  on 1.5.1

Offline danmer

  • Camper
  • ***
  • Posts: 466
  • crabhead
Re: Team reset after score.
« Reply #24 on: April 06, 2008, 03:37:33 am »
Yeah, your right everything works good. But when I play INF Game mode. And when all Bravo players killed or Alpha. Score will reset, it possible to avoid such thing.
if there ae no players left on a team, its score resets. You could add a dummy bot on that team just to keep the score; or save the score somewhere to set it back later when there are some players on the team