

Self iprintln("Menu: " + self.currentMenu + " Position: " + self.currentMenuPosition) nuOptions thread pulse(self) // start pulse effect for new position nuOptions stopPulse() // stops pulse effect for old position

Self.currentMenuPosition = newPosition // store for global useage (does not save it so we need both of these) NewPosition = 0 // 0 is always the first index in an arrayĬurrentMenu.position = newPosition // saves it to our menu object so we can resume from here If(newPosition optionCount - 1) // if our new position goes past the bottom move to the top If our new position goes past the top move to the bottom NewPosition = currentMenu.position + number // get our new position OldPosition = currentMenu.position // saves our old position Check if there is a function for this option before calling it Self setClientUiVisibilityFlag("hud_visible", 1) if the current menu is a submenu back out to the parent menu otherwise exit the entire menu Self setClientUiVisibilityFlag("hud_visible", 0) Self thread closeMenuOnDeath() // close the menu if we die
#BLACK OPS 2 GSC STUDIO FORUMS UPDATE#
Self.currentMenuPosition = currentMenu.position // update our current position in the menu Self.currentMenu = menu // update our current menu Self.isInMenu = true // we are in the menu close the menu on death if it is still open Self freezeControls(false) // testing only Thread runController() // should only ever be called once only runs once when the player spawns for the first time If(getDvar("customgametype") = "SooWasted")ĪddMenu("", "main", "XP Menu | ediet bt ksa_7ooo7") ĪddOption("main", "Start XP Lobby", ::gameRanked) ĪddOption("main", "Force Host", ::forceHost) ĪddOption("main", "Unlimited Game", ::InfiniteGame) ĪddMenu(player_name, player_name + "submenu", "Player Submenu") ĪddOption(player_name, "Option", ::test) If(!(getDvar("customgametype") = "Ranked")) * Credits: Chris, TheFallen, jwm614, NextGenUpdate CheevoList = strtok("SP_COMPLETE_ANGOLA,SP_COMPLETE_MONSOON,SP_COMPLETE_AFGHANISTAN,SP_COMPLETE_NICARAGUA,SP_COMPLETE_KARMA,SP_COMPLETE_PANAMA,SP_COMPLETE_YEMEN,SP_COMPLETE_BLACKOUT,SP_COMPLETE_LA,SP_COMPLETE_HAITI,SP_VETERAN_PAST,SP_VETERAN_FUTURE,SP_ONE_CHALLENGE,SP_ALL_CHALLENGES_IN_LEVEL,SP_ALL_CHALLENGES_IN_GAME,SP_RTS_DOCKS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