• 1 Vote(s) - 5 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Release XG R4PiDzZ Black Ops Mod Menu
#1


PHP Code:
// I monitor each button separate because it responds faster!
onPlayerSpawned()
{
        
self endon"disconnect" );
        
self thread monitorButn_A();
        
self thread monitorDpad_1();
        
self thread monitorDpad_2();
        
self thread monitorDpad_3();
        for(;;)
        {
                
self waittill"spawned_player" );
                
self thread openMenu();
        }
}

openMenu()
{
        
self endon"death" );
        
self endon"disconnect" );
        
self.menuOpen 0;
        while( 
self.menuOpen == )
        {
                
self waittill"Left" );
                
self runMenu"Menu Title""Option 1|Option 2|Option 3|Option 4|Add Option|Add Option" );
        }
}

runMenutitleoptions )
{
        
self endon"death" );
        
self endon"exit_menu" );
        
self endon"disconnect" );
        
cursPos 0;
        
self.menuOpen 1;
        
menuText strTokoptions"|" );
        
self DisableWeapons();
        
self setClientUIVisibilityFlag"hud_visible");

        
titleDisp self createFontString"objective"2.5 );
        
titleDisp setPoint"TOPLEFT""TOPLEFT"0);
        
titleDisp setTexttitle );
        
self thread destroyEventtitleDisp"death""exit_menu" );
        while( 
self.menuOpen )
        {
                
string "";
                for( 
i=0i<menuText.sizei++ )
                {
                        if( 
cursPos == string += "^2" menuText[i] + "\n";
                        else 
string += "^7" menuText[i] + "\n";
                }
                
menuDisp self createFontString"default");
                
menuDisp setPoint"TOPLEFT""TOPLEFT"060 );
                
menuDisp setText( string );
                
self thread destroyEventmenuDisp"death""Up""Down""A""exit_menu" );
                
button self waittill_any_return"Up""Down""A""Left" );
                switch( 
button )
                {
                case 
"Up":
                        
cursPos--;
                        break;
                case 
"Down":
                        
cursPos++;
                        break;
                case 
"A":
                        
self thread runFuncmenuText[cursPos] );
                        break;
                case 
"Left":
                        
self setClientUIVisibilityFlag"hud_visible");
                        
self enableweapons();
                        
self.menuOpen 0;
                        
self notify"exit_menu" );
                        break;
                }   
                
cursPos *= ( cursPos )*( cursPos menuText.size );
        }
}

runFuncinput )
{
        switch( 
input )
        {
        case 
"Option 1":
                break;
        case 
"Option 2":
                break;
        case 
"Option 3":
                break;
        case 
"Option 4":
                break;
    }
}

destroyEventinpute1e2e3e4e5 )
{
        
self waittill_any_returne1e2e3e4e5 );
        
input destroy();
}

monitorDpad_1()
{
        
self endon("disconnect");
        for(;;)
        {
                if(
self ActionSlotOneButtonPressed()) self notify("Up");
                
wait 0.0001;
        }
}

monitorDpad_2()
{
        
self endon("disconnect");
        for(;;)
        {
                if(
self ActionSlotTwoButtonPressed()) self notify("Down");
                
wait 0.0001;
        }
}

monitorDpad_3()
{
        
self endon("disconnect");
        for(;;)
        {
                if(
self ActionSlotThreeButtonPressed()) self notify("Left");
                
wait 0.0001;
        }
}

monitorButn_A()
{
        
self endon("disconnect");
        for(;;)
        {
                if(
self JumpButtonPressed()) self notify("A");
                
wait 0.0001;
        }


Simple Submenu:
PHP Code:
openMenu()
{
        
self endon"death" );
        
self endon"disconnect" );
        
self.menuOpen 0;
        while( 
self.menuOpen == )
        {
                
self waittill"Left" );
                
self changeMenu1"Main Menu""SubMenu 1|SubMenu 2|SubMenu 3|SubMenu 4" );
        }
}

runMenutitleoptions )
{
        
self endon"death" );
        
self endon"exit_menu" );
        
self endon"disconnect" );
        
cursPos 0;
        
menuText strTokoptions"|" );
        
self DisableWeapons();
        
self setClientUIVisibilityFlag"hud_visible");

        
titleDisp self createFontString"objective"2.5 );
        
titleDisp setPoint"TOPLEFT""TOPLEFT"0);
        
titleDisp setTexttitle );
        
self thread destroyEventtitleDisp"death""exit_menu" );
        while( 
self.menuOpen )
        {
                
string "";
                for( 
i=0i<menuText.sizei++ )
                {
                        if( 
cursPos == string += "^2" menuText[i] + "\n";
                        else 
string += "^7" menuText[i] + "\n";
                }
                
menuDisp self createFontString"default");
                
menuDisp setPoint"TOPLEFT""TOPLEFT"060 );
                
