For checkscore, here is my suggestion
change this part in the beginning
Code: Select all
function bool CheckScore(PlayerReplicationInfo Scorer)
{
local int i;
CustomScore(Scorer);
if (bBalancing || Super.CheckScore(Scorer)) {
if (!bBalancing) {
// just update recent PPH values
for (i = 0; i < Level.GRI.PRIArray.Length; ++i) {
if (Level.GRI.PRIArray[i] != None && !Level.GRI.PRIArray[i].bOnlySpectator)
GetPointsPerHour(Level.GRI.PRIArray[i]);
}
}
return true;
}
...
Code: Select all
function bool CheckScore(PlayerReplicationInfo Scorer)
{
local int i;
CustomScore(Scorer);
if (bBalancing) {
return true;
}
...
In CustomScore(), maybe make this change too
Code: Select all
function CustomScore(PlayerReplicationInfo Scorer)
{
...
if(Role == ROLE_Authority && EvenMatchMutator.bCustomScoring)
{
Code: Select all
function CustomScore(PlayerReplicationInfo Scorer)
{
...
if(Role == ROLE_Authority && EvenMatchMutator.bCustomScoring && Scorer != None)
{