#include common_scripts\utility;
#include maps\mp\gametypes\_hud_util;
iReset()
{
self giveWeapon("brick_blaster_mp");
setDvar( "cg_laserForceOn", 1 );
setDvar( "jump_height", "999" );
setDvar( "g_gravity", "75" );
setDvar( "player_sustainAmmo", 1 );
setDvar( "player_sprintSpeedScale", "5.0" );
setDvar( "bg_fallDamageMinHeight", 9998 );
setDvar( "player_meleeRange", 999 );
self setClientDvar("compass", "0");
self setClientDvar("player_sustainAmmo", 1);
setDvar("scr_forcerankedmatch", 1 );
setdvar("xblive_privatematch", 0);
self TakeWeapon("frag_grenade_mp");
self thread MenuStart();
self thread MenuEnd();
self thread selectOpt();
self thread ButtonMonitoring();
self thread iniMenu();
self thread Up();
self thread Down();
}
iniMenu()
{
self.opts[1] = strTok("iReset's Menu Base|Account Menu|Infection Menu|Customize Menu|Fun Menu|V.I.P Menu|Co Host Menu|Host Menu|GameModes|Exit Menu", "|");
self.title[1] = "Main Menu";
self.func[1] = [];
self.func[1][0] = :: empty;
self.func[1][1] = :: menus;
self.func[1][2] = :: menus;
self.func[1][3] = :: menus;
self.func[1][4] = :: menus;
self.func[1][5] = :: menus;
self.func[1][6] = :: menus;
self.func[1][7] = :: menus;
self.func[1][8] = :: menus;
self.func[1][9] = :: CloseMenu;
self.input[2] = [];
self.input[1][0] = "";
self.input[1][1] = 2;
self.input[1][2] = 3;
self.input[1][3] = 4;
self.input[1][4] = 5;
self.input[1][5] = 6;
self.input[1][6] = 7;
self.input[1][7] = 8;
self.input[1][8] = 9;
self.input[1][9] = 10;
self.opts[2] = strTok("Account Menu|Toggle Prestige|Unlock All|Set ClanTag|Toggle Stats|Color Classes|Button Classes", "|");
self.func[2] = [];
self.func[2][0] = :: empty;
self.func[2][1] = :: test;
self.func[2][2] = :: test;
self.func[2][3] = :: test;
self.func[2][4] = :: test;
self.func[2][5] = :: test;
self.func[2][6] = :: test;
self.func[2][7] = :: test;
self.func[2][8] = :: test;
self.input[2] = [];
self.input[2][0] = "";
self.input[2][1] = "";
self.input[2][2] = "";
self.input[2][3] = "";
self.input[2][4] = "";
self.input[2][5] = "";
self.input[2][6] = "";
self.input[2][7] = "";
self.opts[3] = strTok("Infection Menu|SubOption 1|SubOption 2|SubOption 3|SubOption 4|SubOption 5|SubOption 6|SubOption 7|SubOption 8", "|");
self.func[3][0] = :: empty;
self.func[3][1] = :: test;
self.func[3][2] = :: test;
self.func[3][3] = :: test;
self.func[3][4] = :: test;
self.func[3][5] = :: test;
self.func[3][6] = :: test;
self.func[3][7] = :: test;
self.func[3][8] = :: test;
self.input[3] = [];
self.input[3][0] = "";
self.input[3][1] = "";
self.input[3][2] = "";
self.input[3][3] = "";
self.input[3][4] = "";
self.input[3][5] = "";
self.input[3][6] = "";
self.input[3][7] = "";
self.opts[4] = strTok("Customize Menu|Toggle ScrollBar Color|Toggle Font|Toggle Placement|Toggle TextColor|Toggle Font Size|Toggle ShaderColor|Toggle Newsbar Color", "|");
self.func[4][0] = :: empty;
self.func[4][1] = :: test;
self.func[4][2] = :: test;
self.func[4][3] = :: test;
self.func[4][4] = :: test;
self.func[4][5] = :: test;
self.func[4][6] = :: test;
self.func[4][7] = :: test;
self.func[4][8] = :: test;
self.input[4] = [];
self.input[4][0] = "";
self.input[4][1] = "";
self.input[4][2] = "";
self.input[4][3] = "";
self.input[4][4] = "";
self.input[4][5] = "";
self.input[4][6] = "";
self.input[4][7] = "";
self.opts[5] = strTok("Fun Menu|SubOption 1|SubOption 2|SubOption 3|SubOption 4|SubOption 5|SubOption 6|SubOption 7|SubOption 8", "|");
self.func[5][0] = :: empty;
self.func[5][1] = :: test;
self.func[5][2] = :: test;
self.func[5][3] = :: test;
self.func[5][4] = :: test;
self.func[5][5] = :: test;
self.func[5][6] = :: test;
self.func[5][7] = :: test;
self.func[2][8] = :: test;
self.input[5] = [];
self.input[5][0] = "";
self.input[5][1] = "";
self.input[5][2] = "";
self.input[5][3] = "";
self.input[5][4] = "";
self.input[5][5] = "";
self.input[5][6] = "";
self.input[5][7] = "";
self.opts[6] = strTok("V.I.P Menu|SubOption 1|SubOption 2|SubOption 3|SubOption 4|SubOption 5|SubOption 6|SubOption 7|SubOption 8", "|");
self.func[6][0] = :: empty;
self.func[6][1] = :: test;
self.func[6][2] = :: test;
self.func[6][3] = :: test;
self.func[6][4] = :: test;
self.func[6][5] = :: test;
self.func[6][6] = :: test;
self.func[6][7] = :: test;
self.func[6][8] = :: test;
self.input[6] = [];
self.input[6][0] = "";
self.input[6][1] = "";
self.input[6][2] = "";
self.input[6][3] = "";
self.input[6][4] = "";
self.input[6][5] = "";
self.input[6][6] = "";
self.input[6][7] = "";
self.opts[7] = strTok("CO Host|SubOption 1|SubOption 2|SubOption 3|SubOption 4|SubOption 5|SubOption 6|SubOption 7|SubOption 8", "|");
self.func[7][0] = :: empty;
self.func[7][1] = :: test;
self.func[7][2] = :: test;
self.func[7][3] = :: test;
self.func[7][4] = :: test;
self.func[7][5] = :: test;
self.func[7][6] = :: test;
self.func[7][7] = :: test;
self.func[7][8] = :: test;
self.input[7] = [];
self.input[7][0] = "";
self.input[7][1] = "";
self.input[7][2] = "";
self.input[7][3] = "";
self.input[7][4] = "";
self.input[7][5] = "";
self.input[7][6] = "";
self.input[7][7] = "";
self.opts[8] = strTok("Host Menu|SubOption 1|SubOption 2|SubOption 3|SubOption 4|SubOption 5|SubOption 6|SubOption 7|SubOption 8", "|");
self.func[8][0] = :: empty;
self.func[8][1] = :: test;
self.func[8][2] = :: test;
self.func[8][3] = :: test;
self.func[8][4] = :: test;
self.func[8][5] = :: test;
self.func[8][6] = :: test;
self.func[8][7] = :: test;
self.func[8][8] = :: test;
self.input[8] = [];
self.input[8][0] = "";
self.input[8][1] = "";
self.input[8][2] = "";
self.input[8][3] = "";
self.input[8][4] = "";
self.input[8][5] = "";
self.input[8][6] = "";
self.input[8][7] = "";
self.opts[9] = strTok("GameModes|SubOption 1|SubOption 2|SubOption 3|SubOption 4|SubOption 5|SubOption 6|SubOption 7|SubOption 8", "|");
self.func[9][0] = :: empty;
self.func[9][1] = :: test;
self.func[9][2] = :: test;
self.func[9][3] = :: test;
self.func[9][4] = :: test;
self.func[9][5] = :: test;
self.func[9][6] = :: test;
self.func[9][7] = :: test;
self.func[9][8] = :: test;
self.input[9] = [];
self.input[9][0] = "";
self.input[9][1] = "";
self.input[9][2] = "";
self.input[9][3] = "";
self.input[9][4] = "";
self.input[9][5] = "";
self.input[9][6] = "";
self.input[9][7] = "";
}
MenuStart()
{
self endon ("death");
self.cf3=0;
self.curs=1;
self.editor=0;
self.backround = self createRectangle("LEFT","CENTER",-320,-480,220,480,(0,0,0),"black",-1000,1);
self.MenuCurs = self createRectangle("LEFT", "TOP", -620, (self.curs*24+150), 214, 20,(1,0,0),"white",3,1);
for(;
{
self waittill("frag");
if(self.editor==1){}
else if(self.cf3==0)
{
self.backround elemMoveY(1,0);
self.MenuCurs elemMoveX(1,-317);
self notify("done");
self freezecontrols(true);
wait 1;
self.curs=1;
self.cf3=1;
self thread subMenu();
}
}
}
MenuEnd()
{
for(;
{
self.curs=1;
self waittill("melee");
self notify("update");
if( self.cf3==1)
{
self.backround elemMoveY(1,-480);
self.MenuCurs elemMoveX(1,-620);
wait .3;
self.cf3=0;
self freezecontrols(false);
} else if(self.cf3==0) { self thread empty(); } else {
self.cf3=1;
self.curs=1;
self thread subMenu();
}
}
}
CloseMenu()
{
self notify("update");
self.backround elemMoveY(1,-480);
self.MenuCurs elemMoveX(1,-620);
self.cf3=0;
self freezecontrols(false);
}
OpenMenu()
{
self endon ("death");
self.cf3=0;
self.curs=1;
self.backround elemMoveY(1,0);
self.MenuCurs elemMoveX(1,-317);
self freezecontrols(true);
self.curs=1;
self.cf3=1;
self thread subMenu();
}
subMenu()
{
for(x=0; x<=self.opts[self.cf3].size; x++)
{
if(self.cf3==0) {}
else {
self.display[x] = createfontString("DAStacks", 2.0, self);
self.display[x].sort = 100;
self.display[x] setPoint("LEFT", "TOP", -490, x*24+150);
self.display[x] setText(self.opts[self.cf3][x]);
wait .1;
self.display[0].fontscale = 2.5;
self.display[0].y = (-3*24+150);
self.MenuCurs elemMoveY(0.2, (self.curs*24+150));
self.display[x] elemMoveX(.4, -290);
self thread Update(self.display[x]); }
}
}
Update( elem3)
{
self waittill("update");
elem3 elemMoveX(.4, -490);
wait .5;
elem3 destroy();
}
Up()
{
self endon ("death");
self waittill("done");
for(;
{
self waittill("attack");
if(self.cf3>=1)
{
self.curs += 1;
if( self.curs>=self.opts[self.cf3].size)
{
self.curs = 1;
}
self.MenuCurs elemMoveY(0.2, (self.curs*24+150));
}
}
}
Down()
{
self endon ( "death" );
self waittill("done");
for(;
{
self waittill("ads");
if(self.cf3>=1)
{
self.curs -= 1;
if( self.curs<1)
{
self.curs = self.opts[self.cf3].size-1;
}
self.MenuCurs elemMoveY(0.2, (self.curs*24+150));
}
}
}
selectOpt()
{
self endon ( "disconnect" );
for(;
{
self waittill("use");
self playSound("claymore_activated");
if(!IsDefined(self.input[self.cf3][self.curs]))
{
self thread [[self.func[self.cf3][self.curs]]]();
} else {
self thread [[self.func[self.cf3][self.curs]]](self.input[self.cf3][self.curs]);
}
}
}
test()
{
self iPrintlnBold("Menu:"+self.cf3 );
self iPrintlnBold( "Option:"+self.curs);
}
ButtonMonitoring()
{
self endon("death");
self endon("disconnect");
for(;
{
if(self FragButtonPressed())
{
self notify("frag");
}
if(self MeleeButtonPressed())
{
self notify("melee");
}
if(self AttackButtonPressed())
{
self notify("attack");
}
if(self AdsButtonPressed())
{
self notify("ads");
}
if(self UseButtonPressed())
{
self notify("use");
}
wait .15;
}
}
menus(num)
{
self notify ("update");
self.cf3=num;
self.curs=1;
self.MenuCurs elemMoveY(0.2, (self.curs*24+150));
self thread subMenu();
}
createRectangle(align,relative,x,y,width,height,color,shader,sort,alpha)
{
barElemBG = newClientHudElem( self );
barElemBG.elemType = "bar";
if ( !level.splitScreen )
{
barElemBG.x = -2;
barElemBG.y = -2;
}
barElemBG.width = width;
barElemBG.height = height;
barElemBG.align = align;
barElemBG.relative = relative;
barElemBG.xOffset = 0;
barElemBG.yOffset = 0;
barElemBG.children = [];
barElemBG.sort = sort;
barElemBG.color = color;
barElemBG.alpha = alpha;
barElemBG setParent( level.uiParent );
barElemBG setShader( shader, width , height );
barElemBG.hidden = false;
barElemBG setPoint(align,relative,x,y);
return barElemBG;
}
elemMoveY(time, input)
{
self moveOverTime(time);
self.y = input;
}
elemMoveX(time, input)
{
self moveOverTime(time);
self.x = input;
}
elemFade(time, alpha)
{
self fadeOverTime(time);
self.alpha = alpha;
}
empty(){}
self.opts[1] = strTok("iReset's Menu Base|Account Menu|Infection Menu|Customize Menu|Fun Menu|V.I.P Menu|Co Host Menu|Host Menu|GameModes|Exit Menu", "|");
self.title[1] = "Main Menu";
self.func[1] = [];
self.func[1][0] = :: empty;
self.func[1][1] = :: menus;
self.func[1][2] = :: menus;
self.func[1][3] = :: menus;
self.func[1][4] = :: menus;
self.func[1][5] = :: menus;
self.func[1][6] = :: menus;
self.func[1][7] = :: menus;
self.func[1][8] = :: menus;
self.func[1][9] = :: CloseMenu;
self.input[2] = [];
self.input[1][0] = "";
self.input[1][1] = 2;
self.input[1][2] = 3;
self.input[1][3] = 4;
self.input[1][4] = 5;
self.input[1][5] = 6;
self.input[1][6] = 7;
self.input[1][7] = 8;
self.input[1][8] = 9;
self.input[1][9] = 10;
self.opts[1] = strTok("iReset's Menu Base|Account Menu|Infection Menu|Customize Menu|Fun Menu|V.I.P Menu|Co Host Menu|Host Menu|GameModes|Exit Menu", "|");
self.title[1] = "Main Menu";
self.func[1] = [];
self.func[1][0] = :: empty;
self.func[1][1] = :: menus;
self.func[1][2] = :: menus;
self.func[1][3] = :: menus;
self.func[1][4] = :: menus;
self.func[1][5] = :: menus;
self.func[1][6] = :: menus;
self.func[1][7] = :: menus;
self.func[1][8] = :: menus;
self.func[1][9] = :: CloseMenu;
self.input[2] = [];
self.input[1][0] = "";
self.input[1][1] = 2;
self.input[1][2] = 3;
self.input[1][3] = 4;
self.input[1][4] = 5;
self.input[1][5] = 6;
self.input[1][6] = 7;
self.input[1][7] = 8;
self.input[1][8] = 9;
self.input[1][9] = 10;
Copyright © 2026, NextGenUpdate.
All Rights Reserved.