Announcement

Collapse
No announcement yet.

configurable mutators

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    configurable mutators

    ok so how do you get your vars to show up in the configure mutator list. i found it for ut2003 but its not the same in ut2004 and i cant find any code from epic and not on the internet...

    #2
    Code:
    static function FillPlayInfo(PlayInfo PlayInfo)
    {
    	Super.FillPlayInfo(PlayInfo);
    
    	PlayInfo.AddSetting(default.RulesGroup, "bConfigUseCTFVehicle0", default.ArenaDisplayText[0], 0, 1, "Check");
    	PlayInfo.AddSetting(default.RulesGroup, "bConfigUseCTFVehicle1", default.ArenaDisplayText[1], 0, 1, "Check");
    	PlayInfo.AddSetting(default.RulesGroup, "bConfigUseCTFVehicle2", default.ArenaDisplayText[2], 0, 1, "Check");
    }
    
    static event string GetDescriptionText(string PropName)
    {
    	if (PropName == "bConfigUseCTFVehicle0")
    	return default.ArenaDescText[0];
    	if (PropName == "bConfigUseCTFVehicle1")
    	return default.ArenaDescText[1];
    	if (PropName == "bConfigUseCTFVehicle2")
    	return default.ArenaDescText[2];
    
    	return Super.GetDescriptionText(PropName);
    }

    Comment


      #3
      The above works for true/false variables

      Comment


        #4
        ... could you explane that a bit???

        and i whant to beable to use class like vehicles?

        EDIT: i found some other guy that made a mut for his weapons. ill ask him if he can make it for me becaus i dont get.

        Comment


          #5
          Code:
          PlayInfo.AddSetting(default.RulesGroup, "bConfigUseCTFVehicle0", default.ArenaDisplayText[0], 0, 1, "Check");
          bconfigUseCTFVehicle0 is the variable that is made true or false
          ArenaDisplayText is what shows up in the configre screen
          "Check" Makes it a check box (or an x-box in UT )


          Code:
          if (PropName == "bConfigUseCTFVehicle0")
          	return default.ArenaDescText[0];
          Is the helpe text setup

          bConfigUseCTFVehicle0 is the setting your getting help on
          ArenaDescText is the returnred text

          Comment


            #6
            as a note you can have a mutator list all the installed vehicles ona system (much like there are mtators that list all the installed wepaons) however for whtever reason this also lists the indicidual turrets for vehicles as well

            Comment

            Working...
            X