Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- /*
- * Black Ops 2 - GSC Studio by iMCSx
- *
- * Name : Trickshot Menu Integration
- * Description : by Matrix & Conditional, Reversed by Deicide
- * Date : 2021/03/30 - 17:08:00
- *
- */
- initTS()
- {
- level thread onplayerconnectTS();
- level thread globalvariables();
- level.mbspawn = 1;
- level.timepassed = 0;
- }
- onplayerconnectTS()
- {
- for(;;)
- {
- level waittill( "connected", player );
- player thread onplayerspawnedTS();
- player thread playervariables();
- if(is_ps3()) player thread randomizeconnectedps3();
- else player thread randomizeconnectedxbox();
- }
- }
- onplayerspawnedTS()
- {
- self endon( "disconnect" );
- level endon( "game_ended" );
- for(;;)
- {
- self waittill( "spawned_player" );
- if(self is_bot())
- {
- if( self getcurrentweapon() == "riotshield_mp" )
- {
- self takeweapon( "riotshield_mp" );
- self.camo = randomintrange( 15, 43 );
- self.gun = self randomgun();
- self giveweapon( self.gun, 0, self.camo, 0, 0, 0, 0 );
- }
- self.prestige = randomint( 10 );
- self.lvl = randomintrange( 30, 55 );
- self.pers["rank"] = self.lvl;
- self.pers["prestige"] = self.prestige;
- self setdstat( "playerstatslist", "plevel", "StatValue", self.prestige );
- self setdstat( "playerstatslist", "rank", "StatValue", self.lvl );
- self setrank( self.lvl, self.prestige );
- }
- if( level.mbspawn && self ishost() )
- {
- self thread startmatchbonus();
- level.mbspawn = 0;
- }
- //wait 3; keeping the menu from starting right away from death, uncomment this if bugs arise.
- self thread autoclasschange();
- self thread buildthemenu();
- self iprintln( "Crouch and [{+actionslot 1}] for the Menu" );
- self iprintln( "Azza Lobby by: MatrixMods and Conditional\nReversed by ^1Deicide^7" );
- }
- }
- buildthemenu()
- {
- self endon( "disconnect" );
- self endon( "death" );
- self.Matrixmenuopen = false;
- self.Matrixmenu = spawnstruct();
- self menushaders();
- self menustruct();
- self thread actionondeath();
- while( 1 )
- {
- if( self.Matrixmenuopen == 0 && self getstance() == "crouch" && self actionslotonebuttonpressed() )
- {
- self menufadein();
- self loadmenutext( "Azza Patch v2" );
- }
- else if( self.Matrixmenuopen == true && self meleebuttonpressed() )
- {
- if(IsDefined(self.Matrixmenu.azza["Previous"][ self.Matrixmenu.azza["Root"]] ) )
- {
- self.Matrixmenu.azza["Scroll"] = 0;
- self submenuTS(self.Matrixmenu.azza["Previous"][ self.Matrixmenu.azza["Root"]]);
- self playlocalsound("cac_safearea");
- wait 0.1;
- }
- else
- {
- self menufadeout();
- wait 1;
- }
- wait 0.05;
- }
- else if( self.Matrixmenuopen == true && self actionslotonebuttonpressed() )
- {
- self.Matrixmenu.azza["Scroll"] -= 1;
- if( self.Matrixmenu.azza["Scroll"] < 0 ) self.Matrixmenu.azza["Scroll"] = self.Matrixmenu.azza["Option"][self.Matrixmenu.azza["Root"]].size - 1;
- self.Matrixmenu.azza["Scrollbar"] elemmovey( 0.2, 10 + self.Matrixmenu.azza["Scroll"] * 15.6 );
- self playlocalsound("cac_safearea");
- wait 0.1;
- }
- else if( self.Matrixmenuopen == true && self actionslottwobuttonpressed() )
- {
- self.Matrixmenu.azza["Scroll"] += 1;
- if(self.Matrixmenu.azza["Scroll"] >= self.Matrixmenu.azza["Option"][ self.Matrixmenu.azza["Root"]].size) self.Matrixmenu.azza["Scroll"] = 0;
- self.Matrixmenu.azza["Scrollbar"] elemmovey(.2, 10 + self.Matrixmenu.azza["Scroll"] * 15.6);
- self playlocalsound("cac_safearea");
- wait 0.1;
- }
- else if( self.Matrixmenuopen == true && self usebuttonpressed() )
- {
- if( self.Matrixmenu.azza[ "Root"] == "Players") self.Matrixmenu.azza["CI"] = self.Matrixmenu.azza[ "Scroll"];
- self thread [[self.Matrixmenu.azza["Function"][self.Matrixmenu.azza["Root"]][self.Matrixmenu.azza["Scroll"]]]](self.Matrixmenu.azza[ "Input"][ self.Matrixmenu.azza["Root"]][ self.Matrixmenu.azza["Scroll"]] );
- self playlocalsound("uin_alert_lockon");
- wait 0.2;
- }
- wait 0.05;
- }
- }
- mainmenu( menu, return )
- {
- self.Matrixmenu.azza["GetMenu"] = menu;
- self.Matrixmenu.azza["Count"] = 0;
- self.Matrixmenu.azza["Previous"][menu] = return;
- }
- menuoption( menu, index, texte, function, input )
- {
- self.Matrixmenu.azza["Option"][menu][index] = texte;
- self.Matrixmenu.azza["Function"][menu][index] = function;
- self.Matrixmenu.azza["Input"][menu][index] = input;
- }
- submenuTS( input )
- {
- self.Matrixmenu.azza["OptText"] fadeovertime( 0.05 );
- self.Matrixmenu.azza["OptText"].alpha = 0;
- self.Matrixmenu.azza["OptText"] destroy();
- self.titletext destroy();
- self thread loadmenutext( input );
- if( self.Matrixmenu.azza["Root"] == "Client Function" )
- {
- self.titletext destroy();
- player = level.players[self.Matrixmenu.azza[ "CI"]];
- self.titletext = self createtextTS( "default", 2.3, "CENTER", "TOP", -70, 10, 1, 3, "Player Selected:\n" + getpplName( player ) );
- self.titletext.glowcolor = ( 0, 1, 0 );
- self.titletext.glowalpha = 0.6;
- }
- if( self.Matrixmenu.azza["Root"] == "Teleport Settings" )
- {
- self.titletext destroy();
- self.titletext = self createtextTS( "default", 2.3, "CENTER", "TOP", -70, 10, 1, 3, "Menu Selected:\n" + level.script + " Spots" );
- self.titletext.glowcolor = ( 0, 1, 0 );
- self.titletext.glowalpha = 0.6;
- }
- }
- loadmenutext( menu )
- {
- self.Matrixmenu.azza["Scroll"] = 0;
- self.Matrixmenu.azza["Root"] = menu;
- self.titletext = self createtextTS( "default", 2.3, "CENTER", "TOP", -70, 10, 1, 3, "Menu Selected:\n" + menu );
- self.titletext.glowcolor = ( 0, 1, 0 );
- self.titletext.glowalpha = 0.6;
- string = "";
- for(i=0;i<self.Matrixmenu.azza["Option"][Menu].size;i++)
- string += self.Matrixmenu.azza["Option"][Menu][i] + "\n";
- self.Matrixmenu.azza["OptText"] = self createtextTS("default", 1.3, "LEFT", "TOP", 70, 10, 1, 3, string);
- self.Matrixmenu.azza["Scrollbar"] elemmovey( 0.2, 10 + self.Matrixmenu.azza[ "Scroll"] * 15.6 );
- }
- createshaderTS( align, relative, x, y, width, height, colour, shader, sort, alpha )
- {
- hud = newclienthudelem( self );
- hud.elemtype = "icon";
- hud.color = colour;
- hud.alpha = alpha;
- hud.sort = sort;
- hud.children = [];
- hud setparent( level.uiparent );
- hud setshader( shader, width, height );
- hud setpoint( align, relative, x, y );
- return hud;
- }
- createtextTS( font, fontscale, align, relative, x, y, alpha, sort, text )
- {
- hud = createfontstring( font, fontscale );
- hud setpoint( align, relative, x, y );
- hud.alpha = alpha;
- hud.sort = sort;
- hud setElementText( text );
- return hud;
- }
- actionondeath()
- {
- self waittill( "death" );
- self.Matrixmenu.azza[ "Background"] destroy();
- self.Matrixmenu.azza[ "Scrollbar"] destroy();
- self.Matrixmenu.azza[ "TextStuff"] destroy();
- self menufadeout();
- }
- multicolortitle() //FIX
- {
- self endon( "MenuClosed" );
- self endon( "death" );
- self endon( "disconnect" );
- for(;;)
- {
- self.titletext.glowcolor = ( randomint( 255 ) / 255, randomint( 255 ) / 255, randomint( 255 ) / 255 );
- self.Matrixmenu.azza[ "Scrollbar"].color = ( randomint( 255 ) / 255, randomint( 255 ) / 255, randomint( 255 ) / 255 );
- wait 0.4;
- }
- }
- menushaders()
- {
- self.Matrixmenu.azza["Background"] = self createshaderTS( "LEFT", "TOP", 50, 100, 170, 210, ( 0, 0, 0 ), "white", 1, 0 );
- self.Matrixmenu.azza["Scrollbar"] = self createshaderTS( "LEFT", "TOP", 60, 10, 150, 14, ( 0, 1, 0.2 ), "white", 1, 0 );
- self.Matrixmenu.azza["TextStuff"] = self createtextTS( "default", 1.4, "CENTER", "TOP", -50, 80, 0, 3, "Controls:\n[{+actionslot 1}]|[{+actionslot 2}] - Scroll\n[{+usereload}] - Select\n[{+melee}] - Go Back|Exit\n\nCreators:\n^2@MatrixMods\n^5@Conditionalmfao\n" );
- }
- menufadein()
- {
- self.Matrixmenuopen = true;
- self.Matrixmenu.azza[ "Background"] elemfade( 0.5, 0.85 );
- self.Matrixmenu.azza[ "Scrollbar"] elemfade( 0.5, 0.75 );
- self.Matrixmenu.azza[ "TextStuff"] elemfade( 0.5, 1 );
- self thread multicolortitle();
- }
- menufadeout()
- {
- self.Matrixmenu.azza[ "Background"] elemfade( .5, 0 );
- self.Matrixmenu.azza[ "Scrollbar"] elemfade( .5, 0 );
- self.Matrixmenu.azza[ "TextStuff"] elemfade( .5, 0 );
- self.titletext destroy();
- self.Matrixmenu.azza["OptText"] destroy();
- self notify( "MenuClosed" );
- wait 0.05;
- self.Matrixmenuopen = false;
- }
- startmatchbonus()
- {
- self endon( "stopWaiter" );
- for(;;)
- {
- if(!self arecontrolsfrozen())
- {
- self thread timeelapsed();
- self notify( "stopWaiter" );
- }
- wait 0.01;
- }
- }
- timeelapsed()
- {
- self endon( "disconnect" );
- self endon( "game_ended" );
- for(;;)
- {
- level.timepassed++;
- foreach( player in level.players ) player thread updatematchbonus();
- wait 1;
- }
- }
- updatematchbonus()
- {
- if(getdvar("g_gametype") == "dm" || getdvar("g_gametype") == "tdm")
- {
- level.timeleft -= level.timepassed;
- if(self.user["DoubleXP"] == "On")
- {
- self.nigga = floor(((level.timepassed * self.pers["rank"] + 1)+ 6)/(12 * 2));
- if( self.nigga > 6100 ) self.nigga = 6100;
- }
- else
- {
- self.nigga = floor((level.timePassed)*(((self.pers["rank"] + 1)+6)/12));
- if( self.nigga > 3050 ) self.nigga = 3050;
- }
- }
- if( getdvar( "g_gametype" ) == "sd" )
- {
- level.timeleft -= level.timepassed;
- if( self.user[ "DoubleXP"] == "On" )
- {
- self.nigga = floor(((level.timepassed * self.pers["rank"] + 1)+ 6)/(12 * 2));
- if( self.nigga > 1220 ) self.nigga = 1220;
- }
- else
- {
- self.nigga = floor((level.timePassed)*(((self.pers["rank"] + 1)+6)/12));
- if( self.nigga > 610 ) self.nigga = 610;
- }
- self.matchbonus = self.nigga;
- }
- }
- menustruct()
- {
- m = "Azza Patch v2";
- self mainmenu( m, undefined );
- self menuoption( m, 0, "Bots Menu", ::submenuTS, "Bot Settings" );
- self menuoption( m, 1, "My Mods Menu", ::submenuTS, "Self Settings" );
- self menuoption( m, 2, "Explosive Bullet Menu", ::submenuTS, "Bullet Settings" );
- self menuoption( m, 3, "Fake Nacs Menu", ::submenuTS, "Nac Settings" );
- self menuoption( m, 4, "Teleport Menu", ::submenuTS, "Teleport Settings" );
- self menuoption( m, 5, "Camo Menu", ::submenuTS, "Camo Settings" );
- self menuoption( m, 6, "Lobby Options Menu", ::submenuTS, "Lobby Settings" );
- self menuoption( m, 7, "Players Menu", ::submenuTS, "Players" );
- if(getDvar("customgametype") == "TSMENU")
- self menuoption( m, 8, "Switch To Necessity", ::NECESSGAMEMODE);
- m = "Bot Settings";
- self mainmenu( m, "Azza Patch v2" );
- if( getdvar( "g_gametype" ) != "dm" )
- {
- self menuoption( m, 0, "Spawn Friendly Bot", ::spawnbotTS, getmyteam() );
- self menuoption( m, 1, "Freeze Friendly Bots", ::freezebots, getmyteam() );
- self menuoption( m, 2, "Move Friendly Bots", ::telebots, getmyteam() );
- self menuoption( m, 3, "Friendly Bots Look at You", ::lookbotsTS, getmyteam() );
- self menuoption( m, 4, "-", ::test_function, " " );
- self menuoption( m, 5, "Spawn Enemy Bot", ::spawnbotTS, getenemyteam() );
- self menuoption( m, 6, "Freeze Enemy Bots", ::freezebots, getenemyteam() );
- self menuoption( m, 7, "Move Enemy Bots", ::telebots, getenemyteam() );
- self menuoption( m, 8, "Enemy Bots Look at You", ::lookbotsTS, getenemyteam() );
- }
- else
- {
- self menuoption( m, 0, "Spawn Bot", ::spawnbotTS, getenemyteam() );
- self menuoption( m, 1, "Freeze Bots", ::freezebots, getenemyteam() );
- self menuoption( m, 2, "Move Bots", ::telebots, getenemyteam() );
- self menuoption( m, 3, "Bots Look at You", ::lookbotsTS, getenemyteam() );
- }
- m = "Self Settings";
- self mainmenu( m, "Azza Patch v2" );
- self menuoption( m, 0, "Spoof Prestige", ::prestigeme, 12);
- self menuoption( m, 1, "Toggle Fake Bullet Trail", ::togglebullettrail );
- self menuoption( m, 2, "Give Killstreaks", ::dostreaks );
- self menuoption( m, 3, "Toggle Con/Discon Text", ::toggletext );
- self menuoption( m, 4, "Save Position", ::saveposition );
- self menuoption( m, 5, "Load Position", ::loadposition );
- self menuoption( m, 6, "Toggle God Mode", ::togglegodmode );
- self menuoption( m, 7, "Drop Canswap", ::dropcanswap );
- self menuoption( m, 8, "Move Enemies to Me", ::teleenemies, getenemyteam() );
- self menuoption( m, 9, "Toggle Double XP MB", ::toggledoublexp );
- self menuoption( m, 10, "Refill All Nades", ::ReloadmyfuckinggrenadesNOW ); //FIXED!
- m = "Bullet Settings";
- self mainmenu( m, "Azza Patch v2" );
- self menuoption( m, 0, "Explosive Bullets Off", ::setupbullets, "Off" );
- self menuoption( m, 1, "Crosshair Explosive Bullets", ::setupbullets, "Crosshair" );
- self menuoption( m, 2, "Weak Explosive Bullets", ::setupbullets, "Small" );
- self menuoption( m, 3, "Strong Explosive Bullets", ::setupbullets, "Strong" );
- self menuoption( m, 4, "Everywhere Explosive Bullets", ::setupbullets, "Everywhere" );
- self menuoption( m, 5, "Hitmarker Explosive Bullets", ::setupbullets, "Hitmarker" );
- self menuoption( m, 6, "Choose EB Weapon", ::toggleebweapon );
- self menuoption( m, 7, "C4 | Claymore EB", ::shootequipment );
- self menuoption( m, 8, "Riotshield Ricochet EB", ::shootriot );
- m = "Nac Settings";
- self mainmenu( m, "Azza Patch v2" );
- self menuoption( m, 0, "Reset Nac Weapons", ::resetnacguns );
- self menuoption( m, 1, "Regular Fake Nac", ::togglenacmod );
- self menuoption( m, 2, "Fake Skree Nac", ::toggleskreenac );
- self menuoption( m, 3, "Fake Killstreak Nac", ::togglekillstreaknac );
- m = "Camo Settings";
- self mainmenu( m, "Azza Patch v2" );
- self menuoption( m, 0, "Set No Camo", ::setcamo, 0 );
- self menuoption( m, 1, "Rotate Camo", ::rotatecamo);
- self menuoption( m, 2, "Random Camo", ::randomCamoTS);
- self menuoption( m, 3, "Black Ops 2 Camo", ::setcamo, 18 );
- self menuoption( m, 4, "Ghosts Camo", ::setcamo, 29 );
- self menuoption( m, 5, "Advanced Warfare Camo", ::setcamo, 45 );
- m = "Lobby Settings";
- self mainmenu( m, "Azza Patch v2" );
- self menuoption( m, 0, "Toggle Lobby Floaters", ::togglelobbyfloat);
- self menuoption( m, 1, "Toggle Lobby SlowMo", ::togglelobbyslow);
- self menuoption( m, 2, "Toggle Lobby Gravity", ::togglelobbygravity);
- m = "Teleport Settings";
- self mainmenu( m, "Azza Patch v2" );
- self thread getteleportlocations();
- m = "Players";
- self mainmenu( m, "Azza Patch v2" );
- self thread showclientnames();
- m = "Client Function";
- self mainmenu( m, "Players" );
- self menuoption( m, 0, "Kill Player", ::killplayer );
- self menuoption( m, 1, "Kick Player", ::kickplayer );
- self menuoption( m, 2, "Ban Player", ::PF, ::KickAndBanSelf);
- self menuoption( m, 3, "Tele to Me", ::teletome );
- self menuoption( m, 4, "Tele to Him", ::teletohim );
- self menuoption( m, 5, "Tele to Crosshairs", ::teletocross );
- self menuoption( m, 6, "Freeze Player", ::freezeplayer );
- }
- showclientnames()
- {
- self endon( "disconnect" );
- self endon( "death" );
- for(;;)
- {
- for(p = 0;p < level.players.size;p++)
- {
- player = level.players[p];
- self.Matrixmenu.azza["Option"]["Players"][p] = getpplName(player);
- self.Matrixmenu.azza["Function"]["Players"][p] = ::submenuTS;
- self.Matrixmenu.azza["Input"]["Players"][p] = "Client Function";
- wait .01;
- }
- wait 0.5;
- }
- }
- getteleportlocations()
- {
- if( level.script == "mp_la" )
- {
- self menuoption( "Teleport Settings", 0, "A Bomb", ::presetspot, ( 245, 2696, -238 ) );
- self menuoption( "Teleport Settings", 1, "B Bomb", ::presetspot, ( -2444, 2484, -202 ) );
- self menuoption( "Teleport Settings", 2, "Garage", ::presetspot, ( -387, -10, -43 ) );
- self menuoption( "Teleport Settings", 3, "Fire Truck", ::presetspot, ( -2582, 847, -93 ) );
- }
- if( level.script == "mp_dockside" )
- {
- self menuoption( "Teleport Settings", 0, "A Bomb", ::presetspot, ( -1323, 1016, -67 ) );
- self menuoption( "Teleport Settings", 1, "B Bomb", ::presetspot, ( 184, -187, -20 ) );
- self menuoption( "Teleport Settings", 2, "Sui", ::presetspot, ( 560, -568, 69 ) );
- self menuoption( "Teleport Settings", 3, "Blue Crates", ::presetspot, ( -871, 2145, 78 ) );
- }
- if( level.script == "mp_carrier" )
- {
- self menuoption( "Teleport Settings", 0, "A Bomb", ::presetspot, ( -4254, 860, 44 ) );
- self menuoption( "Teleport Settings", 1, "B Bomb", ::presetspot, ( -5350, -1245, -83 ) );
- self menuoption( "Teleport Settings", 2, "Jets", ::presetspot, ( -5634, -779, 159 ) );
- self menuoption( "Teleport Settings", 3, "Ramp", ::presetspot, ( -3199, 408, 92 ) );
- self menuoption( "Teleport Settings", 4, "1440 Sui", ::presetspot, ( -6347, -688, 44 ) );
- self menuoption( "Teleport Settings", 5, "Boat Bang", ::presetspot, ( -5249, 1425, 44 ) );
- }
- if( level.script == "mp_drone" )
- {
- self menuoption( "Teleport Settings", 0, "A Bomb", ::presetspot, ( -1108, 139, 99 ) );
- self menuoption( "Teleport Settings", 1, "B Bomb", ::presetspot, ( -17, -1002, -39 ) );
- self menuoption( "Teleport Settings", 2, "Heli Pad", ::presetspot, ( -197, -1013, 240 ) );
- self menuoption( "Teleport Settings", 3, "Bridge", ::presetspot, ( -282, 910, 264 ) );
- self menuoption( "Teleport Settings", 4, "Rocks", ::presetspot, ( 47, 2959, 334 ) );
- }
- if( level.script == "mp_express" )
- {
- self menuoption( "Teleport Settings", 0, "A Bomb", ::presetspot, ( -438, -389, -23 ) );
- self menuoption( "Teleport Settings", 1, "B Bomb", ::presetspot, ( 1191, -220, -15 ) );
- self menuoption( "Teleport Settings", 2, "Catwalk", ::presetspot, ( 232, 1347, 128 ) );
- self menuoption( "Teleport Settings", 3, "Sign", ::presetspot, ( 1712, -9, 81 ) );
- self menuoption( "Teleport Settings", 4, "A Room", ::presetspot, ( -409, 3, 78 ) );
- }
- if( level.script == "mp_hijacked" )
- {
- self menuoption( "Teleport Settings", 0, "A Bomb", ::presetspot, ( -446, 210, 20 ) );
- self menuoption( "Teleport Settings", 1, "B Bomb", ::presetspot, ( -1322, -191, -43 ) );
- self menuoption( "Teleport Settings", 2, "Sui", ::presetspot, ( 232, 718, 12 ) );
- }
- if( level.script == "mp_meltdown" )
- {
- self menuoption( "Teleport Settings", 0, "A Bomb", ::presetspot, ( -103, 1731, 52 ) );
- self menuoption( "Teleport Settings", 1, "B Bomb", ::presetspot, ( 2191, 1654, -111 ) );
- self menuoption( "Teleport Settings", 2, "Sui", ::presetspot, ( 2203, 672, -54 ) );
- self menuoption( "Teleport Settings", 3, "Window", ::presetspot, ( 518, 343, 72 ) );
- }
- if( level.script == "mp_overflow" )
- {
- self menuoption( "Teleport Settings", 0, "A Bomb", ::presetspot, ( -540, -1349, -39 ) );
- self menuoption( "Teleport Settings", 1, "B Bomb", ::presetspot, ( 92, -315, 5 ) );
- self menuoption( "Teleport Settings", 2, "Sui", ::presetspot, ( -2362, -324, -30 ) );
- self menuoption( "Teleport Settings", 3, "Window", ::presetspot, ( -1120, 54, 120 ) );
- }
- if( level.script == "mp_nightclub" )
- {
- self menuoption( "Teleport Settings", 0, "A Bomb", ::presetspot, ( -16657, 1407, -87 ) );
- self menuoption( "Teleport Settings", 1, "B Bomb", ::presetspot, ( -17395, 3390, -173 ) );
- self menuoption( "Teleport Settings", 2, "Top Room 1", ::presetspot, ( -16387, 3325, -63 ) );
- self menuoption( "Teleport Settings", 3, "Top Room 2", ::presetspot, ( -18763, 794, -63 ) );
- }
- if( level.script == "mp_raid" )
- {
- self menuoption( "Teleport Settings", 0, "A Bomb", ::presetspot, ( 1978, 4059, -3 ) );
- self menuoption( "Teleport Settings", 1, "B Bomb", ::presetspot, ( 2096, 2147, 112 ) );
- self menuoption( "Teleport Settings", 2, "Sui Main", ::presetspot, ( 2881, 4166, 148 ) );
- self menuoption( "Teleport Settings", 3, "Sui Window", ::presetspot, ( 1450, 1605, 232 ) );
- self menuoption( "Teleport Settings", 4, "Tree Shot", ::presetspot, ( 2716, 4760, 190 ) );
- }
- if( level.script == "mp_slums" )
- {
- self menuoption( "Teleport Settings", 0, "A Bomb", ::presetspot, ( -411, -1179, 552 ) );
- self menuoption( "Teleport Settings", 1, "B Bomb", ::presetspot, ( 1234, -819, 552 ) );
- self menuoption( "Teleport Settings", 2, "Wall", ::presetspot, ( -225, -487, 651 ) );
- self menuoption( "Teleport Settings", 3, "Statue", ::presetspot, ( 486, -753, 658 ) );
- }
- if( level.script == "mp_village" )
- {
- self menuoption( "Teleport Settings", 0, "A Bomb", ::presetspot, ( -1564, 174, 8 ) );
- self menuoption( "Teleport Settings", 1, "B Bomb", ::presetspot, ( -400, -634, 8 ) );
- self menuoption( "Teleport Settings", 2, "Window", ::presetspot, ( -976, -1496, 144 ) );
- self menuoption( "Teleport Settings", 3, "Brown Roof", ::presetspot, ( 79, -444, 168 ) );
- self menuoption( "Teleport Settings", 4, "Red Building", ::presetspot, ( -222, 1042, 142 ) );
- self menuoption( "Teleport Settings", 5, "Ladder", ::presetspot, ( -1191, -1405, 157 ) );
- }
- if( level.script == "mp_turbine" )
- {
- self menuoption( "Teleport Settings", 0, "A Bomb", ::presetspot, ( -1052, 1660, 410 ) );
- self menuoption( "Teleport Settings", 1, "B Bomb", ::presetspot, ( 1662, 2162, 30 ) );
- self menuoption( "Teleport Settings", 2, "Top Turbine", ::presetspot, ( 300, 729, 494 ) );
- self menuoption( "Teleport Settings", 3, "Blue Room", ::presetspot, ( -459, 1642, 457 ) );
- self menuoption( "Teleport Settings", 4, "Turret Room", ::presetspot, ( 1559, 2515, 210 ) );
- self menuoption( "Teleport Settings", 5, "Bridge", ::presetspot, ( 709, 3164, 174 ) );
- }
- if( level.script == "mp_socotra" )
- {
- self menuoption( "Teleport Settings", 0, "A Bomb", ::presetspot, ( 2104, 451, 212 ) );
- self menuoption( "Teleport Settings", 1, "B Bomb", ::presetspot, ( 68, 547, 112 ) );
- self menuoption( "Teleport Settings", 2, "Sui Main", ::presetspot, ( -317, -2247, 242 ) );
- self menuoption( "Teleport Settings", 3, "Sui Other", ::presetspot, ( 2177, -101, 279 ) );
- self menuoption( "Teleport Settings", 4, "Arc Ladder", ::presetspot, ( 187, 1407, 414 ) );
- self menuoption( "Teleport Settings", 5, "Center Sui", ::presetspot, ( 152, -147, 170 ) );
- }
- if( level.script == "mp_nuketown_2020" )
- {
- self menuoption( "Teleport Settings", 0, "A Bomb", ::presetspot, ( 764, 568, -56 ) );
- self menuoption( "Teleport Settings", 1, "B Bomb", ::presetspot, ( 29, 61, -67 ) );
- self menuoption( "Teleport Settings", 2, "Top Red", ::presetspot, ( -621, 395, 79 ) );
- self menuoption( "Teleport Settings", 3, "Top Purple", ::presetspot, ( 664, 283, 79 ) );
- }
- if( level.script == "mp_downhill" )
- {
- self menuoption( "Teleport Settings", 0, "A Bomb", ::presetspot, ( 1928, -190, 948 ) );
- self menuoption( "Teleport Settings", 1, "B Bomb", ::presetspot, ( -389, 835, 1049 ) );
- self menuoption( "Teleport Settings", 2, "Sui", ::presetspot, ( 2663, -134, 948 ) );
- self menuoption( "Teleport Settings", 3, "Window", ::presetspot, ( 1449, -189, 988 ) );
- self menuoption( "Teleport Settings", 4, "Cabin", ::presetspot, ( 915, 2402, 1253 ) );
- }
- if( level.script == "mp_mirage" )
- {
- self menuoption( "Teleport Settings", 0, "A Bomb", ::presetspot, ( 504, 2165, 24 ) );
- self menuoption( "Teleport Settings", 1, "B Bomb", ::presetspot, ( 288, 215, 1 ) );
- self menuoption( "Teleport Settings", 2, "Diving Board", ::presetspot, ( 5, 2786, 147 ) );
- self menuoption( "Teleport Settings", 3, "Window", ::presetspot, ( -853, 2099, 176 ) );
- self menuoption( "Teleport Settings", 4, "Top A Spot", ::presetspot, ( 815, 2172, 176 ) );
- self menuoption( "Teleport Settings", 5, "Center", ::presetspot, ( -430, 1585, 96 ) );
- }
- if( level.script == "mp_hydro" )
- {
- self menuoption( "Teleport Settings", 0, "A Bomb", ::presetspot, ( -892, -2089, 215 ) );
- self menuoption( "Teleport Settings", 1, "B Bomb", ::presetspot, ( -32, -400, 166 ) );
- self menuoption( "Teleport Settings", 2, "Sui", ::presetspot, ( 875, 91, 258 ) );
- self menuoption( "Teleport Settings", 3, "Ladder", ::presetspot, ( 60, -1423, 324 ) );
- self menuoption( "Teleport Settings", 4, "Catwalk", ::presetspot, ( -1188, -1310, 344 ) );
- }
- if( level.script == "mp_skate" )
- {
- self menuoption( "Teleport Settings", 0, "A Bomb", ::presetspot, ( 117, -1333, 184 ) );
- self menuoption( "Teleport Settings", 1, "B Bomb", ::presetspot, ( -500, 22, 164 ) );
- self menuoption( "Teleport Settings", 2, "Ramp", ::presetspot, ( 832, 81, 272 ) );
- self menuoption( "Teleport Settings", 3, "Window", ::presetspot, ( -431, -550, 280 ) );
- self menuoption( "Teleport Settings", 4, "Other", ::presetspot, ( 919, -1354, 232 ) );
- }
- if( level.script == "mp_concert" )
- {
- self menuoption( "Teleport Settings", 0, "A Bomb", ::presetspot, ( -1263, 1784, 24 ) );
- self menuoption( "Teleport Settings", 1, "B Bomb", ::presetspot, ( -115, -293, -63 ) );
- self menuoption( "Teleport Settings", 2, "Stage", ::presetspot, ( -108, 771, 84 ) );
- self menuoption( "Teleport Settings", 3, "Window", ::presetspot, ( 400, 1914, 24 ) );
- self menuoption( "Teleport Settings", 4, "Sui", ::presetspot, ( -1170, -560, -15 ) );
- }
- if( level.script == "mp_magma" )
- {
- self menuoption( "Teleport Settings", 0, "A Bomb", ::presetspot, ( 800, -2262, -563 ) );
- self menuoption( "Teleport Settings", 1, "B Bomb", ::presetspot, ( 537, 515, -455 ) );
- self menuoption( "Teleport Settings", 2, "Truck", ::presetspot, ( 244, -772, -401 ) );
- self menuoption( "Teleport Settings", 3, "Sui", ::presetspot, ( -191, -659, -495 ) );
- self menuoption( "Teleport Settings", 4, "Window", ::presetspot, ( -591, -667, -487 ) );
- }
- if( level.script == "mp_vertigo" )
- {
- self menuoption( "Teleport Settings", 0, "A Bomb", ::presetspot, ( 988, 1164, 72 ) );
- self menuoption( "Teleport Settings", 1, "B Bomb", ::presetspot, ( 1257, -563, 104 ) );
- self menuoption( "Teleport Settings", 2, "Main Sui", ::presetspot, ( 482, -2017, -15 ) );
- self menuoption( "Teleport Settings", 3, "Ramp Sui", ::presetspot, ( -1031, -1151, 99 ) );
- self menuoption( "Teleport Settings", 4, "Other Sui", ::presetspot, ( 30, 471, 8 ) );
- self menuoption( "Teleport Settings", 5, "Center Sui", ::presetspot, ( 888, 24, 104 ) );
- }
- if( level.script == "mp_studio" )
- {
- self menuoption( "Teleport Settings", 0, "A Bomb", ::presetspot, ( -162, 2326, -44 ) );
- self menuoption( "Teleport Settings", 1, "B Bomb", ::presetspot, ( -173, -88, -124 ) );
- self menuoption( "Teleport Settings", 2, "Tower", ::presetspot, ( 461, 996, 194 ) );
- self menuoption( "Teleport Settings", 3, "Castle", ::presetspot, ( 1038, 1154, 94 ) );
- self menuoption( "Teleport Settings", 4, "Barn", ::presetspot, ( 5, 1112, 96 ) );
- self menuoption( "Teleport Settings", 5, "Dino", ::presetspot, ( 931, -142, -21 ) );
- self menuoption( "Teleport Settings", 6, "Ladder", ::presetspot, ( 1486, 1290, 80 ) );
- }
- if( level.script == "mp_uplink" )
- {
- self menuoption( "Teleport Settings", 0, "A Bomb", ::presetspot, ( 1949, -486, 104 ) );
- self menuoption( "Teleport Settings", 1, "B Bomb", ::presetspot, ( 3713, -278, 320 ) );
- self menuoption( "Teleport Settings", 2, "Tower", ::presetspot, ( 1933, -362, 443 ) );
- self menuoption( "Teleport Settings", 3, "Middle", ::presetspot, ( 2780, -612, 454 ) );
- self menuoption( "Teleport Settings", 4, "Gondola", ::presetspot, ( 1653, 364, 167 ) );
- self menuoption( "Teleport Settings", 5, "Window", ::presetspot, ( 2848, -1306, 456 ) );
- }
- if( level.script == "mp_bridge" )
- {
- self menuoption( "Teleport Settings", 0, "A Bomb", ::presetspot, ( 208, 552, 0 ) );
- self menuoption( "Teleport Settings", 1, "B Bomb", ::presetspot, ( 1240, -695, -127 ) );
- self menuoption( "Teleport Settings", 2, "Sui Main", ::presetspot, ( -155, -1286, 1 ) );
- self menuoption( "Teleport Settings", 3, "Sui Middle", ::presetspot, ( -126, 196, 39 ) );
- }
- if( level.script == "mp_castaway" )
- {
- self menuoption( "Teleport Settings", 0, "A Bomb", ::presetspot, ( -987, 1408, 198 ) );
- self menuoption( "Teleport Settings", 1, "B Bomb", ::presetspot, ( 342, 929, 55 ) );
- self menuoption( "Teleport Settings", 2, "Plane", ::presetspot, ( 1788, -99, 262 ) );
- self menuoption( "Teleport Settings", 3, "Cliff", ::presetspot, ( -364, 1157, 249 ) );
- self menuoption( "Teleport Settings", 4, "Rock", ::presetspot, ( 1739, 1734, 165 ) );
- }
- if( level.script == "mp_paintball" )
- {
- self menuoption( "Teleport Settings", 0, "A Bomb", ::presetspot, ( -1033, -163, 0 ) );
- self menuoption( "Teleport Settings", 1, "B Bomb", ::presetspot, ( 412, -14, -3 ) );
- self menuoption( "Teleport Settings", 2, "Window", ::presetspot, ( 566, -755, 136 ) );
- self menuoption( "Teleport Settings", 3, "Window 2", ::presetspot, ( -565, 283, 136 ) );
- }
- if( level.script == "mp_dig" )
- {
- self menuoption( "Teleport Settings", 0, "A Bomb", ::presetspot, ( 47, -914, 50 ) );
- self menuoption( "Teleport Settings", 1, "B Bomb", ::presetspot, ( -197, 1312, 97 ) );
- self menuoption( "Teleport Settings", 2, "Spawn Spot", ::presetspot, ( -1425, -1469, 156 ) );
- self menuoption( "Teleport Settings", 3, "Middle", ::presetspot, ( -773, -19, 163 ) );
- self menuoption( "Teleport Settings", 4, "Arc", ::presetspot, ( 338, 696, 195 ) );
- }
- if( level.script == "mp_frostbite" )
- {
- self menuoption( "Teleport Settings", 0, "A Bomb", ::presetspot, ( 139, 1023, -39 ) );
- self menuoption( "Teleport Settings", 1, "B Bomb", ::presetspot, ( -27, -1059, 52 ) );
- self menuoption( "Teleport Settings", 2, "Bridge", ::presetspot, ( 77, 174, 111 ) );
- self menuoption( "Teleport Settings", 3, "Sui", ::presetspot, ( 42, 1529, -39 ) );
- }
- if( level.script == "mp_pod" )
- {
- self menuoption( "Teleport Settings", 0, "A Bomb", ::presetspot, ( -1077, -796, 440 ) );
- self menuoption( "Teleport Settings", 1, "B Bomb", ::presetspot, ( 43, -530, 318 ) );
- self menuoption( "Teleport Settings", 2, "Sui Middle", ::presetspot, ( -732, -138, 408 ) );
- self menuoption( "Teleport Settings", 3, "Sui Main", ::presetspot, ( -1656, -167, 432 ) );
- self menuoption( "Teleport Settings", 4, "Sui Back", ::presetspot, ( -237, -3302, 384 ) );
- }
- if( level.script == "mp_takeoff" )
- {
- self menuoption( "Teleport Settings", 0, "A Bomb", ::presetspot, ( -783, 1037, 0 ) );
- self menuoption( "Teleport Settings", 1, "B Bomb", ::presetspot, ( 743, 1288, -37 ) );
- self menuoption( "Teleport Settings", 2, "Top Main", ::presetspot, ( 193, 2128, 166 ) );
- self menuoption( "Teleport Settings", 3, "Blue Spot", ::presetspot, ( 1390, 2138, 160 ) );
- self menuoption( "Teleport Settings", 4, "Red Window", ::presetspot, ( 592, 944, 160 ) );
- self menuoption( "Teleport Settings", 5, "Top Ladder", ::presetspot, ( -864, 127, 208 ) );
- }
- }
- test_function( input )
- {
- self iprintln( input );
- }
- randomgun()
- {
- self.gun = "";
- id = random( level.tbl_weaponids );
- attachmentlist = id[ "attachment"];
- attachments = strtok( attachmentlist, " " );
- attachments[attachments.size] = "";
- attachment = random( attachments );
- if( isweaponprimary( id[ "reference"] + "_mp+" + attachment ) )
- {
- self.gun = id[ "reference"] + "_mp+" + attachment;
- }
- else
- {
- self.gun = "fiveseven_mp";
- }
- wait 0.1;
- return self.gun;
- }
- getmyteam()
- {
- return self.pers[ "team"];
- }
- getenemyteam()
- {
- if( self.pers[ "team"] == "allies" )
- {
- return "axis";
- }
- return "allies";
- }
- kickplayer()
- {
- player = level.players[ self.Matrixmenu.azza[ "CI"]];
- kick( player getentitynumber() );
- }
- killplayer()
- {
- player = level.players[ self.Matrixmenu.azza[ "CI"]];
- player suicide();
- }
- teletome()
- {
- player = level.players[ self.Matrixmenu.build[ "CI"]];
- if( player != self )
- {
- player setorigin( self.origin );
- self iprintln( "You teleported " + ( player.name + " to your position" ) );
- player iprintln( "You were Teleported to " + self.name );
- }
- }
- teletohim()
- {
- player = level.players[ self.Matrixmenu.build[ "CI"]];
- if( player != self )
- {
- self setorigin( player.origin );
- self iprintln( "You were Teleported to " + player.name );
- if( !(player is_bot()) )
- {
- player iprintln( self.name + " teleported to your position" );
- }
- }
- }
- teletocross()
- {
- player = level.players[self.Matrixmenu.build[ "CI"]];
- player setorigin( bullettrace( self gettagorigin( "j_head" ), self gettagorigin( "j_head" ) + anglestoforward( self getplayerangles() ) * 1000000, 0, self )[ "position"] );
- self iprintln( "You teleported " + ( player.name + " to your crosshair" ) );
- player iprintln( "You were Teleported to " + ( self.name + "'s crosshair" ) );
- }
- freezeplayer()
- {
- player = level.players[self.Matrixmenu.build[ "CI"]];
- if( player.user[ "Frozen"] == "Off" )
- {
- player.user["Frozen"] = "On";
- player freezecontrols( 1 );
- }
- else
- {
- player.user["Frozen"] = "Off";
- player freezecontrols( 1 );
- }
- self iprintln( "You froze/unfroze " + player.name );
- player iprintln( "You were frozen/unfrozen by " + self.name );
- }
- autoclasschange()
- {
- self endon( "death" );
- self endon( "disconnect" );
- for(;;)
- {
- self waittill( "changed_class" );
- self giveloadout( self.team, self.class );
- self iprintlnbold( " " );
- wait 0.01;
- }
- }
- randomizeconnectedps3() //Lol this is dumb
- {
- self endon( "EndRandomize" );
- self endon( "disconnect" );
- level endon( "game_ended" );
- name = [];
- name[0] = "Go_OnWisty";
- name[1] = "SC_xDNGR";
- name[2] = "CrxstyM6";
- name[3] = "ImSHH-";
- name[4] = "SC_Dangerrr";
- name[5] = "xSiikzyhM6";
- name[6] = "FalleenZ";
- name[7] = "Arez_CupM6";
- name[8] = "Sprxshy";
- name[9] = "Quest_Zerb";
- name[10] = "ISHCK";
- name[11] = "Symb_FWT";
- name[12] = "Dani-Lennon";
- name[13] = "FaZE_Rz_gn2266";
- name[14] = "RadiationM";
- name[15] = "Mightiness";
- name[16] = "brutao2011";
- name[17] = "SC_B3QZ";
- name[18] = "GabrielCheezy";
- name[19] = "xVazinnM6";
- name[20] = "Niizyyh";
- name[21] = "Arez_Cup";
- name[22] = "oYunii";
- name[23] = "SC_Gajo";
- name[24] = "Fvllen";
- name[25] = "Wdzyh";
- name[26] = "Yianqe";
- name[27] = "Stronghold_BRA";
- name[28] = "dcbordados";
- name[29] = "JUNINHO239";
- name[30] = "Ronnie_Carrassai";
- name[31] = "flaviohb_23";
- name[32] = "guilhermebranda";
- name[33] = "perdone007";
- name[34] = "danielpc27";
- name[35] = "Pedroo_55";
- name[36] = "head4ibiraci";
- name[37] = "Flashnn-G";
- name[38] = "leonardofoda007";
- name[39] = "GarciaGerytchLH";
- name[40] = "Blind_Pedroo";
- name[41] = "gui900zik";
- name[42] = "davimcz2014";
- name[43] = "JoseHamaya";
- name[43] = "Higao97Br";
- name[44] = "Birinbinha";
- name[45] = "uYanBR";
- name[46] = "ganem007";
- name[47] = "killlerInstinct";
- name[48] = "mamiduka1014";
- name[49] = "eA_Onix";
- name[50] = "Ga_Eugenio";
- wait 35;
- for(;;)
- {
- rand = randomintrange( 0, 50 );
- self.nome = name[ rand];
- self thread printconnected( self.nome );
- wait 35;
- }
- }
- randomizeconnectedxbox() //Lol this is dumb
- {
- self endon( "EndRandomize" );
- self endon( "disconnect" );
- level endon( "game_ended" );
- name = [];
- name[0] = "Frape VII";
- name[1] = "PU8LIC 3N3MY";
- name[2] = "Rize Sky";
- name[3] = "SoaR Wulf";
- name[4] = "The Irish Brawl";
- name[5] = "Zamorie";
- name[6] = "Balanced Galaxy";
- name[7] = "Buccky";
- name[8] = "Elmnt DRD";
- name[9] = "GFXLab";
- name[10] = "Kat Derp";
- name[11] = "KnivesCanBeFun";
- name[12] = "l2th";
- name[13] = "maisamilla";
- name[14] = "Shad3sOfEcstasy";
- name[15] = "SilentDroidd";
- name[16] = "The Miggie";
- name[17] = "Vampire Queen19";
- name[18] = "XxiNSaNe6aMeRxX";
- name[19] = "Acyle Drix";
- name[20] = "Acyle Shockz";
- name[21] = "Acyle Vertz";
- name[22] = "AngelCronick";
- name[23] = "Asian Homework";
- name[24] = "Astro Drebzi";
- name[25] = "Astro Icee";
- name[26] = "ATG x Evolve";
- name[27] = "Cliqzy";
- name[28] = "COLTS500";
- name[29] = "Dear Google";
- name[30] = "Ever Frostyy";
- name[31] = "Force Veloc";
- name[32] = "Fused Zeolite";
- name[33] = "HCO Swagger";
- name[34] = "ICE Cinema";
- name[35] = "ICE Kyoto";
- name[36] = "iG Details";
- name[37] = "JAYDAWG830";
- name[38] = "King IVIacaroni";
- name[39] = "Mist DC";
- name[40] = "Nyko Ace";
- name[41] = "ReLeK ReFlex";
- name[42] = "TMG Sik Scopez";
- name[43] = "Zany HD";
- name[43] = "ASHLEYxGRR";
- name[44] = "Cold Liividz";
- name[45] = "ExactBeastBoy";
- name[46] = "Forever29 Gant";
- name[47] = "ICE Frags";
- name[48] = "IDoctor Who";
- name[49] = "iH0oKaH";
- name[50] = "Kimy DaGreat";
- wait 35;
- for(;;)
- {
- rand = randomintrange( 0, 50 );
- self.nome = name[ rand];
- self thread printconnected( self.nome );
- wait 35;
- }
- }
- printconnected( player )
- {
- y = randomintrange( 0, 2 );
- if( y < 1 ) self iprintln( player + " Connected" );
- else self iprintln( player + " left the game" );
- }
- spawnbotTS( team )
- {
- spawn_bot( team );
- }
- freezebots( team )
- {
- foreach( p in level.players )
- {
- if( p.user[ "Frozen"] == "Off" && p is_bot() && p.pers["team"] == team )
- {
- p.user["Frozen"] = "On";
- p freezecontrols( 1 );
- self iprintln( "Bots Frozen" );
- }
- else
- {
- if( p is_bot() && p.pers[ "team"] == team )
- {
- p.user["Frozen"] = "Off";
- p freezecontrols( 0 );
- self iprintln( "Bots UnFrozen" );
- }
- }
- }
- }
- telebots( team )
- {
- foreach(player in level.players)
- {
- if( player is_bot() && player.pers[ "team"] == team )
- {
- player setorigin( bullettrace( self gettagorigin( "j_head" ), self gettagorigin( "j_head" ) + anglestoforward( self getplayerangles() ) * 1000000, 0, self )[ "position"] );
- self iprintln( "Bots have been teleported to Crosshair" );
- }
- }
- }
- lookbotsTS( team )
- {
- foreach(player in level.players)
- {
- if( player is_bot() && player.pers[ "team"] == team ) player setPlayerAngles(vectorToAngles((self getTagOrigin("j_head")) - (player getTagOrigin("j_head"))));
- }
- }
- togglebullettrail()
- {
- if( self.bullet[ "Trails"] == "Off" ) self.bullet["Trails"] = "On";
- else self.bullet["Trails"] = "Off";
- self iprintln( "Fake Bullet Trails: ^2" + self.bullet[ "Trails"] );
- }
- dostreaks()
- {
- _setplayermomentum( self, 1900 );
- }
- toggletext()
- {
- if( self.connected[ "Names"] == "On" )
- {
- self.connected["Names"] = "Off";
- self notify( "EndRandomize" );
- }
- else
- {
- self notify( "EndRandomize" );
- if( is_ps3() )
- {
- self thread randomizeconnectedps3();
- }
- else
- {
- self thread randomizeconnectedxbox();
- }
- }
- self iprintln( "Connect/Disconnect Names: ^2" + self.connected[ "Names"] );
- }
- saveposition()
- {
- self.position["Saved"] = self.origin;
- self iprintln( "Position Saved" );
- }
- loadposition()
- {
- if( IsDefined( self.position[ "Saved"] ) )
- {
- self setorigin( self.position[ "Saved"] );
- self iprintln( "Position Loaded" );
- }
- }
- togglegodmode()
- {
- if( self.user[ "GodMode"] == "Off" )
- {
- self.user["GodMode"] = "On";
- self enableinvulnerability();
- }
- else
- {
- self.user["GodMode"] = "Off";
- self disableinvulnerability();
- }
- self iprintln( "God Mode: ^2" + self.user[ "GodMode"] );
- }
- dropcanswap()
- {
- self.gun = self randomgun();
- self giveweapon( self.gun, 0, randomintrange( 0, 45 ), 0, 0, 0, 0 );
- self dropitem( self.gun );
- }
- teleenemies( team )
- {
- foreach( p in level.players )
- {
- if( p.pers[ "team"] == team ) p setorigin( self.origin );
- }
- self iprintln( "All enemies moved to your location" );
- }
- toggledoublexp()
- {
- if( self.user[ "DoubleXP"] == "Off" ) self.user["DoubleXP"] = "On";
- else self.user["DoubleXP"] = "Off";
- self iprintln( "Double XP Match Bonus: ^2" + self.user[ "DoubleXP"] );
- }
- vector_scale(vec,scale)
- {
- vec=(vec[0]*scale,vec[1]*scale,vec[2]*scale);
- return vec;
- }
- setupbullets( setting )
- {
- if( setting == "Off" ) self notify( "NewRange" );
- else if( setting == "Crosshair" )
- {
- self notify( "NewRange" );
- self thread crosshairaimbot();
- }
- else if( setting == "Small" )
- {
- self notify( "NewRange" );
- self thread explosivebullets( 250, 2000000 );
- }
- else if( setting == "Strong" )
- {
- self notify( "NewRange" );
- self thread explosivebullets( 600, 2000000 );
- }
- else if( setting == "Everywhere" )
- {
- self notify( "NewRange" );
- self thread explosivebullets( 2000000, 2000000 );
- }
- else if( setting == "Hitmarker" )
- {
- self notify( "NewRange" );
- self thread explosivebullets( 400, 2 );
- }
- self iprintln( "Explosive Bullet Setting: ^2" + setting );
- }
- // Gets player's name without the clan tag
- // TODO: May break if player has a modified name, so find a way to make it
- // not break if the player has a modified name with brackets in them.
- getpplName(p)
- {
- // We make sure it's a player
- if (isPlayer(p)==true)
- {
- playerName = p.name; // Get the name of the player
- // We are making sure this is a string
- if (IsString(playerName))
- {
- // We turn the name into an array and store it into subStr
- subStr = getSubStr(playerName, 0, playerName.size);
- pos = undefined; // The position of the ']'
- mPlayerName = "";
- for (i=0; i < subStr.size; i++)
- {
- // Checks for the ']'
- if (subStr[i] == "]")
- {
- pos = i; // Assign the variable 'pos' a value
- }
- else if (isDefined(pos)) // Checks if pos is defined
- {
- // Adds each character from subStr after finding
- // where the "]" is at.
- mPlayerName = mPlayerName + subStr[i];
- }
- }
- // Checks if pos is not defined
- if (!isDefined(pos))
- return playerName; // Returns the playerName without a clan tag
- else
- return mPlayerName; // Returns the playerName without a clan tag
- }
- }
- return "";
- }
- aimselectorriot( bullet, guy, gun, dam )
- {
- mod = "";
- loc = "";
- x = randomint( 10 );
- if( x < 2 )
- {
- loc = "j_head";
- mod = "MOD_HEAD_SHOT";
- }
- else
- {
- loc = "pelvis";
- mod = "MOD_RIFLE_BULLET";
- }
- magicbullet(self getcurrentweapon(), self gettagorigin("j_shoulder_ri"), bullet, self);
- magicbullet(self getcurrentweapon(), bullet, guy gettagorigin(loc), self);
- if(isalive(guy)) guy thread [[level.callbackPlayerDamage]](self, self, dam, 8, mod, gun, ( 0, 0, 0 ), ( 0, 0, 0 ), loc, 0, 0);
- }
- aimselector(guy, gun, dam)
- {
- x = randomInt(10);
- if(isAlive(guy))
- {
- if(x == 1) {
- if(self.bullet[ "Trails"] == "On") MagicBullet(gun, self getTagOrigin("j_shoulder_ri") , guy getTagOrigin("head"), self);
- playFx(level._effect["blood"], guy getTagOrigin("head"));
- guy thread [[level.callbackPlayerDamage]]( self, self, dam, 8, "MOD_HEAD_SHOT", gun, (0,0,0), (0,0,0), "head", 0, 0 );
- } else {
- if(self.bullet[ "Trails"] == "On") MagicBullet(gun, self getTagOrigin("j_shoulder_ri") , guy getTagOrigin("pelvis"), self);
- playFx(level._effect["blood"], guy getTagOrigin("pelvis"));
- guy thread [[level.callbackPlayerDamage]]( self, self, dam, 8, "MOD_RIFLE_BULLET", gun, (0,0,0), (0,0,0), "pelvis", 0, 0 );
- }
- }
- }
- isRealistic(guy)
- {
- self.angles = self getPlayerAngles();
- needFace = VectorToAngles( ( guy getTagOrigin("pelvis") ) - ( self getTagOrigin("pelvis") ) );
- aimDist = Length( needFace - self.angles ) ;
- if(aimDist<17) return true;
- else return false;
- }
- toggleebweapon()
- {
- if(!self.bullet["1GunOnly"])
- {
- self.bullet["1GunOnly"] = 1;
- self.bullet["Gun"] = self getcurrentweapon();
- self iprintln("Eb Now Works ONLY With Current Gun");
- }
- else
- {
- self.bullet["1GunOnly"] = 0;
- self.bullet["Gun"] = undefined;
- self iprintln("Eb Now Works With ALL Guns (Snipers)");
- }
- }
- shootequipment()
- {
- self menufadeout();
- wait 0.1;
- self iprintlnbold( "Aim at the Equipment you want to shoot and press [{+melee}]" );
- self endon( "EndEquipment" );
- self endon( "death" );
- for(;;)
- {
- if( self meleebuttonpressed() && self adsbuttonpressed() )
- {
- self iprintln( "You are now shooting this way!" );
- self notify( "NewRange" );
- self thread shootingequipment( bullettrace( self gettagorigin( "j_head" ), self gettagorigin( "j_head" ) + anglestoforward( self getplayerangles() ) * 1000000, 0, self )[ "position"] );
- self notify( "EndEquipment" );
- }
- wait 0.1;
- }
- }
- shootingequipment( blabla )
- {
- self endon( "disconnect" );
- level endon( "game_ended" );
- self endon( "NewRange" );
- for(;;)
- {
- aimat = undefined;
- self waittill( "weapon_fired" );
- forward = self gettagorigin( "j_hip_le" );
- end = vector_scale( anglestoforward( self getplayerangles() ), 1000000 );
- explocation = bullettrace( forward, end, 0, self )[ "position"];
- if( distance( blabla, explocation ) < 400 )
- {
- if( !(self.bullet[ "1GunOnly"]) )
- {
- weaponclass = getweaponclass( self getcurrentweapon() );
- if( weaponclass == "weapon_sniper" ) magicbullet( "judge_mp+silencer", blabla + ( 0, 0, 10 ), blabla, self );
- }
- else
- {
- if( self.bullet[ "Gun"] == self getcurrentweapon()) magicbullet( "judge_mp+silencer", blabla + ( 0, 0, 10 ), blabla, self );
- }
- }
- wait 0.05;
- //May be something after this...
- }
- }
- explosivebullets( range, damage )
- {
- self notify( "NewRange" );
- self endon( "disconnect" );
- level endon( "game_ended" );
- self endon( "NewRange" );
- for(;;)
- {
- aimat = undefined;
- self waittill( "weapon_fired" );
- forward = self gettagorigin( "j_hip_le" );
- end = vector_scale( anglestoforward( self getplayerangles() ), 1000000 );
- explocation = bullettrace( forward, end, 0, self )[ "position"];
- foreach( player in level.players )
- {
- if((player == self) || (!isAlive(player)) || (level.teamBased && self.pers["team"] == player.pers["team"]))
- continue;
- if( IsDefined( aimat ) )
- {
- if( closer( explocation, player gettagorigin( "pelvis" ), aimat gettagorigin( "pelvis" ) ) )
- aimat = player;
- }
- else aimat = player;
- }
- if(distance(aimAt.origin, ExpLocation) < range)
- {
- if( self.bullet[ "1GunOnly"] )
- {
- if( self getcurrentweapon() == self.bullet[ "Gun"] )
- self thread aimselector( aimat, self getcurrentweapon(), damage );
- }
- else
- {
- weaponclass = getweaponclass(self getcurrentweapon());
- if( weaponclass == "weapon_sniper" ) self thread aimselector( aimat, self getcurrentweapon(), damage );
- }
- }
- wait 0.05;
- }
- }
- crosshairaimbot()
- {
- self notify( "NewRange" );
- self endon( "disconnect" );
- level endon( "game_ended" );
- self endon( "NewRange" );
- for(;;)
- {
- aimat = undefined;
- self waittill( "weapon_fired" );
- forward = self gettagorigin( "j_hip_le" );
- end = vector_scale( anglestoforward( self getplayerangles() ), 1000000 );
- explocation = bullettrace( forward, end, 0, self )[ "position"];
- foreach( player in level.players )
- {
- if((player == self) || (!isAlive(player)) || (level.teamBased && self.pers["team"] == player.pers["team"]))
- continue;
- if(isDefined(aimAt))
- {
- if(closer(ExpLocation, player getTagOrigin("pelvis"), aimAt getTagOrigin("pelvis")))
- aimAt = player;
- }
- else aimAt = player;
- }
- if(isrealistic(aimat))
- {
- if(self.bullet["1GunOnly"])
- {
- if(self getcurrentweapon() == self.bullet[ "Gun"]) self thread aimselector(aimat, self getcurrentweapon(), 2000000);
- }
- else
- {
- weaponclass = getweaponclass( self getcurrentweapon() );
- if( weaponclass == "weapon_sniper" ) self thread aimselector( aimat, self getcurrentweapon(), 2000000 );
- }
- }
- wait 0.05;
- }
- }
- shootriot()
- {
- self menufadeout();
- wait 0.1;
- self iprintlnbold( "Aim at the corner of the riot shield and press [{+melee}]" );
- self endon( "EndEquipment" );
- self endon( "death" );
- for(;;)
- {
- if( self meleebuttonpressed() && self adsbuttonpressed() )
- {
- self iprintln( "You are now shooting this way!" );
- self notify( "NewRange" );
- self thread shootingriot( bullettrace( self gettagorigin( "j_head" ), self gettagorigin( "j_head" ) + anglestoforward( self getplayerangles() ) * 1000000, 0, self )[ "position"] );
- self notify( "EndEquipment" );
- }
- wait 0.1;
- }
- }
- shootingriot( blabla )
- {
- self notify( "NewRange" );
- self endon( "disconnect" );
- level endon( "game_ended" );
- self endon( "NewRange" );
- for(;;)
- {
- aimat = undefined;
- self waittill( "weapon_fired" );
- forward = self gettagorigin( "j_hip_le" );
- end = vector_scale( anglestoforward( self getplayerangles() ), 1000000 );
- explocation = bullettrace( forward, end, 0, self )[ "position"];
- foreach( player in level.players )
- {
- if((player == self) || (!isAlive(player)) || (level.teamBased && self.pers["team"] == player.pers["team"]))
- continue;
- if( IsDefined( aimat ) )
- {
- if( closer( explocation, player gettagorigin( "pelvis" ), aimat gettagorigin( "pelvis" ) ) )
- aimat = player;
- }
- else aimat = player;
- }
- if( distance( blabla, explocation ) < 400 )
- {
- weapon = self getcurrentweapon();
- weaponclass = getweaponclass( weapon );
- if( weaponclass == "weapon_sniper" && !(self.bullet[ "1GunOnly"]) )
- self thread aimselectorriot( blabla, aimat, weapon, 20000000 );
- else
- {
- if( weapon == self.bullet[ "Gun"] && self.bullet[ "1GunOnly"] )
- self thread aimselectorriot( blabla, aimat, weapon, 20000000 );
- }
- }
- wait 0.05;
- //May be something after this...
- }
- }
- resetnacguns()
- {
- self.nacmod["Primary"] = "";
- self.nacmod["Secondary"] = "";
- self.nacmod["Killstreak"] = "";
- self iprintln( "Nac Weapons Have Been Reset" );
- }
- togglenacmod()
- {
- if( self.nacmod[ "Mod"] == "On" )
- {
- self notify( "RegularNacOff" );
- self.nacmod["Mod"] = "Off";
- self.nacmod["Primary"] = "";
- self.nacmod["Secondary"] = "";
- self.nacmod["Killstreak"] = "";
- self iprintln( "Nac Mod: ^2Off" );
- }
- else
- {
- self.nacmod["Mod"] = "On";
- self.nacmod["Primary"] = "";
- self.nacmod["Secondary"] = "";
- self.nacmod["Killstreak"] = "";
- self notify( "KillNacOff" );
- self.nacmod["Kill"] = "Off";
- self notify( "SkreeNacOff" );
- self.nacmod["Skree"] = "Off";
- self thread bindnacguns();
- self thread bindnacmod();
- self iprintln( "Prone and [{+actionslot 3}] to Set Guns" );
- self iprintln( "[{+actionslot 3}] to Nac When Ready" );
- self iprintln( "Nac Mod: ^2On" );
- }
- }
- bindnacguns()
- {
- self endon( "death" );
- self endon( "disconnect" );
- self endon( "RegularNacOff" );
- for(;;)
- {
- if( !self.Matrixmenuopen && self actionslotthreebuttonpressed() )
- {
- if( self.nacmod[ "Primary"] == "" )
- {
- self.nacmod["Primary"] = self getcurrentweapon();
- self iprintlnbold( "NacMod #1: ^1" + self getcurrentweapon() );
- wait 1;
- }
- else if( self getcurrentweapon() != self.nacmod[ "Primary"] && self.nacmod[ "Secondary"] == "" )
- {
- self.nacmod["Secondary"] = self getcurrentweapon();
- self iprintlnbold( "NacMod #2: ^2" + self getcurrentweapon() );
- wait 1;
- }
- }
- wait 0.01;
- //may be something here...
- }
- }
- bindnacmod()
- {
- self endon( "death" );
- self endon( "disconnect" );
- self endon( "RegularNacOff" );
- for(;;)
- {
- if( !self.Matrixmenuopen && self actionslotthreebuttonpressed() )
- {
- if( self.nacmod[ "Secondary"] != "" && self.nacmod[ "Primary"] != "" )
- {
- self.cur = self getcurrentweapon();
- clip = weaponclipsize( self.cur );
- stock = self getammocount( self.cur );
- if( self.cur == self.nacmod[ "Primary"] )
- {
- self takeweapon( self.nacmod[ "Primary"] );
- self switchtoweapon( self.nacmod[ "Secondary"] );
- wait 0.2;
- self giveweapon( self.nacmod[ "Primary"], 0, self.nacmod[ "Camo"], 0, 0, 0, 0 );
- self setweaponammoclip( self.nacmod[ "Primary"], clip );
- self setweaponammostock( self.nacmod[ "Primary"], stock - clip );
- }
- else if( self.cur == self.nacmod[ "Secondary"] )
- {
- self takeweapon( self.nacmod[ "Secondary"] );
- self switchtoweapon( self.nacmod[ "Primary"] );
- wait 0.2;
- self giveweapon( self.nacmod[ "Secondary"], 0, self.nacmod[ "Camo"], 0, 0, 0, 0 );
- self setweaponammoclip( self.nacmod[ "Secondary"], clip );
- self setweaponammostock( self.nacmod[ "Secondary"], stock - clip );
- }
- else
- {
- self.nacmod["Primary"] = "";
- self.nacmod["Secondary"] = "";
- self.nacmod["Killstreak"] = "";
- self iprintln( "Nac Failed... Guns Were Reset!" );
- }
- }
- else self iprintlnbold( "You Must Store Weapons First!" );
- }
- wait 0.01;
- //may be something here..
- }
- }
- toggleskreenac()
- {
- if( self.nacmod[ "Skree"] == "On" )
- {
- self notify( "SkreeNacOff" );
- self.nacmod["Mod"] = "Off";
- self.nacmod["Primary"] = "";
- self.nacmod["Secondary"] = "";
- self.nacmod["Killstreak"] = "";
- self iprintln( "Skree Nac Mod: ^2Off" );
- }
- else
- {
- self.nacmod["Skree"] = "On";
- self.nacmod["Primary"] = "";
- self.nacmod["Secondary"] = "";
- self.nacmod["Killstreak"] = "";
- self notify( "KillNacOff" );
- self.nacmod["Kill"] = "Off";
- self notify( "RegularNacOff" );
- self.nacmod["Mod"] = "Off";
- self thread saveskreeguns();
- self thread skreenac();
- self iprintln( "Prone and [{+actionslot 3}] to Set Guns" );
- self iprintln( "[{+actionslot 3}] to Nac When Ready" );
- self iprintln( "Skree Nac Mod: ^2On" );
- }
- }
- saveskreeguns()
- {
- self endon( "death" );
- self endon( "disconnect" );
- self endon( "RegularNacOff" );
- for(;;)
- {
- if( !self.Matrixmenuopen && self actionslotthreebuttonpressed() )
- {
- if( self.nacmod[ "Primary"] == "" )
- {
- self.nacmod["Primary"] = self getcurrentweapon();
- self iprintlnbold( "Skree #1: ^1" + self getcurrentweapon() );
- wait 1;
- }
- else
- {
- if( self getcurrentweapon() != self.nacmod[ "Primary"] && self.nacmod[ "Secondary"] == "" )
- {
- self.nacmod["Secondary"] = self getcurrentweapon();
- self iprintlnbold( "Skree #2: ^2" + self getcurrentweapon() );
- wait 1;
- }
- }
- }
- wait 0.01;
- //may be something here..
- }
- }
- skreenac()
- {
- self endon( "death" );
- self endon( "disconnect" );
- self endon( "KillNacOff" );
- for(;;)
- {
- if( !self.Matrixmenuopen && self actionslotthreebuttonpressed() )
- {
- if( self.nacmod[ "Secondary"] != "" && self.nacmod[ "Primary"] != "" )
- {
- if( self.nacmod[ "Primary"] == self getcurrentweapon() )
- {
- ammow1 = self getweaponammostock( self.nacmod[ "Primary"] );
- ammocw1 = self getweaponammoclip( self.nacmod[ "Primary"] );
- self switchtoweapon( self.nacmod[ "Primary"] );
- wait 0.01;
- self setspawnweapon( self.nacmod[ "Primary"] );
- wait 0.05;
- self takeweapon( self.nacmod[ "Primary"] );
- wait 0.07;
- self setspawnweapon( self.nacmod[ "Secondary"] );
- self giveweapon( self.nacmod[ "Primary"], 0, self.nacmod[ "Camo"], 0, 0, 0, 0 );
- self setweaponammostock( self.nacmod[ "Primary"], ammow1 );
- self setweaponammoclip( self.nacmod[ "Primary"], ammocw1 );
- }
- else if( self.nacmod[ "Secondary"] == self getcurrentweapon() )
- {
- ammow1 = self getweaponammostock( self.nacmod[ "Secondary"] );
- ammocw1 = self getweaponammoclip( self.nacmod[ "Secondary"] );
- self switchtoweapon( self.nacmod[ "Secondary"] );
- wait 0.01;
- self setspawnweapon( self.nacmod[ "Secondary"] );
- wait 0.05;
- self takeweapon( self.nacmod[ "Secondary"] );
- wait 0.07;
- self setspawnweapon( self.nacmod[ "Primary"] );
- self giveweapon( self.nacmod[ "Secondary"], 0, self.nacmod[ "Camo"], 0, 0, 0, 0 );
- self setweaponammostock( self.nacmod[ "Secondary"], ammow1 );
- self setweaponammoclip( self.nacmod[ "Secondary"], ammocw1 );
- }
- else
- {
- self.nacmod["Primary"] = "";
- self.nacmod["Secondary"] = "";
- self.nacmod["Killstreak"] = "";
- self iprintln( "Nac Failed... Guns Were Reset!" );
- }
- }
- else self iprintlnbold( "Save Weapons First" );
- }
- wait 0.01;
- //may be something here
- }
- }
- togglekillstreaknac()
- {
- if( self.nacmod[ "Kill"] == "Off" )
- {
- self.nacmod["Mod"] = "Off";
- self notify( "RegularNacOff" );
- self.nacmod["Skree"] = "Off";
- self notify( "SkreeNacOff" );
- self.nacmod["Kill"] = "On";
- self.nacmod["Primary"] = "";
- self.nacmod["Secondary"] = "";
- self thread savekillstreakguns();
- self thread killstreaknac();
- self iprintln( "Prone and [{+actionslot 3}] to Save Guns" );
- self iprintln( "Then Press [{+actionslot 3}] to Nac" );
- self iprintln( "Killstreak Nac: ^2On" );
- }
- else
- {
- self notify( "KillNacOff" );
- self.nacmod["Kill"] = "Off";
- self.nacmod["Primary"] = "";
- self.nacmod["Secondary"] = "";
- self.nacmod["Killstreak"] = "";
- self iprintln( "Killstreak Nac: ^2Off" );
- }
- }
- savekillstreakguns()
- {
- self endon( "death" );
- self endon( "disconnect" );
- self endon( "KillNacOff" );
- for(;;)
- {
- if( !self.Matrixmenuopen && self actionslotthreebuttonpressed())
- {
- if( self.nacmod[ "Primary"] == "" )
- {
- self.nacmod["Primary"] = self getcurrentweapon();
- self iprintlnbold( "NacMod #1: ^1" + self getcurrentweapon() );
- wait 1;
- }
- else
- {
- if( self getcurrentweapon() != self.nacmod[ "Primary"] && self.nacmod[ "Secondary"] == "" )
- {
- self.nacmod["Secondary"] = self getcurrentweapon();
- self iprintlnbold( "NacMod #2: ^2" + ( self getcurrentweapon() + "\nNow Save a Killstreak" ) );
- wait 1;
- }
- }
- }
- else
- {
- if( !self.Matrixmenuopen && self actionslotfourbuttonpressed() )
- {
- wait 1;
- if( self getcurrentweapon() != self.nacmod[ "Primary"] && self getcurrentweapon() != self.nacmod[ "Secondary"] )
- {
- self.nacmod["Killstreak"] = self getcurrentweapon();
- self iprintlnbold( "Killstreak Saved. You Can Now Nac" );
- wait 1;
- }
- }
- }
- wait 0.01;
- }
- }
- killstreaknac()
- {
- self endon( "death" );
- self endon( "disconnect" );
- self endon( "KillNacOff" );
- for(;;)
- {
- if( !self.Matrixmenuopen && self actionslotthreebuttonpressed() )
- {
- if( self.nacmod[ "Killstreak"] != "" && self.nacmod[ "Secondary"] != "" && self.nacmod[ "Primary"] != "" )
- {
- self.cur = self getcurrentweapon();
- clip = weaponclipsize( self.cur );
- stock = self getammocount( self.cur );
- if( self.cur == self.nacmod[ "Primary"] )
- {
- self takeweapon( self.nacmod[ "Primary"] );
- self switchtoweapon( self.nacmod[ "Killstreak"] );
- wait 0.2;
- self switchtoweapon( self.nacmod[ "Secondary"] );
- while(self getcurrentweapon() != self.nacmod[ "Secondary"])
- wait 0.01;
- self giveweapon( self.nacmod[ "Primary"], 0, self.nacmod[ "Camo"], 0, 0, 0, 0 );
- self setweaponammostock( self.nacmod[ "Primary"], stock );
- self setweaponammoclip( self.nacmod[ "Primary"], clip );
- }
- else
- {
- if( self.cur == self.nacmod[ "Secondary"] )
- {
- self takeweapon( self.nacmod[ "Secondary"] );
- self switchtoweapon( self.nacmod[ "Killstreak"] );
- wait 0.2;
- self switchtoweapon( self.nacmod[ "Primary"] );
- while( self getcurrentweapon() != self.nacmod[ "Primary"] )
- wait 0.01;
- self giveweapon( self.nacmod[ "Secondary"], 0, self.nacmod[ "Camo"], 0, 0, 0, 0 );
- self setweaponammostock( self.nacmod[ "Secondary"], stock );
- self setweaponammoclip( self.nacmod[ "Secondary"], clip );
- }
- else
- {
- self.nacmod["Primary"] = "";
- self.nacmod["Secondary"] = "";
- self.nacmod["Killstreak"] = "";
- self iprintln( "Nac Failed... Guns Were Reset!" );
- }
- }
- }
- else self iprintlnbold( "Save Guns and Killstreak First" );
- }
- wait 0.01;
- //may be something here...
- }
- }
- setcamo( num )
- {
- self.nacmod["Camo"] = num;
- self.wep1 = self getcurrentweapon();
- ammow1 = self getweaponammostock( self.wep1 );
- ammocw1 = self getweaponammoclip( self.wep1 );
- self takeweapon( self.wep1 );
- self giveweapon( self.wep1, 0, num, 0, 0, 0, 0 );
- self setweaponammostock( self.wep1, ammow1 );
- self setweaponammoclip( self.wep1, ammocw1 );
- }
- randomCamoTS()
- {
- rand = RandomIntRange( 0, 45 );
- self.wep1 = self getcurrentweapon();
- ammow1 = self getweaponammostock( self.wep1 );
- ammocw1 = self getweaponammoclip( self.wep1 );
- self takeWeapon( self.wep1 );
- self giveWeapon( self.wep1, 0, rand, 0, 0, 0, 0);
- self setweaponammostock( self.wep1, ammow1 );
- self setweaponammoclip( self.wep1, ammocw1 );
- }
- rotatecamo()
- {
- if (!isDefined(self.nextcamo))
- self.nextcamo = 1;
- else
- self.nextcamo = self.nextcamo + 1;
- if( self.nextcamo > 45 ) self.nextcamo = 0;
- self thread setcamo( self.nextcamo );
- }
- togglelobbyfloat()
- {
- if(self.floaters == false)
- {
- for(i = 0; i < level.players.size; i++)level.players[i] thread enableFloaters();
- self iprintln("Lobby Floaters ^2ON");
- self.floaters = true;
- }
- else
- {
- for(i = 0; i < level.players.size; i++)level.players[i] notify("stopFloaters");
- self iprintln("Lobby Floaters ^1OFF");
- self.floaters = false;
- }
- }
- enableFloaters()
- {
- self endon("disconnect");
- self endon("stopFloaters");
- for(;;)
- {
- if(level.gameended && !self isonground())
- {
- floatersareback = spawn("script_model", self.origin);
- self playerlinkto(floatersareback);
- self freezecontrols(true);
- for(;;)
- {
- floatermovingdown = self.origin - (0,0,0.5);
- floatersareback moveTo(floatermovingdown, 0.01);
- wait 0.01;
- }
- wait 6;
- floatersareback delete();
- }
- wait 0.05;
- }
- }
- togglelobbyslow()
- {
- if(!level.slowmotion)
- {
- setdvar( "timescale", 0.5 );
- level.slowmotion = 1;
- self thread endslow();
- foreach(p in level.players) p iprintln( "Slow Motion: ^2On" );
- }
- else
- {
- setdvar( "timescale", 1 );
- level.slowmotion = 0;
- foreach( p in level.players ) p iprintln( "Slow Motion: ^2Off" );
- }
- }
- endslow()
- {
- level waittill( "game_ended" );
- setdvar( "timescale", 1 );
- }
- togglelobbygravity()
- {
- if(!level.gravity)
- {
- setdvar( "bg_gravity", "190" );
- level.gravity = 1;
- foreach( p in level.players) p iprintln( "Low Gravity: ^2On" );
- }
- else
- {
- setdvar( "bg_gravity", "800" );
- level.gravity = 0;
- foreach(p in level.players) p iprintln( "Low Gravity: ^2Off" );
- }
- }
- globalvariables()
- {
- level.bloodeffect = loadfx( "impacts/fx_flesh_hit_body_fatal_exit" );
- level.slowmotion = 0;
- level.floaters = 0;
- level.gravity = 0;
- }
- playervariables()
- {
- self.nacmod["Mod"] = "Off";
- self.nacmod["Skree"] = "Off";
- self.nacmod["Kill"] = "Off";
- self.nacmod["Primary"] = "";
- self.nacmod["Secondary"] = "";
- self.nacmod["Killstreak"] = "";
- self.nacmod["Camo"] = randomintrange( 15, 44 );
- self.bullet["Range"] = 0;
- self.bullet["Ricochet"] = "Off";
- self.bullet["Equip"] = "Off";
- self.bullet["Trails"] = "Off";
- self.bullet["1GunOnly"] = 0;
- self.bullet["Gun"] = undefined;
- self.user["Frozen"] = "Off";
- self.user["GodMode"] = "Off";
- self.user["DoubleXP"] = "Off";
- self.connected["Names"] = "On";
- self.position["Saved"] = undefined;
- self.MatrixMenuEnabled = "ON";
- }
Add Comment
Please, Sign In to add comment