mirror of
https://github.com/ChocoTaco1/TacoServer.git
synced 2026-04-19 18:45:18 +00:00
ObserveFlag Update
This commit is contained in:
parent
2256d517ed
commit
38969b6bf3
3 changed files with 51 additions and 63 deletions
|
|
@ -52,7 +52,15 @@ function GetTeamCounts(%game)
|
|||
//Variables
|
||||
$TotalTeamPlayerCount = $TeamRank[1, count] + $TeamRank[2, count];
|
||||
$AllPlayerCount = $HostGamePlayerCount;
|
||||
$Observers = $HostGamePlayerCount - ($TeamRank[1, count] + $TeamRank[2, count]);
|
||||
|
||||
//Observers
|
||||
$Observers = 0;
|
||||
for(%i = 0; %i < ClientGroup.getCount(); %i++)
|
||||
{
|
||||
%cl = ClientGroup.getObject(%i);
|
||||
if(%cl.team $= 0)
|
||||
$ObserverArray[$Observers++] = %cl;
|
||||
}
|
||||
|
||||
//echo("$PlayerCount[0] " @ $HostGamePlayerCount - ($TeamRank[1, count] + $TeamRank[2, count]));
|
||||
//echo("$PlayerCount[1] " @ $TeamRank[1, count]);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue