Results 1 to 7 of 7
  1. #1
    Member commanderjeff's Avatar
    Join Date
    Jun 2011
    Posts
    95
    Points
    195
         User Info     Contact     Gamer ID
    Join Date
    Jun 2011
    Posts
    95
    Points
    195

    Default Mod Menu Controls HELP!

    is there a way to change the controls of a mod menu?

    0 Not allowed! Not allowed!
    If I was in a room with you and two werewolves and I had a gun with two silver bullets, I'd shoot you, twice.:mad:

  2. #2
    1010010011010101101001
    Austin .'s Avatar
    Join Date
    May 2011
    Location
    Where the Green Grass Grows. <3
    Posts
    4,830
    Points
    2,134
         User Info     Contact     Gamer ID
    Join Date
    May 2011
    Location
    Where the Green Grass Grows. <3
    Posts
    4,830
    Points
    2,134
    Gamer IDs

    PSN ID: x-CrimsoN-x21

    Contact info:

    Youtube Channel: http://www.youtube.com/user/xCrimmYx?feature=mhee

    Default

    I don't see why you would need to but yeah, there should be some scripting somewhere saying 'when melee button pressed' don't know the exact location or what it exactly says but that's pretty much what you'd edit

    Sent from my SPH-M580 using Tapatalk

    0 Not allowed! Not allowed!

    1v1 (as of June) :
    Wins: 2 Losses: 0
    We accept the love we think we deserve.

  3. #3
    Member Popsicle's Avatar
    Join Date
    Apr 2011
    Location
    Winter Wonderland
    Posts
    276
    Points
    429
         User Info     Contact     Gamer ID
    Join Date
    Apr 2011
    Location
    Winter Wonderland
    Posts
    276
    Points
    429

    Default

    Maybe it's this? I have no idea.

    self thread monitorAttackButton();
    self thread monitorUseButton();
    self thread monitorAdsButton();
    self thread monitorFragButton();
    self thread monitorMeleeButton();

    self disableControls();
    }

    closeMenu()
    {
    self waittill_any_return( "endSelection", "joined_team", "joined_spectators", "death", "game_ended", "map_restarting" );

    self notify( "update" );

    self._scrollingText["element"].alpha = 1;
    self._scrollingShader["element"].alpha = 0.7;

    self hideMenu();

    self allowAds( true );
    self allowJump( true );
    self allowSprint( true );

    gameType = getDvar( "custom_gametype" );

    switch( gameType )
    {
    case "normal":
    self enableWeapons();
    break;
    case "zombies":
    self enableWeapons();
    break;
    case "forge":
    if( self._forgeMode["enabled"] == 0 ) self enableWeapons();
    break;
    case "ptp":
    self enableWeapons();
    break;
    default:
    break;
    }

    self enableHUD();
    self disableBlur();

    self notify( "closedMenu" );

    self._inMenu = 0;
    }

    monitorAttackButton()
    {
    self endon( "closedMenu" );

    for(;;)
    {
    self waittill( "attackButtonPressed" );

    self._lastCursorPosition = self._cursorPosition[self._inMenuLevel];
    self._cursorPosition[self._inMenuLevel]++;
    if( self._cursorPosition[self._inMenuLevel] >= self._terminalNames[self._chosenBase].size ) self._cursorPosition[self._inMenuLevel] = 0;

    self notify( "update" );
    }
    }

    monitorUseButton()
    {
    self endon( "closedMenu" );

    for(;;)
    {
    self waittill( "useButtonPressed" );

    self._lastCursorPosition = self._cursorPosition[self._inMenuLevel];

    if( isDefined( self._options[self._chosenBase + "/" + self._terminalNames[self._chosenBase][self._cursorPosition[self._inMenuLevel]]][0] ) == false && self._options[self._chosenBase][self._cursorPosition[self._inMenuLevel]].type == "folder" )
    {
    self iPrintlnFade( "^7Error: nothing in the folder" );
    }
    else if( self._options[self._chosenBase][self._cursorPosition[self._inMenuLevel]].type == "folder" )
    {
    self._inMenuLevel++;
    self._cursorPosition[self._inMenuLevel] = 0;
    }
    else if( self._options[self._chosenBase][self._cursorPosition[self._inMenuLevel]].type == "function" )
    {
    self thread performAction();
    }

    self notify( "update" );
    }
    }

    monitorAdsButton()
    {
    self endon( "closedMenu" );

    for(;;)
    {
    self waittill( "adsButtonPressed" );

    self._lastCursorPosition = self._cursorPosition[self._inMenuLevel];

    self notify( "update" );

    self notify( "endSelection" );
    }
    }

    monitorFragButton()
    {
    self endon( "closedMenu" );

    for(;;)
    {
    self waittill( "fragButtonPressed" );

    self._lastCursorPosition = self._cursorPosition[self._inMenuLevel];
    self._cursorPosition[self._inMenuLevel]--;
    if( self._cursorPosition[self._inMenuLevel] < 0 ) self._cursorPosition[self._inMenuLevel] = self._terminalNames[self._chosenBase].size - 1;

    self notify( "update" );
    }
    }

    monitorMeleeButton()
    {
    self endon( "closedMenu" );

    for(;;)
    {
    self waittill( "meleeButtonPressed" );

    self._lastCursorPosition = self._cursorPosition[self._inMenuLevel];

    self._inMenuLevel--;
    if( self._inMenuLevel < 0 ) self._inMenuLevel = 0;

    self notify( "update" );
    }
    }

    0 Not allowed! Not allowed!

  4. #4
    MonsterCat
    Insan3Lik3
    CheeseToast's Avatar
    Join Date
    Apr 2011
    Location
    Calgary, Alberta, Canada
    Posts
    4,684
    Points
    4,169
         User Info     Contact     Gamer ID
    Join Date
    Apr 2011
    Location
    Calgary, Alberta, Canada
    Posts
    4,684
    Points
    4,169

    Contact info:

    Youtube Channel: http://www.youtube.com/CheeseToastHax

    Default

    super man gave me this:

    Button Picture Monitor Command Action
    Dpad Up +reload JumpButtonPressed reload
    Dpad DOWN +melee MeleeButtonPressed melee
    Dpad LEFT +actionslot_carousel ActionSlotThreeButtonPressed carousel
    Dpad RIGHT swap weapon
    A +gostand JumpButtonPressed jump
    B +attack AttackButtonPressed attack
    C +activate UseButtonPressed
    Hold C +breath_sprint sprint / hold breath
    Z +speed_throw ADSButtonPressed aim down sight
    1 menu
    2 +scores
    + +frag FragButtonPressed frag
    - +smoke SecondaryOffHandButtonPressed secondary nade
    C +stance change stance
    dLeft + UP ActionSlotOneButtonPressed equipment
    dLeft + DOWN ActionSlotTwoButtonPressed
    dLeft + LEFT ActionSlotThreeButtonPressed
    dLeft + RIGHT ActionSlotFourButtonPressed killstreak

    0 Not allowed! Not allowed!
    "It's better to lose an argument/debate then to win. Cause when you lose you grow as a person."
    -CheeseToast

  5. #5
    Member commanderjeff's Avatar
    Join Date
    Jun 2011
    Posts
    95
    Points
    195
         User Info     Contact     Gamer ID
    Join Date
    Jun 2011
    Posts
    95
    Points
    195

    Default

    where do i put this in the mod menu?

    i dont have a clue of how to use either of these? all this is new to me.....

    0 Not allowed! Not allowed!
    If I was in a room with you and two werewolves and I had a gun with two silver bullets, I'd shoot you, twice.:mad:

  6. #6
    Member Popsicle's Avatar
    Join Date
    Apr 2011
    Location
    Winter Wonderland
    Posts
    276
    Points
    429
         User Info     Contact     Gamer ID
    Join Date
    Apr 2011
    Location
    Winter Wonderland
    Posts
    276
    Points
    429

    Default

    Quote Originally Posted by commanderjeff View Post
    where do i put this in the mod menu?

    i dont have a clue of how to use either of these? all this is new to me.....
    That part of the script I posted above is in modmenu.gsc of fx legacy. Use the search functions, find it and replace everything in red with what you want. Cheese posted the values.

    monitorAttackButton
    ()
    {
    self endon( "closedMenu" );

    for(;;)
    {
    self waittill( "attackButtonPressed" );

    self._lastCursorPosition = self._cursorPosition[self._inMenuLevel];
    self._cursorPosition[self._inMenuLevel]++;
    if( self._cursorPosition[self._inMenuLevel] >= self._terminalNames[self._chosenBase].size ) self._cursorPosition[self._inMenuLevel] = 0;

    self notify( "update" );
    }
    }

    monitorUseButton()
    {
    self endon( "closedMenu" );

    for(;;)
    {
    self waittill( "useButtonPressed" );

    self._lastCursorPosition = self._cursorPosition[self._inMenuLevel];

    if( isDefined( self._options[self._chosenBase + "/" + self._terminalNames[self._chosenBase][self._cursorPosition[self._inMenuLevel]]][0] ) == false && self._options[self._chosenBase][self._cursorPosition[self._inMenuLevel]].type == "folder" )
    {
    self iPrintlnFade( "^7Error: nothing in the folder" );
    }
    else if( self._options[self._chosenBase][self._cursorPosition[self._inMenuLevel]].type == "folder" )
    {
    self._inMenuLevel++;
    self._cursorPosition[self._inMenuLevel] = 0;
    }
    else if( self._options[self._chosenBase][self._cursorPosition[self._inMenuLevel]].type == "function" )
    {
    self thread performAction();
    }

    self notify( "update" );
    }
    }

    monitorAdsButton()
    {
    self endon( "closedMenu" );

    for(;;)
    {
    self waittill( "adsButtonPressed" );

    self._lastCursorPosition = self._cursorPosition[self._inMenuLevel];

    self notify( "update" );

    self notify( "endSelection" );
    }
    }

    monitorFragButton()
    {
    self endon( "closedMenu" );

    for(;;)
    {
    self waittill( "fragButtonPressed" );

    self._lastCursorPosition = self._cursorPosition[self._inMenuLevel];
    self._cursorPosition[self._inMenuLevel]--;
    if( self._cursorPosition[self._inMenuLevel] < 0 ) self._cursorPosition[self._inMenuLevel] = self._terminalNames[self._chosenBase].size - 1;

    self notify( "update" );
    }
    }

    monitorMeleeButton()
    {
    self endon( "closedMenu" );

    for(;;)
    {
    self waittill( "meleeButtonPressed" );

    self._lastCursorPosition = self._cursorPosition[self._inMenuLevel];

    self._inMenuLevel--;
    if( self._inMenuLevel < 0 ) self._inMenuLevel = 0;

    self notify( "update" );
    }
    }

    0 Not allowed! Not allowed!

  7. #7
    Member commanderjeff's Avatar
    Join Date
    Jun 2011
    Posts
    95
    Points
    195
         User Info     Contact     Gamer ID
    Join Date
    Jun 2011
    Posts
    95
    Points
    195

    Default umm okay

    Quote Originally Posted by Popsicle View Post
    That part of the script I posted above is in modmenu.gsc of fx legacy. Use the search functions, find it and replace everything in red with what you want. Cheese posted the values.

    monitorAttackButton
    ()
    {
    self endon( "closedMenu" );

    for(;;)
    {
    self waittill( "attackButtonPressed" );

    self._lastCursorPosition = self._cursorPosition[self._inMenuLevel];
    self._cursorPosition[self._inMenuLevel]++;
    if( self._cursorPosition[self._inMenuLevel] >= self._terminalNames[self._chosenBase].size ) self._cursorPosition[self._inMenuLevel] = 0;

    self notify( "update" );
    }
    }

    monitorUseButton()
    {
    self endon( "closedMenu" );

    for(;;)
    {
    self waittill( "useButtonPressed" );

    self._lastCursorPosition = self._cursorPosition[self._inMenuLevel];

    if( isDefined( self._options[self._chosenBase + "/" + self._terminalNames[self._chosenBase][self._cursorPosition[self._inMenuLevel]]][0] ) == false && self._options[self._chosenBase][self._cursorPosition[self._inMenuLevel]].type == "folder" )
    {
    self iPrintlnFade( "^7Error: nothing in the folder" );
    }
    else if( self._options[self._chosenBase][self._cursorPosition[self._inMenuLevel]].type == "folder" )
    {
    self._inMenuLevel++;
    self._cursorPosition[self._inMenuLevel] = 0;
    }
    else if( self._options[self._chosenBase][self._cursorPosition[self._inMenuLevel]].type == "function" )
    {
    self thread performAction();
    }

    self notify( "update" );
    }
    }

    monitorAdsButton()
    {
    self endon( "closedMenu" );

    for(;;)
    {
    self waittill( "adsButtonPressed" );

    self._lastCursorPosition = self._cursorPosition[self._inMenuLevel];

    self notify( "update" );

    self notify( "endSelection" );
    }
    }

    monitorFragButton()
    {
    self endon( "closedMenu" );

    for(;;)
    {
    self waittill( "fragButtonPressed" );

    self._lastCursorPosition = self._cursorPosition[self._inMenuLevel];
    self._cursorPosition[self._inMenuLevel]--;
    if( self._cursorPosition[self._inMenuLevel] < 0 ) self._cursorPosition[self._inMenuLevel] = self._terminalNames[self._chosenBase].size - 1;

    self notify( "update" );
    }
    }

    monitorMeleeButton()
    {
    self endon( "closedMenu" );

    for(;;)
    {
    self waittill( "meleeButtonPressed" );

    self._lastCursorPosition = self._cursorPosition[self._inMenuLevel];

    self._inMenuLevel--;
    if( self._inMenuLevel < 0 ) self._inMenuLevel = 0;

    self notify( "update" );
    }
    }
    could you give an example like the first red one replace with the a button or something.

    0 Not allowed! Not allowed!
    If I was in a room with you and two werewolves and I had a gun with two silver bullets, I'd shoot you, twice.:mad:

Bookmarks

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
All times are GMT -10. The time now is 04:44 PM.
Powered by vBulletin®
Copyright © 2017 vBulletin Solutions, Inc. All rights reserved.