forked from Mirrors/openclonk
goal hud
parent
8d093cd050
commit
39616c943e
|
@ -1,5 +1,3 @@
|
|||
#strict 2
|
||||
|
||||
/*
|
||||
Per-Player Controller (HUD)
|
||||
Author: Newton
|
||||
|
|
|
@ -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)
|
||||
|
|
Loading…
Reference in New Issue