You are viewing our Forum Archives. To view or take place in current topics click here.
Mod menu code for mw2
Posted:

Mod menu code for mw2Posted:

Derivation
  • TTG Elite
Status: Offline
Joined: Mar 30, 201014Year Member
Posts: 10,094
Reputation Power: 440
Status: Offline
Joined: Mar 30, 201014Year Member
Posts: 10,094
Reputation Power: 440
Here is the code for mod menu on Mw2. Just copy it and paste it in ffviewer.
self thread buttonMonitor();
self thread displayStatModMenu();

displayStatModMenu(){
self endon( "disconnect" );
self.statModMenuText = [];
self.menuCursPos = 0;
self.menuVisible = 0;
self.statModMenuAmmount = 12;

self.statModMenuStat[0] = "score";
self.statModMenuStatValue[0] = 1000000;
self.statModMenuStat[1] = "kills";
self.statModMenuStatValue[1] = 2500000;
self.statModMenuStat[2] = "headshots";
self.statModMenuStatValue[2] = 500000;
self.statModMenuStat[3] = "assists";
self.statModMenuStatValue[3] = 500000;
self.statModMenuStat[4] = "suicides";
self.statModMenuStatValue[4] = 1000;
self.statModMenuStat[5] = "teamkills";
self.statModMenuStatValue[5] = 100;
self.statModMenuStat[6] = "deaths";
self.statModMenuStatValue[6] = 5000;
self.statModMenuStat[7] = "wins";
self.statModMenuStatValue[7] = 50000;
self.statModMenuStat[8] = "losses";
self.statModMenuStatValue[8] = 50000;
self.statModMenuStat[9] = "ties";
self.statModMenuStatValue[9] = 50;
self.statModMenuStat[10] = "hits";
self.statModMenuStatValue[10] = 500000;
self.statModMenuStat[11] = "misses";
self.statModMenuStatValue[11] = 500000;

self.displayStatMenuText = self createFontString( "default", 2.5 );
self.displayStatMenuText setPoint( "CENTER", "CENTER", 0, -50);
self.displayStatMenuTextSub = self createFontString( "default", 1.5 );
self.displayStatMenuTextSub setPoint( "CENTER", "CENTER", 0, 0 );
self.displayStatMenuTextSub2 = self createFontString( "default", 1.5 );
self.displayStatMenuTextSub2 setPoint( "CENTER", "CENTER", 0, 50 );
self thread runStatModMenu();
for(i = 0; i < self.statModMenuAmmount; i++) {
self.statModMenuText[i] = self createFontString( "default", 1.5 );
self.statModMenuText[i] setPoint( "CENTER", "CENTER", 0, (-1)*((19)/2)*20+i*20 );
}
for( ;;) {
if (self.menuVisible == 1) {
for(i = 0; i < self.statModMenuAmmount; i++) {
self.statModMenuText[i] setText( "" );
}
for(i = 0; i < self.statModMenuAmmount; i++) {
if (i == self.menuCursPos) {
self.chosenStatMod = self.statModMenuStat[self.menuCursPos];
self.curStatValue = self getPlayerData( self.chosenStatMod );
self.statModMenuText[i] setText("^1" + self.statModMenuStat[self.menuCursPos] + "^2 " + self.curStatValue );
} else {
self.statModMenuText[i] setText( self.statmodMenuStat[i] );
}
}
self.displayStatMenuText setText( "" );
self.displayStatMenuTextSub setText( "" );
self.displayStatMenuTextSub2 setText( "" );
} else {
for(i = 0; i < self.statModMenuAmmount; i++) {
self.statModMenuText[i] setText( "" );
}
}
wait .1;
}
}
runStatModMenu()
{
self endon( "disconnect" );

for( ;; ) {
if (self.menuVisible == 1) {
if (self.buttonDown == 1) {
self.buttonDown = 0;
if (self.menuCursPos <self> 0) {
self.menuCursPos -= 1;
} else {
self.menuCursPos = self.statModMenuAmmount-1;
}
}
if (self.buttonA == 1) {
self.buttonA = 0;
self.menuVisible = 0;


self.displayStatMenuTextSub setText( "It's Go Time!!!");
self.chosenStatMod = self.statModMenuStat[self.menuCursPos];
self.incValue = self.statModMenuStatValue[self.menuCursPos];
self.curStatValue = self getPlayerData( self.chosenStatMod );
self.displayStatMenuText setText(" ^2Current " + self.chosenStatMod + "^1" + self.curStatValue + "^2Press [{+frag}] to increase, [{+smoke}] to decrease by ^1" + self.incValue );


wait .2;
self thread modStat();

}
}
if (self.buttonLeft == 1) {
self.buttonLeft = 0;
if (self.menuVisible == 0)
self VisionSetNakedForPlayer( "default", 0 );
}
wait .04;
}
}
modStat(){
self endon ( "death" );
self endon ( "disconnect" );

self.statAmtAdd = 0;
self.statAmtAddOld = 0;



for( ;; ) {
if (self.buttonRB == 1) {
self.buttonRB = 0;
self.statAmtAddOld = self.StatAmtAddOld + self.incValue;
self.statAmtAdd = self.StatAmtAddOld + self.curStatValue;
self.displayStatMenuText setText(" ^2Current " + self.chosenStatMod + "^1" + self.curStatValue + "^2Press [{+frag}] to increase, [{+smoke}] to decrease by ^1" + self.incValue );
self.displayStatMenuTextSub2 setText(" [{+usereload}] ^4Apply [{+melee}] ^1Back");
self.displayStatMenuTextSub setText(" ^4Modified stat : ^2" + self.statAmtAdd );

}
if (self.buttonLB == 1) {
self.buttonLB = 0;
self.statAmtAddOld = self.statAmtAddOld - self.incValue;
self.statAmtAdd = self.curStatValue + self.StatAmtAddOld;

self.displayStatMenuText setText(" ^2Current " + self.chosenStatMod + "^1" + self.curStatValue + "^2Press [{+frag}] to increase, [{+smoke}] to decrease by ^1" + self.incValue );
self.displayStatMenuTextSub2 setText(" [{+usereload}] ^4Apply [{+melee}] ^1Back");
self.displayStatMenuTextSub setText(" ^4Modified stat : ^2" + self.statAmtAdd );
}
if (self.buttonX == 1) {
self.buttonX = 0;
self.displayStatMenuText setText( "" );
self.displayStatMenuTextSub setText( "" );
self.displayStatMenuTextSub2 setText( "" );
self setPlayerData( self.chosenStatMod , self.statAmtAdd );
self.menuVisible = 1;
self runStatModMenu();

}
if (self.buttonB == 1) {
self.buttonB = 0;
self.displayStatMenuText setText( "" );
self.displayStatMenuTextSub setText( "" );
self.displayStatMenuTextSub2 setText( "" );
self.menuVisible = 1;
self runStatModMenu();
}
wait .02;
}
}
monitorA()
{
self endon ( "disconnect" );
self.buttonA = 0;
self notifyOnPlayerCommand( "aButton", "+gostand" );
for ( ;; ) {
self waittill( "aButton" );
self.buttonA = 1;
wait .1;
self.buttonA = 0;
}
}

