mirror of
https://github.com/ChocoTaco1/TacoServer.git
synced 2026-07-11 22:24:33 +00:00
Observer Camera Update
This commit is contained in:
parent
c8a2205caa
commit
acc3e987f2
4 changed files with 61 additions and 37 deletions
|
|
@ -57,9 +57,9 @@ function GetTeamCounts(%game)
|
|||
$Observers = 0;
|
||||
for(%i = 0; %i < ClientGroup.getCount(); %i++)
|
||||
{
|
||||
%cl = ClientGroup.getObject(%i);
|
||||
if(%cl.team $= 0)
|
||||
$ObserverArray[$Observers++] = %cl;
|
||||
%cl = ClientGroup.getObject(%i);
|
||||
if(%cl.team $= 0)
|
||||
$Observers++;
|
||||
}
|
||||
|
||||
//echo("$PlayerCount[0] " @ $HostGamePlayerCount - ($TeamRank[1, count] + $TeamRank[2, count]));
|
||||
|
|
|
|||
|
|
@ -136,7 +136,7 @@ function serverCmdObserveFirstFlag(%client)
|
|||
return;
|
||||
|
||||
// client must be an observer
|
||||
if(%client.team > 0)
|
||||
if(%client.team > 0 || !$Observers) //$Observers added; Serverside var; Needs to have value to work correctly
|
||||
return;
|
||||
|
||||
// check if the flag is carried by someone
|
||||
|
|
@ -154,7 +154,7 @@ function serverCmdObserveSecondFlag(%client)
|
|||
return;
|
||||
|
||||
// client must be an observer
|
||||
if(%client.team > 0)
|
||||
if(%client.team > 0 || !$Observers) //$Observers added; Serverside var; Needs to have value to work correctly
|
||||
return;
|
||||
|
||||
// check if the flag is carried by someone
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue