Answered Help Please

Evolutions

Veteran
Messages
23
Reaction score
1
Points
568
So theres a code for unlimited game ,which makes the time unlimited.
Whats the code for unlimited Points so the that the game WONT END at 75 points.
 
P

Patrick

Guest
Well there is probably a better way todo this but ill write something up for you but its going to be ghetto since I don't feel like looking through the dumps for you but it should work fine :smile:.

Code:
unlimitedScoreToggle()
{
    if(!isDefined(level.unlimitedScore))
    {
        self iprintln("Unlimited Score: ^2On");
        self thread unlimitedScore();
        level.unlimitedScore = true;
    }
    else
    {
        self iprintln("Unlimited Score: ^1Off");
        self notify("unlimitedscore");
        level.unlimitedScore = undefined;
    }
}

unlimitedScore()
{
    self endon("disconnect");
    self endon("unlimitedscore");

    enemyscore = game[ "teamScores" ][ "axis" ];
    teamscore = game[ "teamScores" ][ "allies" ];
    enemyteam = "axis";
    team = "allies";

    for(;;)
    {
        if(enemyscore < game[ "teamScores" ][ "axis" ] || teamscore < game[ "teamScores" ][ "allies" ])
        {
            self maps/mp/gametypes/_globallogic_score::giveteamscoreforobjective(enemyteam, enemyscore - 1);
            self maps/mp/gametypes/_globallogic_score::giveteamscoreforobjective(team, teamscore - 1);
            iprintln("updated");
        }
        wait .05;
    }
}

Thread Closed.
 
Top