Remove gametype limits



  • Feature: Remove gametype dvars/DSR options limits by default.
    Description: IW devs added dvar limits inside gsc's, (dvarDomain values no mater, these limits are set and checked inside gsc's, no dvarPool)
    Also Dsr options have limits too.
    Motivation: Change match rules freely.

    Since you are going to include a fastfile patch, you can remove this by default.

    ex. code:
    DSR: gameOpt sdData.roundSwitch "0" // [ 0-4 ] idk if limits are coded inside game exe or stringtables
    GSC:

    // sd.gsc
    roundSwitch = GetMatchRulesData( "sdData", "roundSwitch" );
    SetDynamicDvar( "scr_sd_roundswitch", roundSwitch );
    registerRoundSwitchDvar( "sd", roundSwitch, 0, 9 );  // limit [0-9]
    
    // utility.gsc
    registerRoundSwitchDvar( dvarString, defaultValue, minValue, maxValue )
    {
    	registerWatchDvarInt( "roundswitch", defaultValue );
    
    	dvarString = ( "scr_" + dvarString + "_roundswitch" );
    
    	level.roundswitchDvar = dvarString;
    	level.roundswitchMin = minValue;
    	level.roundswitchMax = maxValue;
    	level.roundswitch = getDvarInt( dvarString, defaultValue );
    	
    	if ( level.roundswitch < minValue )
    		level.roundswitch = minValue;
    	else if ( level.roundswitch > maxValue )
    		level.roundswitch = maxValue;
    }
    

  • Project Admin

    Noted :) Will do it after basic release if its possible.


  • Project Admin

    Easily doable once we finish the GSC compiler.


Log in to reply
 

Looks like your connection to Plutonium Project was lost, please wait while we try to reconnect.