To be more exact: This might be a good way to do it:
function Killed( pawn Killer, pawn Other, name damageType )
{
local int Team0Size, Team1Size, Team0Dead, Team1Dead;
local Pawn P;
Super.Killed (Killer, Other, damageType);
Other.PlayerPawn.GotoState('PlayerSpectating');
for( P=Level.PawnList; P!=None; P=P.nextPawn )
{
if (P.PlayerReplicationInfo.Team==0)
Team0Size++;
if ((P.PlayerReplicationInfo.Team==0)&&(P.Isinstate('PlayerSpectating') ))
Team0Dead++;
if (Team0Dead==Team0Size)
{
Add code to make Team1 (blue) win the match
}
}
Just a quick idea this function. There might be some problems (like, Team0 can't win yet
![Wink ;) ;)](data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7)
) but this is the general idea.