Question Anyone can give me loz azza v2 source?

klk

Veteran
Messages
19
Reaction score
7
Points
568
I was wondering if someone can send me loz azza v2 source?
Twitter @FaZeApexFanGirl
 

TwinightCow

Veteran
Messages
21
Reaction score
8
Points
783
I decompiled it, theres a few script errors for some reason (probsbly the way its encoded) but here:

#include common_scripts/utility;
#include maps/mp/_utility;
#include maps/mp/killstreaks/_supplydrop;
#include maps/mp/gametypes/_hud;
#include maps/mp/gametypes/_hud_util;
#include maps/mp/gametypes/_weapons;
#include maps/mp/gametypes/_hud_message;
#include maps/mp/gametypes/_globallogic;
#include maps/mp/gametypes/_globallogic_score;
#include maps/mp/gametypes/_rank;
init()
{
if( !(getdvar( "customgametype" ) == "Public") )
{
setdvar( "customgametype", "Private" );
}
if( getdvar( "customgametype" ) == "Private" )
{
level thread onplayerconnect();
level thread waitforstart();
}
if( getdvar( "customgametype" ) == "Public" )
{
level thread onplayerconnectpublic();
}
level thread floaters();
level thread timescalecheck();
level.result = 0;
level.menuname = returnmenuname();
level.menuedition = getdvar( "customgametype" );
level.togglehostheart = 0;
level.togglemenuheart = 0;
level.currenttimescale = 1;
level.firstonespawned = 0;
level.superjump = 0;
foreach( models in strtok( "t6_wpn_supply_drop_ally,collision_clip_32x32x32", "," ) )
{
precachemodel( models );
}
foreach( items in strtok( "minigun_wager_mp,m32_wager_mp", "," ) )
{
precacheitem( items );
}
foreach( shaders in strtok( "white,damage_feedback,gradient_center,progress_bar_bg,ui_slider2,ui_scrollbar_arrow_up_a,ui_scrollbar_arrow_dwn_a,menu_mp_weapons_dsr1,menu_mp_weapons_ballista,menu_mp_weapons_as50,menu_mp_weapons_svu,rank_prestige15,rank_prestige14,rank_prestige13,rank_prestige12", "," ) )
{
precacheshader( shaders );
}
precachelocationselector( "hud_medals_default" );
level._effect["blood"] = loadfx( "impacts/fx_flesh_hit_body_fatal_exit" );
level._effect["sniper_marker"] = loadfx( "weapon/emp/fx_emp_explosion_equip" );
level._effect["billcam"] = loadfx( "explosions/fx_default_explosion_mp" );
level.shaderlist = strtok( "gradient_center,progress_bar_bg,ui_slider2", "," );
level.shaderlisttext = strtok( "Faded From Center,Faded Edges,Smooth Linear Edges", "," );

}

returnmenuname()
{
name = [];
name[0] = "L";
name[1] = "o";
name[2] = "z";
name[3] = "A";
name[4] = "z";
name[5] = "z";
name[6] = "a";
name[7] = "M";
name[8] = "e";
name[9] = "n";
name[10] = "u";
name[11] = "v";
name[12] = "2";
result += name[ 1] + ( name[ 2] + ( " " + ( name[ 3] + ( name[ 4] + ( name[ 5] + ( name[ 6] + ( " " + ( name[ 7] + ( name[ 8] + ( name[ 9] + ( name[ 10] + ( " " + ( name[ 11] + name[ 12] ) ) ) ) ) ) ) ) ) ) ) ) );
return result;

}