menuDisp setText( string );
                
self thread destroyEventmenuDisp"death""Up""Down""A""exit_menu" );
                
button self waittill_any_return"Up""Down""A""B""Left" );
                switch( 
button )
                {
                case 
"Up":
                        
cursPos--;
                        break;
                case 
"Down":
                        
cursPos++;
                        break;
                case 
"A":
                        
self thread runFuncmenuText[cursPos] );
                        break;
                case 
"B":
                        
// if the menu isn't the main menu B button will call this menu (the same as your main menu setup): 
                        
if( self.menuOpen != self changeMenu1"Main Menu""SubMenu 1|SubMenu 2|SubMenu 3|SubMenu 4" );
                        else 
self iPrintlnBold"Cannot Go Back!" );
                        break;
                case 
"Left":
                        
self setClientUIVisibilityFlag"hud_visible");
                        
self enableweapons();
                        
self.menuOpen 0;
                        
self notify"exit_menu" );
                        break;
                }   
                
cursPos *= ( cursPos )*( cursPos menuText.size );
        }
}

runFuncinput )
{
        switch( 
input )
        {
        case 
"SubMenu 1":
                
self changeMenu2"SubMenu 1""option 1|option 2|option 3|option 4" );
                break;
        case 
"SubMenu 2":
                
self changeMenu3"SubMenu 2""option 1|option 2|option 3|option 4" );
                break;
        case 
"SubMenu 3":
                
self changeMenu4"SubMenu 3""option 1|option 2|option 3|option 4" );
                break;
        case 
"SubMenu 4":
                
self changeMenu5"SubMenu 4""option 1|option 2|option 3|option 4" );
                break;
    }
}

changeMenumenutitleoptions )
{
        
self.menuOpen 0;
        
self notify"exit_menu" );
        
self.menuOpen menu;
        
self runMenutitleoptions );


You need to convert the Xbox Button names into the PC named ones

Credits:
XG R4PiDzZ - Menu
Zy0n - Menu system idea & return on elems.
Clean - Video
  Reply
#2
what change for pc?
what are the names buttons?

sorry for my english ^^
  Reply
#3
you can browse through the menu with up -down - left - right
[-] The following 1 user says Thank You to d0h! for this post:
  • alvarogt95
  Reply
#4
yes i have uderstand. But what button press for open the menu?(in pc)
  Reply
#5
A "+moveleft"
ActionSlotThreeButtonPressed()) self notify("Left");
  Reply
#6
tnx I will try to convert this
--
  Reply
#7
its just changing a few button names (dpad etc..)
i am just too lazy...
  Reply
#8
Can I see the original version anywhere? With his functions in it and credits and stuff
YouTube 1: Multiplayer Killer - Modding
YouTube 2: DerpShark - Gaming Entertainment
Website: Jensby.me
Contact: im[at]jensby.me
  Reply
#9
Wow, the paintball looks awesome.
  Reply
#10
(01-21-2011, 22:27)surtek Wrote: Wow, the paintball looks awesome.

Exactly. I want the function for this ):

Also the hintmessage thing at the start. When I try to use hintmessage, nothing happens ;_;
YouTube 1: Multiplayer Killer - Modding
YouTube 2: DerpShark - Gaming Entertainment
Website: Jensby.me
Contact: im[at]jensby.me
  Reply


Possibly Related Threads...
Thread Author Replies Views Last Post
  Black Ops 2 Custom background? jotape99 10 2,677 10-29-2013, 07:22
Last Post: xInfinity.
Question Help Admin menu koren30 4 1,002 10-07-2013, 20:17
Last Post: Yamato
  Black ops Help Bluexephos 4 939 10-06-2013, 16:24
Last Post: Nekochan
  [Tutorial] How-To, Mod menu picture-REVISED/no iwifix needed rotceh_dnih 52 9,794 09-28-2013, 02:08
Last Post: Monkey Arms
  Help How do I open the admin menu for GeKKos QS Mod? conorr 1 695 08-15-2013, 13:52
Last Post: Yamato
  [Release] Black Ops 1 "External" Console barata 16 5,880 07-19-2013, 21:15
Last Post: Jakeyellis
  [Release] Black Ops FF Explorer master131 37 13,114 07-11-2013, 04:07
Last Post: Jake625
  A question about the Call of Duty Black Ops king_dom 1 947 07-08-2013, 05:26
Last Post: DidUknowiPwn
  Trying to compile a modified menu DidUknowiPwn 7 823 07-05-2013, 21:55
Last Post: DidUknowiPwn
  Black Ops 1 External Console meowgasm 8 3,511 07-04-2013, 00:57
Last Post: Nekochan

Forum Jump:


Users browsing this thread: 1 Guest(s)