Post: Unlimited Game Help
10-27-2015, 03:09 AM #1
xPlayer420
Bounty hunter
(adsbygoogle = window.adsbygoogle || []).push({}); So this is the code I'm using

    

Inf_Game()
{
if(self.ingame==false)
{
self.ingame=true;
setDvar("scr_dom_scorelimit",0);
setDvar("scr_sd_numlives",0);
setDvar("scr_war_timelimit",0);
setDvar("scr_game_onlyheadshots",0);
setDvar("scr_war_scorelimit",0);
setDvar("scr_player_forcerespawn",1);
maps\mp\gametypes\_globallogic_utils::pausetimer();
self iPrintln("Infinite Game [^2ON^7]");
}
else
{
self maps\mp\gametypes\_globallogic_utils::resumetimer();
self iPrintln("Infinite Game [^1OFF^7]");
}
}



And I'm trying to make it so in killing based game modes like S&Awesome face & Free For All if I get 30 kills in Free For All it doesn't end the game it goes to infinite like its supposed to can anyone help me set it up so it does?
(adsbygoogle = window.adsbygoogle || []).push({});
10-27-2015, 08:06 AM #2
BullyWiiPlaza
Climbing up the ladder
First of all, remove all the setDvar lines because they do nothing. For your request, I have been wondering the same but on Domination. This is what I found via research in the GSC files, I'm not sure if it works though.

As reference:
    // dm.gsc
registerScoreLimit(0, 50000); // default scorelimit


    // dom.gsc
registerScoreLimit( 0, 1000); // default scorelimit


    // _utility.gsc
registerScoreLimit( minValue, maxValue )
{
level.scoreLimit = clamp( GetGametypeSetting( "scoreLimit" ), minValue, maxValue );
level.scoreLimitMin = minValue;
level.scoreLimitMax = maxValue;
SetDvar( "ui_scorelimit", level.scoreLimit );
}

So maybe you can do something like this:
    registerScoreLimit(0, 99999999);


or like this:
    level.scoreLimit = 99999999;
level.scoreLimitMax = level.scoreLimit;
level.scoreLimitMin = 0;
setDvar("ui_scorelimit", level.scoreLimit);

Copyright © 2026, NextGenUpdate.
All Rights Reserved.

Gray NextGenUpdate Logo