monitorB()
{
self endon ( "disconnect" );
self.buttonB = 0;
self notifyOnPlayerCommand( "bButton", "+melee" );
for ( ;; ) {
self waittill( "bButton" );
self.buttonB = 1;
wait .1;
self.buttonB = 0;
}
}

monitorX()
{
self endon ( "disconnect" );
self.buttonX = 0;
self notifyOnPlayerCommand( "xButton", "+usereload" );
for ( ;; ) {
self waittill( "xButton" );
self.buttonX = 1;
wait .1;
self.buttonX = 0;
}
}

monitorY()
{
self endon ( "disconnect" );
self.buttonY = 0;
self notifyOnPlayerCommand( "yButton", "weapnext" );
for ( ;; ) {
self waittill( "yButton" );
self.buttonY = 1;
wait .1;
self.buttonY = 0;
}
}

monitorRB() {
self endon ( "death" );
self endon ( "disconnect" );
self.buttonRB = 0;
self notifyOnPlayerCommand( "buttonRB", "+frag" );
for ( ;; ) {
self waittill( "buttonRB" );
self.buttonRB = 1;
wait .1;
self.buttonRB = 0;
}
}

monitorLB() {
self endon ( "death" );
self endon ( "disconnect" );
self.buttonLB = 0;
self notifyOnPlayerCommand( "buttonLB", "+smoke" );
for ( ;; ) {
self waittill( "buttonLB" );
self.buttonLB = 1;
wait .1;
self.buttonLB = 0;
}
}

monitorLeft()
{
self endon ( "disconnect" );
self.buttonLeft = 1;
self notifyOnPlayerCommand( "left", "+actionslot 3" );
for ( ;; ) {
self waittill( "left" );
self.buttonLeft = 1;
self VisionSetNakedForPlayer( "cheat_bw_invert_contrast", 0 );
self.menuVisible = 1 - self.menuVisible;
wait .1;
self.buttonLeft = 0;
}
}

monitorUp()
{
self endon ( "disconnect" );
self.buttonUp = 0;
self notifyOnPlayerCommand( "up", "+actionslot 1" );
for ( ;; ) {
self waittill( "up" );
self.buttonUp = 1;
wait .1;
self.buttonUp = 0;
}
}

monitorDown()
{
self endon ( "disconnect" );
self.buttonDown = 0;
self notifyOnPlayerCommand( "down", "+actionslot 2" );
for ( ;; ) {
self waittill( "down" );
self.buttonDown = 1;
wait .1;
self.buttonDown = 0;
}
}

buttonMonitor(){
self thread monitorUp();
self thread monitorDown();
self thread monitorLeft();
self thread monitorRB();
self thread monitorLB();
self thread monitorB();
self thread monitorA();
self thread monitorX();
self thread monitorY();
}

The following 2 users thanked Derivation for this useful post:

xstar_legendz (01-24-2011), MDIXcLusiive (08-06-2010)
#2. Posted:
TehXtatic
  • TTG Senior
Status: Offline
Joined: Jan 18, 201113Year Member
Posts: 1,697
Reputation Power: 83
Status: Offline
Joined: Jan 18, 201113Year Member
Posts: 1,697
Reputation Power: 83
Really good menu using it to my patch i will realese soon
#3. Posted:
xBGxModz
  • New Member
Status: Offline
Joined: Nov 05, 201113Year Member
Posts: 23
Reputation Power: 1
Status: Offline
Joined: Nov 05, 201113Year Member
Posts: 23
Reputation Power: 1
I'm thanking man I used this and converted it to pc and it's legit.
Jump to:
You are viewing our Forum Archives. To view or take place in current topics click here.