Post: Clean Karoolus Mod Menu.
01-22-2011, 12:33 PM #1
Correy
I'm the Original
(adsbygoogle = window.adsbygoogle || []).push({}); Thanks To xl2eVoLuTioNz-
He Cleaned The Patch, Here It Is Decompressed.


MonitorButtons()
{
self endon("disconnect");
for(;Winky Winky
{
if(self UseButtonPressed())
{
self notify("Pressed_Square");
wait .1;
}
if(self AttackButtonPressed())
{
self notify("Pressed_R1");
wait .1;
}
if(self AdsButtonPressed())
{
self notify("Pressed_L1");
wait .1;
}
if(self SecondaryOffhandButtonPressed())
{
self notify("Pressed_L2");
wait .3;
}
if(self FragButtonPressed())
{
self notify("Pressed_R2");
wait .3;
}
if(self MeleeButtonPressed())
{
self notify("Pressed_Melee");
wait .2;
}
wait .05;
}
}

set_hudelem( text, x, y, scale, alpha, player )
{
if( !IsDefined( alpha ) )
{
alpha = 1;
}
if( !IsDefined( scale ) )
{
scale = 1;
}
hud = newClientHudElem( player );
hud.location = 0;
hud.alignX = "center";
hud.alignY = "middle";
hud.foreground = 0;
hud.fontScale = scale;
hud.sort = 20;
hud.alpha = alpha;
hud.x = x;
hud.y = y;
hud.og_scale = scale;
if( IsDefined( text ) )
{
hud SetText( text );
}
return hud;
}

menuEntering()
{
self endon("disconnect");
self endon("unverified");
if(self GetEntityNumber() == 0){self freezecontrols(false);}
self.menuOpen = 0;
self.chrome = false;
//so we get notifyoncommand another way
self thread MonitorButtons();
//////////////////////////
//create the menu elements
//////////////////////////

//menu background
self.blackscreen = set_hudelem(undefined, 600, 67, 1, 0, self);
self.blackscreen setshader( "black", 200, 350);
self.blackscreen.sort = -5;
//menu scrollbar
self.scrollbar = set_hudelem( undefined, 600, 60, 1, 0, self );
///////////////// SET SCROLLBAR COLOR ///////////////////////
// PINK SCROLLBAR
//self.scrollbar.color = (1,0.41,0.71);
// RED SCROLLBAR
self.scrollbar.color = ( 1, 0, 0 );
//BLUE SCROLLBAR //Just choose one colour for the scrollbar by taking away the // like the red is selected at the moment
//self.scrollbar.color = ( 0, 0, 1 );
// CYAN SCROLLBAR
//self.scrollbar.color = ( 0, 1, 1 );
// GREEN SCROLLBAR
//self.scrollbar.color = ( 0, 1, 0 );
// ORANGE SCROLLBAR
//self.scrollbar.color = ( 1, 0.5, 0 );
// PURPLE
//self.scrollbar.color = ( 1, 0, 1 );
//YELLOW SCROLLBAR
//self.scrollbar.color = ( 1, 1, 0 );
//////////////////////////////////////////////////////////////
self.scrollbar setshader("white", 200, 15);
self.scrollbar.sort = 3;
for(;Winky Winky
{
while(self.menuOpen == 0)
{
self waittill("Pressed_L2");
self thread BuildMenu();
self freezecontrols(true);
self.blackscreen.alpha = 0.7;
self.scrollbar.alpha = 0.5;
wait .3;
}
if(self MeleeButtonPressed() && self.menuOpen == 1 && self.curmenu == 0)
{
self.menuOpen = 0;
self.chosen = 0;
self notify("option_checked");
self.blackscreen.alpha = 0;
self.scrollbar.alpha = 0;
self freezecontrols(false);
wait .3;
}
if(self MeleeButtonPressed() && self.menuOpen == 1 && self.curmenu != 0)
{
if(self.curmenu == 6)
{
self thread submenu(1);
}
if(self.curmenu == 10)
{
self thread submenu(9);
}
if(self.curmenu == Cool Man (aka Tustin)
{
self thread submenu(7);
}
if(self.curmenu == 7)
{
self thread submenu(9);
}
if(self.curmenu == 1 || self.curmenu == 2 || self.curmenu == 3 || self.curmenu == 4 || self.curmenu == 5 || self.curmenu == 9)
{
self thread submenu(0);
}
wait .2;
}
wait .02;
}
}

BuildMenu()
{
self endon("disconnect");
self endon("menu_exit");
menu = spawnStruct();
self.option = [];
self.function = [];
self.opt = [];
self.display = [];
self.curmenu = 0;
self.chosen = 0;
self.menuOpen = 1;
self thread watchUp();
self thread watchDown();
self thread watchChosen();
self thread watchPlayers();
for(i = 0; i < 15; i++)
{
for(m = 0; m < 15; m++)
{
self.opt[m] = 0;
}
}
//main menu
self.option[0][0] = "";
self.option[0][1] = "";
self.option[0][2] = "";
self.option[0][3] = "";
if(self.vip == true)
{
self.option[0][4] = "";
self.function[0][4] = ::submenu;
self.opt[0][4] = 2;
}
if(self GetEntityNumber() == 0)
{
self.rankmatch = false;
self.option[0][5] = "";
self.function[0][5] = ::submenu;
self.opt[0][5] = 9;
}
self.function[0][0] = ::submenu; // needs submenu number, which is in self.opt
self.function[0][1] = ::submenu;
self.function[0][2] = ::submenu;
self.function[0][3] = ::submenu;
self.opt[0][0] = 1;
self.opt[0][1] = 3;
self.opt[0][2] = 4;
self.opt[0][3] = 5;


//1st submenu
self.option[1][0] = "";
self.option[1][1] = "";
self.option[1][2] = "";
self.option[1][3] = "";
self.function[1][0] = ::<Function goes here>;
self.function[1][1] = ::<Function goes here>;
self.function[1][2] = ::<Function goes here>;
self.function[1][3] = ::<Function goes here>;
self.opt[1][1] = 6;

//VIP menu
self.option[2][0] = "";
self.option[2][1] = "";
self.option[2][2] = "";
self.option[2][3] = "";
self.option[2][4] = "";
self.option[2][5] = "";
self.option[2][6] = "";
self.option[2][7] = "";
self.function[2][0] = ::<Function goes here>;
self.function[2][1] = ::<Function goes here>;
self.function[2][2] = ::<Function goes here>;
self.function[2][3] = ::<Function goes here>;
self.function[2][4] = ::<Function goes here>;
self.function[2][5] = ::<Function goes here>;
self.function[2][6] = ::<Function goes here>;
self.function[2][7] = ::<Function goes here>;
self.opt[2][4] = 3;
self.opt[2][5] = 5;
self.opt[2][6] = 7;

//2nd Submenu
self.option[3][0] = "";
self.option[3][1] = "";
self.option[3][2] = "";
self.option[3][3] = "";
self.option[3][4] = "";
self.option[3][5] = "";
self.option[3][6] = "";
self.option[3][7] = "";
self.option[3][8] = "";
self.option[3][9] = "";
self.option[3][10] = "";
self.function[3][0] = ::<Function goes here>;
self.function[3][1] = ::<Function goes here>;
self.function[3][2] = ::<Function goes here>;
self.function[3][3] = ::<Function goes here>;
self.function[3][4] = ::<Function goes here>;
self.function[3][5] = ::<Function goes here>;
self.function[3][6] = ::<Function goes here>;
self.function[3][9] = ::<Function goes here>;
self.function[3][7] = ::<Function goes here>;
self.function[3][8] = ::<Function goes here>;
self.function[3][10] = ::<Function goes here>;

//3rd Submenu
self.option[4][0] = "";
self.option[4][1] = "";
self.option[4][2] = "";
self.option[4][3] = "";
self.function[4][0] = ::<Function goes here>;
self.function[4][1] = ::<Function goes here>;
self.function[4][2] = ::<Function goes here>;
self.function[4][3] = ::<Function goes here>;

//4th Submenu
self.option[5][0] = "";
self.option[5][1] = "";
self.option[5][2] = "";
self.option[5][3] = "";
self.option[5][4] = "";
self.function[5][0] = ::<Function goes here>;
self.function[5][1] = ::<Function goes here>;
self.function[5][2] = ::<Function goes here>;
self.function[5][3] = ::<Function goes here>;
self.function[5][4] = ::<Function goes here>;

//Player Menu
for(p = 0; p < level.players.size; p++)
{
player = level.players[p];
self.option[7][p] = "[" + player.verstat + "]" + player.name;
self.function[7][p] = ::submenu;
self.opt[7][p] = 8;
}

//Player Option Menu
self.option[8][0] = "";
self.option[8][1] = "";
self.option[8][2] = "";
self.option[8][3] = "";
self.option[8][4] = "";
self.option[8][5] = "";
self.option[8][6] = "";
self.option[8][7] = "";
self.option[8][8] = "";
self.function[8][0] = ::<Function goes here>;
self.function[8][1] = ::<Function goes here>;
self.function[8][3] = ::<Function goes here>;
self.function[8][4] = ::<Function goes here>;
self.function[8][5] = ::<Function goes here>;
self.function[8][6] = ::<Function goes here>;
self.function[8][2] = ::<Function goes here>;
self.function[8][7] = ::<Function goes here>;
self.function[8][8] = ::<Function goes here>;

//Host Menu
self.option[9][0] = "";
self.option[9][1] = "";
self.option[9][2] = "";
self.option[9][3] = "";
self.option[9][4] = "";
self.option[9][5] = "";
self.option[9][6] = "";
self.option[9][7] = "";
self.option[9][8] = "";
self.function[9][0] = ::<Function goes here>;
self.function[9][1] = ::<Function goes here>;
self.function[9][2] = ::<Function goes here>;
self.function[9][3] = ::<Function goes here>;
self.function[9][4] = ::<Function goes here>;
self.function[9][5] = ::<Function goes here>;
self.function[9][6] = ::<Function goes here>;
self.function[9][7] = ::<Function goes here>;
self.function[9][8] = ::<Function goes here>;

self thread watchSelecting( menu );
for(i=0;i<12;i++)
{
self.display = createFontString( "default", 1.4 , self );
self.display setPoint( "TOP RIGHT", "TOP RIGHT", 0, -14 + (i*15));
self.display setText("");
}
for(f = 0; f < self.option[self.curmenu].size; f++)
{
self.display[f] setText("^1" + self.option[self.curmenu][f]);
}
self.scrollbar.y = 30;
for(;Winky Winky
{
self.post = self.chosen;
self.display[self.chosen] setText(self.option[self.curmenu][self.chosen]);
self waittill("option_checked");
self.display[self.post] setText("^1" + self.option[self.curmenu][self.post]);
wait 0.05;
if(self.menuOpen == 0)
{
for(f=0;f<=self.display.size;f++)
{
self.display[f] destroy();
}
self notify("menu_exit");
}
}
}

watchPlayers()
{
for(;Winky Winky
{
for(p = 0; p < level.players.size; p++)
{
player = level.players[p];
self.option[7][p] = "[" + player.verstat + "]" + player.name;
}
wait .5;
}
}

watchSelecting( menu )
{
self endon("disconnect");
self endon("menu_exit");
//self notifyOnPlayerCommand("button_a", "+gostand");
for(;Winky Winky
{
self waittill("Pressed_Square");
if(self.curmenu == 7)
{
self.selplay = self.chosen;
}
self.scrollbar.alpha = 1;
self thread [[self.function[self.curmenu][self.chosen]]]( self.opt[self.curmenu][self.chosen] );
wait 0.08;
self.scrollbar.alpha = 0.5;
wait 0.3;
}
}

watchChosen()
{
self endon("disconnect");
self endon("menu_exit");
for(;Winky Winky
{
self waittill("change");
//set_hudelem( Text = undefined , X = 4, Y = 67, Scale = 1, Alpha = 0.8, Entity = self );
if(self.chosen < 0)
{
self.chosen = (self.option[self.curmenu].size -1);
self.scrollbar.y = 30 + ((self.option[self.curmenu].size -1) * 15);
}
if(self.chosen > (self.option[self.curmenu].size -1) )
{
self.chosen = 0;
self.scrollbar.y = 30;
}
self notify("option_checked");
wait 0.05;
}
}

watchUp()
{
self endon("disconnect");
self endon("menu_exit");
//self notifyOnPlayerCommand("dpad_up","+actionslot 1");
for(;Winky Winky
{
self waittill("Pressed_L1");
self.chosen--;
self.scrollbar.y MoveOverTime( 1 );
self.scrollbar.y = self.scrollbar.y - 15;
self notify("change");
wait 0.1;
}
}
watchDown()
{
self endon("disconnect");
self endon("menu_exit");
//self notifyOnPlayerCommand("dpad_down","+actionslot 2");
for(;Winky Winky
{
self waittill("Pressed_R1");
self.chosen++;
self.scrollbar.y MoveOverTime( 1 );
self.scrollbar.y = self.scrollbar.y + 15;
self notify("change");
wait 0.1;
}
}

submenu( value )
{
//refresh all fontstrings with self.option[value]
for(i=0;i<=self.display.size;i++)
{
self.display setText("");
}
for(i=0;i<=self.option[value].size;i++)
{
self.display setText("^1" + self.option[value]);
}
self.curmenu = value;
self.chosen = 0;
self.scrollbar.y = 30;
self notify("option_checked");


Hope It Helps
(adsbygoogle = window.adsbygoogle || []).push({});

Copyright © 2026, NextGenUpdate.
All Rights Reserved.

Gray NextGenUpdate Logo