Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- init()
- {
- PrecacheShader("line_horizontal");
- PrecacheShader("menu_lobby_icon_facebook");
- PrecacheShader("specialty_fastreload_zombies");
- PrecacheShader("specialty_juggernaut_zombies");
- PrecacheShader("specialty_quickrevive_zombies");
- PrecacheShader("specialty_doubletap_zombies");
- PrecacheShader("zombies_rank_1");
- PrecacheShader("zombies_rank_2");
- PrecacheShader("zombies_rank_3");
- PrecacheShader("zombies_rank_4");
- PrecacheShader("zombies_rank_5");
- PrecacheShader("specialty_marathon_zombies");
- PrecacheShader("specialty_tombstone_zombies");
- PrecacheShader("specialty_doublepoints_zombies");
- PrecacheShader("specialty_instakill_zombies");
- PrecacheShader("code_warning_fps");
- PrecacheShader("menu_lobby_icon_twitter");
- PrecacheShader("ui_scrollbar_arrow_up_a");
- PrecacheShader("gradient_top");
- PrecacheShader("hud_status_connecting");
- PrecacheShader("line_vertical");
- PrecacheShader("gradient_fadein");
- PrecacheShader("overlay_tag_it");
- PrecacheShader("menu_camo_mtx_dragon");
- PrecacheShader("gradient");
- PrecacheShader("gradient_bottom");
- PrecacheShader("gradient_center");
- PrecacheShader("mc/mtl_weapon_camo_cybertron_attach_1");
- PrecacheShader("menu_camo_mtx_dragon");
- PrecacheShader("menu_mp_raid_map_select_final");
- level thread onPlayerConnect();
- level.clientid = 0;
- level.result = 0;
- }
- onPlayerConnect()
- {
- for (;;)
- {
- level waittill("connected", player);
- player.MenuInit = false;
- if (player isHost())
- player.status = "Host";
- else
- player.status = "Unverified";
- if (player isVerified())
- player giveMenu();
- player thread onPlayerSpawned();
- player.clientid = level.clientid;
- level.clientid++;
- }
- }
- onPlayerSpawned()
- {
- self endon("disconnect");
- level endon("game_ended");
- isFirstSpawn = true;
- self freezecontrols(false);
- for (;;)
- {
- self waittill("spawned_player");
- if (isFirstSpawn)
- {
- if (self isHost())
- {
- thread overflowfix();
- }
- isFirstSpawn = false;
- }
- if (self isHost())
- {
- self iprintln("^2L1 & KNIFE = OPEN");
- }
- if (self isVerified())
- {
- }
- }
- }
- overflowfix()
- {
- level endon("game_ended");
- level.test = createServerFontString("default", 1.5);
- level.test setText("xkovx");
- level.test.alpha = 0;
- for (;;)
- {
- level waittill("textset");
- if (level.result >= 50)
- {
- level.test ClearAllTextAfterHudElem();
- level.result = 0;
- foreach (player in level.players)
- {
- if (player.menu.open == true)
- {
- player recreateText();
- }
- }
- }
- wait 0.01;
- }
- }
- recreateText()
- {
- self endon("disconnect");
- self endon("death");
- input = self.CurMenu;
- title = self.CurTitle;
- self thread submenu(input, title);
- }
- giveMenu()
- {
- if (self isVerified())
- {
- if (!self.MenuInit)
- {
- self.MenuInit = 1;
- self thread MenuInit();
- }
- }
- }
- isVerified()
- {
- if (self.status == "Host" || self.status == "Verified" || self.status == "VIP" || self.status == "Admin" || self.status == "Co-Host")
- {
- return true;
- }
- else
- {
- return false;
- }
- }
- drawText(text, font, fontScale, x, y, color, alpha, glowColor, glowAlpha, sort)
- {
- hud = self createFontString(font, fontScale);
- hud setText(text);
- hud.x = x;
- hud.y = y;
- hud.color = color;
- hud.alpha = alpha;
- hud.glowColor = glowColor;
- hud.glowAlpha = glowAlpha;
- hud.sort = sort;
- hud.alpha = alpha;
- level.result += 1;
- hud setText(text);
- level notify("textset");
- return hud;
- }
- drawShader(shader, x, y, width, height, color, alpha, sort)
- {
- hud = newClientHudElem(self);
- hud.elemtype = "icon";
- hud.color = color;
- hud.alpha = alpha;
- hud.sort = sort;
- hud.children = [];
- hud setParent(level.uiParent);
- hud setShader(shader, width, height);
- hud.x = x;
- hud.y = y;
- return hud;
- }
- changeVerificationMenu(player, verlevel)
- {
- if (player.status != verlevel && !player isHost())
- {
- player notify("statusChanged");
- player.status = verlevel;
- wait 0.05;
- player giveMenu();
- if (player.status == "Unverified")
- {
- player thread destroyMenu(player);
- }
- if (player isVerified())
- {
- self iprintln(getPlayerName(player) +" Is Now " + verificationToColor(verlevel));
- player iPrintln("You Are Now " + verificationToColor(verlevel));
- player iprintln("Press [{+speed_throw}] + [{+melee}] To Open Mod Menu");
- }
- }
- else
- {
- if (player isHost())
- self iPrintln("You Cannot Change The Access Level of The " + verificationToColor(player.status));
- else
- self iPrintln(getPlayerName(player) +" Is Already Set To " + verificationToColor(verlevel));
- }
- }
- changeVerification(player, verlevel)
- {
- player notify("statusChanged");
- player.status = verlevel;
- wait 0.05;
- player giveMenu();
- if (player.status == "Unverified")
- {
- player thread destroyMenu(player);
- }
- if (player isVerified())
- {
- player iPrintln("You Are Now " + verificationToColor(verlevel));
- player iprintln("Press [{+speed_throw}] + [{+melee}] To Open");
- }
- }
- getPlayerName(player)
- {
- playerName = getSubStr(player.name, 0, player.name.size);
- for (i = 0; i < playerName.size; i++)
- {
- if (playerName[i] == "]")
- break;
- }
- if (playerName.size != i)
- playerName = getSubStr(playerName, i + 1, playerName.size);
- return playerName;
- }
- verificationToNum(status)
- {
- if (status == "Host")
- return 5;
- if (status == "Co-Host")
- return 4;
- if (status == "Admin")
- return 3;
- if (status == "VIP")
- return 2;
- if (status == "Verified")
- return 1;
- else
- return 0;
- }
- verificationToColor(status)
- {
- if (status == "Host")
- return "^1Host";
- if (status == "Co-Host")
- return "^4Co-Host";
- if (status == "Admin")
- return "^6Admin";
- if (status == "VIP")
- return "^3VIP";
- if (status == "Verified")
- return "^2Verified";
- else
- return "^5Unverified";
- }
- Iif(bool, rTrue, rFalse)
- {
- if (bool)
- return rTrue;
- else
- return rFalse;
- }
- booleanReturnVal(bool, returnIfFalse, returnIfTrue)
- {
- if (bool)
- return returnIfTrue;
- else
- return returnIfFalse;
- }
- booleanOpposite(bool)
- {
- if (!isDefined(bool))
- return true;
- if (bool)
- return false;
- else
- return true;
- }
- test()
- {
- //Nothing here m8
- }
- CreateMenu()
- {
- self add_menu("Main Menu", undefined, "Unverified");
- self add_option("Main Menu", "Main Shit", ::submenu, "Main Shit", "Main Shit");
- self add_option("Main Menu", "Aimbot Menu", ::submenu, "Aimbot Menu", "Aimbot Menu");
- self add_option("Main Menu", "Host Menu", ::submenu, "Host Menu", "Host Menu");
- self add_option("Main Menu", "More In V2", ::submenu, "More In V2", "More In V2");
- self add_option("Main Menu", "More In V2", ::submenu, "More In V2", "More In V2");
- self add_option("Main Menu", "More In V2", ::submenu, "More In V2", "More In V2");
- self add_option("Main Menu", "More In V2", ::submenu, "More In V2", "More In V2");
- self add_option("Main Menu", "More In V2", ::submenu, "More In V2", "More In V2");
- self add_option("Main Menu", "Players Menu", ::submenu, "PlayersMenu", "Players Menu");
- self add_menu("Main Shit", "Main Menu", "VIP");
- self add_option("Main Shit", "Godmode", ::Function1);
- self add_option("Main Shit", "Godmode Off", ::Function2);
- self add_option("Main Shit", "Unlimited Ammo", ::Function3);
- self add_option("Main Shit", "Restart Map", ::Function4);
- self add_option("Main Shit", "Forge Mode", ::Function5);
- self add_option("Main Shit", "DoHeart Menu Name", ::Function6);
- self add_option("Main Shit", "Noclip", ::Function7);
- self add_option("Main Shit", "Speed 2x", ::Function8);
- self add_menu("Aimbot Menu", "Main Menu", "VIP");
- self add_option("Aimbot Menu", "Unfair Aimbot", ::Function9);
- self add_option("Aimbot Menu", "I Got Lazy", ::Function10);
- self add_option("Aimbot Menu", "I Got Lazy", ::Function11);
- self add_option("Aimbot Menu", "I Got Lazy", ::Function12);
- self add_option("Aimbot Menu", "I Got Lazy", ::Function13);
- self add_option("Aimbot Menu", "I Got Lazy", ::Function14);
- self add_option("Aimbot Menu", "I Got Lazy", ::Function15);
- self add_option("Aimbot Menu", "I Got Lazy", ::Function16);
- self add_menu("Host Menu", "Main Menu", "VIP");
- self add_option("Host Menu", "Force Host", ::Function17);
- self add_option("Host Menu", "More In V2", ::Function18);
- self add_option("Host Menu", "More In V2", ::Function19);
- self add_option("Host Menu", "More In V2", ::Function20);
- self add_option("Host Menu", "More In V2", ::Function21);
- self add_option("Host Menu", "More In V2", ::Function22);
- self add_option("Host Menu", "More In V2", ::Function23);
- self add_option("Host Menu", "More In V2", ::Function24);
- self add_menu("More In V2", "Main Menu", "VIP");
- self add_option("More In V2", "More In V2", ::Function25);
- self add_option("More In V2", "More In V2", ::Function26);
- self add_option("More In V2", "More In V2", ::Function27);
- self add_option("More In V2", "More In V2", ::Function28);
- self add_option("More In V2", "More In V2", ::Function29);
- self add_option("More In V2", "More In V2", ::Function30);
- self add_option("More In V2", "More In V2", ::Function31);
- self add_option("More In V2", "More In V2", ::Function32);
- self add_menu("More In V2", "Main Menu", "VIP");
- self add_option("More In V2", "More In V2", ::Function33);
- self add_option("More In V2", "More In V2", ::Function34);
- self add_option("More In V2", "More In V2", ::Function35);
- self add_option("More In V2", "More In V2", ::Function36);
- self add_option("More In V2", "More In V2", ::Function37);
- self add_option("More In V2", "More In V2", ::Function38);
- self add_option("More In V2", "More In V2", ::Function39);
- self add_option("More In V2", "More In V2", ::Function40);
- self add_menu("More In V2", "Main Menu", "VIP");
- self add_option("More In V2", "More In V2", ::Function41);
- self add_option("More In V2", "More In V2", ::Function42);
- self add_option("More In V2", "More In V2", ::Function43);
- self add_option("More In V2", "More In V2", ::Function44);
- self add_option("More In V2", "More In V2", ::Function45);
- self add_option("More In V2", "More In V2", ::Function46);
- self add_option("More In V2", "More In V2", ::Function47);
- self add_option("More In V2", "More In V2", ::Function48);
- self add_menu("More In V2", "Main Menu", "VIP");
- self add_option("More In V2", "More In V2", ::Function49);
- self add_option("More In V2", "More In V2", ::Function50);
- self add_option("More In V2", "More In V2", ::Function51);
- self add_option("More In V2", "More In V2", ::Function52);
- self add_option("More In V2", "More In V2", ::Function53);
- self add_option("More In V2", "More In V2", ::Function54);
- self add_option("More In V2", "More In V2", ::Function55);
- self add_option("More In V2", "More In V2", ::Function56);
- self add_menu("More In V2", "Main Menu", "VIP");
- self add_option("More In V2", "More In V2", ::Function57);
- self add_option("More In V2", "More In V2", ::Function58);
- self add_option("More In V2", "More In V2", ::Function59);
- self add_option("More In V2", "More In V2", ::Function60);
- self add_option("More In V2", "More In V2", ::Function61);
- self add_option("More In V2", "More In V2", ::Function62);
- self add_option("More In V2", "More In V2", ::Function63);
- self add_option("More In V2", "More In V2", ::Function64);
- self add_menu("PlayersMenu", "Main Menu", "Co-Host");
- for (i = 0; i < level.players.size; i++)
- { self add_menu("pOpt " + i, "PlayersMenu", "Co-Host");
- }
- }
- updatePlayersMenu()
- {
- self.menu.menucount["PlayersMenu"] = 0;
- for (i = 0; i < level.players.size; i++)
- {
- player = level.players[i];
- playerName = getPlayerName(player);
- playersizefixed = level.players.size - 1;
- if (self.menu.curs["PlayersMenu"] > playersizefixed)
- {
- self.menu.scrollerpos["PlayersMenu"] = playersizefixed;
- self.menu.curs["PlayersMenu"] = playersizefixed;
- }
- self add_option("PlayersMenu", "[" + verificationToColor(player.status) + "^7] " + playerName, ::submenu, "pOpt " + i, "[" + verificationToColor(player.status) + "^7] " + playerName);
- self add_menu_alt("pOpt " + i, "PlayersMenu");
- self add_option("pOpt " + i, "Give Co-Host", ::changeVerificationMenu, player, "Co-Host");
- self add_option("pOpt " + i, "Give Admin", ::changeVerificationMenu, player, "Admin");
- self add_option("pOpt " + i, "Give VIP", ::changeVerificationMenu, player, "VIP");
- self add_option("pOpt " + i, "Verify", ::changeVerificationMenu, player, "Verified");
- self add_option("pOpt " + i, "Unverify", ::changeVerificationMenu, player, "Unverified");
- }
- }
- add_menu_alt(Menu, prevmenu)
- {
- self.menu.getmenu[Menu] = Menu;
- self.menu.menucount[Menu] = 0;
- self.menu.previousmenu[Menu] = prevmenu;
- }
- add_menu(Menu, prevmenu, status)
- {
- self.menu.status[Menu] = status;
- self.menu.getmenu[Menu] = Menu;
- self.menu.scrollerpos[Menu] = 0;
- self.menu.curs[Menu] = 0;
- self.menu.menucount[Menu] = 0;
- self.menu.previousmenu[Menu] = prevmenu;
- }
- add_option(Menu, Text, Func, arg1, arg2)
- {
- Menu = self.menu.getmenu[Menu];
- Num = self.menu.menucount[Menu];
- self.menu.menuopt[Menu][Num] = Text;
- self.menu.menufunc[Menu][Num] = Func;
- self.menu.menuinput[Menu][Num] = arg1;
- self.menu.menuinput1[Menu][Num] = arg2;
- self.menu.menucount[Menu] += 1;
- }
- updateScrollbar()
- {
- self.menu.scroller MoveOverTime(0.10);
- self.menu.scroller.y = 68 + (self.menu.curs[self.menu.currentmenu] * 19.20);
- self.menu.scroller.archived = false;
- }
- openMenu()
- {
- self freezeControls(false);
- self setClientUiVisibilityFlag("hud_visible", 0);
- self StoreText("Main Menu", "Main Menu");
- self.menu.background FadeOverTime(0.30);
- self.menu.background.alpha = 255;
- self.menu.background.archived = false;
- self.menu.background1 FadeOverTime(0.30);
- self.menu.background1.alpha = 0.80;
- self.menu.background1.archived = false;
- self.swagtext FadeOverTime(0.3);
- self.swagtext.alpha = 0.90;
- self.menu.line MoveOverTime(0.30);
- self.menu.line.y = -550;
- self.menu.line.archived = false;
- self.menu.line2 MoveOverTime(0.30);
- self.menu.line2.y = -550;
- self.menu.line2.archived = false;
- self.menu.header FadeOverTime(0.3);
- self.menu.header.alpha = 0.90;
- self.menu.header2 FadeOverTime(0.3);
- self.menu.header2.alpha = 0.90;
- self updateScrollbar();
- self.menu.open = true;
- }
- closeMenu()
- {
- self.menu.options FadeOverTime(0.3);
- self.menu.options.alpha = 0;
- self setClientUiVisibilityFlag("hud_visible", 1);
- self.statuss FadeOverTime(0.3);
- self.statuss.alpha = 0;
- self.tez FadeOverTime(0.3);
- self.tez.alpha = 0;
- self.menu.background FadeOverTime(0.3);
- self.menu.background.alpha = 0;
- self.menu.background1 FadeOverTime(0.3);
- self.menu.background1.alpha = 0;
- self.swagtext FadeOverTime(0.30);
- self.swagtext.alpha = 0;
- self.menu.title FadeOverTime(0.30);
- self.menu.title.alpha = 0;
- self.menu.line MoveOverTime(0.30);
- self.menu.line.y = -550;
- self.menu.line2 MoveOverTime(0.30);
- self.menu.line2.y = -550;
- self.menu.header FadeOverTime(0.3);
- self.menu.header.alpha = 0;
- self.menu.header2 FadeOverTime(0.3);
- self.menu.header2.alpha = 0;
- self.menu.scroller MoveOverTime(0.30);
- self.menu.scroller.y = -510;
- self.menu.open = false;
- }
- destroyMenu(player)
- {
- player.MenuInit = false;
- closeMenu();
- wait 0.3;
- player.menu.options destroy();
- player.menu.background1 destroy();
- player.menu.scroller destroy();
- player.menu.scroller1 destroy();
- player.infos destroy();
- player.menu.line destroy();
- player.menu.line2 destroy();
- player.menu.title destroy();
- self.menu.header destroy();
- self.menu.header2 destroy();
- player notify("destroyMenu");
- }
- closeMenuOnDeath()
- {
- self endon("disconnect");
- self endon( "destroyMenu" );
- level endon("game_ended");
- for (;;)
- {
- self waittill("death");
- self.menu.closeondeath = true;
- self submenu("Main Menu", "Main Menu");
- closeMenu();
- self.menu.closeondeath = false;
- }
- }
- StoreShaders()
- {
- self.menu.background = self drawShader("zombies_rank_5", 0, -50, 200, 400,(0,0,0), 0, 0);
- self.menu.scroller = self drawShader("menu_camo_mtx_dragon", 0, -100, 200, 17, (0,1,0), 255, 1);
- self.menu.line = self drawShader("line_horizontal", 100, -1100, 3, 400, (0,1,0), 255, 2);
- self.menu.line2 = self drawShader("line_horizontal", -100, -1100, 3, 400, (0,1,0), 255, 3);
- self.menu.header = self drawShader("zombies_rank_5", 0, -35, 200, 70, (0,1,0), 0, 4);
- self.menu.header2 = self drawShader("line_horizontal", 0, 34, 200, 3, (0,1,0), 0, 5);
- }
- StoreText(menu, title)
- {
- self.menu.currentmenu = menu;
- string = "";
- self.menu.currentmenu = input;
- self.menu.title destroy();
- self.menu.title = drawText(title, "default", 1.6, 0, 35, (1,1,1), 0, (1,1,1), 255, 4);
- self.menu.title FadeOverTime(0.3);
- self.menu.title.alpha = 1;
- self.menu.title.archived = false;
- self notify("stopScale");
- self.tez destroy();
- self.tez = self createFontString("default", 2.5);
- self.tez setPoint( "CENTER", "TOP", 0, 5);
- self.tez setText(" Locus V1 ");
- self.tez FadeOverTime(0.3);
- self.tez.alpha = 1;
- self.tez.foreground = true;
- self.tez.archived = false;
- self.tez.glowAlpha = 0;
- for (i = 0; i < self.menu.menuopt[menu].size; i++)
- { string += self.menu.menuopt[menu][i] + "\n"; }
- self.statuss destroy();
- self.statuss = self createFontString("default", 1.3);
- self.statuss setPoint( "CENTER", "TOP", 0, 23);
- self.statuss setText("Locus Modz");
- self.statuss FadeOverTime(0.3);
- self.statuss.alpha = 1;
- self.statuss.foreground = true;
- self.statuss.archived = false;
- self.statuss.glowAlpha = 0;
- self.menu.options destroy();
- self.menu.options = drawText(string, "objective", 1.6, 265, 68, (1,1,1), 0, (0, 0, 0), 0, 4);
- self.menu.options FadeOverTime(0.3);
- self.menu.options.archived = false;
- self.menu.options.alpha = 1;
- self.menu.options setPoint( "LEFT", "LEFT", 275, -128 );
- }
- MenuInit()
- {
- self endon("disconnect");
- self endon( "destroyMenu" );
- level endon("game_ended");
- self.menu = spawnstruct();
- self.toggles = spawnstruct();
- self.menu.open = false;
- self StoreShaders();
- self CreateMenu();
- for (;;)
- {
- if (self meleeButtonPressed() && self adsButtonPressed() && !self.menu.open)
- {
- openMenu();
- }
- if (self.menu.open)
- {
- if (self useButtonPressed())
- {
- if (isDefined(self.menu.previousmenu[self.menu.currentmenu]))
- {
- self submenu(self.menu.previousmenu[self.menu.currentmenu]);
- }
- else
- {
- closeMenu();
- }
- wait 0.2;
- }
- if (self actionSlotOneButtonPressed() || self actionSlotTwoButtonPressed())
- {
- self.menu.curs[self.menu.currentmenu] += (Iif(self actionSlotTwoButtonPressed(), 1, -1));
- 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])));
- self updateScrollbar();
- }
- if (self jumpButtonPressed())
- {
- 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]]);
- wait 0.2;
- }
- }
- wait 0.05;
- }
- }
- submenu(input, title)
- {
- if (verificationToNum(self.status) >= verificationToNum(self.menu.status[input]))
- {
- self.menu.options destroy();
- if (input == "Main Menu")
- self thread StoreText(input, "Main Menu");
- else if (input == "PlayersMenu")
- {
- self updatePlayersMenu();
- self thread StoreText(input, "Players");
- }
- else
- self thread StoreText(input, title);
- self.CurMenu = input;
- self.CurTitle = title;
- self.menu.scrollerpos[self.CurMenu] = self.menu.curs[self.CurMenu];
- self.menu.curs[input] = self.menu.scrollerpos[input];
- level.result += 1;
- level notify("textset");
- if (!self.menu.closeondeath)
- {
- self updateScrollbar();
- }
- }
- else
- {
- player iPrintln("Only Players With ^2" + verificationToColor(self.menu.status[input]) + " ^7Can Access This Menu!");
- }
- }
- Function1()
- {
- self enableInvulnerability(); // On
- }
- Function2()
- {
- self enableInvulnerability(); // Off
- }
- Function3()
- {
- //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 ); } }
- }
- Function4()
- {
- map_restart( <boolKeepCurrentSettings> );
- }
- Function5()
- {
- 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; } }
- }
- Function6()
- {
- 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; } }
- }
- Function7()
- {
- 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; } }
- }
- Function8()
- {
- self setmovespeedscale(2);
- }
- Function9()
- {
- 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; } }
- }
- Function10()
- {
- //code here
- }
- Function11()
- {
- //code here
- }
- Function12()
- {
- //code here
- }
- Function13()
- {
- //code here
- }
- Function14()
- {
- //code here
- }
- Function15()
- {
- //code here
- }
- Function16()
- {
- //code here
- }
- Function17()
- {
- 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]"); } }
- }
- Function18()
- {
- //code here
- }
- Function19()
- {
- //code here
- }
- Function20()
- {
- //code here
- }
- Function21()
- {
- //code here
- }
- Function22()
- {
- //code here
- }
- Function23()
- {
- //code here
- }
- Function24()
- {
- //code here
- }
- Function25()
- {
- //code here
- }
- Function26()
- {
- //code here
- }
- Function27()
- {
- //code here
- }
- Function28()
- {
- //code here
- }
- Function29()
- {
- //code here
- }
- Function30()
- {
- //code here
- }
- Function31()
- {
- //code here
- }
- Function32()
- {
- //code here
- }
- Function33()
- {
- //code here
- }
- Function34()
- {
- //code here
- }
- Function35()
- {
- //code here
- }
- Function36()
- {
- //code here
- }
- Function37()
- {
- //code here
- }
- Function38()
- {
- //code here
- }
- Function39()
- {
- //code here
- }
- Function40()
- {
- //code here
- }
- Function41()
- {
- //code here
- }
- Function42()
- {
- //code here
- }
- Function43()
- {
- //code here
- }
- Function44()
- {
- //code here
- }
- Function45()
- {
- //code here
- }
- Function46()
- {
- //code here
- }
- Function47()
- {
- //code here
- }
- Function48()
- {
- //code here
- }
- Function49()
- {
- //code here
- }
- Function50()
- {
- //code here
- }
- Function51()
- {
- //code here
- }
- Function52()
- {
- //code here
- }
- Function53()
- {
- //code here
- }
- Function54()
- {
- //code here
- }
- Function55()
- {
- //code here
- }
- Function56()
- {
- //code here
- }
- Function57()
- {
- //code here
- }
- Function58()
- {
- //code here
- }
- Function59()
- {
- //code here
- }
- Function60()
- {
- //code here
- }
- Function61()
- {
- //code here
- }
- Function62()
- {
- //code here
- }
- Function63()
- {
- //code here
- }
- Function64()
- {
- //code here
- }
- vector_scal(vec, scale)
- {
- vec = (vec[0] * scale, vec[1] * scale, vec[2] * scale);
- return vec;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement