Add unlock class slots togle to stats menu
This commit is contained in:
parent
af76836254
commit
b6bc9e6fa4
@ -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
|
@ -42,6 +42,17 @@ DataSources.MPStatsSettings = DataSourceHelpers.ListSetup( "MPStatsSettings", fu
|
||||
},
|
||||
}, nil, updateDvar ))
|
||||
end
|
||||
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",
|
||||
|
Loading…
Reference in New Issue
Block a user