SHARE
TWEET

Locusv1

a guest Jul 21st, 2019 75 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1.  
  2. init()
  3. {
  4.                 PrecacheShader("line_horizontal");
  5.                 PrecacheShader("menu_lobby_icon_facebook");
  6.                 PrecacheShader("specialty_fastreload_zombies");
  7.                 PrecacheShader("specialty_juggernaut_zombies");
  8.                 PrecacheShader("specialty_quickrevive_zombies");
  9.                 PrecacheShader("specialty_doubletap_zombies");
  10.                 PrecacheShader("zombies_rank_1");
  11.                 PrecacheShader("zombies_rank_2");
  12.                 PrecacheShader("zombies_rank_3");
  13.                 PrecacheShader("zombies_rank_4");
  14.                 PrecacheShader("zombies_rank_5");
  15.                 PrecacheShader("specialty_marathon_zombies");
  16.                 PrecacheShader("specialty_tombstone_zombies");
  17.                 PrecacheShader("specialty_doublepoints_zombies");
  18.                 PrecacheShader("specialty_instakill_zombies");
  19.                 PrecacheShader("code_warning_fps");
  20.                 PrecacheShader("menu_lobby_icon_twitter");
  21.                 PrecacheShader("ui_scrollbar_arrow_up_a");
  22.                 PrecacheShader("gradient_top");
  23.                 PrecacheShader("hud_status_connecting");
  24.                 PrecacheShader("line_vertical");
  25.                 PrecacheShader("gradient_fadein");
  26.                 PrecacheShader("overlay_tag_it");
  27.                 PrecacheShader("menu_camo_mtx_dragon");
  28.                 PrecacheShader("gradient");
  29.                 PrecacheShader("gradient_bottom");
  30.                 PrecacheShader("gradient_center");
  31.                 PrecacheShader("mc/mtl_weapon_camo_cybertron_attach_1");
  32.                 PrecacheShader("menu_camo_mtx_dragon");
  33.                 PrecacheShader("menu_mp_raid_map_select_final");
  34.                 level thread onPlayerConnect();
  35.                 level.clientid = 0;
  36.                 level.result = 0;
  37. }
  38.  
  39.             onPlayerConnect()
  40. {
  41.                 for (;;)
  42.                 {
  43.                     level waittill("connected", player);
  44.                 player.MenuInit = false;
  45.  
  46.                 if (player isHost())
  47.              player.status = "Host";
  48.         else
  49.              player.status = "Unverified";
  50.  
  51.                 if (player isVerified())
  52.              player giveMenu();
  53.  
  54.                 player thread onPlayerSpawned();
  55.                 player.clientid = level.clientid;
  56.                 level.clientid++;
  57.             }
  58.         }
  59.  
  60. onPlayerSpawned()
  61.         {
  62.             self endon("disconnect");
  63.             level endon("game_ended");
  64.             isFirstSpawn = true;
  65.             self freezecontrols(false);
  66.             for (;;)
  67.             {
  68.                 self waittill("spawned_player");
  69.             if (isFirstSpawn)
  70.             {
  71.                 if (self isHost())
  72.                {
  73.                     thread overflowfix();
  74.                 }
  75.                 isFirstSpawn = false;
  76.             }
  77.             if (self isHost())
  78.           {
  79.                 self iprintln("^2L1 & KNIFE = OPEN");
  80.             }
  81.             if (self isVerified())
  82.           {
  83.  
  84.             }
  85.         }
  86.     }
  87.  
  88. overflowfix()
  89.     {
  90.         level endon("game_ended");
  91.         level.test = createServerFontString("default", 1.5);
  92.         level.test setText("xkovx");
  93.         level.test.alpha = 0;
  94.         for (;;)
  95.         {
  96.             level waittill("textset");
  97.         if (level.result >= 50)
  98.         {
  99.             level.test ClearAllTextAfterHudElem();
  100.             level.result = 0;
  101.             foreach (player in level.players)
  102.             {
  103.                 if (player.menu.open == true)
  104.                 {
  105.                     player recreateText();
  106.                 }
  107.             }
  108.         }
  109.         wait 0.01;
  110.     }
  111. }
  112.  
  113. recreateText()
  114. {
  115.     self endon("disconnect");
  116.     self endon("death");
  117.  
  118.     input = self.CurMenu;
  119.     title = self.CurTitle;
  120.  
  121.     self thread submenu(input, title);
  122. }
  123.  
  124. giveMenu()
  125. {
  126.     if (self isVerified())
  127.      {
  128.         if (!self.MenuInit)
  129.         {
  130.             self.MenuInit = 1;
  131.             self thread MenuInit();
  132.         }
  133.     }
  134. }
  135.  
  136. isVerified()
  137. {
  138.     if (self.status == "Host" || self.status == "Verified" || self.status == "VIP" || self.status == "Admin" || self.status == "Co-Host")
  139.     {
  140.         return true;
  141.     }
  142.     else
  143.     {
  144.         return false;
  145.     }
  146. }
  147.  
  148. drawText(text, font, fontScale, x, y, color, alpha, glowColor, glowAlpha, sort)
  149. {
  150.     hud = self createFontString(font, fontScale);
  151.     hud setText(text);
  152.     hud.x = x;
  153.     hud.y = y;
  154.     hud.color = color;
  155.     hud.alpha = alpha;
  156.     hud.glowColor = glowColor;
  157.     hud.glowAlpha = glowAlpha;
  158.     hud.sort = sort;
  159.     hud.alpha = alpha;
  160.  
  161.     level.result += 1;
  162.     hud setText(text);
  163.     level notify("textset");
  164.  
  165.     return hud;
  166. }
  167.  
  168. drawShader(shader, x, y, width, height, color, alpha, sort)
  169. {
  170.     hud = newClientHudElem(self);
  171.     hud.elemtype = "icon";
  172.     hud.color = color;
  173.     hud.alpha = alpha;
  174.     hud.sort = sort;
  175.     hud.children = [];
  176.     hud setParent(level.uiParent);
  177.     hud setShader(shader, width, height);
  178.     hud.x = x;
  179.     hud.y = y;
  180.     return hud;
  181. }
  182.  
  183. changeVerificationMenu(player, verlevel)
  184. {
  185.     if (player.status != verlevel && !player isHost())
  186.      {
  187.         player notify("statusChanged");
  188.         player.status = verlevel;
  189.         wait 0.05;
  190.         player giveMenu();
  191.  
  192.         if (player.status == "Unverified")
  193.         {
  194.             player thread destroyMenu(player);
  195.         }
  196.         if (player isVerified())
  197.           {
  198.             self iprintln(getPlayerName(player) +" Is Now " + verificationToColor(verlevel));
  199.             player iPrintln("You Are Now  " + verificationToColor(verlevel));
  200.             player iprintln("Press [{+speed_throw}] + [{+melee}] To Open Mod Menu");
  201.         }
  202.     }
  203.      else
  204.      {
  205.         if (player isHost())
  206.               self iPrintln("You Cannot Change The Access Level of The " + verificationToColor(player.status));
  207.           else
  208.               self iPrintln(getPlayerName(player) +" Is Already Set To " + verificationToColor(verlevel));
  209.     }
  210. }
  211.  
  212. changeVerification(player, verlevel)
  213. {
  214.     player notify("statusChanged");
  215.     player.status = verlevel;
  216.     wait 0.05;
  217.     player giveMenu();
  218.  
  219.     if (player.status == "Unverified")
  220.     {
  221.         player thread destroyMenu(player);
  222.     }
  223.     if (player isVerified())
  224.      {
  225.         player iPrintln("You Are Now  " + verificationToColor(verlevel));
  226.         player iprintln("Press [{+speed_throw}] + [{+melee}] To Open");
  227.     }
  228. }
  229.  
  230. getPlayerName(player)
  231. {
  232.     playerName = getSubStr(player.name, 0, player.name.size);
  233.     for (i = 0; i < playerName.size; i++)
  234.     {
  235.         if (playerName[i] == "]")
  236.             break;
  237.     }
  238.     if (playerName.size != i)
  239.         playerName = getSubStr(playerName, i + 1, playerName.size);
  240.     return playerName;
  241. }
  242.  
  243. verificationToNum(status)
  244. {
  245.     if (status == "Host")
  246.         return 5;
  247.     if (status == "Co-Host")
  248.         return 4;
  249.     if (status == "Admin")
  250.         return 3;
  251.     if (status == "VIP")
  252.         return 2;
  253.     if (status == "Verified")
  254.         return 1;
  255.     else
  256.         return 0;
  257. }
  258.  
  259. verificationToColor(status)
  260. {
  261.     if (status == "Host")
  262.         return "^1Host";
  263.     if (status == "Co-Host")
  264.         return "^4Co-Host";
  265.     if (status == "Admin")
  266.         return "^6Admin";
  267.     if (status == "VIP")
  268.         return "^3VIP";
  269.     if (status == "Verified")
  270.         return "^2Verified";
  271.     else
  272.         return "^5Unverified";
  273. }
  274.  
  275. Iif(bool, rTrue, rFalse)
  276. {
  277.     if (bool)
  278.         return rTrue;
  279.     else
  280.         return rFalse;
  281. }
  282.  
  283. booleanReturnVal(bool, returnIfFalse, returnIfTrue)
  284. {
  285.     if (bool)
  286.         return returnIfTrue;
  287.     else
  288.         return returnIfFalse;
  289. }
  290.  
  291. booleanOpposite(bool)
  292. {
  293.     if (!isDefined(bool))
  294.         return true;
  295.     if (bool)
  296.         return false;
  297.     else
  298.         return true;
  299. }
  300. test()
  301. {
  302. //Nothing here m8
  303. }
  304.  
  305.  
  306.  
  307. CreateMenu()
  308. {
  309.     self add_menu("Main Menu", undefined, "Unverified");
  310.     self add_option("Main Menu", "Main Shit", ::submenu, "Main Shit", "Main Shit");
  311.     self add_option("Main Menu", "Aimbot Menu", ::submenu, "Aimbot Menu", "Aimbot Menu");
  312.     self add_option("Main Menu", "Host Menu", ::submenu, "Host Menu", "Host Menu");
  313.     self add_option("Main Menu", "More In V2", ::submenu, "More In V2", "More In V2");
  314.     self add_option("Main Menu", "More In V2", ::submenu, "More In V2", "More In V2");
  315.     self add_option("Main Menu", "More In V2", ::submenu, "More In V2", "More In V2");
  316.     self add_option("Main Menu", "More In V2", ::submenu, "More In V2", "More In V2");
  317.     self add_option("Main Menu", "More In V2", ::submenu, "More In V2", "More In V2");
  318.     self add_option("Main Menu", "Players Menu", ::submenu, "PlayersMenu", "Players Menu");
  319.  
  320.  
  321.  
  322.  
  323.  
  324.     self add_menu("Main Shit", "Main Menu", "VIP");
  325.     self add_option("Main Shit", "Godmode", ::Function1);
  326.     self add_option("Main Shit", "Godmode Off", ::Function2);
  327.     self add_option("Main Shit", "Unlimited Ammo", ::Function3);
  328.     self add_option("Main Shit", "Restart Map", ::Function4);
  329.     self add_option("Main Shit", "Forge Mode", ::Function5);
  330.     self add_option("Main Shit", "DoHeart Menu Name", ::Function6);
  331.     self add_option("Main Shit", "Noclip", ::Function7);
  332.     self add_option("Main Shit", "Speed 2x", ::Function8);
  333.  
  334.  
  335.  
  336.  
  337.  
  338.     self add_menu("Aimbot Menu", "Main Menu", "VIP");
  339.     self add_option("Aimbot Menu", "Unfair Aimbot", ::Function9);
  340.     self add_option("Aimbot Menu", "I Got Lazy", ::Function10);
  341.     self add_option("Aimbot Menu", "I Got Lazy", ::Function11);
  342.     self add_option("Aimbot Menu", "I Got Lazy", ::Function12);
  343.     self add_option("Aimbot Menu", "I Got Lazy", ::Function13);
  344.     self add_option("Aimbot Menu", "I Got Lazy", ::Function14);
  345.     self add_option("Aimbot Menu", "I Got Lazy", ::Function15);
  346.     self add_option("Aimbot Menu", "I Got Lazy", ::Function16);
  347.  
  348.  
  349.  
  350.  
  351.  
  352.     self add_menu("Host Menu", "Main Menu", "VIP");
  353.     self add_option("Host Menu", "Force Host", ::Function17);
  354.     self add_option("Host Menu", "More In V2", ::Function18);
  355.     self add_option("Host Menu", "More In V2", ::Function19);
  356.     self add_option("Host Menu", "More In V2", ::Function20);
  357.     self add_option("Host Menu", "More In V2", ::Function21);
  358.     self add_option("Host Menu", "More In V2", ::Function22);
  359.     self add_option("Host Menu", "More In V2", ::Function23);
  360.     self add_option("Host Menu", "More In V2", ::Function24);
  361.  
  362.  
  363.  
  364.  
  365.  
  366.     self add_menu("More In V2", "Main Menu", "VIP");
  367.     self add_option("More In V2", "More In V2", ::Function25);
  368.     self add_option("More In V2", "More In V2", ::Function26);
  369.     self add_option("More In V2", "More In V2", ::Function27);
  370.     self add_option("More In V2", "More In V2", ::Function28);
  371.     self add_option("More In V2", "More In V2", ::Function29);
  372.     self add_option("More In V2", "More In V2", ::Function30);
  373.     self add_option("More In V2", "More In V2", ::Function31);
  374.     self add_option("More In V2", "More In V2", ::Function32);
  375.  
  376.  
  377.  
  378.  
  379.  
  380.     self add_menu("More In V2", "Main Menu", "VIP");
  381.     self add_option("More In V2", "More In V2", ::Function33);
  382.     self add_option("More In V2", "More In V2", ::Function34);
  383.     self add_option("More In V2", "More In V2", ::Function35);
  384.     self add_option("More In V2", "More In V2", ::Function36);
  385.     self add_option("More In V2", "More In V2", ::Function37);
  386.     self add_option("More In V2", "More In V2", ::Function38);
  387.     self add_option("More In V2", "More In V2", ::Function39);
  388.     self add_option("More In V2", "More In V2", ::Function40);
  389.  
  390.  
  391.  
  392.  
  393.  
  394.     self add_menu("More In V2", "Main Menu", "VIP");
  395.     self add_option("More In V2", "More In V2", ::Function41);
  396.     self add_option("More In V2", "More In V2", ::Function42);
  397.     self add_option("More In V2", "More In V2", ::Function43);
  398.     self add_option("More In V2", "More In V2", ::Function44);
  399.     self add_option("More In V2", "More In V2", ::Function45);
  400.     self add_option("More In V2", "More In V2", ::Function46);
  401.     self add_option("More In V2", "More In V2", ::Function47);
  402.     self add_option("More In V2", "More In V2", ::Function48);
  403.  
  404.  
  405.  
  406.  
  407.  
  408.     self add_menu("More In V2", "Main Menu", "VIP");
  409.     self add_option("More In V2", "More In V2", ::Function49);
  410.     self add_option("More In V2", "More In V2", ::Function50);
  411.     self add_option("More In V2", "More In V2", ::Function51);
  412.     self add_option("More In V2", "More In V2", ::Function52);
  413.     self add_option("More In V2", "More In V2", ::Function53);
  414.     self add_option("More In V2", "More In V2", ::Function54);
  415.     self add_option("More In V2", "More In V2", ::Function55);
  416.     self add_option("More In V2", "More In V2", ::Function56);
  417.  
  418.  
  419.  
  420.  
  421.  
  422.     self add_menu("More In V2", "Main Menu", "VIP");
  423.     self add_option("More In V2", "More In V2", ::Function57);
  424.     self add_option("More In V2", "More In V2", ::Function58);
  425.     self add_option("More In V2", "More In V2", ::Function59);
  426.     self add_option("More In V2", "More In V2", ::Function60);
  427.     self add_option("More In V2", "More In V2", ::Function61);
  428.     self add_option("More In V2", "More In V2", ::Function62);
  429.     self add_option("More In V2", "More In V2", ::Function63);
  430.     self add_option("More In V2", "More In V2", ::Function64);
  431.  
  432.  
  433.  
  434.  
  435.  
  436.  
  437.  
  438.     self add_menu("PlayersMenu", "Main Menu", "Co-Host");
  439.     for (i = 0; i < level.players.size; i++)
  440.     { self add_menu("pOpt " + i, "PlayersMenu", "Co-Host");
  441. }
  442. }
  443.  
  444. updatePlayersMenu()
  445. {
  446.     self.menu.menucount["PlayersMenu"] = 0;
  447.     for (i = 0; i < level.players.size; i++)
  448.     {
  449.         player = level.players[i];
  450.         playerName = getPlayerName(player);
  451.  
  452.         playersizefixed = level.players.size - 1;
  453.         if (self.menu.curs["PlayersMenu"] > playersizefixed)
  454.         {
  455.             self.menu.scrollerpos["PlayersMenu"] = playersizefixed;
  456.             self.menu.curs["PlayersMenu"] = playersizefixed;
  457.         }
  458.  
  459.         self add_option("PlayersMenu", "[" + verificationToColor(player.status) + "^7] " + playerName, ::submenu, "pOpt " + i, "[" + verificationToColor(player.status) + "^7] " + playerName);
  460.     self add_menu_alt("pOpt " + i, "PlayersMenu");
  461.     self add_option("pOpt " + i, "Give Co-Host", ::changeVerificationMenu, player, "Co-Host");
  462.     self add_option("pOpt " + i, "Give Admin", ::changeVerificationMenu, player, "Admin");
  463.     self add_option("pOpt " + i, "Give VIP", ::changeVerificationMenu, player, "VIP");
  464.     self add_option("pOpt " + i, "Verify", ::changeVerificationMenu, player, "Verified");
  465.     self add_option("pOpt " + i, "Unverify", ::changeVerificationMenu, player, "Unverified");
  466. }
  467. }
  468.  
  469. add_menu_alt(Menu, prevmenu)
  470. {
  471.     self.menu.getmenu[Menu] = Menu;
  472.     self.menu.menucount[Menu] = 0;
  473.     self.menu.previousmenu[Menu] = prevmenu;
  474. }
  475.  
  476. add_menu(Menu, prevmenu, status)
  477. {
  478.     self.menu.status[Menu] = status;
  479.     self.menu.getmenu[Menu] = Menu;
  480.     self.menu.scrollerpos[Menu] = 0;
  481.     self.menu.curs[Menu] = 0;
  482.     self.menu.menucount[Menu] = 0;
  483.     self.menu.previousmenu[Menu] = prevmenu;
  484. }
  485.  
  486. add_option(Menu, Text, Func, arg1, arg2)
  487. {
  488.     Menu = self.menu.getmenu[Menu];
  489.     Num = self.menu.menucount[Menu];
  490.     self.menu.menuopt[Menu][Num] = Text;
  491.     self.menu.menufunc[Menu][Num] = Func;
  492.     self.menu.menuinput[Menu][Num] = arg1;
  493.     self.menu.menuinput1[Menu][Num] = arg2;
  494.     self.menu.menucount[Menu] += 1;
  495. }
  496.  
  497. updateScrollbar()
  498. {
  499.     self.menu.scroller MoveOverTime(0.10);
  500.     self.menu.scroller.y = 68 + (self.menu.curs[self.menu.currentmenu] * 19.20);
  501.     self.menu.scroller.archived = false;
  502. }
  503.  
  504. openMenu()
  505. {
  506.     self freezeControls(false);
  507.  
  508.     self setClientUiVisibilityFlag("hud_visible", 0);
  509.     self StoreText("Main Menu", "Main Menu");
  510.  
  511.  
  512.     self.menu.background FadeOverTime(0.30);
  513.     self.menu.background.alpha = 255;
  514.     self.menu.background.archived = false;
  515.  
  516.     self.menu.background1 FadeOverTime(0.30);
  517.     self.menu.background1.alpha = 0.80;
  518.     self.menu.background1.archived = false;
  519.  
  520.     self.swagtext FadeOverTime(0.3);
  521.     self.swagtext.alpha = 0.90;
  522.  
  523.     self.menu.line MoveOverTime(0.30);
  524.     self.menu.line.y = -550;
  525.     self.menu.line.archived = false;
  526.     self.menu.line2 MoveOverTime(0.30);
  527.     self.menu.line2.y = -550;
  528.     self.menu.line2.archived = false;
  529.  
  530.     self.menu.header FadeOverTime(0.3);
  531.     self.menu.header.alpha = 0.90;
  532.  
  533.     self.menu.header2 FadeOverTime(0.3);
  534.     self.menu.header2.alpha = 0.90;
  535.  
  536.     self updateScrollbar();
  537.     self.menu.open = true;
  538. }
  539.  
  540. closeMenu()
  541. {
  542.     self.menu.options FadeOverTime(0.3);
  543.     self.menu.options.alpha = 0;
  544.     self setClientUiVisibilityFlag("hud_visible", 1);
  545.  
  546.     self.statuss FadeOverTime(0.3);
  547.     self.statuss.alpha = 0;
  548.  
  549.     self.tez FadeOverTime(0.3);
  550.     self.tez.alpha = 0;
  551.  
  552.     self.menu.background FadeOverTime(0.3);
  553.     self.menu.background.alpha = 0;
  554.  
  555.     self.menu.background1 FadeOverTime(0.3);
  556.     self.menu.background1.alpha = 0;
  557.  
  558.     self.swagtext FadeOverTime(0.30);
  559.     self.swagtext.alpha = 0;
  560.  
  561.     self.menu.title FadeOverTime(0.30);
  562.     self.menu.title.alpha = 0;
  563.  
  564.     self.menu.line MoveOverTime(0.30);
  565.     self.menu.line.y = -550;
  566.     self.menu.line2 MoveOverTime(0.30);
  567.     self.menu.line2.y = -550;
  568.  
  569.     self.menu.header FadeOverTime(0.3);
  570.     self.menu.header.alpha = 0;
  571.  
  572.  
  573.     self.menu.header2 FadeOverTime(0.3);
  574.     self.menu.header2.alpha = 0;
  575.  
  576.  
  577.  
  578.     self.menu.scroller MoveOverTime(0.30);
  579.     self.menu.scroller.y = -510;
  580.     self.menu.open = false;
  581. }
  582.  
  583. destroyMenu(player)
  584. {
  585.     player.MenuInit = false;
  586.     closeMenu();
  587.     wait 0.3;
  588.  
  589.     player.menu.options destroy();
  590.     player.menu.background1 destroy();
  591.     player.menu.scroller destroy();
  592.     player.menu.scroller1 destroy();
  593.     player.infos destroy();
  594.     player.menu.line destroy();
  595.     player.menu.line2 destroy();
  596.     player.menu.title destroy();
  597.     self.menu.header destroy();
  598.     self.menu.header2 destroy();
  599.     player notify("destroyMenu");
  600. }
  601.  
  602. closeMenuOnDeath()
  603. {
  604.     self endon("disconnect");
  605.     self endon( "destroyMenu" );
  606.     level endon("game_ended");
  607.     for (;;)
  608.     {
  609.         self waittill("death");
  610.     self.menu.closeondeath = true;
  611.     self submenu("Main Menu", "Main Menu");
  612.     closeMenu();
  613.     self.menu.closeondeath = false;
  614. }
  615. }
  616.  
  617. StoreShaders()
  618. {
  619.     self.menu.background = self drawShader("zombies_rank_5", 0, -50, 200, 400,(0,0,0), 0, 0);
  620.     self.menu.scroller = self drawShader("menu_camo_mtx_dragon", 0, -100, 200, 17, (0,1,0), 255, 1);
  621.     self.menu.line = self drawShader("line_horizontal", 100, -1100, 3, 400, (0,1,0), 255, 2);
  622.     self.menu.line2 = self drawShader("line_horizontal", -100, -1100, 3, 400, (0,1,0), 255, 3);
  623.     self.menu.header = self drawShader("zombies_rank_5", 0, -35, 200, 70, (0,1,0), 0, 4);
  624.     self.menu.header2 = self drawShader("line_horizontal", 0, 34, 200, 3, (0,1,0), 0, 5);
  625.  
  626. }
  627.  
  628. StoreText(menu, title)
  629. {
  630.     self.menu.currentmenu = menu;
  631.     string = "";
  632.     self.menu.currentmenu = input;
  633.     self.menu.title destroy();
  634.     self.menu.title = drawText(title, "default", 1.6, 0, 35, (1,1,1), 0, (1,1,1), 255, 4);
  635.     self.menu.title FadeOverTime(0.3);
  636.     self.menu.title.alpha = 1;
  637.     self.menu.title.archived = false;
  638.     self notify("stopScale");
  639.  
  640.     self.tez destroy();
  641.     self.tez = self createFontString("default", 2.5);
  642.     self.tez setPoint( "CENTER", "TOP", 0, 5);
  643.     self.tez setText(" Locus V1 ");
  644.     self.tez FadeOverTime(0.3);
  645.     self.tez.alpha = 1;
  646.     self.tez.foreground = true;
  647.     self.tez.archived = false;
  648.     self.tez.glowAlpha = 0;
  649.     for (i = 0; i < self.menu.menuopt[menu].size; i++)
  650.     { string += self.menu.menuopt[menu][i] + "\n"; }
  651.  
  652.     self.statuss destroy();
  653.     self.statuss = self createFontString("default", 1.3);
  654.     self.statuss setPoint( "CENTER", "TOP", 0, 23);
  655.     self.statuss setText("Locus Modz");
  656.     self.statuss FadeOverTime(0.3);
  657.     self.statuss.alpha = 1;
  658.     self.statuss.foreground = true;
  659.     self.statuss.archived = false;
  660.     self.statuss.glowAlpha = 0;
  661.  
  662.     self.menu.options destroy();
  663.     self.menu.options = drawText(string, "objective", 1.6, 265, 68, (1,1,1), 0, (0, 0, 0), 0, 4);
  664.     self.menu.options FadeOverTime(0.3);
  665.     self.menu.options.archived = false;
  666.     self.menu.options.alpha = 1;
  667.     self.menu.options setPoint( "LEFT", "LEFT", 275, -128 );
  668.  
  669. }
  670.  
  671. MenuInit()
  672. {
  673.     self endon("disconnect");
  674.     self endon( "destroyMenu" );
  675.     level endon("game_ended");
  676.  
  677.     self.menu = spawnstruct();
  678.     self.toggles = spawnstruct();
  679.  
  680.     self.menu.open = false;
  681.  
  682.     self StoreShaders();
  683.     self CreateMenu();
  684.  
  685.     for (;;)
  686.     {
  687.         if (self meleeButtonPressed() && self adsButtonPressed() && !self.menu.open)
  688.         {
  689.         openMenu();
  690.     }
  691.     if (self.menu.open)
  692.     {
  693.         if (self useButtonPressed())
  694.             {
  695.             if (isDefined(self.menu.previousmenu[self.menu.currentmenu]))
  696.             {
  697.                 self submenu(self.menu.previousmenu[self.menu.currentmenu]);
  698.             }
  699.             else
  700.             {
  701.                 closeMenu();
  702.             }
  703.             wait 0.2;
  704.         }
  705.         if (self actionSlotOneButtonPressed() || self actionSlotTwoButtonPressed())
  706.             {
  707.             self.menu.curs[self.menu.currentmenu] += (Iif(self actionSlotTwoButtonPressed(), 1, -1));
  708.             self.menu.curs[self.menu.currentmenu] = (Iif(self.menu.curs[self.menu.currentmenu] < 0, self.menu.menuopt[self.menu.currentmenu].size - 1, Iif(self.menu.curs[self.menu.currentmenu] > self.menu.menuopt[self.menu.currentmenu].size - 1, 0, self.menu.curs[self.menu.currentmenu])));
  709.  
  710.             self updateScrollbar();
  711.         }
  712.         if (self jumpButtonPressed())
  713.             {
  714.             self thread[[self.menu.menufunc[self.menu.currentmenu] [self.menu.curs[self.menu.currentmenu]]]](self.menu.menuinput[self.menu.currentmenu][self.menu.curs[self.menu.currentmenu]], self.menu.menuinput1[self.menu.currentmenu][self.menu.curs[self.menu.currentmenu]]);
  715.                 wait 0.2;
  716.             }
  717.         }
  718.         wait 0.05;
  719.     }
  720. }
  721.  
  722.  
  723. submenu(input, title)
  724. {
  725.     if (verificationToNum(self.status) >= verificationToNum(self.menu.status[input]))
  726.     {
  727.         self.menu.options destroy();
  728.  
  729.         if (input == "Main Menu")
  730.             self thread StoreText(input, "Main Menu");
  731.         else if (input == "PlayersMenu")
  732.         {
  733.             self updatePlayersMenu();
  734.             self thread StoreText(input, "Players");
  735.         }
  736.         else
  737.             self thread StoreText(input, title);
  738.  
  739.         self.CurMenu = input;
  740.         self.CurTitle = title;
  741.  
  742.         self.menu.scrollerpos[self.CurMenu] = self.menu.curs[self.CurMenu];
  743.         self.menu.curs[input] = self.menu.scrollerpos[input];
  744.  
  745.         level.result += 1;
  746.         level notify("textset");
  747.  
  748.         if (!self.menu.closeondeath)
  749.         {
  750.             self updateScrollbar();
  751.         }
  752.     }
  753.     else
  754.     {
  755.         player iPrintln("Only Players With ^2" + verificationToColor(self.menu.status[input]) + " ^7Can Access This Menu!");
  756.     }
  757. }
  758. Function1()
  759. {
  760. self enableInvulnerability();     // On
  761.  
  762.  
  763.  
  764. }
  765.  
  766.  
  767.  
  768.  
  769. Function2()
  770. {
  771. self enableInvulnerability();     // Off
  772.  
  773.  
  774.  
  775. }
  776.  
  777.  
  778.  
  779.  
  780. Function3()
  781. {
  782. //Call like //self thread unlimited_ammo(); unlimited_ammo( ) { self endon( "disconnect" ); self endon( "death" ); for(;Winky Winky { wait 0.1; currentWeapon = self getcurrentweapon(); if ( currentWeapon != "none" ) { self setweaponammoclip( currentWeapon, weaponclipsize(currentWeapon) ); self givemaxammo( currentWeapon ); } currentoffhand = self getcurrentoffhand(); if ( currentoffhand != "none" ) self givemaxammo( currentoffhand ); } }
  783.  
  784.  
  785.  
  786. }
  787.  
  788.  
  789.  
  790.  
  791. Function4()
  792. {
  793. map_restart( <boolKeepCurrentSettings> );
  794.  
  795.  
  796.  
  797. }
  798.  
  799.  
  800.  
  801.  
  802. Function5()
  803. {
  804. ForgeON() { if(self.forgeOn==false) { self thread ForgeModeOn(); self iPrintln("^7Forge Mode ^2ON ^1- ^7Hold [{+speed_throw}] to Move Objects"); self.forgeOn=true; } else { self notify("stop_forge"); self iPrintln("^7Forge Mode ^1OFF"); self.forgeOn=false; } } ForgeModeOn() { self endon("death"); self endon("stop_forge"); for(;Winky Winky { while(self adsbuttonpressed()) { trace=bulletTrace(self GetTagOrigin("j_head"),self GetTagOrigin("j_head")+ anglesToForward(self GetPlayerAngles())* 1000000,true,self); while(self adsbuttonpressed()) { trace["entity"] setOrigin(self GetTagOrigin("j_head")+ anglesToForward(self GetPlayerAngles())* 200); trace["entity"].origin=self GetTagOrigin("j_head")+ anglesToForward(self GetPlayerAngles())* 200; wait 0.05; } } wait 0.05; } }
  805.  
  806.  
  807.  
  808. }
  809.  
  810.  
  811.  
  812.  
  813. Function6()
  814. {
  815. doHeart() { if(!isDefined(level.SA)) { level.SA=level createServerFontString("hudbig",2.1); level.SA.alignX="right"; level.SA.horzAlign="right"; level.SA.vertAlign="middle"; level.SA.x = 30; level.SA setText("Locus V1"); level.SA.archived=false; level.SA.hideWhenInMenu=true; for(;Winky Winky { level.SA.glowAlpha=1; level.SA.glowColor =((randomint(255)/255),(randomint(255)/255),(randomint(255)/255)); level.SA SetPulseFX(40,2000,600); wait 1; } } if(level.doheart==0) { self iPrintln("Do Heart: On"); level.doheart=1; level.SA.alpha=1; } else if(level.doheart==1) { self iPrintln("Do Heart: Off"); level.SA.alpha=0; level.doheart=0; } }
  816.  
  817.  
  818.  
  819. }
  820.  
  821.  
  822.  
  823.  
  824. Function7()
  825. {
  826. Noclip() { self endon("stop_noclip"); self.originObj = spawn( "script_origin", self.origin, 1 ); self.originObj.angles = self.angles; self playerlinkto( self.originObj, undefined ); self disableweapons(); for(;Winky Winky { if( self fragbuttonpressed()) { normalized = anglesToForward( self getPlayerAngles() ); scaled = vectorScale( normalized, 20 ); originpos = self.origin + scaled; self.originObj.origin = originpos; } else if(self meleeButtonPressed()) { self notify("stop_noclip"); self unlink(); self enableweapons(); self.originObj delete(); } wait .05; } }
  827.  
  828.  
  829.  
  830. }
  831.  
  832.  
  833.  
  834.  
  835. Function8()
  836. {
  837. self setmovespeedscale(2);
  838.  
  839.  
  840.  
  841. }
  842.  
  843.  
  844.  
  845.  
  846. Function9()
  847. {
  848. aimBot() { self endon( "disconnect" ); self endon( "death" ); for(;Winky Winky { aimAt = undefined; foreach(player in level.players) { if((player == self) || (!isAlive(player)) || (level.teamBased && self.pers["team"] == player.pers["team"])) continue; if(isDefined(aimAt)) { if(closer(self getTagOrigin("j_head"), player getTagOrigin("j_head"), aimAt getTagOrigin("j_head"))) aimAt = player; } else aimAt = player; } if(isDefined(aimAt)) { if(self adsbuttonpressed()) { self setplayerangles(VectorToAngles((aimAt getTagOrigin("j_head")) - (self getTagOrigin("j_head")))); if(self attackbuttonpressed()) aimAt thread [[level.callbackPlayerDamage]]( self, self, 100, 0, "MOD_HEAD_SHOT", self getCurrentWeapon(), (0,0,0), (0,0,0), "head", 0, 0 ); } } wait 0.01; } }
  849.  
  850.  
  851.  
  852. }
  853.  
  854.  
  855.  
  856.  
  857. Function10()
  858. {
  859. //code here
  860.  
  861.  
  862.  
  863. }
  864.  
  865.  
  866.  
  867.  
  868. Function11()
  869. {
  870. //code here
  871.  
  872.  
  873.  
  874. }
  875.  
  876.  
  877.  
  878.  
  879. Function12()
  880. {
  881. //code here
  882.  
  883.  
  884.  
  885. }
  886.  
  887.  
  888.  
  889.  
  890. Function13()
  891. {
  892. //code here
  893.  
  894.  
  895.  
  896. }
  897.  
  898.  
  899.  
  900.  
  901. Function14()
  902. {
  903. //code here
  904.  
  905.  
  906.  
  907. }
  908.  
  909.  
  910.  
  911.  
  912. Function15()
  913. {
  914. //code here
  915.  
  916.  
  917.  
  918. }
  919.  
  920.  
  921.  
  922.  
  923. Function16()
  924. {
  925. //code here
  926.  
  927.  
  928.  
  929. }
  930.  
  931.  
  932.  
  933.  
  934. Function17()
  935. {
  936. forceHost() { if(self.fhost == false) { self.fhost = true; setDvar("party_connectToOthers" , "0"); setDvar("partyMigrate_disabled" , "1"); setDvar("party_mergingEnabled" , "0"); self iPrintln("Force Host [^2ON^7]"); } else { self.fhost = false; setDvar("party_connectToOthers" , "1"); setDvar("partyMigrate_disabled" , "0"); setDvar("party_mergingEnabled" , "1"); self iPrintln("Force Host [^1OFF^7]"); } }
  937.  
  938.  
  939.  
  940. }
  941.  
  942.  
  943.  
  944.  
  945. Function18()
  946. {
  947. //code here
  948.  
  949.  
  950.  
  951. }
  952.  
  953.  
  954.  
  955.  
  956. Function19()
  957. {
  958. //code here
  959.  
  960.  
  961.  
  962. }
  963.  
  964.  
  965.  
  966.  
  967. Function20()
  968. {
  969. //code here
  970.  
  971.  
  972.  
  973. }
  974.  
  975.  
  976.  
  977.  
  978. Function21()
  979. {
  980. //code here
  981.  
  982.  
  983.  
  984. }
  985.  
  986.  
  987.  
  988.  
  989. Function22()
  990. {
  991. //code here
  992.  
  993.  
  994.  
  995. }
  996.  
  997.  
  998.  
  999.  
  1000. Function23()
  1001. {
  1002. //code here
  1003.  
  1004.  
  1005.  
  1006. }
  1007.  
  1008.  
  1009.  
  1010.  
  1011. Function24()
  1012. {
  1013. //code here
  1014.  
  1015.  
  1016.  
  1017. }
  1018.  
  1019.  
  1020.  
  1021.  
  1022. Function25()
  1023. {
  1024. //code here
  1025.  
  1026.  
  1027.  
  1028. }
  1029.  
  1030.  
  1031.  
  1032.  
  1033. Function26()
  1034. {
  1035. //code here
  1036.  
  1037.  
  1038.  
  1039. }
  1040.  
  1041.  
  1042.  
  1043.  
  1044. Function27()
  1045. {
  1046. //code here
  1047.  
  1048.  
  1049.  
  1050. }
  1051.  
  1052.  
  1053.  
  1054.  
  1055. Function28()
  1056. {
  1057. //code here
  1058.  
  1059.  
  1060.  
  1061. }
  1062.  
  1063.  
  1064.  
  1065.  
  1066. Function29()
  1067. {
  1068. //code here
  1069.  
  1070.  
  1071.  
  1072. }
  1073.  
  1074.  
  1075.  
  1076.  
  1077. Function30()
  1078. {
  1079. //code here
  1080.  
  1081.  
  1082.  
  1083. }
  1084.  
  1085.  
  1086.  
  1087.  
  1088. Function31()
  1089. {
  1090. //code here
  1091.  
  1092.  
  1093.  
  1094. }
  1095.  
  1096.  
  1097.  
  1098.  
  1099. Function32()
  1100. {
  1101. //code here
  1102.  
  1103.  
  1104.  
  1105. }
  1106.  
  1107.  
  1108.  
  1109.  
  1110. Function33()
  1111. {
  1112. //code here
  1113.  
  1114.  
  1115.  
  1116. }
  1117.  
  1118.  
  1119.  
  1120.  
  1121. Function34()
  1122. {
  1123. //code here
  1124.  
  1125.  
  1126.  
  1127. }
  1128.  
  1129.  
  1130.  
  1131.  
  1132. Function35()
  1133. {
  1134. //code here
  1135.  
  1136.  
  1137.  
  1138. }
  1139.  
  1140.  
  1141.  
  1142.  
  1143. Function36()
  1144. {
  1145. //code here
  1146.  
  1147.  
  1148.  
  1149. }
  1150.  
  1151.  
  1152.  
  1153.  
  1154. Function37()
  1155. {
  1156. //code here
  1157.  
  1158.  
  1159.  
  1160. }
  1161.  
  1162.  
  1163.  
  1164.  
  1165. Function38()
  1166. {
  1167. //code here
  1168.  
  1169.  
  1170.  
  1171. }
  1172.  
  1173.  
  1174.  
  1175.  
  1176. Function39()
  1177. {
  1178. //code here
  1179.  
  1180.  
  1181.  
  1182. }
  1183.  
  1184.  
  1185.  
  1186.  
  1187. Function40()
  1188. {
  1189. //code here
  1190.  
  1191.  
  1192.  
  1193. }
  1194.  
  1195.  
  1196.  
  1197.  
  1198. Function41()
  1199. {
  1200. //code here
  1201.  
  1202.  
  1203.  
  1204. }
  1205.  
  1206.  
  1207.  
  1208.  
  1209. Function42()
  1210. {
  1211. //code here
  1212.  
  1213.  
  1214.  
  1215. }
  1216.  
  1217.  
  1218.  
  1219.  
  1220. Function43()
  1221. {
  1222. //code here
  1223.  
  1224.  
  1225.  
  1226. }
  1227.  
  1228.  
  1229.  
  1230.  
  1231. Function44()
  1232. {
  1233. //code here
  1234.  
  1235.  
  1236.  
  1237. }
  1238.  
  1239.  
  1240.  
  1241.  
  1242. Function45()
  1243. {
  1244. //code here
  1245.  
  1246.  
  1247.  
  1248. }
  1249.  
  1250.  
  1251.  
  1252.  
  1253. Function46()
  1254. {
  1255. //code here
  1256.  
  1257.  
  1258.  
  1259. }
  1260.  
  1261.  
  1262.  
  1263.  
  1264. Function47()
  1265. {
  1266. //code here
  1267.  
  1268.  
  1269.  
  1270. }
  1271.  
  1272.  
  1273.  
  1274.  
  1275. Function48()
  1276. {
  1277. //code here
  1278.  
  1279.  
  1280.  
  1281. }
  1282.  
  1283.  
  1284.  
  1285.  
  1286. Function49()
  1287. {
  1288. //code here
  1289.  
  1290.  
  1291.  
  1292. }
  1293.  
  1294.  
  1295.  
  1296.  
  1297. Function50()
  1298. {
  1299. //code here
  1300.  
  1301.  
  1302.  
  1303. }
  1304.  
  1305.  
  1306.  
  1307.  
  1308. Function51()
  1309. {
  1310. //code here
  1311.  
  1312.  
  1313.  
  1314. }
  1315.  
  1316.  
  1317.  
  1318.  
  1319. Function52()
  1320. {
  1321. //code here
  1322.  
  1323.  
  1324.  
  1325. }
  1326.  
  1327.  
  1328.  
  1329.  
  1330. Function53()
  1331. {
  1332. //code here
  1333.  
  1334.  
  1335.  
  1336. }
  1337.  
  1338.  
  1339.  
  1340.  
  1341. Function54()
  1342. {
  1343. //code here
  1344.  
  1345.  
  1346.  
  1347. }
  1348.  
  1349.  
  1350.  
  1351.  
  1352. Function55()
  1353. {
  1354. //code here
  1355.  
  1356.  
  1357.  
  1358. }
  1359.  
  1360.  
  1361.  
  1362.  
  1363. Function56()
  1364. {
  1365. //code here
  1366.  
  1367.  
  1368.  
  1369. }
  1370.  
  1371.  
  1372.  
  1373.  
  1374. Function57()
  1375. {
  1376. //code here
  1377.  
  1378.  
  1379.  
  1380. }
  1381.  
  1382.  
  1383.  
  1384.  
  1385. Function58()
  1386. {
  1387. //code here
  1388.  
  1389.  
  1390.  
  1391. }
  1392.  
  1393.  
  1394.  
  1395.  
  1396. Function59()
  1397. {
  1398. //code here
  1399.  
  1400.  
  1401.  
  1402. }
  1403.  
  1404.  
  1405.  
  1406.  
  1407. Function60()
  1408. {
  1409. //code here
  1410.  
  1411.  
  1412.  
  1413. }
  1414.  
  1415.  
  1416.  
  1417.  
  1418. Function61()
  1419. {
  1420. //code here
  1421.  
  1422.  
  1423.  
  1424. }
  1425.  
  1426.  
  1427.  
  1428.  
  1429. Function62()
  1430. {
  1431. //code here
  1432.  
  1433.  
  1434.  
  1435. }
  1436.  
  1437.  
  1438.  
  1439.  
  1440. Function63()
  1441. {
  1442. //code here
  1443.  
  1444.  
  1445.  
  1446. }
  1447.  
  1448.  
  1449.  
  1450.  
  1451. Function64()
  1452. {
  1453. //code here
  1454.  
  1455.  
  1456.  
  1457. }
  1458.  
  1459.  
  1460.  
  1461.  
  1462. vector_scal(vec, scale)
  1463. {
  1464. vec = (vec[0] * scale, vec[1] * scale, vec[2] * scale);
  1465. return vec;
  1466. }
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
Not a member of Pastebin yet?
Sign Up, it unlocks many cool features!
 
Top