Add unlock class slots togle to stats menu

This commit is contained in:
WantedDV 2023-04-16 21:02:59 -02:30
parent af76836254
commit b6bc9e6fa4
2 changed files with 12 additions and 22 deletions

View File

@ -1,21 +0,0 @@
Dvar.purchasedClassSetCount:set( 10 )
Engine.GetCustomClassCount = function( arg0 )
return 10
end
Engine.GetNumberOfClassSetsOwned = function( arg0 )
return 10
end
Engine.IsClassSetsAvailableForCurrentGameMode = function()
return true
end
function IsClassSetsAvailableForCurrentGameMode()
return Engine.IsClassSetsAvailableForCurrentGameMode()
end
function DoesPlayerHaveExtraSlotsItem( arg0 )
return true
end

View File

@ -42,7 +42,18 @@ DataSources.MPStatsSettings = DataSourceHelpers.ListSetup( "MPStatsSettings", fu
}, },
}, nil, updateDvar )) }, nil, updateDvar ))
end end
table.insert( optionsTable, CoD.OptionsUtility.CreateDvarSettings( controller, "Unlock All Attachments", "All attachments on weapons are unlocked.", "MPStatsSettings_unlockall_attachments", "cg_unlockall_attachments", { table.insert( optionsTable, CoD.OptionsUtility.CreateDvarSettings( controller, "Unlock All Class Slots", "Unlock all create-a-class slots and sets.", "MPStatsSettings_unlockall_cac_slots", "cg_unlockall_cac_slots", {
{
option = "MENU_DISABLED",
value = 0,
default = true
},
{
option = "MENU_ENABLED",
value = 1
},
}, nil, updateDvar ))
table.insert( optionsTable, CoD.OptionsUtility.CreateDvarSettings( controller, "Unlock All Attachments", "All attachments on weapons are unlocked.", "MPStatsSettings_unlockall_attachments", "cg_unlockall_attachments", {
{ {
option = "MENU_DISABLED", option = "MENU_DISABLED",
value = 0, value = 0,