Results 1 to 5 of 5

Thread: Problem with scorelimit in zpam

Threaded View

Previous Post Previous Post   Next Post Next Post
  1. #4
    Brigadier General
    Join Date
    Oct 2012
    Posts
    994
    Thanks
    20
    Thanked 588 Times in 388 Posts
    I looked through the DM gametype file in the PAM mod you linked to and found that the scorelimit code has been commented out (made blank). Which means you can easily edit it back to being active.

    Look in zPAM206.iwd/maps/pam for this:

    Code:
    updateGametypeCvars()
    {
    	// ePAM
    	level endon("timeoutcalled");
    	timelimit = getCvarFloat("scr_dm_timelimit");
    	if (level.timelimit < timelimit)
    	{
    		timelimit = level.timelimit;
    	}
    	//
    	for(;;)
    	{
    		if(level.timelimit != timelimit)
    		{
    			if(timelimit > 1440)
    			{
    				timelimit = 1440;
    				setCvar("scr_dm_timelimit", "1440");
    			}
    
    			level.timelimit = timelimit;
    			setCvar("ui_dm_timelimit", level.timelimit);
    			level.starttime = getTime();
    
    			if(level.timelimit > 0)
    			{
    				if(!isDefined(level.clock))
    				{
    					level.clock = newHudElem();
    					level.clock.horzAlign = "left";
    					level.clock.vertAlign = "top";
    					level.clock.x = 8;
    					level.clock.y = 2;
    					level.clock.font = "default";
    					level.clock.fontscale = 2;
    				}
    				level.clock setTimer(level.timelimit * 60);
    			}
    			else
    			{
    				if(isDefined(level.clock))
    					level.clock destroy();
    			}
    
    			checkTimeLimit();
    		}
    
    		/*
    		scorelimit = getCvarInt("scr_dm_scorelimit");
    		if(level.scorelimit != scorelimit)
    		{
    			level.scorelimit = scorelimit;
    			setCvar("ui_dm_scorelimit", level.scorelimit);
    			level notify("update_allhud_score");
    		}
    		checkScoreLimit();
    		*/
    
    		wait level.fps_multiplier * 1;
    	}
    }
    And edit it to this:

    Code:
    updateGametypeCvars()
    {
    	// ePAM
    	level endon("timeoutcalled");
    	timelimit = getCvarFloat("scr_dm_timelimit");
    	if (level.timelimit < timelimit)
    	{
    		timelimit = level.timelimit;
    	}
    	//
    	for(;;)
    	{
    		if(level.timelimit != timelimit)
    		{
    			if(timelimit > 1440)
    			{
    				timelimit = 1440;
    				setCvar("scr_dm_timelimit", "1440");
    			}
    
    			level.timelimit = timelimit;
    			setCvar("ui_dm_timelimit", level.timelimit);
    			level.starttime = getTime();
    
    			if(level.timelimit > 0)
    			{
    				if(!isDefined(level.clock))
    				{
    					level.clock = newHudElem();
    					level.clock.horzAlign = "left";
    					level.clock.vertAlign = "top";
    					level.clock.x = 8;
    					level.clock.y = 2;
    					level.clock.font = "default";
    					level.clock.fontscale = 2;
    				}
    				level.clock setTimer(level.timelimit * 60);
    			}
    			else
    			{
    				if(isDefined(level.clock))
    					level.clock destroy();
    			}
    
    			checkTimeLimit();
    		}
    
    		scorelimit = getCvarInt("scr_dm_scorelimit");
    		if(level.scorelimit != scorelimit)
    		{
    			level.scorelimit = scorelimit;
    			setCvar("ui_dm_scorelimit", level.scorelimit);
    			level notify("update_allhud_score");
    		}
    		checkScoreLimit();
    
    		wait level.fps_multiplier * 1;
    	}
    }
    Close and save.

  2. The Following 3 Users Say Thank You to Tally For This Useful Post:

    kung foo man (5th June 2014),Mitch (5th June 2014),qwrtyp (5th June 2014)

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •