stable-5.2
Tobias Zwick 2010-01-03 19:20:38 +01:00
parent 8d093cd050
commit 39616c943e
2 changed files with 7 additions and 2 deletions

View File

@ -1,5 +1,3 @@
#strict 2
/*
Per-Player Controller (HUD)
Author: Newton

View File

@ -37,6 +37,13 @@ func RecheckGoalTimer()
if(GetLeague()) timer_interval = 2; // league has more frequent checks
AddEffect("IntGoalCheck", 0, 1, timer_interval, 0);
}
// create hud objects for all players
for(var i = 0; i < GetPlayerCount(); ++i)
{
var plr = GetPlayerByIndex(i);
var HUD = FindObject(Find_ID(HUDC),FindOwner(plr));
if(HUD) HUD->UpdateGoal();
}
}
global func FxIntGoalCheckTimer(object trg, int num, int time)