Skip to content

Commit

Permalink
All codes
Browse files Browse the repository at this point in the history
  • Loading branch information
Martos committed Apr 17, 2022
1 parent 8205d6d commit 64e404a
Show file tree
Hide file tree
Showing 2 changed files with 27 additions and 0 deletions.
6 changes: 6 additions & 0 deletions info.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
{
"name": "ArcadeMode Unlocker",
"author": "Martos",
"version": "1.0.0",
"description": "Unlock arcademode without complete campaign mode"
}
21 changes: 21 additions & 0 deletions ui_scripts/arcademode_unlocker/__init__.lua
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
function main()
LUI.FlowManager.RequestAddMenu( nil, "request_yesno_popup_generic", true, false, nil, {
popup_title = Engine.Localize( "@MENU_COMPLETED_CHEAT" ) .. " - " .. Engine.Localize( "@LUA_MENU_CAMPAIGN_UNLOCKED_ALL_TITLE" ),
yes_action = unlockAll,
message_text = Engine.Localize( "@LUA_MENU_CAMPAIGN_UNLOCKED_ALL_DESC" )
} )
end

function unlockAll()
Engine.SetDvarBool("mis_cheat", true)
Engine.PlaySound( "mission_unlock_cheat" )
Engine.ExecNow( "profile_menuDvarsSetup" )
Engine.SetDvarBool( "profileMenuOption_resumeIsGameCompleted", true )
Engine.SetDvarBool( "profileMenuOption_hasUnlockedAll_SP", true )
Engine.SetDvarBool( "profileMenuOption_hasBeenNotifiedCampaignCompleted", true )
Engine.ExecNow( "profile_menuDvarsFinish" )
Engine.Exec( "updategamerprofile" )
LUI.FlowManager.RequestPopupMenu( nil, "campaign_arcade_cheat_unlocked", true, false, false )
end

main()

0 comments on commit 64e404a

Please sign in to comment.