Hi guys.
I've got my own BotDeathMatch class - child of xDeatchMatch class and I want to reset the remaining time of the match. I've implemented this function, that works fine - the remaining time does get reset:
However on HUD in game I still see the previous old value of the remaining time: .
I wasn't able to solve this yet - the time is got in ScoreBoardDeathMatch.uc class, is that right? And that class should use info from GameReplicationInfo, so the code above should work, right? (as GRI is replicated). What am I doing wrong?
Thanks,
sk
I've got my own BotDeathMatch class - child of xDeatchMatch class and I want to reset the remaining time of the match. I've implemented this function, that works fine - the remaining time does get reset:
Code:
function RemoteRestartGameState() {
// resets remaining time in game
bGameEnded = false;
bOverTime = false;
ElapsedTime = NetWait - 3;
RemainingTime = 60 * TimeLimit;
GameReplicationInfo.RemainingTime = RemainingTime;
GameReplicationInfo.RemainingMinute = RemainingTime;
GameReplicationInfo.ElapsedTime = 0;
GameReplicationInfo.reset();
log("Restarting, TimeLimit:" $ TimeLimit $ ";RemainingTime:" $ RemainingTime);
PlayStartupMessage();
}
However on HUD in game I still see the previous old value of the remaining time: .
I wasn't able to solve this yet - the time is got in ScoreBoardDeathMatch.uc class, is that right? And that class should use info from GameReplicationInfo, so the code above should work, right? (as GRI is replicated). What am I doing wrong?
Thanks,
sk