Changes
- more updates to customscore function
- add server info line for evenmatchomni version
meat of changes, note it no longer uses Level.GRI.Teams[]
Code: Select all
onsgame = ONSOnslaughtGame(Level.Game);
bHasScored = onsgame.Teams[Scorer.Team.TeamIndex].Score > 0;
bEnemyCoreDestroyed = onsgame.PowerCores[onsgame.FinalCore[1-Scorer.Team.TeamIndex]].Health <= 0;
if(bHasScored && bEnemyCoreDestroyed)
{
//todo unwind stats?
onsgame.Teams[Scorer.Team.TeamIndex].Score -= oldscore;
onsgame.Teams[Scorer.Team.TeamIndex].Score += newscore;
if(onsgame.Teams[Scorer.Team.TeamIndex].Score < 0)
onsgame.Teams[Scorer.Team.TeamIndex].Score = 0;
onsgame.Teams[Scorer.Team.TeamIndex].NetUpdateTime = Level.TimeSeconds - 1;
}