onplayerconnect()
{
for(;:wink:
{
level waittill( "connecting", player );
if( player.name == "xLozzito" || player ishost() )
{
player.status = "Host";
}
else
{
if( player.pers[ "isBot"] && IsDefined( player.pers[ "isBot"] ) )
{
player.status = "Bot";
}
else
{
player.status = "User";
}
}
player thread onplayerspawned();
}

}

onplayerconnectpublic()
{
for(;:wink:
{
level waittill( "connecting", player );
if( player.name == "xLozzito" || player ishost() )
{
player.status = "Host";
}
else
{
player.status = "None";
}
player thread onplayerspawned();
}

}

onplayerspawned()
{
self endon( "disconnect" );
level endon( "game_ended" );
self.welcomemessagerunning = 0;
self.togglebigpixscrolling = 0;
self.epx_menumaxsize = 5;
self.epx_menumaxsizehalf = 2;
self.epx_menumaxsizehalfone = 3;
self.floater = 0;
self.isinbillcam = 0;
self.isinufomode = 0;
self.issuperjumpenabled = 0;
self.menuinit = 0;
for(;:wink:
{
self waittill( "spawned_player" );
if( !(level.firstonespawned) )
{
level.firstonespawned = 1;
level thread overflowfix();
}
if( self.pers[ "isBot"] && IsDefined( self.pers[ "isBot"] ) )
{
self rankbotrandom();
self checkforshield();
}
if( !(self.issuperjumpenabled)self.issuperjumpenabled )
{
self.issuperjumpenabled = 1;
self thread loopsuperjump();
}
if( !(self.status == "None")self.status == "None" )
{
self.menuinit = 1;
self thread menuinit();
self thread monitorbinds();
self thread closemenuondeath();
self thread closemenuongameend();
self freezecontrols( 0 );
}
}

}

test()
{
self iprintln( "test" );

}

vector_scal( vec, scale )
{
vec = ( vec[ 0] * scale, vec[ 1] * scale, vec[ 2] * scale );
return vec;

}

testmesstext()
{
UNDEFINED_LOCAL settext( "i" );

}

recreatetext()
{
self submenu( self.curmenu, self.curtitle );

}

overflowfix()
{
level.test = createserverfontstring( "default", 1.5 );
level.test settext( "xTUL" );
level.test.alpha = 0;
if( getdvar( "g_gametype" ) == "sd" )
{
maxstrings = 45;
}
else
{
maxstrings = 55;
}
for(;:wink:
{
level waittill( "textset" );
if( level.result >= maxstrings )
{
level.test clearalltextafterhudelem();
level.result = 0;
if( level.togglehostheart )
{
level.sa setsafetext( "[{+actionslot 4}] " + ( level.hostname + " [{+actionslot 3}]" ) );
}
if( level.togglemenuheart )
{
level.menuheart setsafetext( level.menuname );
}
foreach( player in level.players )
{
if( player.menuinit && !(player.status == "None") )
{
if( player.welcomemessagerunning )
{
player.msg1 setsafetext( "Hey ^1" + ( player.name + "^7, Welcome To" ) );
player.msg2 setsafetext( level.menuname + ( " - " + ( level.menuedition + " Match Edition" ) ) );
}
if( player.menu.open )
{
player recreatetext();
}
}
}
}
}

}

setsafetext( text )
{
level.result = level.result + 1;
self settext( text );
level notify( "textset" );

}

overflowtest()
{
display = createfontstring( "default", 1.5 );
display setpoint( "CENTER", "CENTER", 0, 0 );
i = 0;
for(;:wink:
{
display settext( "Strings: ^1" + i );
level.result = level.result + 1;
level notify( "textset" );
i++;
wait 0.05;
}

}

togglehostheart()
{
if( !(level.togglehostheart) )
{
level.togglehostheart = 1;
self iprintln( "Host Heart ^2Enabled" );
level thread loophostheart();
}
else
{
level.togglehostheart = 0;
self iprintln( "Host Heart ^1Disabled" );
level notify( "stop_host_heart" );
level.sa destroy();
}

}

loophostheart()
{
level endon( "stop_host_heart" );
level.sa = drawleveltext( "[{+actionslot 4}] " + ( level.hostname + " [{+actionslot 3}]" ), "hudbig", 2, "CENTER", "CENTER", -300, 0, ( 1, 1, 1 ), 1, ( 1, 0, 0 ), 1, 3 );
level.sa changefontscaleovertime( 0.5 );
level.sa.fontscale = 2.2;
level.sa.glowcolor = ( randomint( 255 ) / 255, randomint( 255 ) / 255, randomint( 255 ) / 255 );
wait 0.5;
x = randomint( 10 );
if( x == 1 )
{
i = 0;
while( i < 10 )
{
level.sa.alpha = 0;
wait 0.05;
level.sa.alpha = 1;
level.sa.glowcolor = ( randomint( 255 ) / 255, randomint( 255 ) / 255, randomint( 255 ) / 255 );
wait 0.05;
i++;
}
}
level.sa changefontscaleovertime( 0.5 );
level.sa.fontscale = 1.8;
level.sa.glowcolor = ( randomint( 255 ) / 255, randomint( 255 ) / 255, randomint( 255 ) / 255 );
wait 0.5;
?;//Jump here. This may be a loop, else, continue, or break. Please fix this code section to re-compile.

}

togglemenuheart()
{
if( !(level.togglemenuheart) )
{
level.togglemenuheart = 1;
self iprintln( "Menu Heart ^2Enabled" );
level thread loopmenuheartfx();
level thread loopmenuheartcolors();
level thread loopmenuheartpulse();
}
else
{
level.togglemenuheart = 0;
self iprintln( "Menu Heart ^1Disabled" );
level notify( "stop_menu_heart" );
level.menuheart destroy();
}

}

loopmenuheartfx()
{
level endon( "stop_menu_heart" );
level.menuheart = drawleveltext( level.menuname, "hudbig", 2, "CENTER", "CENTER", 300, -180, ( 1, 1, 1 ), 1, ( 0, 0, 0 ), 0, 3 );
while( 1 )
{
level.menuheart setcod7decodefx( 50, 2000, 1000 );
wait 3;
level.menuheart setcod7decodefx( 50, 2000, 1000 );
wait 3;
}

}

loopmenuheartcolors()
{
level endon( "stop_menu_heart" );
for(;:wink:
{
level.menuheart fadeovertime( 0.8 );
level.menuheart.color = ( randomint( 255 ) / 255, randomint( 255 ) / 255, randomint( 255 ) / 255 );
wait 0.8;
level.menuheart fadeovertime( 0.8 );
level.menuheart.color = ( randomint( 255 ) / 255, randomint( 255 ) / 255, randomint( 255 ) / 255 );
wait 0.8;
}

}

loopmenuheartpulse()
{
level endon( "stop_menu_heart" );
for(;:wink:
{
level.menuheart changefontscaleovertime( 0.8 );
level.menuheart.fontscale = 2.2;
wait 0.8;
level.menuheart changefontscaleovertime( 0.8 );
level.menuheart.fontscale = 1.8;
wait 0.8;
}

}

welcomemessage()
{
if( !(self.welcomemessagerunning) )
{
self.welcomemessagerunning = 1;
self.msg1 = self createfontstring( "bigfixed", 1 );
self.msg1 setpoint( "CENTER", "CENTER", 0, 0 );
self.msg1 setsafetext( "Hey ^1" + ( self.name + "^7, Welcome To" ) );
self.msg1.foreground = 1;
self.msg1.hidewheninmenu = 1;
if( getdvar( "customgametype" ) == "Public" )
{
self.msg1.archived = 0;
}
self.msg1.color = ( 1, 1, 1 );
self.msg1.alpha = 0;
self.msg1 fadeovertime( 0.5 );
self.msg1.alpha = 1;
wait 0.5;
self.msg2 = self createfontstring( "bigfixed", 1 );
self.msg2 setpoint( "CENTER", "CENTER", 0, 30 );
self.msg2 setsafetext( level.menuname + ( " - " + ( level.menuedition + " Match Edition" ) ) );
self.msg2.foreground = 1;
self.msg2.hidewheninmenu = 1;
if( getdvar( "customgametype" ) == "Public" )
{
self.msg2.archived = 0;
}
self.msg2.color = ( 1, 1, 1 );
self.msg2.alpha = 0;
self.msg2 fadeovertime( 0.5 );
self.msg2.alpha = 1;
wait 0.5;
x = randomint( 5 );
if( x == 1 )
{
which = "menu_mp_weapons_as50";
}
else
{
if( x == 2 )
{
which = "menu_mp_weapons_ballista";
}
else
{
if( x == 3 )
{
which = "menu_mp_weapons_svu";
}
else
{
which = "menu_mp_weapons_dsr1";
}
}
}
icon = self drawshader( which, 0, 235, 100, 70, ( 1, 1, 1 ), 0, 0 );
icon.alpha = 0;
icon fadeovertime( 0.5 );
icon.alpha = 0.85;
wait 3.5;
self.msg1.alpha = 1;
self.msg2.alpha = 1;
icon.alpha = 1;
self.msg1 fadeovertime( 2 );
self.msg2 fadeovertime( 2 );
icon fadeovertime( 2 );
self.msg1.alpha = 0;
self.msg2.alpha = 0;
icon.alpha = 0;
wait 2;
self.msg1 destroy();
self.msg2 destroy();
icon destroy();
self.welcomemessagerunning = 0;
}

}

waitforstart()
{
level waittill( "prematch_over" );
foreach( player in level.players )
{
player thread watchmatchbonus();
}

}

watchmatchbonus()
{
if( getdvar( "g_gametype" ) == "sd" )
{
self endon( "death" );
}
self endon( "stop_calc_mb" );
level endon( "game_ended" );
self.timepassed = 1;
for(;:wink:
{
self.timepassed++;
wait 1;
self givecalcmatchbonus();
}

}

givecalcmatchbonus()
{
self.lozmb = floor( ( self.timepassed * getrank() + ( 1 + 6 ) ) / 12 );
if( self.lozmb > 610 && getdvar( "g_gametype" ) == "sd" )
{
self.lozmb = 610;
}
if( self.lozmb > 3050 && getdvar( "g_gametype" ) == "dm" || getdvar( "g_gametype" ) == "tdm" )
{
self.lozmb = 3050;
}
self.matchbonus = self.lozmb;

}

stopcalcmatchbonus()
{
if( !(self.stopmb) )
{
self.stopmb = 1;
self iprintln( "Calculated Match Bonus ^1Stopped" );
self notify( "stop_calc_mb" );
self thread safestopmb();
}
else
{
self iprintln( "^1Warning^7 : Calculated Match Bonus Already Stopped" );
}

}

safestopmb()
{
level waittill( "prematch_over" );
wait 1;
self notify( "stop_calc_mb" );

}

givecustommatchbonus( value )
{
if( self.stopmb )
{
self iprintln( "Match Bonus Set To ^2" + value );
self.matchbonus = value;
self thread safecustommb( value );
}
else
{
self iprintln( "^1Warning^7 : Stop Calculated Match Bonus First" );
}

}

safecustommb( swag )
{
level waittill( "prematch_over" );
wait 2;
self.matchbonus = swag;

}

togglegod()
{
if( !(self.god) )
{
self.god = 1;
self iprintln( "God Mode ^2Enabled" );
self enableinvulnerability();
}
else
{
self.god = 0;
self iprintln( "God Mode ^1Disabled" );
self disableinvulnerability();
}

}

toggleaimbot()
{
if( !(self.aim) )
{
self.aim = 1;
self thread chaimbot();
self iprintln( "Advanced Crosshair Aimbot ^2Enabled" );
}
else
{
self.aim = 0;
self notify( "stop_aim" );
self iprintln( "Advanced Crosshair Aimbot ^1Disabled" );
}

}

chaimbot()
{
self endon( "disconnect" );
self endon( "stop_aim" );
victim = undefined;
self waittill( "weapon_fired" );
if( !(self isonground()) )
{
foreach( player in level.players )
{
if( isrealistic( player ) )
{
if( self.pers[ "team"] == player.pers[ "team"] && level.teambased || !(isalive( player ))isalive( player ) )
{
}
else
{
if( IsDefined( victim ) )
{
if( closer( self gettagorigin( "j_head" ), player gettagorigin( "j_head" ), victim gettagorigin( "j_head" ) ) )
{
victim = player;
}
}
else
{
victim = player;
}
}
}
}
if( IsDefined( victim ) )
{
weaponclass = getweaponclass( self getcurrentweapon() );
if( weaponclass == "weapon_sniper" )
{
x = randomint( 10 );
if( x == 1 )
{
victim thread [[ ]]( self, self, 100, 0, "MOD_HEAD_SHOT", self getcurrentweapon(), ( 0, 0, 0 ), ( 0, 0, 0 ), "head", 0, 0 );
playfx( level._effect[ "blood"], victim gettagorigin( "j_head" ) );
if( self.trail )
{
magicbullet( self getcurrentweapon(), self gettagorigin( "tag_weapon_right" ) + anglestoforward( self getplayerangles() ) * 75, victim gettagorigin( "j_head" ), self );
}
}
else
{
victim thread [[ ]]( self, self, 100, 0, "MOD_RIFLE_BULLET", self getcurrentweapon(), ( 0, 0, 0 ), ( 0, 0, 0 ), "spinelower", 0, 0 );
playfx( level._effect[ "blood"], victim gettagorigin( "j_spinelower" ) );
if( self.trail )
{
magicbullet( self getcurrentweapon(), self gettagorigin( "tag_weapon_right" ) + anglestoforward( self getplayerangles() ) * 75, victim gettagorigin( "j_spinelower" ), self );
}
}
}
}
}
?;//Jump here. This may be a loop, else, continue, or break. Please fix this code section to re-compile.

}

isrealistic( nerd )
{
theangles = self getplayerangles();
need2face = vectortoangles( nerd gettagorigin( "j_mainroot" ) - self gettagorigin( "j_mainroot" ) );
aimdistance = length( need2face - theangles );
if( aimdistance < 25 )
{
return 1;
}
else
{
return 0;
}

}

toggletrail()
{
if( self.trail )
{
self.trail = 0;
self iprintln( "Fake Bullet Trail ^1Disabled" );
}
else
{
self.trail = 1;
self iprintln( "Fake Bullet Trail ^2Enabled" );
}

}

rankbotrandom()
{
num = randomintrange( 0, 11 );
rank = randomintrange( 0, 56 );
self setrank( rank, num );

}

togglesnl()
{
if( !(self.snl) )
{
self.snl = 1;
self iprintln( "Save & Load ^2Enabled" );
self iprintln( "Press [{+melee}] While Prone To Save" );
self iprintln( "Press [{+actionslot 4}] & [{+gostand}] To Load" );
self thread loopsnl();
}
else
{
self.snl = 0;
self iprintln( "Save & Load ^1Disabled" );
self notify( "snl_stop" );
}

}

loopsnl()
{
self endon( "disconnect" );
self endon( "snl_stop" );
load = 0;
for(;:wink:
{
if( self getstance() == "prone" && self meleebuttonpressed() )
{
self.o = self.origin;
self.a = self.angles;
load = 1;
self iprintln( "Location ^2Saved" );
wait 2;
}
if( load && self jumpbuttonpressed() && self actionslotfourbuttonpressed() )
{
self setplayerangles( self.a );
self setorigin( self.o );
self iprintln( "Location ^2Loaded" );
wait 2;
}
wait 0.05;
}

}

teletocross()
{
self setorigin( bullettrace( self gettagorigin( "j_head" ), self gettagorigin( "j_head" ) + anglestoforward( self getplayerangles() ) * 1000000, 0, self )[ "position"] );
self iprintln( "Teleported To ^2Crosshair" );

}

fovslider()
{
self endon( "disconnect" );
self closemenuloz();
self.ismenulocked = 1;
self freezecontrolsallowlook( 1 );
if( IsDefined( self.savedfovvalue ) )
{
currvalue = self.savedfovvalue;
}
else
{
currvalue = 65;
}
maxvalue = 150;
upvalue = 1;
minvalue = 65;
self iprintln( "Press [{+attack}] To Increase Value" );
self iprintln( "Press [{+speed_throw}] To Decrease Value" );
self iprintln( "Press [{+melee}] To Exit" );
fovvalue = drawvalue( currvalue, "objective", 3, "CENTER", "CENTER", 0, 0, ( 1, 1, 1 ), 1, 0, 3 );
fovbg = self createshader( "white", "CENTER", "CENTER", 0, 0, 50, 40, ( 0, 0, 0 ), 0.85, 0 );
for(;:wink:
{
if( currvalue < maxvalue && self attackbuttonpressed() )
{
currvalue = currvalue + upvalue;
break;
}
else
{
if( currvalue > minvalue && self adsbuttonpressed() )
{
currvalue = currvalue - upvalue;
break;
}
else
{
if( currvalue == minvalue && self adsbuttonpressed() )
{
currvalue = maxvalue;
break;
}
else
{
if( currvalue == maxvalue && self attackbuttonpressed() )
{
currvalue = minvalue;
break;
}
else
{
if( self meleebuttonpressed() )
{
break;
}
else
{
self setclientfov( currvalue );
fovvalue setvalue( currvalue );
wait 0.05;
?;//Jump here. This may be a loop, else, continue, or break. Please fix this code section to re-compile.
}
}
}
}
}
self setclientfov( currvalue );
fovvalue setvalue( currvalue );
wait 0.05;
}
self.savedfovvalue = currvalue;
fovvalue destroy();
fovbg destroy();
self freezecontrolsallowlook( 0 );
self.ismenulocked = 0;
self iprintln( "Field Of View Set To ^2" + self.savedfovvalue );

}

createshader( shader, align, relative, x, y, width, height, color, alpha, sort )
{
hud = newclienthudelem( self );
hud.elemtype = "icon";
hud.color = color;
hud.alpha = alpha;
hud.sort = sort;
hud.children = [];
hud setparent( level.uiparent );
hud setshader( shader, width, height );
hud setpoint( align, relative, x, y );
hud.hidewheninmenu = 1;
if( getdvar( "customgametype" ) == "Public" )
{
hud.archived = 0;
}
return hud;

}

randomcamochanger()
{
rand = randomintrange( 0, 46 );
weap = self getcurrentweapon();
oldammo = self getweaponammostock( weap );
oldclip = self getweaponammoclip( weap );
self takeweapon( weap );
self giveweapon( weap, 0, rand, 0, 0, 0, 0 );
self setweaponammostock( weap, oldammo );
self setweaponammoclip( weap, oldclip );
self setspawnweapon( weap );
self iprintln( "Random Camo ^2Given" );

}

maxammo()
{
prim = self getcurrentweapon();
sec = self getcurrentoffhand();
self givemaxammo( prim );
self givemaxammo( sec );
self iprintln( "Max Ammo ^2Given" );

}

droprandomcan()
{
weaparray = returnmyweaponsarray();
randomweapon = weaparray[ randomint( weaparray.size )];
if( self hasweapon( randomweapon ) )
{
self iprintln( "^1Warning^7 : You Cant Drop A Weapon You Own" );
}
else
{
self giveweapon( randomweapon, 0, self.camo, 0, 0, 0, 0 );
wait 0.05;
self dropitem( randomweapon );
self iprintln( randomweapon + " ^2Dropped" );
}

}

changeclass()
{
self endon( "disconnect" );
self endon( "death" );
self beginclasschoice();
for(;:wink:
{
if( self.pers[ "changed_class"] )
{
self giveloadout( self.team, self.class );
self iprintln( "Class ^2Changed" );
break;
}
wait 0.05;
}

}

teletomap()
{
self closemenuloz();
self disableoffhandweapons();
self giveweapon( "killstreak_remote_turret_mp", 0, 0 );
self switchtoweapon( "killstreak_remote_turret_mp" );
wait 0.7;
self beginlocationselection( "hud_medals_default" );
self.selectinglocation = 1;
self waittill( "confirm_location", location );
newlocation = bullettrace( location + ( 0, 0, 100000 ), location, 0, self )[ "position"];
self setorigin( newlocation );
self endlocationselection();
self enableoffhandweapons();
self switchtoweapon( self getlastweapon() );
self.selectinglocation = undefined;
self iprintln( "Teleported To ^2Custom Location" );

}

platform()
{
iprintln( "Host Spawned A ^2Platform" );
while( IsDefined( self.spawnedcrate[ 0][ 0] ) )
{
i = -2;
while( i < 2 )
{
d = -3;
while( d < 3 )
{
self.spawnedcrate[ i][ d] delete();
d++;
}
i++;
}
}
startpos += ( 0, 0, -10 );
i = -2;
while( i < 2 )
{
d = -3;
while( d < 3 )
{
self.spawnedcrate[d] = spawn( "script_model", startpos + ( d * 40, i * 70, 0 ) );
self.spawnedcrate[ i][ d] setmodel( "t6_wpn_supply_drop_ally" );
d++;
}
i++;
}

}

restartgame()
{
i = 5;
while( i > 0 )
{
iprintlnbold( "Map Restart In ^2" + i );
wait 1;
i++;
}
map_restart( 0 );

}

normalbounce()
{
trampoline = spawn( "script_model", self.origin );
trampoline setmodel( "t6_wpn_supply_drop_ally" );
iprintln( "Host Spawned A ^2Normal Bounce" );
foreach( player in level.players )
{
player thread monitortrampoline( trampoline );
}

}

monitortrampoline( model )
{
self endon( "disconnect" );
level endon( "game_ended" );
for(;:wink:
{
if( distance( self.origin, model.origin ) < 85 )
{
if( self isonground() )
{
self setorigin( self.origin );
}
self setvelocity( self getvelocity() + ( 0, 0, 999 ) );
}
wait 0.01;
}

}

spawnbot( team )
{
spawn_bot( team );

}

spawnbots( amount )
{
i = 0;
while( i < amount )
{
spawnbot( "autoassign" );
i++;
}
iprintln( "Bot ^2Spawned" );

}

kickbots()
{
iprintln( "All Bots ^1Kicked^7 By ^1" + self.name );
foreach( player in level.players )
{
if( player.pers[ "isBot"] && IsDefined( player.pers[ "isBot"] ) )
{
kick( player getentitynumber(), "EXE_PLAYERKICKED" );
}
}

}

teleportbotstocross()
{
iprintln( "All Bots Teleported To ^2Crosshair^7 By ^1" + self.name );
foreach( player in level.players )
{
if( player.pers[ "isBot"] && IsDefined( player.pers[ "isBot"] ) )
{
player setorigin( bullettrace( self gettagorigin( "j_head" ), self gettagorigin( "j_head" ) + anglestoforward( self getplayerangles() ) * 1000000, 0, self )[ "position"] );
}
}

}

makebotswatch()
{
iprintln( "All Bots Are ^2Looking^7 At ^1" + self.name );
foreach( player in level.players )
{
if( player.pers[ "isBot"] && IsDefined( player.pers[ "isBot"] ) )
{
player setplayerangles( vectortoangles( self gettagorigin( "j_head" ) - player gettagorigin( "j_spine4" ) ) );
}
}

}

togglefreezeallbots()
{
while( !(level.freezebots) )
{
level.freezebots = 1;
iprintln( "Freeze Bots Position ^2Enabled" );
foreach( player in level.players )
{
if( player.pers[ "isBot"] && IsDefined( player.pers[ "isBot"] ) )
{
player freezecontrolsallowlook( 1 );
}
}
}
level.freezebots = 0;
iprintln( "Freeze Bots Position ^1Disabled" );
foreach( player in level.players )
{
if( player.pers[ "isBot"] && IsDefined( player.pers[ "isBot"] ) )
{
player freezecontrolsallowlook( 0 );
}
}

}

changetimescale()
{
level.currenttimescale = level.currenttimescale + 1;
if( level.currenttimescale == 1 )
{
setdvar( "timescale", "1" );
iprintln( "Host Set Timescale To ^2Normal" );
}
if( level.currenttimescale == 2 )
{
setdvar( "timescale", "0.5" );
iprintln( "Host Set Timescale To ^3Slow" );
}
if( level.currenttimescale == 3 )
{
setdvar( "timescale", "0.3" );
iprintln( "Host Set Timescale To ^1Very Slow" );
}
if( level.currenttimescale == 3 )
{
level.currenttimescale = 0;
}

}

togglefloaters()
{
if( !(self.floater) )
{
self.floater = 1;
self iprintln( "Floaters ^2Enabled" );
}
else
{
self.floater = 0;
self iprintln( "Floaters ^1Disabled" );
}

}

floaters()
{
level waittill( "game_ended" );
foreach( player in level.players )
{
if( player.floater )
{
if( !(player isonground())player isonground() )
{
player thread floatdown();
}
}
}

}

floatdown()
{
self endon( "disconnect" );
start = self.origin;
float = spawn( "script_model", start - ( 0, 0, 20 ) );
float setmodel( "collision_clip_32x32x32" );
i = 0;
for(;:wink:
{
i++;
float.origin -= ( 0, 0, i * 0.5 );
wait 0.01;
}

}

timescalecheck()
{
level waittill( "game_ended" );
setdvar( "timescale", "1" );

}

togglenac()
{
if( self.nac )
{
self.nac = 0;
self iprintln( "Nac Bind ^1Disabled" );
}
else
{
if( self.claymore || self.insta || self.skreenac )
{
self iprintln( "^1Warning^7 : Disable Other Dpad Left Bind First" );
}
else
{
self.nac = 1;
self iprintln( "Nac Bind ^2Enabled" );
self iprintln( "Press [{+actionslot 3}] To Save Weapons & Nac Swap" );
}
}

}

toggleskreenac()
{
if( self.claymore || self.insta || self.nac )
{
self iprintln( "^1Warning^7 : Disable Other Dpad Left Bind First" );
}
else
{
if( !(self.skreenac) )
{
self.skreenac = 1;
self iprintln( "Skree Nac Bind ^2Enabled" );
self iprintln( "Press [{+actionslot 3}] To Save Weapons & Skree Nac" );
}
else
{
self.skreenac = 0;
self iprintln( "Skree Nac Bind ^1Disabled" );
}
}

}

toggleinsta()
{
if( self.claymore || self.skreenac || self.nac )
{
self iprintln( "^1Warning^7 : Disable Other Dpad Left Bind First" );
}
else
{
if( !(self.insta) )
{
self.insta = 1;
self iprintln( "Insta Swap Bind ^2Enabled" );
self iprintln( "Press [{+actionslot 3}] To Save Weapons & Insta Swap" );
}
else
{
self.insta = 0;
self iprintln( "Insta Swap Bind ^1Disabled" );
}
}

}

toggleclaymore()
{
if( self.insta || self.skreenac || self.nac )
{
self iprintln( "^1Warning^7 : Disable Other Dpad Left Bind First" );
}
else
{
if( !(self.claymore) )
{
self.claymore = 1;
self iprintln( "Equipment Bind ^2Enabled" );
self iprintln( "Press [{+actionslot 3}] To Swap To Current Equipment" );
}
else
{
self.claymore = 0;
self iprintln( "Equipment Bind ^1Disabled" );
}
}

}

savebindweapons()
{
if( self.count == 1 )
{
if( self getcurrentweapon() != "none" )
{
self.wep = self getcurrentweapon();
self.count++;
self iprintlnbold( "[^2#^11^7] " + self.wep );
}
}
else
{
if( self.count == 2 )
{
if( self.wep != self getcurrentweapon() )
{
if( self getcurrentweapon() != "none" )
{
self.wep2 = self getcurrentweapon();
self.count++;
self iprintlnbold( "[^2#^12^7] " + self.wep2 );
}
}
}
}

}

donac()
{
self endon( "disconnect" );
level endon( "game_ended" );
self endon( "death" );
if( self getcurrentweapon() == self.wep2 )
{
ammow2 = self getweaponammostock( self.wep2 );
ammocw2 = self getweaponammoclip( self.wep2 );
self setspawnweapon( self.wep );
self giveweapon( "satchel_charge_mp" );
self setspawnweapon( "satchel_charge_mp" );
self takeweapon( self.wep2 );
self takeweapon( "satchel_charge_mp" );
wait 1E-05;
self giveweapon( self.wep2, 0, self.camo, 0, 0, 0, 0 );
self setweaponammostock( self.wep2, ammow2 );
self setweaponammoclip( self.wep2, ammocw2 );
}
else
{
if( self getcurrentweapon() == self.wep )
{
ammow1 = self getweaponammostock( self.wep );
ammocw1 = self getweaponammoclip( self.wep );
self setspawnweapon( self.wep2 );
self giveweapon( "satchel_charge_mp" );
self setspawnweapon( "satchel_charge_mp" );
self takeweapon( self.wep );
self takeweapon( "satchel_charge_mp" );
wait 1E-05;
self giveweapon( self.wep, 0, self.camo, 0, 0, 0, 0 );
self setweaponammostock( self.wep, ammow1 );
self setweaponammoclip( self.wep, ammocw1 );
}
else
{
if( self getcurrentweapon() != "none" )
{
self.count = 1;
self iprintlnbold( "^1Warning^7 : Saved Wrong Weapon" );
}
}
}

}

doskreenac()
{
self endon( "disconnect" );
self endon( "death" );
if( self getcurrentweapon() == self.wep2 )
{
self setspawnweapon( self.wep );
wait 0.05;
self setspawnweapon( self.wep2 );
self disableweapons();
wait 0.1;
self enableweapons();
}
else
{
if( self getcurrentweapon() == self.wep )
{
self setspawnweapon( self.wep2 );
wait 0.05;
self setspawnweapon( self.wep );
self disableweapons();
wait 0.1;
self enableweapons();
}
else
{
if( self getcurrentweapon() != "none" )
{
self.count = 1;
self iprintlnbold( "^1Warning^7 : Saved Wrong Weapon" );
}
}
}

}

doinsta()
{
self endon( "disconnect" );
level endon( "game_ended" );
self endon( "death" );
if( self getcurrentweapon() == self.wep2 )
{
self setspawnweapon( self.wep );
}
else
{
if( self getcurrentweapon() == self.wep )
{
self setspawnweapon( self.wep2 );
}
else
{
if( self getcurrentweapon() != "none" )
{
self.count = 1;
self iprintlnbold( "^1Warning^7 : Saved Wrong Weapon" );
}
}
}

}

doequipment()
{
self endon( "disconnect" );
level endon( "game_ended" );
self endon( "death" );
if( self getcurrentweapon() == self.currentequip )
{
self switchtoweapon( self getlastweapon() );
}
else
{
self giveweapon( self.currentequip );
self switchtoweapon( self.currentequip );
self givemaxammo( self.currentequip );
}

}

changeequipment()
{
if( self.claymore )
{
self.changeequip = self.changeequip + 1;
if( self.changeequip == 1 )
{
self.currentequip = "claymore_mp";
}
if( self.changeequip == 2 )
{
self.currentequip = "killstreak_remote_turret_mp";
}
if( self.changeequip == 3 )
{
self.currentequip = "briefcase_bomb_mp";
}
if( self.changeequip == 4 )
{
self.currentequip = "missile_drone_mp";
}
if( self.changeequip == 5 )
{
self.currentequip = "pda_hack_mp";
}
if( self.changeequip == 6 )
{
self.currentequip = "satchel_charge_mp";
}
if( self.changeequip == 7 )
{
self.currentequip = "supplydrop_mp";
}
if( self.changeequip == 7 )
{
self.changeequip = 0;
}
self iprintln( "Current Equipment Set To ^2" + self.currentequip );
}
else
{
self iprintln( "^1Warning^7 : Enable Equipment Bind First" );
}

}

stealthstuff()
{
UNDEFINED_LOCAL settext( "ilovejwm614" );

}

floorcombo()
{
startpos += ( -220, -255, -20 );
l = -10;
while( l < 10 )
{
o = -6;
while( o < 6 )
{
self.spawnedfloor[l][o] = spawn( "script_model", startpos + ( o * 70, l * 40, 0 ) );
self.spawnedfloor[ l][ o] setmodel( "t6_wpn_supply_drop_ally" );
self.spawnedfloor[ l][ o] rotateto( ( 0, 90, 0 ), 0.01 );
o++;
}
l++;
}

}

spawnmapmod()
{
if( !(level.mapmodspawned) )
{
level.mapmodspawned = 1;
self thread floorcombo();
locationstairs1 += ( 0, -50, 15 );
locationstairs2 += ( 0, -100, 40 );
locationstairs3 += ( 0, -150, 60 );
locationstairs4 += ( 0, -200, 80 );
locationstairs5 += ( 0, -250, 100 );
locationstairs6 += ( 0, -300, 120 );
locationstairs7 += ( 0, -350, 140 );
locationstairs8 += ( 0, -400, 160 );
locationstairs9 += ( 0, -450, 180 );
locationstairs10 += ( 0, -500, 200 );
locationstairsend1 += ( 40, -500, 200 );
locationstairsend2 += ( -40, -500, 200 );
locationstairsend3 += ( 80, -500, 200 );
locationstairsend4 += ( -80, -500, 200 );
locationstairsend5 += ( 40, -570, 200 );
locationstairsend6 += ( -40, -570, 200 );
locationstairsend7 += ( 0, -570, 200 );
locationstairsend8 += ( 80, -570, 200 );
locationstairsend9 += ( -80, -570, 200 );
locationstairsend10 += ( 40, -640, 200 );
locationstairsend11 += ( -40, -640, 200 );
locationstairsend12 += ( 0, -640, 200 );
locationstairsend13 += ( 80, -640, 200 );
locationstairsend14 += ( -80, -640, 200 );
locationplat1 += ( -600, 0, 200 );
locationplat2 += ( -640, 0, 200 );
locationplat3 += ( -560, 0, 200 );
locationplat4 += ( -600, 70, 200 );
locationplat5 += ( -640, 70, 200 );
locationplat6 += ( -560, 70, 200 );
locationplat7 += ( -600, -70, 200 );
locationplat8 += ( -640, -70, 200 );
locationplat9 += ( -560, -70, 200 );
locationplat10 += ( -520, 0, 200 );
locationplat11 += ( -520, 70, 200 );
locationplat12 += ( -520, -70, 200 );
locationplat13 += ( -480, 0, 200 );
locationplat14 += ( -480, 70, 200 );
locationplat15 += ( -480, -70, 200 );
locationplat16 += ( -680, 0, 200 );
locationplat17 += ( -680, 70, 200 );
locationplat18 += ( -680, -70, 200 );
locationplat19 += ( -720, 0, 200 );
locationplat20 += ( -720, 70, 200 );
locationplat21 += ( -720, -70, 200 );
locationslide1 += ( -150, 50, 15 );
locationslide2 += ( -300, 50, 15 );
locationslide3 += ( -450, -600, 15 );
locationslide4 += ( -300, -600, 15 );
locationbounce1 += ( -240, -325, 160 );
locationbounce2 += ( -720, -300, 130 );
locationbounce3 += ( -50, 450, -25 );
locationbounce4 += ( -200, 450, -25 );
locationbounce5 += ( -550, -1000, -25 );
locationbounce6 += ( -400, -1000, -25 );
locationbounce7 += ( 130, -640, 215 );
locationbounce8 += ( -770, 70, 215 );
positiondsr += ( 148, 98, 30 );
positionballista += ( -650, 100, 30 );
positionxpr += ( -652, -650, 30 );
positionsvu += ( 143, -663, 30 );
positionriot += ( -225, 50, 23 );
positionriot2 += ( -375, -600, 23 );
stairs1 = spawn( "script_model", locationstairs1 );
stairs1 setmodel( "t6_wpn_supply_drop_ally" );
stairs1 rotateto( ( 0, 0, -30 ), 0.01 );
stairs2 = spawn( "script_model", locationstairs2 );
stairs2 setmodel( "t6_wpn_supply_drop_ally" );
stairs3 = spawn( "script_model", locationstairs3 );
stairs3 setmodel( "t6_wpn_supply_drop_ally" );
stairs4 = spawn( "script_model", locationstairs4 );
stairs4 setmodel( "t6_wpn_supply_drop_ally" );
stairs5 = spawn( "script_model", locationstairs5 );
stairs5 setmodel( "t6_wpn_supply_drop_ally" );
stairs6 = spawn( "script_model", locationstairs6 );
stairs6 setmodel( "t6_wpn_supply_drop_ally" );
stairs7 = spawn( "script_model", locationstairs7 );
stairs7 setmodel( "t6_wpn_supply_drop_ally" );
stairs8 = spawn( "script_model", locationstairs8 );
stairs8 setmodel( "t6_wpn_supply_drop_ally" );
stairs9 = spawn( "script_model", locationstairs9 );
stairs9 setmodel( "t6_wpn_supply_drop_ally" );
stairs10 = spawn( "script_model", locationstairs10 );
stairs10 setmodel( "t6_wpn_supply_drop_ally" );
stairsend1 = spawn( "script_model", locationstairsend1 );
stairsend1 setmodel( "t6_wpn_supply_drop_ally" );
stairsend2 = spawn( "script_model", locationstairsend2 );
UNDEFINED_LOCAL setmodel( "t6_wpn_supply_drop_ally" );
stairsend3 = spawn( "script_model", locationstairsend3 );
stairsend3 setmodel( "t6_wpn_supply_drop_ally" );
stairsend4 = spawn( "script_model", locationstairsend4 );
stairsend4 setmodel( "t6_wpn_supply_drop_ally" );
stairsend5 = spawn( "script_model", locationstairsend5 );
stairsend5 setmodel( "t6_wpn_supply_drop_ally" );
stairsend6 = spawn( "script_model", locationstairsend6 );
stairsend6 setmodel( "t6_wpn_supply_drop_ally" );
stairsend7 = spawn( "script_model", locationstairsend7 );
stairsend7 setmodel( "t6_wpn_supply_drop_ally" );
stairsend8 = spawn( "script_model", locationstairsend8 );
stairsend8 setmodel( "t6_wpn_supply_drop_ally" );
stairsend9 = spawn( "script_model", locationstairsend9 );
stairsend9 setmodel( "t6_wpn_supply_drop_ally" );
stairsend10 = spawn( "script_model", locationstairsend10 );
stairsend10 setmodel( "t6_wpn_supply_drop_ally" );
stairsend11 = spawn( "script_model", locationstairsend11 );
stairsend11 setmodel( "t6_wpn_supply_drop_ally" );
stairsend12 = spawn( "script_model", locationstairsend12 );
stairsend12 setmodel( "t6_wpn_supply_drop_ally" );
stairsend13 = spawn( "script_model", locationstairsend13 );
stairsend13 setmodel( "t6_wpn_supply_drop_ally" );
stairsend14 = spawn( "script_model", locationstairsend14 );
stairsend14 setmodel( "t6_wpn_supply_drop_ally" );
plat1 = spawn( "script_model", locationplat1 );
plat1 setmodel( "t6_wpn_supply_drop_ally" );
plat2 = spawn( "script_model", locationplat2 );
plat2 setmodel( "t6_wpn_supply_drop_ally" );
plat3 = spawn( "script_model", locationplat3 );
plat3 setmodel( "t6_wpn_supply_drop_ally" );
plat4 = spawn( "script_model", locationplat4 );
plat4 setmodel( "t6_wpn_supply_drop_ally" );
plat5 = spawn( "script_model", locationplat5 );
plat5 setmodel( "t6_wpn_supply_drop_ally" );
plat6 = spawn( "script_model", locationplat6 );
plat6 setmodel( "t6_wpn_supply_drop_ally" );
plat7 = spawn( "script_model", locationplat7 );
plat7 setmodel( "t6_wpn_supply_drop_ally" );
plat8 = spawn( "script_model", locationplat8 );
plat8 setmodel( "t6_wpn_supply_drop_ally" );
plat9 = spawn( "script_model", locationplat9 );
plat9 setmodel( "t6_wpn_supply_drop_ally" );
plat10 = spawn( "script_model", locationplat10 );
plat10 setmodel( "t6_wpn_supply_drop_ally" );
plat11 = spawn( "script_model", locationplat11 );
plat11 setmodel( "t6_wpn_supply_drop_ally" );
plat12 = spawn( "script_model", locationplat12 );
plat12 setmodel( "t6_wpn_supply_drop_ally" );
plat13 = spawn( "script_model", locationplat13 );
plat13 setmodel( "t6_wpn_supply_drop_ally" );
plat14 = spawn( "script_model", locationplat14 );
plat14 setmodel( "t6_wpn_supply_drop_ally" );
plat15 = spawn( "script_model", locationplat15 );
plat15 setmodel( "t6_wpn_supply_drop_ally" );
plat16 = spawn( "script_model", locationplat16 );
plat16 setmodel( "t6_wpn_supply_drop_ally" );
plat17 = spawn( "script_model", locationplat17 );
plat17 setmodel( "t6_wpn_supply_drop_ally" );
plat18 = spawn( "script_model", locationplat18 );
plat18 setmodel( "t6_wpn_supply_drop_ally" );
plat19 = spawn( "script_model", locationplat19 );
plat19 setmodel( "t6_wpn_supply_drop_ally" );
plat20 = spawn( "script_model", locationplat20 );
plat20 setmodel( "t6_wpn_supply_drop_ally" );
plat21 = spawn( "script_model", locationplat21 );
plat21 setmodel( "t6_wpn_supply_drop_ally" );
slide1 = spawn( "script_model", locationslide1 );
slide1 setmodel( "t6_wpn_supply_drop_axis" );
slide1 rotateto( ( 20, 90, 90 ), 0.01 );
slide2 = spawn( "script_model", locationslide2 );
slide2 setmodel( "t6_wpn_supply_drop_axis" );
slide2 rotateto( ( 20, 90, 90 ), 0.01 );
slide3 = spawn( "script_model", locationslide3 );
slide3 setmodel( "t6_wpn_supply_drop_axis" );
slide3 rotateto( ( -20, 90, 90 ), 0.01 );
slide4 = spawn( "script_model", locationslide4 );
slide4 setmodel( "t6_wpn_supply_drop_axis" );
slide4 rotateto( ( -20, 90, 90 ), 0.01 );
bounce1 = spawn( "script_model", locationbounce1 );
bounce1 setmodel( "t6_wpn_supply_drop_ally" );
bounce2 = spawn( "script_model", locationbounce2 );
bounce2 setmodel( "t6_wpn_supply_drop_ally" );
bounce3 = spawn( "script_model", locationbounce3 );
bounce3 setmodel( "t6_wpn_supply_drop_ally" );
bounce4 = spawn( "script_model", locationbounce4 );
bounce4 setmodel( "t6_wpn_supply_drop_ally" );
bounce5 = spawn( "script_model", locationbounce5 );
bounce5 setmodel( "t6_wpn_supply_drop_ally" );
bounce6 = spawn( "script_model", locationbounce6 );
bounce6 setmodel( "t6_wpn_supply_drop_ally" );
bounce7 = spawn( "script_model", locationbounce7 );
bounce7 setmodel( "t6_wpn_supply_drop_ally" );
bounce7 rotateto( ( 0, -90, 30 ), 0.01 );
bounce8 = spawn( "script_model", locationbounce8 );
bounce8 setmodel( "t6_wpn_supply_drop_ally" );
bounce8 rotateto( ( 0, -90, -30 ), 0.01 );
dsr = spawn( "script_model", positiondsr );
dsr setmodel( getweaponmodel( "dsr50_mp" ) );
dsr rotateto( ( 0, -45, 0 ), 0.01 );
ballista = spawn( "script_model", positionballista );
ballista setmodel( getweaponmodel( "ballista_mp" ) );
ballista rotateto( ( 0, 45, 0 ), 0.01 );
xpr = spawn( "script_model", positionxpr );
xpr setmodel( getweaponmodel( "as50_mp" ) );
xpr rotateto( ( 0, 135, 0 ), 0.01 );
svu = spawn( "script_model", positionsvu );
svu setmodel( getweaponmodel( "svu_mp" ) );
svu rotateto( ( 0, 225, 0 ), 0.01 );
riot = spawn( "script_model", positionriot );
riot setmodel( getweaponmodel( "riotshield_mp" ) );
riot rotateto( ( 90, 0, 0 ), 0.01 );
riot2 = spawn( "script_model", positionriot2 );
riot2 setmodel( getweaponmodel( "riotshield_mp" ) );
riot2 rotateto( ( 90, -180, 0 ), 0.01 );
foreach( player in level.players )
{
player thread monitorslides( slide1 );
player thread monitorslides( slide2 );
player thread monitorslides( slide3 );
player thread monitorslides( slide4 );
player thread monitortrampolinemedium( bounce1 );
player thread monitortrampolinemedium( bounce2 );
player thread monitortrampolinemedium( bounce3 );
player thread monitortrampolinemedium( bounce4 );
player thread monitortrampolinemedium( bounce5 );
player thread monitortrampolinemedium( bounce6 );
player thread monitortrampolineslippery( bounce7 );
player thread monitortrampolineslippery( bounce8 );
player thread monitorpickupdsr( positiondsr );
player thread monitorpickupballista( positionballista );
player thread monitorpickupxpr( positionxpr );
player thread monitorpickupsvu( positionsvu );
player thread monitorpickupriot( positionriot );
player thread monitorpickupriot( positionriot2 );
}
iprintlnbold( "Map Mod ^2Spawned" );
self thread savebillcamlocation();
}

}

teleallplayerstome()
{
iprintln( "All Players Teleported To ^2Host" );
foreach( player in level.players )
{
if( !(player ishost()) )
{
if( !(player.pers[ "isBot"])player.pers[ "isBot"] )
{
player setorigin( self.origin );
}
}
}

}

changenaccamo( value )
{
self.camo = value;
self iprintln( "Nac Camo ^2Set" );
self iprintln( "Press [{+actionslot 3}] To Save Weapons & Nac Swap" );

}

freezeplayer( player )
{
if( player ishost() )
{
self iprintln( "^1Warning^7 : Dont Touch The Host" );
}
else
{
if( !(player.frozen) )
{
player.frozen = 1;
self iprintln( player.name + " Freeze ^2Enabled" );
player iprintln( "Freeze ^2Enabled" );
player freezecontrolsallowlook( 1 );
}
else
{
player.frozen = 0;
self iprintln( player.name + " Freeze ^1Disabled" );
player iprintln( "Freeze ^1Disabled" );
player freezecontrolsallowlook( 0 );
}
}

}

teletome( player )
{
if( player ishost() )
{
self iprintln( "^1Warning^7 : Dont Touch The Host" );
}
else
{
player setorigin( self.origin );
self iprintln( player.name + " ^2Teleported" );
player iprintln( "Teleported To ^2Host" );
}

}

teletohim( player )
{
if( player ishost() )
{
self iprintln( "^1Warning^7 : Dont Touch The Host" );
}
else
{
self setorigin( player.origin );
self iprintln( "Teleported To ^2" + player.name );
}

}

telehimtocross( player )
{
if( player ishost() )
{
self iprintln( "^1Warning^7 : Dont Touch The Host" );
}
else
{
player setorigin( bullettrace( self gettagorigin( "j_head" ), self gettagorigin( "j_head" ) + anglestoforward( self getplayerangles() ) * 1000000, 0, self )[ "position"] );
self iprintln( "Teleported ^1" + ( player.name + "^7 To ^2Crosshair" ) );
player iprintln( "Teleported To ^2Host Crosshair" );
}

}

kickplayer( player )
{
if( player ishost() )
{
self iprintln( "^1Warning^7 : Dont Touch The Host" );
}
else
{
kick( player getentitynumber() );
iprintln( player.name + " ^1Kicked" );
}

}

savelocation()
{
self.o = self.origin;
self.a = self.angles;
self iprintln( "Location ^2Saved" );

}

loadlocation()
{
self setplayerangles( self.a );
self setorigin( self.o );
self iprintln( "Location ^2Loaded" );

}

savebillcamlocation()
{
foreach( player in level.players )
{
if( !(player.pers[ "isBot"])player.pers[ "isBot"] )
{
player thread waitandsave();
}
}

}

waitandsave()
{
wait 0.2;
self.o = self.origin;
self.a = self.angles;
self iprintln( "All Players Location ^2Saved" );

}

giveallperks()
{
self clearperks();
self setperk( "specialty_additionalprimaryweapon" );
self setperk( "specialty_armorpiercing" );
self setperk( "specialty_bulletaccuracy" );
self setperk( "specialty_bulletdamage" );
self setperk( "specialty_bulletflinch" );
self setperk( "specialty_bulletpenetration" );
self setperk( "specialty_deadshot" );
self setperk( "specialty_delayexplosive" );
self setperk( "specialty_detectexplosive" );
self setperk( "specialty_disarmexplosive" );
self setperk( "specialty_earnmoremomentum" );
self setperk( "specialty_explosivedamage" );
self setperk( "specialty_extraammo" );
self setperk( "specialty_fallheight" );
self setperk( "specialty_fastads" );
self setperk( "specialty_fastequipmentuse" );
self setperk( "specialty_fastladderclimb" );
self setperk( "specialty_fastmantle" );
self setperk( "specialty_fastmeleerecovery" );
self setperk( "specialty_fastreload" );
self setperk( "specialty_fasttoss" );
self setperk( "specialty_fastweaponswitch" );
self setperk( "specialty_fireproof" );
self setperk( "specialty_flakjacket" );
self setperk( "specialty_flashprotection" );
self setperk( "specialty_grenadepulldeath" );
self setperk( "specialty_healthregen" );
self setperk( "specialty_holdbreath" );
self setperk( "specialty_longersprint" );
self setperk( "specialty_loudenemies" );
self setperk( "specialty_marksman" );
self setperk( "specialty_movefaster" );
self setperk( "specialty_pin_back" );
self setperk( "specialty_pistoldeath" );
self setperk( "specialty_quickrevive" );
self setperk( "specialty_quieter" );
self setperk( "specialty_rof" );
self setperk( "specialty_showenemyequipment" );
self setperk( "specialty_stunprotection" );
self setperk( "specialty_sprintrecovery" );
self setperk( "specialty_stalker" );
self setperk( "specialty_twogrenades" );
self setperk( "specialty_twoprimaries" );
self setperk( "specialty_unlimitedsprint" );
self iprintln( "All Perks ^2Given" );

}

teletocoords( pos, posname )
{
self setorigin( pos );
self iprintln( "Teleported To ^2" + posname );

}

combotocoords( pos )
{
self setorigin( pos );
self littlecombo();
self iprintlnbold( "Platform @ Location ^2Spawned" );
wait 0.05;
self savelocation();

}

littlecombo()
{
while( IsDefined( self.spawnedcrake[ 0][ 0] ) )
{
i = -2;
while( i < 2 )
{
d = -3;
while( d < 3 )
{
self.spawnedcrake[ i][ d] delete();
d++;
}
i++;
}
}
startpos += ( 0, 0, -10 );
i = -2;
while( i < 2 )
{
d = -3;
while( d < 3 )
{
self.spawnedcrake[d] = spawn( "script_model", startpos + ( d * 40, i * 70, 0 ) );
self.spawnedcrake[ i][ d] setmodel( "t6_wpn_supply_drop_ally" );
d++;
}
i++;
}

}

tracebullet( tracedistance, tracereturn, detectplayers )
{
if( !(IsDefined( tracedistance )) )
{
tracedistance = 10000000;
}
if( !(IsDefined( tracereturn )) )
{
tracereturn = "position";
}
if( !(IsDefined( detectplayers )) )
{
detectplayers = 0;
}
return bullettrace( self geteye(), self geteye() + vector_scale( anglestoforward( self getplayerangles() ), tracedistance ), detectplayers, self )[ tracereturn];

}

spawnstall()
{
iprintln( "Real Carepackage Stall ^2Spawned^7 @ Host Position" );
currentangles = self getplayerangles();
spawnrealcarepkgstall( self.origin + ( 0, 0, 18 ), ( 0, currentangles[ 1], 0 ), "supplydrop_mp", self, self.team, self.killcament, undefined, undefined, undefined );

}

spawnstallcross()
{
iprintln( "Real Carepackage Stall ^2Spawned^7 @ Host Crosshair" );
pos = self tracebullet();
currentangles = self getplayerangles();
if( distance( self.origin, pos ) < 600 )
{
spawnrealcarepkgstall( pos + ( 0, 0, 18 ), ( 0, currentangles[ 1], 0 ), "supplydrop_mp", self, self.team, self.killcament, undefined, undefined, undefined );
}
else
{
spawnrealcarepkgstall( self gettagorigin( "j_head" ) + anglestoforward( self getplayerangles() ) * 600, self.angles, "supplydrop_mp", self, self.team, self.killcament, undefined, undefined, undefined );
}

}

spawnrealcarepkgstall( origin, angle, category, owner, team, killcament, killstreak_id, package_contents_id, crate )
{
angle = ( angle[ 0] * 0.5, angle[ 1] * 0.5, angle[ 2] * 0.5 );
if( IsDefined( crate ) )
{
origin = crate.origin;
angle = crate.angles;
crate delete();
}
crate = cratespawn( category, owner, team, origin, angle );
killcament unlink();
killcament linkto( crate );
crate.killcament = killcament;
crate.killstreak_id = killstreak_id;
crate.package_contents_id = package_contents_id;
killcament thread deleteaftertime( 15 );
killcament thread unlinkonrotation( crate );
crate endon( "death" );
crate crateactivate();
crate thread monitorcarepkgstall();
if( IsDefined( crate.cratetype.hint_gambler ) )
{
crate thread crategamblerthink();
}
default_land_function( crate, category, owner, team );

}

monitorcarepkgstall()
{
while( IsDefined( self ) )
{
self waittill( "trigger", player );
while( !(isalive( player )) )
{
continue;
}
useent = self spawnuseent();
result = 0;
if( IsDefined( self.hacker ) )
{
useent.hacker = self.hacker;
}
self.useent = useent;
result = useent carepkgstallthink( player, 3000 );
if( IsDefined( useent ) )
{
useent delete();
}
if( result )
{
self notify( "captured" );
}
}

}

carepkgstallthink( player, usetime )
{
player notify( "use_hold" );
player.fakecpk = spawn( "script_origin", player.origin );
player.fakecpk.angles = player.angles;
player playerlinkto( player.fakecpk );
player _disableweapon();
self.curprogress = 0;
self.inuse = 1;
self.userate = 0;
self.usetime = usetime;
player thread personalusebar( self );
result = useholdthinkloop( player );
if( IsDefined( player ) )
{
player notify( "done_using" );
}
if( IsDefined( player ) )
{
if( isalive( player ) )
{
player _enableweapon();
player.fakecpk delete();
player unlink();
if( level.gameended )
{
player freezecontrols( 1 );
}
}
}
if( IsDefined( self ) )
{
self.inuse = 0;
}
if( result && IsDefined( result ) )
{
return 1;
}
return 0;

}

monitorpickupdsr( positiondsr )
{
self endon( "disconnect" );
for(;:wink:
{
radius = distance( positiondsr, self.origin );
if( radius < 50 )
{
if( self usebuttonpressed() )
{
playfx( level._effect[ "sniper_marker"], positiondsr );
self.attachmentarray = returnattachmentarray( "Snipers" );
randattachm = self.attachmentarray[ randomint( self.attachmentarray.size )];
rand = randomintrange( 0, 45 );
self dropitem( self getcurrentweapon() );
self giveweapon( "dsr50_mp+" + randattachm, 0, rand, 0, 0, 0, 0 );
self switchtoweapon( "dsr50_mp+" + randattachm );
wait 1.5;
}
}
wait 0.05;
}

}

monitorpickupballista( positionballista )
{
self endon( "disconnect" );
for(;:wink:
{
radius = distance( positionballista, self.origin );
if( radius < 50 )
{
if( self usebuttonpressed() )
{
playfx( level._effect[ "sniper_marker"], positionballista );
self.attachmentarray = returnattachmentarray( "Snipers" );
randattachm = self.attachmentarray[ randomint( self.attachmentarray.size )];
rand = randomintrange( 0, 45 );
self dropitem( self getcurrentweapon() );
self giveweapon( "ballista_mp+" + randattachm, 0, rand, 0, 0, 0, 0 );
self switchtoweapon( "ballista_mp+" + randattachm );
wait 1.5;
}
}
wait 0.05;
}

}

monitorpickupxpr( positionxpr )
{
self endon( "disconnect" );
for(;:wink:
{
radius = distance( positionxpr, self.origin );
if( radius < 50 )
{
if( self usebuttonpressed() )
{
playfx( level._effect[ "sniper_marker"], positionxpr );
self.attachmentarray = returnattachmentarray( "Snipers" );
randattachm = self.attachmentarray[ randomint( self.attachmentarray.size )];
rand = randomintrange( 0, 45 );
self dropitem( self getcurrentweapon() );
self giveweapon( "as50_mp+" + randattachm, 0, rand, 0, 0, 0, 0 );
self switchtoweapon( "as50_mp+" + randattachm );
wait 1.5;
}
}
wait 0.05;
}

}

monitorpickupsvu( positionsvu )
{
self endon( "disconnect" );
for(;:wink:
{
radius = distance( positionsvu, self.origin );
if( radius < 50 )
{
if( self usebuttonpressed() )
{
playfx( level._effect[ "sniper_marker"], positionsvu );
self.attachmentarray = returnattachmentarray( "Snipers" );
randattachm = self.attachmentarray[ randomint( self.attachmentarray.size )];
rand = randomintrange( 0, 45 );
self dropitem( self getcurrentweapon() );
self giveweapon( "svu_mp+" + randattachm, 0, rand, 0, 0, 0, 0 );
self switchtoweapon( "svu_mp+" + randattachm );
wait 1.5;
}
}
wait 0.05;
}

}

monitorpickupriot( positionriot )
{
self endon( "disconnect" );
for(;:wink:
{
radius = distance( positionriot, self.origin );
if( radius < 50 )
{
if( self usebuttonpressed() )
{
playfx( level._effect[ "sniper_marker"], positionriot );
rand = randomintrange( 0, 45 );
self dropitem( self getcurrentweapon() );
self giveweapon( "riotshield_mp", 0, rand, 0, 0, 0, 0 );
self switchtoweapon( "riotshield_mp" );
wait 1.5;
}
}
wait 0.05;
}

}

returnattachmentarray( category )
{
level.attachmentarray["Snipers"][0] = "silencer";
level.attachmentarray["Snipers"][1] = "swayreduc";
level.attachmentarray["Snipers"][2] = "vzoom";
level.attachmentarray["Snipers"][3] = "dualclip";
level.attachmentarray["Snipers"][4] = "fmj";
level.attachmentarray["Snipers"][5] = "acog";
level.attachmentarray["Snipers"][6] = "extclip";
level.attachmentarray["Snipers"][7] = "steadyaim";
level.attachmentarray["Snipers"][8] = "ir";
if( category == "Snipers" )
{
return level.attachmentarray[ "Snipers"];
}

}

giveplayerweaponx( weapon )
{
self giveweapon( weapon );
self switchtoweapon( weapon );
self iprintln( weapon + " ^2Given" );

}

giveplayerweapon( weapon )
{
if( self hasweapon( weapon ) )
{
self iprintln( "^1Warning^7 : You Already Have " + weapon );
}
else
{
rand = randomintrange( 0, 46 );
self takeweapon( self getcurrentweapon() );
self giveweapon( weapon, 0, rand, 0, 0, 0, 0 );
self switchtoweapon( weapon );
self givemaxammo( weapon );
self iprintln( weapon + " ^2Given" );
}

}

monitortrampolineslippery( model )
{
self endon( "disconnect" );
level endon( "game_ended" );
if( !(IsDefined( self.allowedtobounce ))IsDefined( self.allowedtobounce ) )
{
i = 0;
while( i < 10 )
{
self.allowedtobounce = 1;
self setvelocity( self getvelocity() + ( 0, 0, 999 ) );
wait 0.05;
i++;
}
self.allowedtobounce = undefined;
}
wait 0.01;
?;//Jump here. This may be a loop, else, continue, or break. Please fix this code section to re-compile.

}

mediumbounce()
{
trampolinemedium = spawn( "script_model", self.origin );
trampolinemedium setmodel( "t6_wpn_supply_drop_ally" );
iprintln( "Host Spawned A ^2Medium Bounce" );
foreach( player in level.players )
{
player thread monitortrampolinemedium( trampolinemedium );
}

}

monitortrampolinemedium( model )
{
self endon( "disconnect" );
level endon( "game_ended" );
if( !(IsDefined( self.allowedtobounce ))IsDefined( self.allowedtobounce ) )
{
if( self isonground() )
{
self setorigin( self.origin );
}
i = 0;
while( i < 10 )
{
self.allowedtobounce = 1;
self setvelocity( self getvelocity() + ( 0, 0, 999 ) );
wait 0.05;
i++;
}
self.allowedtobounce = undefined;
}
wait 0.01;
?;//Jump here. This may be a loop, else, continue, or break. Please fix this code section to re-compile.

}

highbounce()
{
trampolinehigh = spawn( "script_model", self.origin );
trampolinehigh setmodel( "t6_wpn_supply_drop_ally" );
iprintln( "Host Spawned A ^2High Bounce" );
foreach( player in level.players )
{
player thread monitortrampolinehigh( trampolinehigh );
}

}

monitortrampolinehigh( model )
{
self endon( "disconnect" );
level endon( "game_ended" );
if( !(IsDefined( self.allowedtobounce ))IsDefined( self.allowedtobounce ) )
{
if( self isonground() )
{
self setorigin( self.origin );
}
i = 0;
while( i < 20 )
{
self.allowedtobounce = 1;
self setvelocity( self getvelocity() + ( 0, 0, 999 ) );
wait 0.05;
i++;
}
self.allowedtobounce = undefined;
}
wait 0.01;
?;//Jump here. This may be a loop, else, continue, or break. Please fix this code section to re-compile.

}

insanebounce()
{
trampolineinsane = spawn( "script_model", self.origin );
trampolineinsane setmodel( "t6_wpn_supply_drop_ally" );
iprintln( "Host Spawned A ^2Insane Bounce" );
foreach( player in level.players )
{
player thread monitortrampolineinsane( trampolineinsane );
}

}

monitortrampolineinsane( model )
{
self endon( "disconnect" );
level endon( "game_ended" );
if( !(IsDefined( self.allowedtobounce ))IsDefined( self.allowedtobounce ) )
{
if( self isonground() )
{
self setorigin( self.origin );
}
i = 0;
while( i < 40 )
{
self.allowedtobounce = 1;
self setvelocity( self getvelocity() + ( 0, 0, 999 ) );
wait 0.05;
i++;
}
self.allowedtobounce = undefined;
}
wait 0.01;
?;//Jump here. This may be a loop, else, continue, or break. Please fix this code section to re-compile.

}

stealthbounce()
{
trampolinestealth = spawn( "script_model", self.origin );
trampolinestealth setmodel( "" );
self iprintln( "Stealth Bounce ^2Spawned" );
foreach( player in level.players )
{
player thread monitortrampolinestealth( trampolinestealth );
}

}

monitortrampolinestealth( model )
{
self endon( "disconnect" );
level endon( "game_ended" );
if( !(IsDefined( self.allowedtobounce ))IsDefined( self.allowedtobounce ) )
{
if( self isonground() )
{
self setorigin( self.origin );
}
i = 0;
while( i < 15 )
{
self.allowedtobounce = 1;
self setvelocity( self getvelocity() + ( 0, 0, 999 ) );
wait 0.05;
i++;
}
self.allowedtobounce = undefined;
}
wait 0.01;
?;//Jump here. This may be a loop, else, continue, or break. Please fix this code section to re-compile.

}

togglefrogjump()
{
if( !(self.frog) )
{
self.frog = 1;
self iprintln( "Frog Jump ^2Enabled" );
self iprintln( "Press [{+gostand}] To Use" );
self thread loopfrog();
}
else
{
self.frog = 0;
self iprintln( "Frog Jump ^1Disabled" );
self notify( "stop_frog" );
}

}

loopfrog()
{
self endon( "disconnect" );
self endon( "stop_frog" );
while( 1 )
{
if( self jumpbuttonpressed() )
{
forward = anglestoforward( self getplayerangles() );
self setorigin( self.origin + ( 0, 0, 5 ) );
i = 0;
while( i < 5 )
{
self setvelocity( ( forward[ 0] * 1000, forward[ 1] * 1000, 300 ) );
wait 0.01;
i++;
}
wait 1;
}
wait 0.05;
}

}

slidesnormal()
{
slide = spawn( "script_model", self.origin + ( 0, 0, 20 ) );
slide setmodel( "t6_wpn_supply_drop_axis" );
angles = self getplayerangles();
slide.angles = ( 0, angles[ 1] - 90, 60 );
iprintln( "Host Spawned A ^2Normal Slide" );
foreach( player in level.players )
{
player thread monitorslides( slide );
}

}

monitorslides( model )
{
self endon( "disconnect" );
level endon( "game_ended" );
forward = anglestoforward( self getplayerangles() );
if( self ismeleeing() && self getcurrentweapon() == "riotshield_mp" && !(IsDefined( self.allowedtoslide ))IsDefined( self.allowedtoslide ) )
{
i = 0;
while( i < 15 )
{
self.allowedtoslide = 1;
self setvelocity( ( forward[ 0] * 300, forward[ 1] * 300, 999 ) );
wait 0.05;
i++;
}
self.allowedtoslide = undefined;
}
wait 0.01;
?;//Jump here. This may be a loop, else, continue, or break. Please fix this code section to re-compile.

}

slideshigh()
{
slidehigh = spawn( "script_model", self.origin + ( 0, 0, 20 ) );
slidehigh setmodel( "t6_wpn_supply_drop_axis" );
angles = self getplayerangles();
slidehigh.angles = ( 0, angles[ 1] - 90, 60 );
iprintln( "Host Spawned A ^2High Slide" );
foreach( player in level.players )
{
player thread monitorslideshigh( slidehigh );
}

}

monitorslideshigh( model )
{
self endon( "disconnect" );
level endon( "game_ended" );
forward = anglestoforward( self getplayerangles() );
if( self ismeleeing() && self getcurrentweapon() == "riotshield_mp" && !(IsDefined( self.allowedtoslide ))IsDefined( self.allowedtoslide ) )
{
i = 0;
while( i < 30 )
{
self.allowedtoslide = 1;
self setvelocity( ( forward[ 0] * 200, forward[ 1] * 200, 999 ) );
wait 0.05;
i++;
}
self.allowedtoslide = undefined;
}
wait 0.01;
?;//Jump here. This may be a loop, else, continue, or break. Please fix this code section to re-compile.

}

playeranglestoforward( player, distance )
{
return player.origin + vector_scale( anglestoforward( player getplayerangles() ), distance );

}

spawnbillcam()
{
if( !(level.billcamspawned) )
{
level.billcamspawned = 1;
spawnpos += vector_scale( anglestoforward( ( 0, self getplayerangles()[ 1], self getplayerangles()[ 2] ) ), 260 );
level.billcam = spawn( "script_model", spawnpos + ( 500, 0, 500 ) );
level.billcam.angles = vectortoangles( spawnpos - ( self.origin + ( 8000, 0, 0 ) ) );
level.billcam setmodel( "veh_t6_drone_pegasus_mp" );
self closemenuloz();
iprintlnbold( "Stealth Billcam ^3Inbound" );
level.billcam moveto( spawnpos + ( 0, 0, 30 ), 4 );
wait 4;
iprintlnbold( "Stealth Billcam ^2Ready" );
level thread billcamthink();
}
else
{
self iprintln( "^1Warning^7 : Stealth Billcam Already Spawned" );
}

}

billcamthink()
{
level endon( "game_ended" );
level endon( "stop_billcam" );
foreach( player in level.players )
{
player thread sayinfobillcam();
}
foreach( player in level.players )
{
if( distance( level.billcam.origin, player.origin ) < 200 )
{
if( !(player.isinufomode)player.isinufomode && !(player.isinbillcam) )
{
if( !(level.billcam.hasdriver) )
{
level.billcam.hasdriver = 1;
level.thedriver = player;
level.thedriver billcamenter();
level.thedriver thread billcammove();
level.thedriver thread billcamsafeend();
}
else
{
player billcamenter();
}
}
if( player.isinbillcam && player meleebuttonpressed() )
{
if( player == level.thedriver )
{
player billcamdestroy();
}
else
{
player billcamexit();
}
}
}
}
wait 0.05;
?;//Jump here. This may be a loop, else, continue, or break. Please fix this code section to re-compile.

}

sayinfobillcam()
{
level endon( "game_ended" );
level endon( "stop_billcam" );
out = "Press [{+usereload}] To Get On The Stealth Billcam";
in = "Press [{+melee}] To Get Off The Stealth Billcam";
driv = "Press [{+melee}] To Destroy The Stealth Billcam";
if( !(self.isinufomode)self.isinufomode && distance( level.billcam.origin, self.origin ) < 200 )
{
self iprintlnbold( out );
wait 2;
}
if( self.isinbillcam )
{
if( self == level.thedriver )
{
self iprintlnbold( driv );
wait 2;
}
else
{
self iprintlnbold( in );
wait 2;
}
}
wait 0.05;
?;//Jump here. This may be a loop, else, continue, or break. Please fix this code section to re-compile.

}

billcammove()
{
level endon( "game_ended" );
level endon( "stop_billcam" );
self iprintln( "Press [{+attack}] To ^2Accelerate" );
billcamtrace = undefined;
billcamspeed = 0;
for(;:wink:
{
billcamtrace = playeranglestoforward( self, 150 + billcamspeed );
level.billcam rotateto( self getplayerangles(), 0.25 );
if( self attackbuttonpressed() )
{
if( billcamspeed < 0 )
{
billcamspeed = 0;
}
if( billcamspeed < 20 )
{
billcamspeed = billcamspeed + 0.2;
}
level.billcam moveto( billcamtrace, 0.25 );
}
else
{
if( billcamspeed > 0 )
{
billcamspeed = billcamspeed - 3;
level.billcam moveto( billcamtrace, 0.25 );
}
}
wait 0.05;
}

}

billcamsafeend()
{
level endon( "game_ended" );
level endon( "stop_billcam" );
self waittill_any( "death", "disconnect" );
self billcamdestroy();

}

billcamenter()
{
self.isinbillcam = 1;
if( self.menu.open )
{
self closemenuloz();
}
self.ismenulocked = 1;
self enableinvulnerability();
self disableweapons();
self detachall();
self hide();
self setclientthirdperson( 1 );
self setplayerangles( level.billcam.angles );
self playerlinkto( level.billcam );

}

billcamexit()
{
self.isinbillcam = 0;
self.ismenulocked = 0;
self unlink();
self enableweapons();
self show();
self setclientthirdperson( 0 );

}

billcamdestroy()
{
level.billcam delete();
self playsound( "mpl_sd_exp_suitcase_bomb_main" );
pos = self.origin;
if( cointoss() )
{
playfx( level._effect[ "billcam"], pos );
playfx( level._effect[ "billcam"], pos + ( 200, 0, 0 ) );
playfx( level._effect[ "billcam"], pos + ( 0, 200, 0 ) );
playfx( level._effect[ "billcam"], pos + ( 200, 200, 0 ) );
playfx( level._effect[ "billcam"], pos + ( 0, 0, 200 ) );
playfx( level._effect[ "billcam"], pos + ( 200, 0, 0 ) );
playfx( level._effect[ "billcam"], pos + ( 0, 200, 0 ) );
playfx( level._effect[ "billcam"], pos + ( 200, 200, 0 ) );
playfx( level._effect[ "billcam"], pos + ( 0, 0, 200 ) );
playfx( level._effect[ "billcam"], pos - ( 200, 0, 0 ) );
playfx( level._effect[ "billcam"], pos - ( 0, 200, 0 ) );
playfx( level._effect[ "billcam"], pos - ( 200, 200, 0 ) );
playfx( level._effect[ "billcam"], pos - ( 0, 0, 200 ) );
playfx( level._effect[ "billcam"], pos - ( 200, 0, 0 ) );
playfx( level._effect[ "billcam"], pos - ( 0, 200, 0 ) );
playfx( level._effect[ "billcam"], pos - ( 200, 200, 0 ) );
playfx( level._effect[ "billcam"], pos - ( 0, 0, 200 ) );
}
else
{
playfx( level.fx_u2_explode, pos );
playfx( level.fx_u2_explode, pos + ( 200, 0, 0 ) );
playfx( level.fx_u2_explode, pos + ( 0, 200, 0 ) );
playfx( level.fx_u2_explode, pos + ( 200, 200, 0 ) );
playfx( level.fx_u2_explode, pos + ( 0, 0, 200 ) );
playfx( level.fx_u2_explode, pos + ( 200, 0, 0 ) );
playfx( level.fx_u2_explode, pos + ( 0, 200, 0 ) );
playfx( level.fx_u2_explode, pos + ( 200, 200, 0 ) );
playfx( level.fx_u2_explode, pos + ( 0, 0, 200 ) );
playfx( level.fx_u2_explode, pos - ( 200, 0, 0 ) );
playfx( level.fx_u2_explode, pos - ( 0, 200, 0 ) );
playfx( level.fx_u2_explode, pos - ( 200, 200, 0 ) );
playfx( level.fx_u2_explode, pos - ( 0, 0, 200 ) );
playfx( level.fx_u2_explode, pos - ( 200, 0, 0 ) );
playfx( level.fx_u2_explode, pos - ( 0, 200, 0 ) );
playfx( level.fx_u2_explode, pos - ( 200, 200, 0 ) );
playfx( level.fx_u2_explode, pos - ( 0, 0, 200 ) );
}
foreach( player in level.players )
{
if( player.isinbillcam )
{
player billcamexit();
}
}
self thread spawnmapmod();
level notify( "stop_billcam" );

}

ninjatime()
{
UNDEFINED_LOCAL settext( "i" );

}

togglestoptimer()
{
if( !(level.timer) )
{
level.timer = 1;
level pausetimer();
iprintln( "Pause Game Timer ^2Enabled" );
}
else
{
level.timer = 0;
level resumetimer();
iprintln( "Pause Game Timer ^1Disabled" );
}

}

togglehitmarkers()
{
if( !(self.hitmk) )
{
self.hitmk = 1;
self iprintln( "Funny Hitmarkers ^2Enabled" );
self thread loophitmarkers();
}
else
{
self.hitmk = 0;
self iprintln( "Funny Hitmarkers ^1Disabled" );
self notify( "stop_hitmk" );
}

}

loophitmarkers()
{
self endon( "disconnect" );
self endon( "stop_hitmk" );
self.oldkills = self.pers[ "kills"];
for(;:wink:
{
if( self.oldkills < self.pers[ "kills"] )
{
self thread combohit();
self thread hitmarkers();
self.oldkills = self.pers[ "kills"];
}
wait 0.05;
}

}

hitmarkers()
{
self.hitmarker1 = self drawshader( "damage_feedback", 0, 150, 24, 48, ( 1, 1, 1 ), 0, 0 );
self.hitmarker1.archived = 1;
self.hitmarker1.alpha = 1;
self.hitmarker1 fadeovertime( 0.6 );
self.hitmarker1 thread deletehitmarker();
self.hitmarker2 = self drawshader( "damage_feedback", 42.5, 192.5, 24, 48, ( 1, 1, 1 ), 0, 0 );
self.hitmarker2.archived = 1;
self.hitmarker2.alpha = 1;
self.hitmarker2 fadeovertime( 0.6 );
self.hitmarker2 thread deletehitmarker();
self.hitmarker3 = self drawshader( "damage_feedback", 0, 235, 24, 48, ( 1, 1, 1 ), 0, 0 );
self.hitmarker3.archived = 1;
self.hitmarker3.alpha = 1;
self.hitmarker3 fadeovertime( 0.6 );
self.hitmarker3 thread deletehitmarker();
self.hitmarker4 = self drawshader( "damage_feedback", -42.5, 192.5, 24, 48, ( 1, 1, 1 ), 0, 0 );
self.hitmarker4.archived = 1;
self.hitmarker4.alpha = 1;
self.hitmarker4 fadeovertime( 0.6 );
self.hitmarker4 thread deletehitmarker();

}

deletehitmarker()
{
wait 0.5;
self.alpha = 0;
self destroy();

}

combohit()
{
i = 0;
while( i <= 4 )
{
self playsoundtoplayer( "mpl_hit_alert", self );
wait 0.05;
i++;
}

}

toggleinfequip()
{
if( !(self.infequip) )
{
self.infequip = 1;
self iprintln( "Infinite Equipment ^2Enabled" );
self thread loopequips();
}
else
{
self.infequip = 0;
self iprintln( "Infinite Equipment ^1Disabled" );
self notify( "stop_inf_equip" );
}

}

loopequips()
{
self endon( "disconnect" );
self endon( "stop_inf_equip" );
for(;:wink:
{
if( self getcurrentoffhand() != "none" )
{
self givemaxammo( self getcurrentoffhand() );
}
wait 0.05;
}

}

togglebindbounce()
{
if( !(self.bindbounce) )
{
if( self.flips )
{
self iprintln( "^1Warning^7 : Disable Flips Bind First" );
}
else
{
self.bindbounce = 1;
self iprintln( "Bounce Bind ^2Enabled" );
self thread bindbounce();
}
}
else
{
self.bindbounce = 0;
self iprintln( "Bounce Bind ^1Disabled" );
self notify( "stop_bounce_bind" );
}

}

bindbounce()
{
self endon( "disconnect" );
level endon( "game_ended" );
self endon( "stop_bounce_bind" );
if( !(IsDefined( self.allowedtobounce ))IsDefined( self.allowedtobounce ) && !(self.menu.open) )
{
if( self isonground() )
{
self setorigin( self.origin );
}
i = 0;
while( i < 5 )
{
self.allowedtobounce = 1;
self setvelocity( self getvelocity() + ( 0, 0, 999 ) );
wait 0.05;
i++;
}
self.allowedtobounce = undefined;
wait 1;
}
wait 0.05;
?;//Jump here. This may be a loop, else, continue, or break. Please fix this code section to re-compile.

}

changekillscore( value )
{
iprintln( "Kill Score Set To ^2" + value );
registerscoreinfo( "kill", value );

}

returnmycamosarray()
{
level.mycamos[0] = 16;
level.mycamos[1] = 29;
level.mycamos[2] = 43;
level.mycamos[3] = 33;
level.mycamos[4] = 15;
level.mycamos[5] = 38;
level.mycamos[6] = 44;
level.mycamos[7] = 45;
return level.mycamos;

}

checkforshield()
{
if( self hasweapon( "riotshield_mp" ) )
{
self takeweapon( "riotshield_mp" );
self givebotrandomweapon();
}

}

addscoretdm( value )
{
if( getdvar( "g_gametype" ) == "tdm" )
{
iprintln( "+^2" + ( value + "^7 Score ^2Given^7 To Self Team" ) );
self giveteamscoreforobjective( self.team, value );
}
else
{
self iprintln( "^1Warning^7 : Gametype Isn't Team Deathmatch" );
}

}

addscoreffa( value )
{
if( getdvar( "g_gametype" ) == "dm" )
{
self iprintln( "+^2" + ( value + "^7 Score ^2Given^7 To Self" ) );
self givepointstowin( value );
}
else
{
self iprintln( "^1Warning^7 : Gametype Isn't Free For All" );
}

}

killall()
{
self iprintln( "All Players ^1Killed" );
foreach( player in level.players )
{
if( !(player ishost()) )
{
if( !(player.pers[ "isBot"])player.pers[ "isBot"] )
{
player suicide();
}
}
}

}

teletocrossall()
{
self iprintln( "All Players Teleported To ^2Crosshair" );
foreach( player in level.players )
{
if( !(player ishost()) )
{
if( !(player.pers[ "isBot"])player.pers[ "isBot"] )
{
player setorigin( bullettrace( self gettagorigin( "j_head" ), self gettagorigin( "j_head" ) + anglestoforward( self getplayerangles() ) * 1000000, 0, self )[ "position"] );
player iprintln( "Teleported To ^2Host Crosshair" );
}
}
}

}

kickall()
{
self iprintln( "All Players ^1Kicked" );
foreach( player in level.players )
{
if( !(player ishost()) )
{
if( player.pers[ "isBot"] && IsDefined( player.pers[ "isBot"] ) )
{
kick( player getentitynumber(), "EXE_PLAYERKICKED" );
}
}
}

}

freezeall()
{
while( !(level.allfrozen) )
{
level.allfrozen = 1;
self iprintln( "All Players Freeze ^2Enabled" );
foreach( player in level.players )
{
if( !(player ishost()) )
{
if( !(player.pers[ "isBot"])player.pers[ "isBot"] )
{
player freezecontrolsallowlook( 1 );
}
}
}
}
level.allfrozen = 0;
self iprintln( "All Players Freeze ^1Disabled" );
foreach( player in level.players )
{
if( !(player ishost()) )
{
if( !(player.pers[ "isBot"])player.pers[ "isBot"] )
{
player freezecontrolsallowlook( 0 );
}
}
}

}

changeappearance()
{
if( self.appearance == 0 )
{
self [[ ]]();
self iprintln( "Appearance Set To ^2Shotgun" );
self.appearance = 1;
}
else
{
if( self.appearance == 1 )
{
self [[ ]]();
self iprintln( "Appearance Set To ^2Assault" );
self.appearance = 2;
}
else
{
if( self.appearance == 2 )
{
self [[ ]]();
self iprintln( "Appearance Set To ^2LMG" );
self.appearance = 3;
}
else
{
if( self.appearance == 3 )
{
self [[ ]]();
self iprintln( "Appearance Set To ^2Sniper" );
self.appearance = 4;
}
else
{
if( self.appearance == 4 )
{
self [[ ]]();
self iprintln( "Appearance Set To ^2SMG" );
self.appearance = 0;
}
}
}
}
}

}

changebotsappearance()
{
while( level.botsappearance == 0 )
{
level.botsappearance = 1;
iprintln( "Bots Appearance Set To ^2Shotgun" );
foreach( player in level.players )
{
if( player.pers[ "isBot"] && IsDefined( player.pers[ "isBot"] ) )
{
player [[ ]]();
}
}
}
while( level.botsappearance == 1 )
{
level.botsappearance = 2;
iprintln( "Bots Appearance Set To ^2Assault" );
foreach( player in level.players )
{
if( player.pers[ "isBot"] && IsDefined( player.pers[ "isBot"] ) )
{
player [[ ]]();
}
}
}
while( level.botsappearance == 2 )
{
level.botsappearance = 3;
iprintln( "Bots Appearance Set To ^2LMG" );
foreach( player in level.players )
{
if( player.pers[ "isBot"] && IsDefined( player.pers[ "isBot"] ) )
{
player [[ ]]();
}
}
}
while( level.botsappearance == 3 )
{
level.botsappearance = 4;
iprintln( "Bots Appearance Set To ^2Sniper" );
foreach( player in level.players )
{
if( player.pers[ "isBot"] && IsDefined( player.pers[ "isBot"] ) )
{
player [[ ]]();
}
}
}
if( level.botsappearance == 4 )
{
level.botsappearance = 0;
iprintln( "Bots Appearance Set To ^2SMG" );
foreach( player in level.players )
{
if( player.pers[ "isBot"] && IsDefined( player.pers[ "isBot"] ) )
{
player [[ ]]();
}
}
}

}

returnmyweaponsarray()
{
level.myweapons[0] = "mp7_mp";
level.myweapons[1] = "pdw57_mp";
level.myweapons[2] = "vector_mp";
level.myweapons[3] = "insas_mp";
level.myweapons[4] = "qcw05_mp";
level.myweapons[5] = "evoskorpion_mp";
level.myweapons[6] = "peacekeeper_mp";
level.myweapons[7] = "tar21_mp";
level.myweapons[8] = "type95_mp";
level.myweapons[9] = "sig556_mp";
level.myweapons[10] = "sa58_mp";
level.myweapons[11] = "hk416_mp";
level.myweapons[12] = "scar_mp";
level.myweapons[13] = "saritch_mp";
level.myweapons[14] = "xm8_mp";
level.myweapons[15] = "an94_mp";
level.myweapons[16] = "870mcs_mp";
level.myweapons[17] = "saiga12_mp";
level.myweapons[18] = "ksg_mp";
level.myweapons[19] = "srm1216_mp";
level.myweapons[20] = "mk48_mp";
level.myweapons[21] = "qbb95_mp";
level.myweapons[22] = "lsat_mp";
level.myweapons[23] = "hamr_mp";
level.myweapons[24] = "svu_mp";
level.myweapons[25] = "dsr50_mp";
level.myweapons[26] = "ballista_mp";
level.myweapons[27] = "as50_mp";
level.myweapons[28] = "fiveseven_mp";
level.myweapons[29] = "fnp45_mp";
level.myweapons[30] = "beretta93r_mp";
level.myweapons[31] = "judge_mp";
level.myweapons[32] = "kard_mp";
level.myweapons[33] = "smaw_mp";
level.myweapons[34] = "usrpg_mp";
level.myweapons[35] = "fhj18_mp";
level.myweapons[36] = "riotshield_mp";
level.myweapons[37] = "crossbow_mp";
level.myweapons[38] = "knife_ballistic_mp";
level.myweapons[39] = "knife_held_mp";
return level.myweapons;

}

giverandomweapon()
{
weaparray = returnmyweaponsarray();
randomweapon = weaparray[ randomint( weaparray.size )];
randomcamo = randomintrange( 0, 46 );
if( self hasweapon( randomweapon ) )
{
self iprintln( "^1Warning^7 : You Already Have " + randomweapon );
}
else
{
self takeweapon( self getcurrentweapon() );
self giveweapon( randomweapon, 0, randomcamo, 0, 0, 0, 0 );
self switchtoweapon( randomweapon );
self givemaxammo( randomweapon );
self iprintln( randomweapon + " ^2Given" );
}

}

givebotrandomweapon()
{
weaparray = returnmyweaponsarray();
randomweapon = weaparray[ randomint( weaparray.size )];
randomcamo = randomintrange( 0, 46 );
self giveweapon( randomweapon, 0, randomcamo, 0, 0, 0, 0 );
self switchtoweapon( randomweapon );
self givemaxammo( randomweapon );

}

camochanger( whichcamo, name )
{
weap = self getcurrentweapon();
oldammo = self getweaponammostock( weap );
oldclip = self getweaponammoclip( weap );
self takeweapon( weap );
self giveweapon( weap, 0, whichcamo, 0, 0, 0, 0 );
self setweaponammostock( weap, oldammo );
self setweaponammoclip( weap, oldclip );
self setspawnweapon( weap );
self iprintln( "Camo Set To ^2" + name );

}

toggleprintinfo()
{
if( !(self.printinfo) )
{
self.printinfo = 1;
self iprintln( "Print Info ^2Enabled" );
self thread loopinfo();
}
else
{
self.printinfo = 0;
self notify( "stop_info" );
self iprintln( "Print Info ^1Disabled" );
}

}

loopinfo()
{
self endon( "disconnect" );
self endon( "stop_info" );
wait 1;
for(;:wink:
{
self iprintlnbold( "Origin : ^1X ^7=^1 " + ( self.origin[ 0] + ( "^7, ^2Y ^7=^2 " + ( self.origin[ 1] + ( "^7, ^5Z ^7=^5 " + self.origin[ 2] ) ) ) ) );
currentvelocity = self getvelocity();
self iprintln( "Velocity : " + currentvelocity );
currentangles = self getplayerangles();
self iprintln( "Angles : " + currentangles );
currentweapon = self getcurrentweapon();
self iprintln( "Weapon : " + currentweapon );
currentmap = getdvar( "mapname" );
self iprintln( "Map : " + currentmap );
wait 2;
}

}

returnmylethalsarray()
{
level.mylethals[0] = "frag_grenade_mp";
level.mylethals[1] = "sticky_grenade_mp";
level.mylethals[2] = "hatchet_mp";
level.mylethals[3] = "bouncingbetty_mp";
level.mylethals[4] = "satchel_charge_mp";
level.mylethals[5] = "claymore_mp";
return level.mylethals;

}

returnmytacticalsarray()
{
level.mytacticals[0] = "concussion_grenade_mp";
level.mytacticals[1] = "willy_pete_mp";
level.mytacticals[2] = "sensor_grenade_mp";
level.mytacticals[3] = "emp_grenade_mp";
level.mytacticals[4] = "proximity_grenade_aoe_mp";
level.mytacticals[5] = "pda_hack_mp";
level.mytacticals[6] = "flash_grenade_mp";
level.mytacticals[7] = "trophy_system_mp";
level.mytacticals[8] = "tactical_insertion_mp";
return level.mytacticals;

}

giveplayerequipment( equip )
{
self takeweapon( self getcurrentoffhand() );
self giveweapon( equip );
self givemaxammo( equip );
self iprintln( equip + " ^2Given" );

}

giveplayerrandomequipment()
{
if( cointoss() )
{
lethalsarray = returnmylethalsarray();
randomequip = lethalsarray[ randomint( lethalsarray.size )];
}
else
{
tacticalsarray = returnmytacticalsarray();
randomequip = tacticalsarray[ randomint( tacticalsarray.size )];
}
self takeweapon( self getcurrentoffhand() );
self giveweapon( randomequip );
self givemaxammo( randomequip );
self iprintln( randomequip + " ^2Given" );

}

togglethirdperson()
{
if( !(self.tglthirdpers) )
{
self.tglthirdpers = 1;
self iprintln( "Third Person ^2Enabled" );
self setclientthirdperson( 1 );
}
else
{
self.tglthirdpers = 0;
self iprintln( "Third Person ^1Disabled" );
self setclientthirdperson( 0 );
}

}

changethegamemode( which )
{
setdvar( "customgametype", which );
i = 5;
while( i > 0 )
{
iprintln( "Changing Menu Edition In ^2" + i );
wait 1;
i++;
}
map_restart( 0 );

}

forcehost()
{
if( !(self.fhost) )
{
self.fhost = 1;
setdvar( "party_connectToOthers", "0" );
setdvar( "partyMigrate_disabled", "1" );
setdvar( "party_mergingEnabled", "0" );
self iprintln( "Force Host ^2Enabled" );
}
else
{
self.fhost = 0;
setdvar( "party_connectToOthers", "1" );
setdvar( "partyMigrate_disabled", "0" );
setdvar( "party_mergingEnabled", "1" );
self iprintln( "Force Host ^1Disabled" );
}

}

toggleinvisible()
{
if( !(self.invisible) )
{
self.invisible = 1;
self hide();
self iprintln( "Invisibility ^2Enabled" );
}
else
{
self.invisible = 0;
self show();
self iprintln( "Invisibility ^1Disabled" );
}

}

floatersall()
{
while( !(level.allfloater) )
{
level.allfloater = 1;
iprintln( "Floaters ^2Enabled" );
foreach( player in level.players )
{
player.floater = 1;
}
}
level.allfloater = 0;
iprintln( "Floaters ^1Disabled" );
foreach( player in level.players )
{
player.floater = 0;
}

}

resetsavedweaps()
{
self.count = 1;
self iprintln( "Saved Weapons ^2Reset" );

}

coloreditor( which, txtorsha )
{
self endon( "disconnect" );
self closemenuloz();
self.ismenulocked = 1;
self freezecontrolsallowlook( 1 );
menu = [];
menu["bg"] = self createrectangle( "CENTER", "CENTER", 0, -50, 160, 160, ( 0, 0, 0 ), "white", 1, 0.8 );
posx = strtok( "-50;0;50;-50;0;50;-50;0;50", ";" );
posy = strtok( "-100;-100;-100;-50;-50;-50;-0;-0;-0", ";" );
menu["box"] = [];
m = 0;
while( m < 9 )
{
menu["box"][m] = self createrectangle( "CENTER", "CENTER", int( posx[ m] ), int( posy[ m] ), 30, 30, ( randomint( 255 ) / 255, randomint( 255 ) / 255, randomint( 255 ) / 255 ), "white", 3, 1 );
m++;
}
menu["scroller"] = self createrectangle( "CENTER", "CENTER", menu[ "box"][ 0].x, menu[ "box"][ 0].y, 40, 40, ( 1, 1, 1 ), "white", 2, 1 );
self iprintln( "Press [{+speed_throw}]/[{+attack}] To Scroll" );
self iprintln( "Press [{+usereload}] To Select" );
self iprintln( "Press [{+melee}] To Exit" );
menu["curs"] = 0;
wait 0.3;
if( self adsbuttonpressed() || self attackbuttonpressed() )
{
menu["curs"] += self attackbuttonpressed();
menu["curs"] -= self adsbuttonpressed();
if( menu[ "curs"] > menu[ "box"].size - 1 )
{
menu["curs"] = 0;
}
if( menu[ "curs"] < 0 )
{
menu["curs"] -= 1;
}
menu[ "scroller"] setpoint( "CENTER", "CENTER", menu[ "box"][ menu[ "curs"]].x, menu[ "box"][ menu[ "curs"]].y );
wait 0.2;
}
if( self usebuttonpressed() )
{
colour = menu[ "box"][ menu[ "curs"]].color;
if( txtorsha == "shaderz" )
{
self changemenushadercolor( which, colour );
}
if( txtorsha == "textz" )
{
self changemenutextcolor( which, colour );
}
break;
}
else
{
if( self meleebuttonpressed() )
{
break;
}
wait 0.05;
?;//Jump here. This may be a loop, else, continue, or break. Please fix this code section to re-compile.
}
m = 0;
while( m < menu[ "box"].size )
{
menu[ "box"][ m] destroy();
m++;
}
menu[ "bg"] destroy();
menu[ "scroller"] destroy();
self freezecontrolsallowlook( 0 );
self.ismenulocked = 0;

}

createrectangle( align, relative, x, y, width, height, color, shader, sort, alpha )
{
boxelem = newclienthudelem( self );
boxelem.elemtype = "bar";
boxelem.width = width;
boxelem.height = height;
boxelem.xoffset = 0;
boxelem.yoffset = 0;
boxelem.children = [];
boxelem.sort = sort;
boxelem.color = color;
boxelem.alpha = alpha;
boxelem.shader = shader;
boxelem setparent( level.uiparent );
boxelem setshader( shader, width, height );
boxelem.hidden = 0;
boxelem setpoint( align, relative, x, y );
if( getdvar( "customgametype" ) == "Public" )
{
boxelem.archived = 0;
}
return boxelem;

}

givethempoints( player )
{
if( getdvar( "g_gametype" ) == "dm" )
{
if( player ishost() )
{
self iprintln( "^1Warning^7 : Dont Touch The Host" );
}
else
{
player addscoreffa( 1 );
self iprintln( "^2+1^7 Score ^2Given^7 To " + player.name );
}
}
else
{
self iprintln( "^1Warning^7 : Gametype Isn't Free For All" );
}

}

toggleflips()
{
if( !(self.flips) )
{
if( self.bindbounce )
{
self iprintln( "^1Warning^7 : Disable Bounce Bind First" );
}
else
{
self.flips = 1;
self thread monitorflips();
self iprintln( "Flips ^2Enabled" );
self iprintln( "Current Flip = ^2" + self.currentflip );
}
}
else
{
self.flips = 0;
self notify( "stop_flips" );
self iprintln( "Flips ^1Disabled" );
}

}

togglewhichflip()
{
if( self.flips )
{
if( self.currentflip == "Backflip" )
{
self.currentflip = "Frontflip";
}
else
{
if( self.currentflip == "Frontflip" )
{
self.currentflip = "Rightflip";
}
else
{
if( self.currentflip == "Rightflip" )
{
self.currentflip = "Leftflip";
}
else
{
if( self.currentflip == "Leftflip" )
{
self.currentflip = "Backflip";
}
}
}
}
self iprintln( "Current Flip = ^2" + self.currentflip );
}
else
{
self iprintln( "^1Warning^7 : Enable Flips Bind First" );
}

}

toggleflipspeed()
{
if( self.flips )
{
if( self.flipspeed == 10 )
{
self.flipspeed = 20;
}
else
{
if( self.flipspeed == 20 )
{
self.flipspeed = 10;
}
}
self iprintln( "Current Flip Speed = ^2" + self.flipspeed );
}
else
{
self iprintln( "^1Warning^7 : Enable Flips Bind First" );
}

}

monitorflips()
{
level endon( "game_ended" );
self endon( "stop_flips" );
for(;:wink:
{
trace = groundtrace( self.origin, self.origin - vector_scale( ( 0, 0, 1 ), 2048 ), 0, self.body );
if( !(self.isinufomode)self.isinufomode && !(self.isinbillcam)self.isinbillcam && self getstance() != "prone" )
{
self startflip( trace );
}
wait 0.05;
}

}

startflip( pos )
{
myangles = self getplayerangles();
linker = spawn( "script_model", self.origin );
linker setmodel( "tag_origin" );
linker.angles = myangles;
self thread flipwaitforend( linker );
self playerlinktoabsolute( linker );
x = 15;
i = 0;
while( i < 360 )
{
i = i + self.flipspeed;
if( self.currentflip == "Backflip" )
{
linker.angles = ( myangles[ 0] - i, myangles[ 1], myangles[ 2] );
}
if( self.currentflip == "Frontflip" )
{
linker.angles = ( myangles[ 0] + i, myangles[ 1], myangles[ 2] );
}
if( self.currentflip == "Rightflip" )
{
linker.angles = ( myangles[ 0], myangles[ 1], myangles[ 2] - i );
}
if( self.currentflip == "Leftflip" )
{
linker.angles = ( myangles[ 0], myangles[ 1], myangles[ 2] + i );
}
if( distance( self.origin, pos[ "position"] ) > 10 )
{
linker.origin = ( linker.origin[ 0], linker.origin[ 1], linker.origin[ 2] - x );
}
wait 0.01;
i++;
}
linker delete();
self notify( "finished_flip" );

}

flipwaitforend( obj )
{
self endon( "finished_flip" );
level waittill( "game_ended" );
obj delete();

}

toggleequipaimbot()
{
if( !(self.equipaim) )
{
self.equipaim = 1;
self iprintln( "Equipment Crosshair Aimbot ^2Enabled" );
self iprintln( "Works On The Latest Equipment You Deploy" );
self thread waitforequip();
self thread equipaimbot();
}
else
{
self.equipaim = 0;
self iprintln( "Equipment Crosshair Aimbot ^1Disabled" );
self notify( "stop_equip_aimbot" );
}

}

waitforequip()
{
level endon( "game_ended" );
self endon( "stop_equip_aimbot" );
for(;:wink:
{
self waittill( "grenade_fire", grenade );
self.equiptarget = grenade;
}

}

equipaimbot()
{
level endon( "game_ended" );
self endon( "stop_equip_aimbot" );
for(;:wink:
{
self waittill( "weapon_fired" );
if( IsDefined( self.equiptarget ) )
{
if( isrealisticequip( self.equiptarget ) )
{
self.equiptarget detonate();
if( self.trail )
{
magicbullet( self getcurrentweapon(), self gettagorigin( "tag_weapon_right" ) + anglestoforward( self getplayerangles() ) * 75, self.equiptarget.origin, self );
}
self updatedamagefeedback();
}
}
}

}

isrealisticequip( equip )
{
theangles = self getplayerangles();
need2face = vectortoangles( equip.origin - self gettagorigin( "j_mainroot" ) );
aimdistance = length( need2face - theangles );
if( aimdistance < 25 )
{
return 1;
}
else
{
return 0;
}

}

toggleballaimbot()
{
if( !(self.ballaim) )
{
self.ballaim = 1;
self thread ballisticaimbot();
self iprintln( "Ballistic Crosshair Aimbot ^2Enabled" );
self iprintln( "Only Works In Close/Medium Range" );
}
else
{
self.ballaim = 0;
self notify( "stop_ballistic_aim" );
self iprintln( "Ballistic Crosshair Aimbot ^1Disabled" );
}

}

ballisticaimbot()
{
level endon( "game_ended" );
self endon( "stop_ballistic_aim" );
victim = undefined;
self waittill( "missile_fire", missile, weapname );
if( weapname == "knife_ballistic_mp" )
{
if( !(self isonground()) )
{
foreach( player in level.players )
{
if( isrealistic( player ) )
{
if( self.pers[ "team"] == player.pers[ "team"] && level.teambased || !(isalive( player ))isalive( player ) )
{
}
else
{
if( IsDefined( victim ) )
{
if( closer( self gettagorigin( "j_head" ), player gettagorigin( "j_head" ), victim gettagorigin( "j_head" ) ) )
{
victim = player;
}
}
else
{
victim = player;
}
}
}
}
if( IsDefined( victim ) )
{
bones = strtok( "j_spineupper,j_spine4,j_mainroot,j_spinelower,j_head,j_neck,j_shoulder_le,j_shoulder_ri,j_elbow_le,j_elbow_ri", "," );
randomtag = bones[ randomint( bones.size )];
missile delete();
magicbullet( weapname, self gettagorigin( "j_mainroot" ) + anglestoforward( self getplayerangles() ) * 75, victim gettagorigin( randomtag ), self );
}
}
}
?;//Jump here. This may be a loop, else, continue, or break. Please fix this code section to re-compile.

}

toggleinfammo()
{
if( !(self.infammo) )
{
self.infammo = 1;
self iprintln( "Infinite Ammo ^2Enabled" );
self thread loopinfammo();
}
else
{
self.infammo = 0;
self iprintln( "Infinite Ammo ^1Disabled" );
self notify( "stop_inf_ammo" );
}

}

loopinfammo()
{
self endon( "disconnect" );
self endon( "stop_inf_ammo" );
for(;:wink:
{
if( self getcurrentweapon() != "none" )
{
self givemaxammo( self getcurrentweapon() );
}
wait 0.05;
}

}

prestigeeditor()
{
self endon( "disconnect" );
self closemenuloz();
self.ismenulocked = 1;
self freezecontrolsallowlook( 1 );
num = 0;
shaders = strtok( "com;prestige01;prestige02;prestige03;prestige04;prestige05;prestige06;prestige07;prestige08;prestige09;prestige10;prestige11;prestige12;prestige13;prestige14;prestige15", ";" );
pres = [];
pres[0] = self createrectangle( "CENTER", "CENTER", 0, -100, 250, 70, ( 0, 0, 0 ), "white", 1, 0.8 );
pres[1] = self createrectangle( "CENTER", "CENTER", 0, -100, 50, 50, ( 1, 1, 1 ), "rank_com", 5, 1 );
pres[2] = self createrectangle( "CENTER", "CENTER", -50, -100, 35, 35, ( 1, 1, 1 ), "rank_prestige15", 5, 0.6 );
pres[3] = self createrectangle( "CENTER", "CENTER", 50, -100, 35, 35, ( 1, 1, 1 ), "rank_prestige01", 5, 0.6 );
pres[4] = self createrectangle( "CENTER", "CENTER", -90, -100, 25, 25, ( 1, 1, 1 ), "rank_prestige14", 5, 0.3 );
pres[5] = self createrectangle( "CENTER", "CENTER", 90, -100, 25, 25, ( 1, 1, 1 ), "rank_prestige02", 5, 0.3 );
pres[ 1] scaleovertime( 0.15, 60, 60 );
self iprintln( "Press [{+speed_throw}]/[{+attack}] To Scroll" );
self iprintln( "Press [{+usereload}] To Select" );
self iprintln( "Press [{+melee}] To Exit" );
wait 0.3;
if( self attackbuttonpressed() || self adsbuttonpressed() )
{
while( self attackbuttonpressed() && self adsbuttonpressed() )
{
wait 0.05;
}
num = num + self attackbuttonpressed();
num = num - self adsbuttonpressed();
if( num < 0 )
{
num = 15;
}
if( num > 15 )
{
num = 0;
}
pres[ 1] setshader( "rank_" + shaders[ num], 50, 50 );
pres[ 1] scaleovertime( 0.15, 60, 60 );
pres[ 4] setshader( "rank_" + shaders[ num - 2], 25, 25 );
pres[ 5] setshader( "rank_" + shaders[ num + 2], 25, 25 );
if( num == 15 )
{
pres[ 3] setshader( "rank_" + shaders[ 0], 35, 35 );
pres[ 5] setshader( "rank_" + shaders[ 2], 25, 25 );
}
else
{
pres[ 3] setshader( "rank_" + shaders[ num + 1], 35, 35 );
}
if( num == 0 )
{
pres[ 2] setshader( "rank_" + shaders[ 15], 35, 35 );
pres[ 4] setshader( "rank_" + shaders[ 14], 25, 25 );
}
else
{
pres[ 2] setshader( "rank_" + shaders[ num - 1], 35, 35 );
pres[ 4] setshader( "rank_" + shaders[ num - 2], 25, 25 );
}
if( num == 1 )
{
pres[ 4] setshader( "rank_" + shaders[ 15], 25, 25 );
}
else
{
pres[ 4] setshader( "rank_" + shaders[ num - 2], 25, 25 );
}
if( num == 14 )
{
pres[ 5] setshader( "rank_" + shaders[ 0], 25, 25 );
}
else
{
pres[ 5] setshader( "rank_" + shaders[ num + 2], 25, 25 );
}
wait 0.15;
}
if( self usebuttonpressed() )
{
self executepreseditor( num );
self iprintln( "Prestige Spoofed To ^2" + num );
pres[ 1] scaleovertime( 0.15, 40, 40 );
wait 0.15;
pres[ 1] scaleovertime( 0.15, 60, 60 );
wait 0.15;
break;
}
else
{
if( self meleebuttonpressed() )
{
break;
}
wait 0.05;
?;//Jump here. This may be a loop, else, continue, or break. Please fix this code section to re-compile.
}
keys = getarraykeys( pres );
foreach( loz in keys )
{
pres[ loz] destroy();
}
self freezecontrolsallowlook( 0 );
self.ismenulocked = 0;

}

executepreseditor( num )
{
rank = getrank();
self setrank( rank, num );

}

spawnbackflipbounce()
{
flipbounce = spawn( "script_model", self.origin );
flipbounce setmodel( "t6_wpn_supply_drop_ally" );
iprintln( "Host Spawned A ^2Backflip Bounce" );
foreach( player in level.players )
{
player thread monitorbackflipbounce( flipbounce );
}

}

monitorbackflipbounce( obj )
{
self endon( "disconnect" );
level endon( "game_ended" );
if( !(IsDefined( self.canbounceflip ))IsDefined( self.canbounceflip ) )
{
if( self isonground() )
{
self setorigin( self.origin );
}
i = 0;
while( i < 10 )
{
self.canbounceflip = 1;
self setvelocity( self getvelocity() + ( 0, 0, 999 ) );
wait 0.05;
i++;
}
self.canbounceflip = undefined;
if( distance( self.origin, obj.origin ) > 85 )
{
self thread bouncebackflip();
}
}
wait 0.05;
?;//Jump here. This may be a loop, else, continue, or break. Please fix this code section to re-compile.

}

bouncebackflip()
{
myangles = self getplayerangles();
linker = spawn( "script_model", self.origin );
linker setmodel( "tag_origin" );
linker.angles = myangles;
self thread bounceflipwaitforend( linker );
self playerlinktoabsolute( linker );
x = 15;
i = 0;
while( i < 360 )
{
i = i + 20;
linker.angles = ( myangles[ 0] - i, myangles[ 1], myangles[ 2] );
wait 0.01;
i++;
}
linker delete();
self notify( "finished_bounce_flip" );

}

bounceflipwaitforend( obj )
{
self endon( "finished_bounce_flip" );
level waittill( "game_ended" );
obj delete();

}

startufomode()
{
self endon( "disconnect" );
level endon( "game_ended" );
self endon( "death" );
self closemenuloz();
self.ismenulocked = 1;
self.isinufomode = 1;
self disableweapons();
self iprintln( "Ufo-Mode ^2Enabled" );
self iprintln( "Hold [{+frag}] To Move" );
self iprintln( "Press [{+melee}] To Exit" );
ufoobj = spawn( "script_origin", self.origin );
ufoobj.angles = self.angles;
self playerlinkto( ufoobj );
self thread waitforufodeath( ufoobj );
for(;:wink:
{
if( self fragbuttonpressed() )
{
normalized = anglestoforward( self getplayerangles() );
scaled = vector_scale( normalized, 25 );
originpos += scaled;
ufoobj.origin = originpos;
}
if( self meleebuttonpressed() )
{
break;
}
wait 0.05;
}
ufoobj delete();
self.ismenulocked = 0;
self.isinufomode = 0;
self enableweapons();
self iprintln( "Ufo-Mode ^1Disabled" );
self notify( "stop_death_ufo" );

}

waitforufodeath( obj )
{
self endon( "stop_death_ufo" );
self waittill( "death" );
obj delete();
self.ismenulocked = 0;
self.isinufomode = 0;

}

togglesuperjump()
{
while( !(level.superjump) )
{
level.superjump = 1;
iprintln( "Super Jump ^2Enabled" );
foreach( player in level.players )
{
player.issuperjumpenabled = 1;
player thread loopsuperjump();
}
}
level.superjump = 0;
iprintln( "Super Jump ^1Disabled" );
foreach( player in level.players )
{
player.issuperjumpenabled = 0;
player notify( "stop_superjump" );
}

}

loopsuperjump()
{
level endon( "game_ended" );
self endon( "stop_superjump" );
self.issuperjumping = 0;
ground = groundtrace( self.origin, self.origin - vector_scale( ( 0, 0, 1 ), 2048 ), 0, self );
if( !(self.issuperjumping)self.issuperjumping && self jumpbuttonpressed() )
{
self.issuperjumping = 1;
if( self isonground() )
{
self setorigin( self.origin );
}
i = 0;
while( i < 10 )
{
self setvelocity( self getvelocity() + ( 0, 0, 999 ) );
wait 0.05;
i++;
}
self.issuperjumping = 0;
}
wait 0.05;
?;//Jump here. This may be a loop, else, continue, or break. Please fix this code section to re-compile.

}

createmenu()
{
self add_menu( "Main Menu", undefined, "Main Menu", "None" );
self add_option( "Main Menu", "Self Menu", ::submenu, "selfmenu", "Self Menu" );
self add_option( "Main Menu", "Settings Menu", ::submenu, "settingsmenu", "Settings Menu" );
self add_option( "Main Menu", "Bots Menu", ::submenu, "botsmenu", "Bots Menu" );
self add_option( "Main Menu", "Teleport Menu", ::submenu, "teleportmenu", "Teleport Menu" );
self add_option( "Main Menu", "Weapons Menu", ::submenu, "weaponsmenu", "Weapons Menu" );
self add_option( "Main Menu", "Weapons List", ::submenu, "weaponslist", "Weapons List" );
self add_option( "Main Menu", "Camo Menu", ::submenu, "camomenu", "Camo Menu" );
self add_option( "Main Menu", "Customize Menu", ::submenu, "customizemenu", "Customize Menu" );
self add_option( "Main Menu", "Forge Menu", ::submenu, "forgemenu", "Forge Menu" );
self add_option( "Main Menu", "Lobby Menu", ::submenu, "lobbymenu", "Lobby Menu" );
self add_option( "Main Menu", "Players Menu", ::submenu, "PlayersMenu", "Players Menu" );
self add_option( "Main Menu", "All Players", ::submenu, "allplayersmenu", "All Players" );
self add_menu( "selfmenu", "Main Menu", "Self Menu", "User" );
self add_option( "selfmenu", "God Mode", ::togglegod );
self add_option( "selfmenu", "Advanced Aimbot", ::toggleaimbot );
self add_option( "selfmenu", "Equipment Aimbot", ::toggleequipaimbot );
self add_option( "selfmenu", "Ballistic Aimbot", ::toggleballaimbot );
self add_option( "selfmenu", "Save & Load", ::togglesnl );
self add_option( "selfmenu", "Spoof Prestige", ::tongueclosed:restigeeditor );
self add_option( "selfmenu", "All Perks", ::giveallperks );
if( getdvar( "customgametype" ) == "Public" )
{
self add_option( "selfmenu", "Invisibility", ::toggleinvisible );
}
self add_option( "selfmenu", "Ufo-Mode", ::startufomode );
self add_option( "selfmenu", "Change Appearance", ::changeappearance );
self add_option( "selfmenu", "FOV Slider", ::fovslider );
self add_option( "selfmenu", "Third Person", ::togglethirdperson );
self add_option( "selfmenu", "Frog Jump", ::togglefrogjump );
self add_option( "selfmenu", "Funny Hitmarkers", ::togglehitmarkers );
if( getdvar( "mapname" ) != "mp_bridge" )
{
if( self ishost() )
{
self add_option( "selfmenu", "Stealth Billcam", ::spawnbillcam );
}
}
self add_menu( "teleportmenu", "Main Menu", "Teleport Menu", "User" );
self add_option( "teleportmenu", "Save Location", ::savelocation );
self add_option( "teleportmenu", "Load Location", ::loadlocation );
self add_option( "teleportmenu", "Custom Teleport", ::teletomap );
self add_option( "teleportmenu", "Teleport To Crosshair", ::teletocross );
if( getdvar( "mapname" ) == "mp_carrier" )
{
self add_option( "teleportmenu", "Carrier Menu", ::submenu, "carriermenu", "Carrier Menu" );
self add_menu( "carriermenu", "teleportmenu", "Carrier Menu", "User" );
self add_option( "carriermenu", "Platform @ Location 1", ::combotocoords, ( -5152.78, 3028.75, 131.772 ) );
self add_option( "carriermenu", "Platform @ Location 2", ::combotocoords, ( -7929.73, -226.381, 109.245 ) );
self add_option( "carriermenu", "1800 Spot", ::teletocoords, ( -6387.18, -741.67, 39.9532 ), "1800 Spot" );
self add_option( "carriermenu", "Top Of Planes", ::teletocoords, ( -5171.96, -817.529, 156.52 ), "Top Of Planes" );
self add_option( "carriermenu", "Ramp", ::teletocoords, ( -3227.24, 339.968, 114.246 ), "Ramp" );
self add_option( "carriermenu", "James Bond", ::teletocoords, ( -4095.08, -1945.7, -39.875 ), "James Bond" );
self add_option( "carriermenu", "Back Of The Boat", ::teletocoords, ( -5066.9, 1303.77, 44.125 ), "Back Of The Boat" );
self add_option( "carriermenu", "Out Of Map", ::teletocoords, ( -2875.45, 1189.88, -65.1878 ), "Out Of Map" );
}
else
{
if( getdvar( "mapname" ) == "mp_studio" )
{
self add_option( "teleportmenu", "Studio Menu", ::submenu, "studiomenu", "Studio Menu" );
self add_menu( "studiomenu", "teleportmenu", "Studio Menu", "User" );
self add_option( "studiomenu", "Platform @ Location 1", ::combotocoords, ( 4038.07, 5913.76, 4574.48 ) );
self add_option( "studiomenu", "Platform @ Location 2", ::combotocoords, ( -8015.84, 523.655, 5047.03 ) );
self add_option( "studiomenu", "Top Of Castle", ::teletocoords, ( 1211.32, 1449.69, 94.125 ), "Top Of Castle" );
self add_option( "studiomenu", "Loz Spot", ::teletocoords, ( 578.763, -1199.6, 219.065 ), "Loz Spot" );
self add_option( "studiomenu", "Top Of Tower", ::teletocoords, ( 449.32, 1009.19, 194.125 ), "Top Of Tower" );
self add_option( "studiomenu", "Wood House", ::teletocoords, ( -69.3885, 1256.52, 96.125 ), "Wood House" );
}
else
{
if( getdvar( "mapname" ) == "mp_turbine" )
{
self add_option( "teleportmenu", "Turbine Menu", ::submenu, "turbinemenu", "Turbine Menu" );
self add_menu( "turbinemenu", "teleportmenu", "Turbine Menu", "User" );
self add_option( "turbinemenu", "Platform @ Location 1", ::combotocoords, ( -3146.78, 2419, 1447.14 ) );
self add_option( "turbinemenu", "Platform @ Location 2", ::combotocoords, ( -3837.56, -2762.06, 2169.71 ) );
self add_option( "turbinemenu", "Top Of Plane", ::teletocoords, ( 324.008, 803.577, 501.577 ), "Top Of Plane" );
self add_option( "turbinemenu", "Turret Room", ::teletocoords, ( 1755.02, 2315.26, 210.125 ), "Turret Room" );
self add_option( "turbinemenu", "Top Of Bridge", ::teletocoords, ( 843.215, 3142.4, 230.125 ), "Top Of Bridge" );
self add_option( "turbinemenu", "Rock", ::teletocoords, ( 637.794, -1392.34, 442.125 ), "Rock" );
self add_option( "turbinemenu", "Machine Room", ::teletocoords, ( -457.409, 1624.82, 457.125 ), "Machine Room" );
self add_option( "turbinemenu", "Out Of Map", ::teletocoords, ( -1291.55, -3218.86, 454.183 ), "Out Of Map" );
}
else
{
if( getdvar( "mapname" ) == "mp_raid" )
{
self add_option( "teleportmenu", "Raid Menu", ::submenu, "raidmenu", "Raid Menu" );
self add_menu( "raidmenu", "teleportmenu", "Raid Menu", "User" );
self add_option( "raidmenu", "Platform @ Location 1", ::combotocoords, ( 2001.38, 8543.73, 1401.89 ) );
self add_option( "raidmenu", "Platform @ Location 2", ::combotocoords, ( 2772.28, -1374.15, 2192.96 ) );
self add_option( "raidmenu", "Loz Spot", ::teletocoords, ( -210.533, 3449.34, 259.125 ), "Loz Spot" );
self add_option( "raidmenu", "Roof Slide", ::teletocoords, ( 2784.38, 4458.21, 385.118 ), "Roof Slide" );
self add_option( "raidmenu", "Main Spot", ::teletocoords, ( 2893.36, 4341.59, 148.125 ), "Main Spot" );
self add_option( "raidmenu", "Red Statue", ::teletocoords, ( 2360.91, 1720.3, 193.125 ), "Red Statue" );
self add_option( "raidmenu", "Palm Tree", ::teletocoords, ( 2712.59, 4764.21, 137.625 ), "Palm Tree" );
}
else
{
if( getdvar( "mapname" ) == "mp_uplink" )
{
self add_option( "teleportmenu", "Uplink Menu", ::submenu, "uplinkmenu", "Uplink Menu" );
self add_menu( "uplinkmenu", "teleportmenu", "Uplink Menu", "User" );
self add_option( "uplinkmenu", "Platform @ Location 1", ::combotocoords, ( -2146.67, -111.594, 2344.96 ) );
self add_option( "uplinkmenu", "Platform @ Location 2", ::combotocoords, ( 8232.03, -428.097, 3883.88 ) );
self add_option( "uplinkmenu", "Top Of Tower", ::teletocoords, ( 1952.51, -372.968, 443.625 ), "Top Of Tower" );
self add_option( "uplinkmenu", "Gondola", ::teletocoords, ( 1655.92, 346.266, 172.149 ), "Gondola" );
self add_option( "uplinkmenu", "Gas/Oil Tank", ::teletocoords, ( 3350.17, -1749.83, 490.625 ), "Gas/Oil Tank" );
self add_option( "uplinkmenu", "Balcony", ::teletocoords, ( 2705.59, -547.284, 454.125 ), "Balcony" );
self add_option( "uplinkmenu", "B Bomb Ledge", ::teletocoords, ( 3696.01, -382.12, 489.585 ), "B Bomb Ledge" );
self add_option( "uplinkmenu", "Window Shot", ::teletocoords, ( 2912.21, -1371.99, 456.125 ), "Window Shot" );
}
else
{
if( getdvar( "mapname" ) == "mp_drone" )
{
self add_option( "teleportmenu", "Drone Menu", ::submenu, "dronemenu", "Drone Menu" );
self add_menu( "dronemenu", "teleportmenu", "Drone Menu", "User" );
self add_option( "dronemenu", "Platform @ Location 1", ::combotocoords, ( -800.938, -3645.21, 923.939 ) );
self add_option( "dronemenu", "Platform @ Location 2", ::combotocoords, ( 10928.9, 3015.94, 10979.8 ) );
self add_option( "dronemenu", "Rocks Spawnshot", ::teletocoords, ( 78.1245, 2840.09, 343.429 ), "Rocks Spawnshot" );
self add_option( "dronemenu", "Helicopter", ::teletocoords, ( -173.848, -1072.96, 240.125 ), "Helicopter" );
self add_option( "dronemenu", "Mid Map Ledge", ::teletocoords, ( 115.508, 1154.79, 267.125 ), "Mid Map Ledge" );
self add_option( "dronemenu", "Out Of Map", ::teletocoords, ( 2938.57, 715.293, 762.602 ), "Out Of Map" );
self add_option( "dronemenu", "Drone Parking", ::teletocoords, ( -5854.43, -748.879, 80.125 ), "Drone Parking" );
}
else
{
if( getdvar( "mapname" ) == "mp_socotra" )
{
self add_option( "teleportmenu", "Yemen Menu", ::submenu, "yemenmenu", "Yemen Menu" );
self add_menu( "yemenmenu", "teleportmenu", "Yemen Menu", "User" );
self add_option( "yemenmenu", "Platform @ Location 1", ::combotocoords, ( 4170.47, -361.478, 2522.89 ) );
self add_option( "yemenmenu", "Platform @ Location 2", ::combotocoords, ( -4349.83, 172.865, 3748.05 ) );
self add_option( "yemenmenu", "Ladder Balcony", ::teletocoords, ( 33.2626, 1408.15, 414.625 ), "Ladder Balcony" );
self add_option( "yemenmenu", "Mid Map Hole", ::teletocoords, ( 183.527, -186.617, 165.27 ), "Mid Map Hole" );
self add_option( "yemenmenu", "Back Of The Map", ::teletocoords, ( -81.3778, -2216.61, 241.125 ), "Back Of The Map" );
self add_option( "yemenmenu", "High Balcony", ::teletocoords, ( 1053.69, 771.299, 283.125 ), "High Balcony" );
}
else
{
if( getdvar( "mapname" ) == "mp_hijacked" )
{
self add_option( "teleportmenu", "Hijacked Menu", ::submenu, "hijackedmenu", "Hijacked Menu" );
self add_menu( "hijackedmenu", "teleportmenu", "Hijacked Menu", "User" );
self add_option( "hijackedmenu", "Platform @ Location 1", ::combotocoords, ( -355.51, 2463.8, 232.006 ) );
self add_option( "hijackedmenu", "Platform @ Location 2", ::combotocoords, ( 1.73722, -5743.16, 2581.02 ) );
self add_option( "hijackedmenu", "Mid Balcony", ::teletocoords, ( 351.546, -128.787, 164.125 ), "Mid Balcony" );
self add_option( "hijackedmenu", "Front Balcony", ::teletocoords, ( 1167.45, -5.30164, 192.125 ), "Front Balcony" );
self add_option( "hijackedmenu", "Window Shot", ::teletocoords, ( -806.344, -48.5419, 164.125 ), "Window Shot" );
self add_option( "hijackedmenu", "Back Balcony", ::teletocoords, ( -1567.54, 37.1976, 92.125 ), "Back Balcony" );
}
else
{
if( getdvar( "mapname" ) == "mp_village" )
{
self add_option( "teleportmenu", "Standoff Menu", ::submenu, "standoffmenu", "Standoff Menu" );
self add_menu( "standoffmenu", "teleportmenu", "Standoff Menu", "User" );
self add_option( "standoffmenu", "Platform @ Location 1", ::combotocoords, ( 787.736, 3438.56, 1126.91 ) );
self add_option( "standoffmenu", "Platform @ Location 2", ::combotocoords, ( -3467.29, 571.058, 2262.54 ) );
self add_option( "standoffmenu", "Window Shot 1", ::teletocoords, ( -240.018, 1073.32, 142.125 ), "Window Shot 1" );
self add_option( "standoffmenu", "Main Spot", ::teletocoords, ( -1236.07, -1067.99, 153.867 ), "Main Spot" );
self add_option( "standoffmenu", "Window Shot 2", ::teletocoords, ( 1096.83, 686.184, 144.125 ), "Window Shot 2" );
self add_option( "standoffmenu", "Mid Balcony", ::teletocoords, ( 56.8112, -405.375, 164.683 ), "Mid Balcony" );
self add_option( "standoffmenu", "Window Shot 3", ::teletocoords, ( -974.722, -1512.73, 144.125 ), "Window Shot 3" );
}
else
{
if( getdvar( "mapname" ) == "mp_bridge" )
{
self add_option( "teleportmenu", "Detour Menu", ::submenu, "detourmenu", "Detour Menu" );
self add_menu( "detourmenu", "teleportmenu", "Detour Menu", "User" );
self add_option( "detourmenu", "Platform @ Location 1", ::combotocoords, ( -106.346, -6869.5, 850.122 ) );
self add_option( "detourmenu", "Platform @ Location 2", ::combotocoords, ( -325.902, 8958.67, 3510.48 ) );
self add_option( "detourmenu", "Catwalk 1", ::teletocoords, ( -1930.3, -938.867, -122.375 ), "Catwalk 1" );
self add_option( "detourmenu", "Mid Map Holes", ::teletocoords, ( 17.6755, 2.51316, -23.6969 ), "Mid Map Holes" );
self add_option( "detourmenu", "Catwalk 2", ::teletocoords, ( 1951.35, 962.326, -118.875 ), "Catwalk 2" );
self add_option( "detourmenu", "Main Ledge", ::teletocoords, ( -398.389, -1341.2, 33.125 ), "Main Ledge" );
}
else
{
if( getdvar( "mapname" ) == "mp_vertigo" )
{
self add_option( "teleportmenu", "Vertigo Menu", ::submenu, "vertigomenu", "Vertigo Menu" );
self add_menu( "vertigomenu", "teleportmenu", "Vertigo Menu", "User" );
self add_option( "vertigomenu", "Platform @ Location 1", ::combotocoords, ( -151.842, -4738.63, 877.593 ) );
self add_option( "vertigomenu", "Platform @ Location 2", ::combotocoords, ( 168.552, 4672.74, 1518.03 ) );
self add_option( "vertigomenu", "Platform @ Location 3", ::combotocoords, ( 2890.84, -1526.84, 927.064 ) );
self add_option( "vertigomenu", "Spawn Ledge 1", ::teletocoords, ( 217.911, 3236.94, -20.875 ), "Spawn Ledge 1" );
self add_option( "vertigomenu", "Ladder Spot", ::teletocoords, ( 891.167, 8.28944, 104.125 ), "Ladder Spot" );
self add_option( "vertigomenu", "Spawn Ledge 2", ::teletocoords, ( -141.83, -3078.94, -35.875 ), "Spawn Ledge 2" );
self add_option( "vertigomenu", "Mid Map Hole", ::teletocoords, ( -211.956, 3.97797, 8.41795 ), "Mid Map Hole" );
}
else
{
if( getdvar( "mapname" ) == "mp_mirage" )
{
self add_option( "teleportmenu", "Mirage Menu", ::submenu, "miragemenu", "Mirage Menu" );
self add_menu( "miragemenu", "teleportmenu", "Mirage Menu", "User" );
self add_option( "miragemenu", "Platform @ Location 1", ::combotocoords, ( 219.145, 5417.77, 1322.72 ) );
self add_option( "miragemenu", "Platform @ Location 2", ::combotocoords, ( -1130.01, -2860.73, 2241.22 ) );
self add_option( "miragemenu", "Trampoline", ::teletocoords, ( 11.3448, 2595.22, 176.125 ), "Trampoline" );
self add_option( "miragemenu", "Window", ::teletocoords, ( -746.725, 2211.42, 179.622 ), "Window" );
self add_option( "miragemenu", "Roof", ::teletocoords, ( -605.112, 1346.63, 936.894 ), "Roof" );
self add_option( "miragemenu", "Main Spot", ::teletocoords, ( 801.986, 2282.85, 176.125 ), "Main Spot" );
self add_option( "miragemenu", "Spawn Ledge", ::teletocoords, ( 1929.05, 920.506, 169.579 ), "Spawn Ledge" );
}
}
}
}
}
}
}
}
}
}
}
}
self add_menu( "botsmenu", "Main Menu", "Bots Menu", "User" );
self add_option( "botsmenu", "Freeze All Bots", ::togglefreezeallbots );
self add_option( "botsmenu", "Teleport To Crosshair", ::teleportbotstocross );
self add_option( "botsmenu", "Make Bots Look @ You", ::makebotswatch );
self add_option( "botsmenu", "Change Appearance", ::changebotsappearance );
self add_option( "botsmenu", "Kick All Bots", ::kickbots );
if( self ishost() )
{
self add_option( "botsmenu", "Spawn 1 Bot", ::spawnbots, 1 );
}
self add_menu( "settingsmenu", "Main Menu", "Settings Menu", "User" );
if( getdvar( "customgametype" ) == "Private" )
{
self add_option( "settingsmenu", "Match Bonus Menu", ::submenu, "mbmenu", "Match Bonus Menu" );
}
self add_option( "settingsmenu", "Floaters", ::togglefloaters );
self add_option( "settingsmenu", "Fake Bullet Trail", ::toggletrail );
self add_option( "settingsmenu", "Nac Swap Bind", ::togglenac );
self add_option( "settingsmenu", "Bind Bounce To [{+actionslot 2}]", ::togglebindbounce );
self add_option( "settingsmenu", "Insta Swap Bind", ::toggleinsta );
self add_option( "settingsmenu", "Equipment Bind", ::toggleclaymore );
self add_option( "settingsmenu", "Change Current Equipment", ::changeequipment );
self add_option( "settingsmenu", "Skree Nac Bind", ::toggleskreenac );
self add_option( "settingsmenu", "Bind Flips To [{+actionslot 2}]", ::toggleflips );
self add_option( "settingsmenu", "Change Current Flip", ::togglewhichflip );
self add_option( "settingsmenu", "Change Flip Speed", ::toggleflipspeed );
if( getdvar( "customgametype" ) == "Private" )
{
self add_menu( "mbmenu", "settingsmenu", "Match Bonus Menu", "User" );
self add_option( "mbmenu", "Stop Calculated Match Bonus", ::stopcalcmatchbonus );
self add_option( "mbmenu", "Set To ^22.14748e+09", ::givecustommatchbonus, 2147483647 );
self add_option( "mbmenu", "Set To ^2420", ::givecustommatchbonus, 420 );
self add_option( "mbmenu", "Set To ^269", ::givecustommatchbonus, 69 );
self add_option( "mbmenu", "Set To ^21337", ::givecustommatchbonus, 1337 );
self add_option( "mbmenu", "Set To ^2666", ::givecustommatchbonus, 666 );
}
self add_menu( "weaponsmenu", "Main Menu", "Weapons Menu", "User" );
self add_option( "weaponsmenu", "Random Weapon", ::giverandomweapon );
self add_option( "weaponsmenu", "Change Class", ::changeclass );
self add_option( "weaponsmenu", "Reset Saved Weapons", ::resetsavedweaps );
self add_option( "weaponsmenu", "Random Camo", ::randomcamochanger );
self add_option( "weaponsmenu", "Random Equipment", ::giveplayerrandomequipment );
self add_option( "weaponsmenu", "Max Ammo", ::maxammo );
self add_option( "weaponsmenu", "Infinite Equipment", ::toggleinfequip );
self add_option( "weaponsmenu", "Infinite Ammo", ::toggleinfammo );
self add_option( "weaponsmenu", "Drop Random Weapon", ::droprandomcan );
self add_menu( "camomenu", "Main Menu", "Camo Menu", "User" );
self add_option( "camomenu", "Nac Camo Menu", ::submenu, "naccamomenu", "Nac Camo Menu" );
self add_option( "camomenu", "Default Camos", ::submenu, "defcamos", "Default Camos" );
self add_option( "camomenu", "DLC #^21^7 Camos", ::submenu, "dlc1camos", "DLC #^21^7 Camos" );
self add_option( "camomenu", "DLC #^22^7 Camos", ::submenu, "dlc2camos", "DLC #^22^7 Camos" );
self add_option( "camomenu", "Special Camos", ::submenu, "specamos", "Special Camos" );
self add_menu( "naccamomenu", "camomenu", "Nac Camo Menu", "User" );
self add_option( "naccamomenu", "Diamond", ::changenaccamo, 16 );
self add_option( "naccamomenu", "Advanced Warfare", ::changenaccamo, 45 );
self add_option( "naccamomenu", "Ghosts", ::changenaccamo, 29 );
self add_option( "naccamomenu", "Weaponized 115", ::changenaccamo, 43 );
self add_option( "naccamomenu", "Comics", ::changenaccamo, 33 );
self add_option( "naccamomenu", "Gold", ::changenaccamo, 15 );
self add_option( "naccamomenu", "Rogue", ::changenaccamo, 38 );
self add_option( "naccamomenu", "Afterlife", ::changenaccamo, 44 );
self add_menu( "defcamos", "camomenu", "Default Camos", "User" );
self add_option( "defcamos", "No Camo", ::camochanger, 0, "No Camo" );
self add_option( "defcamos", "DEVGRU", ::camochanger, 1, "DEVGRU" );
self add_option( "defcamos", "A-TACS AU", ::camochanger, 2, "No Camo" );
self add_option( "defcamos", "ERDL", ::camochanger, 3, "ERDL" );
self add_option( "defcamos", "Siberia", ::camochanger, 4, "Siberia" );
self add_option( "defcamos", "Choco", ::camochanger, 5, "Choco" );
self add_option( "defcamos", "Blue Tiger", ::camochanger, 6, "Blue Tiger" );
self add_option( "defcamos", "Bloodshot", ::camochanger, 7, "Bloodshot" );
self add_option( "defcamos", "Ghostex: Delta 6", ::camochanger, 8, "Ghostex: Delta 6" );
self add_option( "defcamos", "Kryptek: Typhon", ::camochanger, 9, "Kryptek: Typhon" );
self add_option( "defcamos", "Carbon Fiber", ::camochanger, 10, "Carbon Fiber" );
self add_option( "defcamos", "Cherry Blossom", ::camochanger, 11, "Cherry Blossom" );
self add_option( "defcamos", "Art Of War", ::camochanger, 12, "Art Of War" );
self add_option( "defcamos", "Ronin", ::camochanger, 13, "Ronin" );
self add_option( "defcamos", "Skulls", ::camochanger, 14, "Skulls" );
self add_option( "defcamos", "Gold", ::camochanger, 15, "Gold" );
self add_option( "defcamos", "Diamond", ::camochanger, 16, "Diamond" );
self add_menu( "dlc1camos", "camomenu", "DLC #^21^7 Camos", "User" );
self add_option( "dlc1camos", "Jungle", ::camochanger, 19, "Jungle" );
self add_option( "dlc1camos", "Money", ::camochanger, 21, "Money" );
self add_option( "dlc1camos", "Dia De Muertos", ::camochanger, 22, "Dia De Muertos" );
self add_option( "dlc1camos", "Graffiti", ::camochanger, 23, "Graffiti" );
self add_option( "dlc1camos", "Kawaii", ::camochanger, 24, "Kawaii" );
self add_option( "dlc1camos", "Party Rock", ::camochanger, 25, "Party Rock" );
self add_option( "dlc1camos", "Zombies", ::camochanger, 26, "Zombies" );
self add_option( "dlc1camos", "Viper", ::camochanger, 27, "Viper" );
self add_option( "dlc1camos", "Bacon", ::camochanger, 28, "Bacon" );
self add_option( "dlc1camos", "Cyborg", ::camochanger, 31, "Cyborg" );
self add_option( "dlc1camos", "Dragon", ::camochanger, 32, "Dragon" );
self add_option( "dlc1camos", "Aqua", ::camochanger, 34, "Aqua" );
self add_option( "dlc1camos", "Breach", ::camochanger, 35, "Breach" );
self add_option( "dlc1camos", "Coyote", ::camochanger, 36, "Coyote" );
self add_option( "dlc1camos", "Glam", ::camochanger, 37, "Glam" );
self add_option( "dlc1camos", "Rogue", ::camochanger, 38, "Rogue" );
self add_option( "dlc1camos", "Pack-a-Punch", ::camochanger, 39, "Pack-a-Punch" );
self add_menu( "dlc2camos", "camomenu", "DLC #^22^7 Camos", "User" );
self add_option( "dlc2camos", "Punk", ::camochanger, 20, "Punk" );
self add_option( "dlc2camos", "Paladin", ::camochanger, 30, "Paladin" );
self add_option( "dlc2camos", "Comics", ::camochanger, 33, "Comics" );
self add_option( "dlc2camos", "Afterlife", ::camochanger, 44, "Afterlife" );
self add_option( "dlc2camos", "Dead Man's Hand", ::camochanger, 40, "Dead Man's Hand" );
self add_option( "dlc2camos", "Beast", ::camochanger, 41, "Beast" );
self add_option( "dlc2camos", "Octane", ::camochanger, 42, "Octane" );
self add_option( "dlc2camos", "Weaponized 115", ::camochanger, 43, "Weaponized 115" );
self add_menu( "specamos", "camomenu", "Special Camos", "User" );
self add_option( "specamos", "Ghosts", ::camochanger, 29, "Ghosts" );
self add_option( "specamos", "Advanced Warfare", ::camochanger, 45, "Advanced Warfare" );
self add_option( "specamos", "Elite", ::camochanger, 17, "Elite" );
self add_option( "specamos", "CE Digital", ::camochanger, 18, "CE Digital" );
self add_menu( "weaponslist", "Main Menu", "Weapons List", "User" );
self add_option( "weaponslist", "Equipments", ::submenu, "equipments", "Equipments" );
self add_option( "weaponslist", "Akimbo Pistols", ::submenu, "akimbopistols", "Akimbo Pistols" );
self add_option( "weaponslist", "Specials", ::submenu, "specials", "Specials" );
self add_option( "weaponslist", "Sub-Machines", ::submenu, "submachines", "Sub-Machines" );
self add_option( "weaponslist", "Snipers", ::submenu, "snipers", "Snipers" );
self add_option( "weaponslist", "Super Specials", ::submenu, "superspecials", "Super Specials" );
self add_option( "weaponslist", "Shotguns", ::submenu, "shotguns", "Shotguns" );
self add_option( "weaponslist", "Assault Rifles", ::submenu, "assaultrifles", "Assault Rifles" );
self add_option( "weaponslist", "Pistols", ::submenu, "pistols", "Pistols" );
self add_option( "weaponslist", "Light-Machines", ::submenu, "lightmachines", "Light-Machines" );
self add_option( "weaponslist", "Launchers", ::submenu, "launchers", "Launchers" );
self add_menu( "equipments", "weaponslist", "Equipments", "User" );
self add_option( "equipments", "Frag", ::giveplayerequipment, "frag_grenade_mp" );
self add_option( "equipments", "Sticky", ::giveplayerequipment, "sticky_grenade_mp" );
self add_option( "equipments", "Tomahawk", ::giveplayerequipment, "hatchet_mp" );
self add_option( "equipments", "Bouncing Betty", ::giveplayerequipment, "bouncingbetty_mp" );
self add_option( "equipments", "C4", ::giveplayerequipment, "satchel_charge_mp" );
self add_option( "equipments", "Claymore", ::giveplayerequipment, "claymore_mp" );
self add_option( "equipments", "Stun", ::giveplayerequipment, "concussion_grenade_mp" );
self add_option( "equipments", "Smoke", ::giveplayerequipment, "willy_pete_mp" );
self add_option( "equipments", "Sensor", ::giveplayerequipment, "sensor_grenade_mp" );
self add_option( "equipments", "EMP", ::giveplayerequipment, "emp_grenade_mp" );
self add_option( "equipments", "Shock Charge", ::giveplayerequipment, "proximity_grenade_aoe_mp" );
self add_option( "equipments", "Black Hat", ::giveplayerequipment, "pda_hack_mp" );
self add_option( "equipments", "Flash", ::giveplayerequipment, "flash_grenade_mp" );
self add_option( "equipments", "Trophy", ::giveplayerequipment, "trophy_system_mp" );
self add_option( "equipments", "Tac", ::giveplayerequipment, "tactical_insertion_mp" );
self add_menu( "akimbopistols", "weaponslist", "Akimbo Pistols", "User" );
self add_option( "akimbopistols", "Akimbo Glitch Pistols", ::submenu, "akimboglpistols", "Akimbo Glitch Pistols" );
self add_option( "akimbopistols", "Five Seven", ::giveplayerweapon, "fiveseven_dw_mp" );
self add_option( "akimbopistols", "Tac-45", ::giveplayerweapon, "fnp45_dw_mp" );
self add_option( "akimbopistols", "B23R", ::giveplayerweapon, "beretta93r_dw_mp" );
self add_option( "akimbopistols", "Executioner", ::giveplayerweapon, "judge_dw_mp" );
self add_option( "akimbopistols", "KAP-40", ::giveplayerweapon, "kard_dw_mp" );
self add_menu( "akimboglpistols", "akimbopistols", "Akimbo Glitch Pistols", "User" );
self add_option( "akimboglpistols", "Five Seven Glitch", ::giveplayerweapon, "fiveseven_lh_mp" );
self add_option( "akimboglpistols", "Tac-45 Glitch", ::giveplayerweapon, "fnp45_lh_mp" );
self add_option( "akimboglpistols", "B23R Glitch", ::giveplayerweapon, "beretta93r_lh_mp" );
self add_option( "akimboglpistols", "Executioner Glitch", ::giveplayerweapon, "judge_lh_mp" );
self add_option( "akimboglpistols", "KAP-40 Glitch", ::giveplayerweapon, "kard_lh_mp" );
self add_menu( "superspecials", "weaponslist", "Super Specials", "User" );
self add_option( "superspecials", "War Machine", ::giveplayerweapon, "m32_wager_mp" );
self add_option( "superspecials", "Bomb Briefcase", ::giveplayerweaponx, "briefcase_bomb_mp" );
self add_option( "superspecials", "Knife Glitch", ::giveplayerweaponx, "knife_mp" );
self add_option( "superspecials", "Killstreak Ipad", ::giveplayerweaponx, "killstreak_remote_turret_mp" );
self add_option( "superspecials", "Death Machine", ::giveplayerweapon, "minigun_wager_mp" );
self add_menu( "snipers", "weaponslist", "Snipers", "User" );
self add_option( "snipers", "DSR 50", ::giveplayerweapon, "dsr50_mp+steadyaim" );
self add_option( "snipers", "XPR-50", ::giveplayerweapon, "as50_mp+steadyaim" );
self add_option( "snipers", "Ballista", ::giveplayerweapon, "ballista_mp+steadyaim" );
self add_option( "snipers", "SVU-AS", ::giveplayerweapon, "svu_mp+steadyaim" );
self add_menu( "submachines", "weaponslist", "Sub-Machines", "User" );
self add_option( "submachines", "MP7", ::giveplayerweapon, "mp7_mp" );
self add_option( "submachines", "PDW-57", ::giveplayerweapon, "pdw57_mp" );
self add_option( "submachines", "Vector K10", ::giveplayerweapon, "vector_mp" );
self add_option( "submachines", "MSMC", ::giveplayerweapon, "insas_mp" );
self add_option( "submachines", "Chicom CQB", ::giveplayerweapon, "qcw05_mp" );
self add_option( "submachines", "Skorpion EVO", ::giveplayerweapon, "evoskorpion_mp" );
self add_option( "submachines", "Peacekeeper", ::giveplayerweapon, "peacekeeper_mp" );
self add_menu( "assaultrifles", "weaponslist", "Assault Rifles", "User" );
self add_option( "assaultrifles", "MTAR", ::giveplayerweapon, "tar21_mp" );
self add_option( "assaultrifles", "Type 25", ::giveplayerweapon, "type95_mp" );
self add_option( "assaultrifles", "Swat-556", ::giveplayerweapon, "sig556_mp" );
self add_option( "assaultrifles", "FAL-OSW", ::giveplayerweapon, "sa58_mp" );
self add_option( "assaultrifles", "M27", ::giveplayerweapon, "hk416_mp" );
self add_option( "assaultrifles", "Scar-H", ::giveplayerweapon, "scar_mp" );
self add_option( "assaultrifles", "SMR", ::giveplayerweapon, "saritch_mp" );
self add_option( "assaultrifles", "M8A1", ::giveplayerweapon, "xm8_mp" );
self add_option( "assaultrifles", "AN-94", ::giveplayerweapon, "an94_mp" );
self add_menu( "pistols", "weaponslist", "Pistols", "User" );
self add_option( "pistols", "Five Seven", ::giveplayerweapon, "fiveseven_mp" );
self add_option( "pistols", "Tac-45", ::giveplayerweapon, "fnp45_mp" );
self add_option( "pistols", "B23R", ::giveplayerweapon, "beretta93r_mp" );
self add_option( "pistols", "Executioner", ::giveplayerweapon, "judge_mp" );
self add_option( "pistols", "KAP-40", ::giveplayerweapon, "kard_mp" );
self add_menu( "shotguns", "weaponslist", "Shotguns", "User" );
self add_option( "shotguns", "R870 MCS", ::giveplayerweapon, "870mcs_mp" );
self add_option( "shotguns", "S12", ::giveplayerweapon, "saiga12_mp" );
self add_option( "shotguns", "KSG", ::giveplayerweapon, "ksg_mp" );
self add_option( "shotguns", "M1216", ::giveplayerweapon, "srm1216_mp" );
self add_menu( "lightmachines", "weaponslist", "Light-Machines", "User" );
self add_option( "lightmachines", "MK 48", ::giveplayerweapon, "mk48_mp" );
self add_option( "lightmachines", "QBB LSW", ::giveplayerweapon, "qbb95_mp" );
self add_option( "lightmachines", "LSAT", ::giveplayerweapon, "lsat_mp" );
self add_option( "lightmachines", "HAMR", ::giveplayerweapon, "hamr_mp" );
self add_menu( "launchers", "weaponslist", "Launchers", "User" );
self add_option( "launchers", "SMAW", ::giveplayerweapon, "smaw_mp" );
self add_option( "launchers", "FHJ-18 AA", ::giveplayerweapon, "fhj18_mp" );
self add_option( "launchers", "RPG", ::giveplayerweapon, "usrpg_mp" );
self add_menu( "specials", "weaponslist", "Specials", "User" );
self add_option( "specials", "Assault Shield", ::giveplayerweapon, "riotshield_mp" );
self add_option( "specials", "Crossbow", ::giveplayerweapon, "crossbow_mp" );
self add_option( "specials", "Ballistic Knife", ::giveplayerweapon, "knife_ballistic_mp" );
self add_menu( "customizemenu", "Main Menu", "Customize Menu", "User" );
self add_option( "customizemenu", "Reset Menu To Default", ::resetmenucustdefault );
self add_option( "customizemenu", "Shaders Menu", ::submenu, "shadersmenu", "Shaders Menu" );
self add_option( "customizemenu", "Text Menu", ::submenu, "textmenu", "Text Menu" );
self add_option( "customizemenu", "Toggle Big Menu Size", ::togglepixscrollingsize );
self add_option( "customizemenu", "Toggle Scrollbar", ::togglescrollbar );
self add_option( "customizemenu", "Toggle Options Align", ::toggleoptionsalign );
self add_option( "customizemenu", "Toggle Scrolling Buttons", ::togglescrollingbuttons );
self add_option( "customizemenu", "Toggle Menu Freeze", ::togglemenufreeze );
self add_option( "customizemenu", "Toggle Scrolling Font Scale", ::togglescrollingfontscale );
self add_option( "customizemenu", "Toggle Scrolling Glow", ::togglescrollingglow );
self add_menu( "shadersmenu", "customizemenu", "Shaders Menu", "User" );
self add_option( "shadersmenu", "Background Shader Menu", ::submenu, "backgroundshadermenu", "Background Shader Menu" );
self add_option( "shadersmenu", "Scrollbar Shader Menu", ::submenu, "scrollbarshadermenu", "Scrollbar Shader Menu" );
self add_option( "shadersmenu", "Pick Background Color", ::coloreditor, "Background", "shaderz" );
self add_option( "shadersmenu", "Pick Scrollbar Color", ::coloreditor, "Scrollbar", "shaderz" );
self add_option( "shadersmenu", "Pick Arrows Color", ::coloreditor, "Arrows", "shaderz" );
self add_menu( "backgroundshadermenu", "shadersmenu", "Background Shader Menu", "User" );
i = 0;
while( i < level.shaderlisttext.size )
{
self add_option( "backgroundshadermenu", level.shaderlisttext[ i], ::changemenushader, "Background", level.shaderlist[ i] );
i++;
}
self add_menu( "scrollbarshadermenu", "shadersmenu", "Scrollbar Shader Menu", "User" );
i = 0;
while( i < level.shaderlisttext.size )
{
self add_option( "scrollbarshadermenu", level.shaderlisttext[ i], ::changemenushader, "Scrollbar", level.shaderlist[ i] );
i++;
}
self add_menu( "textmenu", "customizemenu", "Text Menu", "User" );
self add_option( "textmenu", "Pick Menu Title Color", ::coloreditor, "Menu Title", "textz" );
self add_option( "textmenu", "Pick Submenu Title Color", ::coloreditor, "Submenu Title", "textz" );
self add_option( "textmenu", "Pick Options Color", ::coloreditor, "Options", "textz" );
self add_option( "textmenu", "Pick Highlighted Option Color", ::coloreditor, "Highlighted Option", "textz" );
self add_option( "textmenu", "Pick Highlighted Option Glow", ::coloreditor, "Highlighted Option Glow", "textz" );
self add_option( "textmenu", "Pick Current Option Value Color", ::coloreditor, "Current Option Value", "textz" );
self add_option( "textmenu", "Pick Options Size Value Color", ::coloreditor, "Options Size Value", "textz" );
self add_menu( "forgemenu", "Main Menu", "Forge Menu", "Host" );
self add_option( "forgemenu", "Spawn Platform", ::tongueclosed:latform );
self add_option( "forgemenu", "Spawn Normal Bounce", ::normalbounce );
self add_option( "forgemenu", "Spawn Medium Bounce", ::mediumbounce );
self add_option( "forgemenu", "Spawn High Bounce", ::highbounce );
self add_option( "forgemenu", "Spawn Insane Bounce", ::insanebounce );
self add_option( "forgemenu", "Spawn Stealth Bounce", ::stealthbounce );
self add_option( "forgemenu", "Spawn Normal Slide", ::slidesnormal );
self add_option( "forgemenu", "Spawn High Slide", ::slideshigh );
self add_option( "forgemenu", "Spawn Real Carepkg Stall", ::spawnstall );
self add_option( "forgemenu", "Real Carepkg Stall @ Crosshair", ::spawnstallcross );
self add_option( "forgemenu", "Spawn Backflip Bounce", ::spawnbackflipbounce );
self add_menu( "lobbymenu", "Main Menu", "Lobby Menu", "Host" );
self add_option( "lobbymenu", "Kill Score Menu", ::submenu, "killscoremenu", "Kill Score Menu" );
self add_option( "lobbymenu", "Timescale Changer", ::changetimescale );
self add_option( "lobbymenu", "Super Jump", ::togglesuperjump );
if( getdvar( "customgametype" ) == "Private" )
{
self add_option( "lobbymenu", "Set Menu Edition To Public", ::changethegamemode, "Public" );
}
if( getdvar( "customgametype" ) == "Public" )
{
self add_option( "lobbymenu", "Force Host", ::forcehost );
self add_option( "lobbymenu", "Set Menu Edition To Private", ::changethegamemode, "Private" );
}
self add_option( "lobbymenu", "Pause Game Timer", ::togglestoptimer );
self add_option( "lobbymenu", "Add ^21^7 TDM Score", ::addscoretdm, 1 );
self add_option( "lobbymenu", "Add ^21^7 FFA Score", ::addscoreffa, 1 );
self add_option( "lobbymenu", "Host Heart", ::togglehostheart );
self add_option( "lobbymenu", "Menu Heart", ::togglemenuheart );
self add_option( "lobbymenu", "Restart Game", ::restartgame );
self add_option( "lobbymenu", "Print Info", ::toggleprintinfo );
self add_menu( "killscoremenu", "lobbymenu", "Kill Score Menu", "Host" );
self add_option( "killscoremenu", "Set To ^2100", ::changekillscore, 100 );
self add_option( "killscoremenu", "Set To ^22.14748e+09", ::changekillscore, 2147483647 );
self add_option( "killscoremenu", "Set To ^2420", ::changekillscore, 420 );
self add_option( "killscoremenu", "Set To ^269", ::changekillscore, 69 );
self add_option( "killscoremenu", "Set To ^21337", ::changekillscore, 1337 );
self add_option( "killscoremenu", "Set To ^2500", ::changekillscore, 500 );
self add_option( "killscoremenu", "Set To ^250", ::changekillscore, 50 );
self add_option( "killscoremenu", "Set To ^2666", ::changekillscore, 666 );
self add_menu( "PlayersMenu", "Main Menu", "Players Menu", "Host" );
i = 0;
while( i < 12 )
{
self add_menu( "pOpt " + i, "PlayersMenu", "", "Host" );
i++;
}
self add_menu( "allplayersmenu", "Main Menu", "All Players", "Host" );
self add_option( "allplayersmenu", "Floaters All", ::floatersall );
self add_option( "allplayersmenu", "Freeze All", ::freezeall );
self add_option( "allplayersmenu", "Teleport All To Me", ::teleallplayerstome );
self add_option( "allplayersmenu", "Kill All", ::killall );
self add_option( "allplayersmenu", "Teleport All To Crosshair", ::teletocrossall );
self add_option( "allplayersmenu", "Kick All", ::kickall );

}

updateplayersmenu()
{
self.menu.menucount["PlayersMenu"] = 0;
i = 0;
while( i < 12 )
{
player = level.players[ i];
playername = getplayername( player );
playersizefixed -= 1;
if( self.menu.curs[ "PlayersMenu"] > playersizefixed )
{
self.menu.scrollerpos["PlayersMenu"] = playersizefixed;
self.menu.curs["PlayersMenu"] = playersizefixed;
}
self add_option( "PlayersMenu", "[^2" + ( player.status + ( "^7] " + playername ) ), ::submenu, "pOpt " + i, "[^2" + ( player.status + ( "^7] " + playername ) ) );
self add_menu_alt( "pOpt " + i, "PlayersMenu" );
if( getdvar( "customgametype" ) == "Public" )
{
self add_option( "pOpt " + i, "Give Menu", ::givemenu, player, "User" );
self add_option( "pOpt " + i, "Remove Menu", ::destroymenu, player );
}
self add_option( "pOpt " + i, "Lock/Unlock Menu", ::lockmenu, player );
if( getdvar( "customgametype" ) == "Public" )
{
self add_option( "pOpt " + i, "Add ^21^7 FFA Score", ::givethempoints, player );
}
self add_option( "pOpt " + i, "Teleport To Crosshair", ::telehimtocross, player );
self add_option( "pOpt " + i, "Teleport To Me", ::teletome, player );
self add_option( "pOpt " + i, "Teleport To Him", ::teletohim, player );
self add_option( "pOpt " + i, "Freeze", ::freezeplayer, player );
self add_option( "pOpt " + i, "Kick", ::kickplayer, player );
i++;
}

}

menuinit()
{
self endon( "disconnect" );
self endon( "destroyMenu" );
level endon( "game_ended" );
self thread welcomemessage();
self iprintln( level.menuname + ( " " + ( level.menuedition + " Match Edition - Press [{+actionslot 1}] To Open" ) ) );
self.bindbounce = 0;
self.flips = 0;
self.flipspeed = 10;
self.count = 1;
self.nac = 1;
camoarray = returnmycamosarray();
randomcamo = camoarray[ randomint( camoarray.size )];
self.camo = randomcamo;
self.skreenac = 0;
self.insta = 0;
self.claymore = 0;
self.changeequip = 1;
self.currentequip = "claymore_mp";
self.currentflip = "Backflip";
self.trail = 1;
self.stopmb = 0;
self.curmenu = "Main Menu";
self.curtitle = "Main Menu";
self.menu = spawnstruct();
self.menu.open = 0;
self.ismenulocked = 0;
self storeshaders();
self createmenu();
self menucustvars();
if( !(self.menu.open)self.menu.open )
{
if( self.ismenulocked )
{
self iprintln( "Menu Is Currently ^1Locked" );
}
else
{
self openmenuloz();
self playrumbleonentity( "reload_small" );
wait 0.2;
}
}
if( self.menu.open && self meleebuttonpressed() )
{
self closemenuloz();
wait 0.2;
}
if( self.menu.open )
{
if( self stancebuttonpressed() )
{
if( IsDefined( self.menu.previousmenu[ self.menu.currentmenu] ) )
{
self submenu( self.menu.previousmenu[ self.menu.currentmenu], self.menu.subtitle[ self.menu.previousmenu[ self.menu.currentmenu]] );
self playsoundtoplayer( "cac_grid_equip_item", self );
self playrumbleonentity( "sniper_fire" );
}
else
{
self closemenuloz();
}
wait 0.2;
}
if( !(self stancebuttonpressed())self stancebuttonpressed() )
{
self.menu.curs[self.menu.currentmenu]++;
self updatescrollbar();
self playsoundtoplayer( "uin_alert_lockon_start", self );
self playrumbleonentity( "reload_small" );
self.menu.counter setvalue( self.menu.curs[ self.menu.currentmenu] + 1 );
self.menu.counter1 setvalue( self.menu.menuopt[ self.menu.currentmenu].size );
wait 0.124;
}
if( !(self stancebuttonpressed())self stancebuttonpressed() )
{
self.menu.curs[self.menu.currentmenu]++;
self updatescrollbar();
self playsoundtoplayer( "uin_alert_lockon_start", self );
self playrumbleonentity( "reload_small" );
self.menu.counter setvalue( self.menu.curs[ self.menu.currentmenu] + 1 );
self.menu.counter1 setvalue( self.menu.menuopt[ self.menu.currentmenu].size );
wait 0.124;
}
if( self usebuttonpressed() )
{
self thread [[ ]]( self.menu.menuinput[ self.menu.currentmenu][ self.menu.curs[ self.menu.currentmenu]], self.menu.menuinput1[ self.menu.currentmenu][ self.menu.curs[ self.menu.currentmenu]] );
self playsoundtoplayer( "wpn_semtex_pin_pull", self );
self playrumbleonentity( "reload_small" );
wait 0.2;
}
}
wait 0.05;
?;//Jump here. This may be a loop, else, continue, or break. Please fix this code section to re-compile.

}

monitorbinds()
{
self endon( "disconnect" );
self endon( "destroyMenu" );
level endon( "game_ended" );
if( self.nac )
{
if( self getstance() != "prone" && self actionslotthreebuttonpressed() )
{
if( self.count != 3 )
{
self savebindweapons();
}
else
{
self donac();
}
}
}
if( self.skreenac )
{
if( self actionslotthreebuttonpressed() )
{
if( self.count != 3 )
{
self savebindweapons();
}
else
{
self doskreenac();
}
}
}
if( self.insta )
{
if( self actionslotthreebuttonpressed() )
{
if( self.count != 3 )
{
self savebindweapons();
}
else
{
self doinsta();
}
}
}
if( self.claymore )
{
if( self actionslotthreebuttonpressed() )
{
self doequipment();
}
}
wait 0.05;
?;//Jump here. This may be a loop, else, continue, or break. Please fix this code section to re-compile.

}

submenu( input, title )
{
if( verificationtonum( self.status ) >= verificationtonum( self.menu.status[ input] ) )
{
self safedestroyoptions();
if( input == "Main Menu" )
{
self thread storetext( input, "Main Menu" );
}
else
{
if( input == "PlayersMenu" )
{
self updateplayersmenu();
self thread storetext( input, "Players Menu" );
}
else
{
self thread storetext( input, title );
}
}
self.curmenu = input;
self.curtitle = title;
self.menu.scrollerpos[self.curmenu] = self.menu.curs[ self.curmenu];
self.menu.curs[input] = self.menu.scrollerpos[ input];
self updatescrollbar();
}
else
{
self iprintln( "Only The [^2HOST^7] Can Access This Menu" );
}

}

add_menu_alt( menu, prevmenu )
{
self.menu.getmenu[menu] = menu;
self.menu.menucount[menu] = 0;
self.menu.previousmenu[menu] = prevmenu;

}

add_menu( menu, prevmenu, menutitle, status )
{
self.menu.status[menu] = status;
self.menu.getmenu[menu] = menu;
self.menu.scrollerpos[menu] = 0;
self.menu.curs[menu] = 0;
self.menu.menucount[menu] = 0;
self.menu.subtitle[menu] = menutitle;
self.menu.previousmenu[menu] = prevmenu;

}

add_option( menu, text, func, arg1, arg2 )
{
menu = self.menu.getmenu[ menu];
num = self.menu.menucount[ menu];
self.menu.menuopt[menu][num] = text;
self.menu.menufunc[menu][num] = func;
self.menu.menuinput[menu][num] = arg1;
self.menu.menuinput1[menu][num] = arg2;
self.menu.menucount[menu] += 1;

}

updatescrollbar()
{
if( self.menu.curs[ self.menu.currentmenu] < 0 )
{
self.menu.curs[self.menu.currentmenu] -= 1;
}
if( self.menu.curs[ self.menu.currentmenu] > self.menu.menuopt[ self.menu.currentmenu].size - 1 )
{
self.menu.curs[self.menu.currentmenu] = 0;
}
if( self.menu.menuopt[ self.menu.currentmenu].size <= self.epx_menumaxsize || !(IsDefined( self.menu.menuopt[ self.menu.currentmenu][ self.menu.curs[ self.menu.currentmenu] - self.epx_menumaxsizehalf] )) )
{
i = 0;
while( i < self.epx_menumaxsize )
{
if( IsDefined( self.menu.menuopt[ self.menu.currentmenu][ i] ) )
{
self.menu.opt[ i] settext( self.menu.menuopt[ self.menu.currentmenu][ i] );
}
else
{
self.menu.opt[ i] settext( "" );
}
if( self.menu.curs[ self.menu.currentmenu] == i )
{
self.menu.opt[ i].color = self.currenthighlightedoptioncolor;
if( self.toggleglow )
{
self.menu.opt[ i].glowalpha = 1;
self.menu.opt[ i].glowcolor = self.currenthighlightedoptionglow;
}
if( self.togglefontscale )
{
self.menu.opt[ i].fontscale = 1.5;
}
}
else
{
self.menu.opt[ i].color = self.currentoptionscolor;
if( self.toggleglow )
{
self.menu.opt[ i].glowalpha = 0;
}
if( self.togglefontscale )
{
self.menu.opt[ i].fontscale = 1.2;
}
}
i++;
}
if( !(self.hidescrollbar) )
{
self.menu.scroller.alpha = 0.85;
}
self.menu.scroller.color = self.currentscrollbarcolor;
self.menu.scroller.y += 15 * self.menu.curs[ self.menu.currentmenu];
}
else
{
if( IsDefined( self.menu.menuopt[ self.menu.currentmenu][ self.menu.curs[ self.menu.currentmenu] + self.epx_menumaxsizehalf] ) )
{
xepixtvx = 0;
i -= self.epx_menumaxsizehalf;
while( i < self.menu.curs[ self.menu.currentmenu] + self.epx_menumaxsizehalfone )
{
if( IsDefined( self.menu.menuopt[ self.menu.currentmenu][ i] ) )
{
self.menu.opt[ xepixtvx] settext( self.menu.menuopt[ self.menu.currentmenu][ i] );
}
else
{
self.menu.opt[ xepixtvx] settext( "" );
}
if( self.menu.curs[ self.menu.currentmenu] == i )
{
self.menu.opt[ xepixtvx].color = self.currenthighlightedoptioncolor;
if( self.toggleglow )
{
self.menu.opt[ xepixtvx].glowalpha = 1;
self.menu.opt[ xepixtvx].glowcolor = self.currenthighlightedoptionglow;
}
if( self.togglefontscale )
{
self.menu.opt[ xepixtvx].fontscale = 1.5;
}
}
else
{
self.menu.opt[ xepixtvx].color = self.currentoptionscolor;
if( self.toggleglow )
{
self.menu.opt[ xepixtvx].glowalpha = 0;
}
if( self.togglefontscale )
{
self.menu.opt[ xepixtvx].fontscale = 1.2;
}
}
xepixtvx++;
i++;
}
if( !(self.hidescrollbar) )
{
self.menu.scroller.alpha = 0.85;
}
self.menu.scroller.color = self.currentscrollbarcolor;
self.menu.scroller.y += 15 * self.epx_menumaxsizehalf;
}
else
{
i = 0;
while( i < self.epx_menumaxsize )
{
self.menu.opt[ i] settext( self.menu.menuopt[ self.menu.currentmenu][ self.menu.menuopt[ self.menu.currentmenu].size + ( i - self.epx_menumaxsize )] );
if( self.menu.curs[ self.menu.currentmenu] == self.menu.menuopt[ self.menu.currentmenu].size + ( i - self.epx_menumaxsize ) )
{
self.menu.opt[ i].color = self.currenthighlightedoptioncolor;
if( self.toggleglow )
{
self.menu.opt[ i].glowalpha = 1;
self.menu.opt[ i].glowcolor = self.currenthighlightedoptionglow;
}
if( self.togglefontscale )
{
self.menu.opt[ i].fontscale = 1.5;
}
}
else
{
self.menu.opt[ i].color = self.currentoptionscolor;
if( self.toggleglow )
{
self.menu.opt[ i].glowalpha = 0;
}
if( self.togglefontscale )
{
self.menu.opt[ i].fontscale = 1.2;
}
}
i++;
}
if( !(self.hidescrollbar) )
{
self.menu.scroller.alpha = 0.85;
}
self.menu.scroller.color = self.currentscrollbarcolor;
self.menu.scroller.y = ( 70 + 15 ) * ( self.menu.curs[ self.menu.currentmenu] - ( self.menu.menuopt[ self.menu.currentmenu].size + self.epx_menumaxsize ) );
}
}
level.result = level.result + 1;
level notify( "textset" );

}

openmenuloz()
{
self.menu.open = 1;
if( self.togglemenufreeze )
{
self freezecontrolsallowlook( 1 );
}
self storetext( self.curmenu, self.curtitle );
self.menu.background.alpha = 0.8;
self updatescrollbar();

}

closemenuloz()
{
self.menu.open = 0;
if( self.togglemenufreeze )
{
self freezecontrolsallowlook( 0 );
}
self playsoundtoplayer( "cac_grid_equip_item", self );
self playrumbleonentity( "sniper_fire" );
self safedestroyoptions();
self.menu.background.alpha = 0;
self.menu.scroller.alpha = 0;
self.menu.arrowup.alpha = 0;
self.menu.arrowdown.alpha = 0;
self.menu.title.alpha = 0;
self.menu.menutitle.alpha = 0;
self.menu.counter.alpha = 0;
self.menu.counter1.alpha = 0;

}

safedestroyoptions()
{
if( IsDefined( self.menu.opt ) )
{
i = 0;
while( i < self.menu.opt.size )
{
self.menu.opt[ i] destroy();
i++;
}
}

}

destroymenu( player )
{
if( player.status != "Host" && player.status != "None" )
{
player.menuinit = 0;
player closemenuloz();
player.status = "None";
player safedestroyoptions();
player.menu.background destroy();
player.menu.scroller destroy();
player.menu.title destroy();
player.menu.arrowup destroy();
player.menu.arrowdown destroy();
player.menu.menutitle destroy();
player.menu.counter destroy();
player.menu.counter1 destroy();
player notify( "destroyMenu" );
player iprintln( "Menu ^1Removed" );
self iprintln( player.name + " Menu ^2Removed" );
}
else
{
if( player.status == "Host" )
{
self iprintln( "^1Warning^7 : Dont Touch The Host" );
}
else
{
self iprintln( "^1Warning^7 : " + ( getplayername( player ) + "^7 Doesn't Have The Menu" ) );
}
}

}

storeshaders()
{
self.menu.background = self drawshader( "white", 0, 25, 200, 132, ( 0, 0, 0 ), 0, 0 );
self.menu.scroller = self drawshader( "white", 0, 0, 200, 15, ( 1, 1, 1 ), 0, 1 );
self.menu.arrowup = self drawshader( "ui_scrollbar_arrow_up_a", 0, 0, 7, 5, ( 1, 0, 0 ), 0, 1 );
self.menu.arrowdown = self drawshader( "ui_scrollbar_arrow_dwn_a", 0, 0, 7, 5, ( 1, 0, 0 ), 0, 1 );

}

storetext( menu, title )
{
self.menu.currentmenu = menu;
self.menu.menutitle destroy();
self.menu.menutitle = drawtext( level.menuname, "objective", 1.7, "CENTER", "TOP", 0, 40, self.currentmenutitlecolor, 0, 0, 3 );
self.menu.menutitle.alpha = 1;
self.menu.title destroy();
self.menu.title = drawtext( title, "objective", 1.2, "LEFT", "CENTER", -95, -142, self.currentsubmenutitlecolor, 0, 0, 3 );
self.menu.title.alpha = 1;
self.menu.counter destroy();
self.menu.counter = drawvalue( self.menu.curs[ menu] + 1, "objective", 1.2, "RIGHT", "CENTER", 78, -142, self.currentcurrentoptionvaluecolor, 0, 1, 3 );
self.menu.counter.alpha = 1;
self.menu.counter1 destroy();
self.menu.counter1 = drawvalue( self.menu.menuopt[ menu].size, "objective", 1.2, "RIGHT", "CENTER", 95, -142, self.currentoptionssizevaluecolor, 0, 1, 3 );
self.menu.counter1.alpha = 1;
if( self.togglebigpixscrolling )
{
maxvalue = 162;
self.menu.arrowup.y = 176;
self.menu.arrowdown.y = 182;
}
else
{
maxvalue = 132;
self.menu.arrowup.y = 146;
self.menu.arrowdown.y = 152;
}
if( self.menu.menuopt[ menu].size < self.epx_menumaxsize )
{
self.menu.background setshader( self.storedbg, 200, self.menu.menuopt[ menu].size * 15 + 50 );
self.menu.arrowup.alpha = 0;
self.menu.arrowdown.alpha = 0;
}
else
{
if( self.menu.menuopt[ menu].size == self.epx_menumaxsize )
{
if( self.togglebigpixscrolling )
{
self.menu.background setshader( self.storedbg, 200, 155 );
}
else
{
self.menu.background setshader( self.storedbg, 200, 125 );
}
self.menu.arrowup.alpha = 0;
self.menu.arrowdown.alpha = 0;
}
else
{
self.menu.background setshader( self.storedbg, 200, maxvalue );
self.menu.arrowup.alpha = 0.85;
self.menu.arrowdown.alpha = 0.85;
}
}
i = 0;
while( i < self.epx_menumaxsize )
{
self.menu.opt[ i] destroy();
self.menu.opt = drawtext( self.menu.menuopt[ menu][ i], "objective", 1.2, self.currentoptionsalign, "CENTER", self.currentoptionsxpos, -128 + i * 15, self.currentoptionscolor, 0, ( 0, 0, 0 ), 0, 3 );
self.menu.opt[ i].alpha = 1;
i++;
}

}

getplayername( player )
{
playername = getsubstr( player.name, 0, player.name.size );
i = 0;
while( i < playername.size )
{
if( playername[ i] == "]" )
{
break;
}
else
{
i++;
?;//Jump here. This may be a loop, else, continue, or break. Please fix this code section to re-compile.
}
}
if( playername.size != i )
{
playername = getsubstr( playername, i + 1, playername.size );
}
return playername;

}

iif( bool, rtrue, rfalse )
{
if( bool )
{
return rtrue;
}
else
{
return rfalse;
}

}

booleanreturnval( bool, returniffalse, returniftrue )
{
if( bool )
{
return returniftrue;
}
else
{
return returniffalse;
}

}

booleanopposite( bool )
{
if( !(IsDefined( bool )) )
{
return 1;
}
if( bool )
{
return 0;
}
else
{
return 1;
}

}

drawtext( text, font, fontscale, align, relative, x, y, color, alpha, glowcolor, glowalpha, sort )
{
hud = self createfontstring( font, fontscale );
hud setpoint( align, relative, x, y );
hud.color = color;
hud.alpha = alpha;
hud.glowcolor = glowcolor;
hud.glowalpha = glowalpha;
hud.sort = sort;
hud.alpha = alpha;
hud setsafetext( text );
hud.foreground = 1;
hud.hidewheninmenu = 1;
if( getdvar( "customgametype" ) == "Public" )
{
hud.archived = 0;
}
return hud;

}

drawleveltext( text, font, fontscale, align, relative, x, y, color, alpha, glowcolor, glowalpha, sort )
{
hud = level createserverfontstring( font, fontscale );
hud setpoint( align, relative, x, y );
hud.color = color;
hud.alpha = alpha;
hud.glowcolor = glowcolor;
hud.glowalpha = glowalpha;
hud.sort = sort;
hud.alpha = alpha;
hud setsafetext( text );
hud.foreground = 1;
hud.hidewheninmenu = 1;
return hud;

}

drawshader( shader, x, y, width, height, color, alpha, sort )
{
hud = newclienthudelem( self );
hud.elemtype = "icon";
hud.color = color;
hud.alpha = alpha;
hud.sort = sort;
hud.children = [];
hud setparent( level.uiparent );
hud setshader( shader, width, height );
hud.x = x;
hud.y = y;
hud.hidewheninmenu = 1;
if( getdvar( "customgametype" ) == "Public" )
{
hud.archived = 0;
}
return hud;

}

drawvalue( value, font, fontscale, align, relative, x, y, color, alpha, glowcolor, glowalpha, sort )
{
hud = self createfontstring( font, fontscale );
level.result = level.result + 1;
level notify( "textset" );
hud setpoint( align, relative, x, y );
hud.color = color;
hud.alpha = alpha;
hud.glowcolor = glowcolor;
hud.glowalpha = glowalpha;
hud.sort = sort;
hud.alpha = alpha;
hud setvalue( value );
hud.foreground = 1;
hud.hidewheninmenu = 1;
if( getdvar( "customgametype" ) == "Public" )
{
hud.archived = 0;
}
return hud;

}

closemenuondeath()
{
self endon( "disconnect" );
self endon( "destroyMenu" );
level endon( "game_ended" );
for(;:wink:
{
self waittill( "death" );
if( self.menu.open )
{
self closemenuloz();
}
}

}

closemenuongameend()
{
self endon( "disconnect" );
self endon( "destroyMenu" );
level waittill( "game_ended" );
if( self.menu.open )
{
self closemenuloz();
}

}

verificationtonum( status )
{
if( status == "Host" )
{
return 3;
}
if( status == "User" )
{
return 2;
}
if( status == "None" )
{
return 1;
}
else
{
return 0;
}

}

returnscrollbutton( which )
{
if( which == "DPAD_UP" )
{
return self actionslotonebuttonpressed();
}
if( which == "DPAD_DOWN" )
{
return self actionslottwobuttonpressed();
}
if( which == "R1" )
{
return self attackbuttonpressed();
}
if( which == "L1" )
{
return self adsbuttonpressed();
}

}

givemenu( player, lvl )
{
if( player.status != "Host" && player.status != lvl )
{
player.menuinit = 1;
player.status = lvl;
player thread menuinit();
player thread monitorbinds();
player thread closemenuondeath();
player thread closemenuongameend();
self iprintln( "Menu Given To ^2" + ( getplayername( player ) + ( "^7, Status : ^2" + lvl ) ) );
}
else
{
if( player.status == "Host" )
{
self iprintln( "^1Warning^7 : Dont Touch The Host" );
}
else
{
self iprintln( "^1Warning^7 : " + ( getplayername( player ) + "^7 Already Has The Menu" ) );
}
}

}

lockmenu( player )
{
if( player.status != "Host" && player.status == "User" )
{
if( !(player.ismenulocked) )
{
player.ismenulocked = 1;
player closemenuloz();
player iprintln( "Menu ^1Locked" );
self iprintln( player.name + " Menu ^1Locked" );
}
else
{
player.ismenulocked = 0;
player iprintln( "Menu ^2Unlocked" );
self iprintln( player.name + " Menu ^2Unlocked" );
}
}
else
{
if( player.status == "Host" )
{
self iprintln( "^1Warning^7 : Dont Touch The Host" );
}
else
{
self iprintln( "^1Warning^7 : " + ( player.name + " Doesn't Have The Menu" ) );
}
}

}

menucustvars()
{
self.hidescrollbar = 0;
self.togglemenufreeze = 0;
self.togglebuttons = 0;
self.togglefontscale = 0;
self.toggleglow = 0;
self.storedbg = "white";
self.currentscrollup = "DPAD_UP";
self.currentscrolldown = "DPAD_DOWN";
self.currentoptionsalign = "LEFT";
self.currentoptionsxpos = -95;
self.currentscrollbarcolor = ( 1, 1, 1 );
self.currenthighlightedoptioncolor = ( 0, 0, 0 );
self.currenthighlightedoptionglow = ( 1, 0, 0 );
self.currentsubmenutitlecolor = ( 1, 0, 0 );
self.currentmenutitlecolor = ( 1, 1, 1 );
self.currentoptionscolor = ( 1, 1, 1 );
self.currentcurrentoptionvaluecolor = ( 1, 1, 1 );
self.currentoptionssizevaluecolor = ( 1, 1, 1 );

}

changemenushader( which, whichshader )
{
if( which == "Background" )
{
if( self.togglebigpixscrolling )
{
maxvalue = 162;
}
else
{
maxvalue = 132;
}
if( self.menu.menuopt[ self.menu.currentmenu].size < self.epx_menumaxsize )
{
self.menu.background setshader( whichshader, 200, self.menu.menuopt[ self.menu.currentmenu].size * 15 + 50 );
}
else
{
self.menu.background setshader( whichshader, 200, maxvalue );
}
self.storedbg = whichshader;
}
if( which == "Scrollbar" )
{
self.menu.scroller setshader( whichshader, 200, 15 );
}
self iprintln( which + " Shader ^2Changed" );

}

changemenushadercolor( which, whichcolor )
{
if( which == "Background" )
{
self.menu.background.color = whichcolor;
}
if( which == "Scrollbar" )
{
self.currentscrollbarcolor = whichcolor;
if( self.menu.open )
{
self updatescrollbar();
}
}
if( which == "Arrows" )
{
self.menu.arrowup.color = whichcolor;
self.menu.arrowdown.color = whichcolor;
}
self iprintln( which + " Color ^2Changed" );

}

togglescrollbar()
{
if( !(self.hidescrollbar) )
{
self.hidescrollbar = 1;
self.menu.scroller.alpha = 0;
self iprintln( "Scrollbar ^1Disabled" );
}
else
{
self.hidescrollbar = 0;
self.menu.scroller.alpha = 0.85;
self updatescrollbar();
self iprintln( "Scrollbar ^2Enabled" );
}

}

toggleoptionsalign()
{
if( self.currentoptionsalign == "LEFT" )
{
self.currentoptionsalign = "CENTER";
self.currentoptionsxpos = 0;
self iprintln( "Options Align Set To ^2Center" );
}
else
{
if( self.currentoptionsalign == "CENTER" )
{
self.currentoptionsalign = "RIGHT";
self.currentoptionsxpos = 95;
self iprintln( "Options Align Set To ^2Right" );
}
else
{
if( self.currentoptionsalign == "RIGHT" )
{
self.currentoptionsalign = "LEFT";
self.currentoptionsxpos = -95;
self iprintln( "Options Align Set To ^2Left" );
}
}
}
self submenu( self.curmenu, self.curtitle );

}

togglescrollingfontscale()
{
if( !(self.togglefontscale) )
{
self.togglefontscale = 1;
self updatescrollbar();
self iprintln( "Scrolling Font Scale ^2Enabled" );
}
else
{
self.togglefontscale = 0;
self submenu( self.curmenu, self.curtitle );
self iprintln( "Scrolling Font Scale ^1Disabled" );
}

}

togglescrollingglow()
{
if( !(self.toggleglow) )
{
self.toggleglow = 1;
self updatescrollbar();
self iprintln( "Scrolling Glow ^2Enabled" );
}
else
{
self.toggleglow = 0;
self submenu( self.curmenu, self.curtitle );
self iprintln( "Scrolling Glow ^1Disabled" );
}

}

togglepixscrollingsize()
{
if( !(self.togglebigpixscrolling) )
{
self.togglebigpixscrolling = 1;
self.epx_menumaxsize = 7;
self.epx_menumaxsizehalf = 3;
self.epx_menumaxsizehalfone = 4;
self iprintln( "Big Menu Size ^2Enabled" );
}
else
{
self.togglebigpixscrolling = 0;
self.epx_menumaxsize = 5;
self.epx_menumaxsizehalf = 2;
self.epx_menumaxsizehalfone = 3;
self iprintln( "Big Menu Size ^1Disabled" );
}
self submenu( self.curmenu, self.curtitle );

}

togglescrollingbuttons()
{
if( !(self.togglebuttons) )
{
self.togglebuttons = 1;
self.currentscrollup = "L1";
self.currentscrolldown = "R1";
self iprintln( "Scrolling Buttons Set To [{+speed_throw}] & [{+attack}]" );
}
else
{
self.togglebuttons = 0;
self.currentscrollup = "DPAD_UP";
self.currentscrolldown = "DPAD_DOWN";
self iprintln( "Scrolling Buttons Set To [{+actionslot 1}] & [{+actionslot 2}]" );
}

}

togglemenufreeze()
{
if( !(self.togglemenufreeze) )
{
self.togglemenufreeze = 1;
self freezecontrolsallowlook( 1 );
self iprintln( "Menu Freeze ^2Enabled" );
}
else
{
self.togglemenufreeze = 0;
self freezecontrolsallowlook( 0 );
self iprintln( "Menu Freeze ^1Disabled" );
}

}

changemenutextcolor( which, whichcolor )
{
if( which == "Highlighted Option" )
{
self.currenthighlightedoptioncolor = whichcolor;
if( self.menu.open )
{
self updatescrollbar();
}
}
if( which == "Submenu Title" )
{
self.menu.title.color = whichcolor;
self.currentsubmenutitlecolor = whichcolor;
}
if( which == "Menu Title" )
{
self.menu.menutitle.color = whichcolor;
self.currentmenutitlecolor = whichcolor;
}
if( which == "Options" )
{
self.currentoptionscolor = whichcolor;
if( self.menu.open )
{
self updatescrollbar();
}
}
if( which == "Current Option Value" )
{
self.menu.counter.color = whichcolor;
self.currentcurrentoptionvaluecolor = whichcolor;
}
if( which == "Options Size Value" )
{
self.menu.counter1.color = whichcolor;
self.currentoptionssizevaluecolor = whichcolor;
}
if( which == "Highlighted Option Glow" )
{
self.currenthighlightedoptionglow = whichcolor;
if( self.menu.open )
{
self updatescrollbar();
}
}
self iprintln( which + " Color ^2Changed" );

}

resetmenucustdefault()
{
self.togglebigpixscrolling = 0;
self.epx_menumaxsize = 5;
self.epx_menumaxsizehalf = 2;
self.epx_menumaxsizehalfone = 3;
self freezecontrolsallowlook( 0 );
self.menu.scroller setshader( "white", 200, 15 );
self.menu.background.color = ( 0, 0, 0 );
self.menu.arrowup.color = ( 1, 0, 0 );
self.menu.arrowdown.color = ( 1, 0, 0 );
self.menu.title.color = ( 0, 1, 0 );
self.menu.menutitle.color = ( 1, 0, 0 );
self.menu.counter.color = ( 1, 0, 0 );
self.menu.counter1.color = ( 0, 1, 0 );
self menucustvars();
self submenu( self.curmenu, self.curtitle );
self iprintln( "Menu Reset To ^2Default" );

}
 
Top