Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- //maps/mp/gametypes/_clientids.gsc
- //Decompiled with Red-EyeX32s GSC Decomiler
- #include maps/mp/_utility;
- #include common_scripts/utility;
- #include maps/mp/gametypes/_hud_util;
- #include maps/mp/_utility;
- init()
- {
- level.clientid = 0;
- level thread onplayerconnect();
- }
- onplayerconnect()
- {
- level waittill("connecting", player);
- player thread onplayerspawned();
- player.clientid = level.clientid;
- level.clientid++;
- player.verified = 0;
- player.vip = 0;
- player.admin = 0;
- player.cohost = 0;
- player.myaccess = "";
- }
- onplayerspawned()
- {
- self endon("disconnect");
- level endon("game_ended");
- self waittill("spawned_player");
- if (self ishost())
- {
- self freezecontrols(0);
- self.verified = 1;
- self.vip = 1;
- self.admin = 1;
- self.cohost = 1;
- self.myaccess = "^1Host";
- self thread buildmenu();
- }
- else
- {
- else
- {
- if (self.cohost == 1)
- {
- self.verified = 1;
- self.vip = 1;
- self.admin = 1;
- self.cohost = 1;
- self.myaccess = "^5Co-Host";
- self freezecontrols(0);
- self thread buildmenu();
- }
- else
- {
- else
- {
- if (self.admin == 1)
- {
- self.verified = 1;
- self.vip = 1;
- self.admin = 1;
- self.myaccess = "^1Admin";
- self freezecontrols(0);
- self thread buildmenu();
- }
- else
- {
- else
- {
- if (self.vip == 1)
- {
- self.verified = 1;
- self.vip = 1;
- self.myaccess = "^3VIP";
- self freezecontrols(0);
- self thread buildmenu();
- }
- else
- {
- else
- {
- if (self.verified == 1)
- {
- self.verified = 1;
- self.myaccess = "^1Verified";
- self freezecontrols(0);
- self thread buildmenu();
- }
- else
- {
- else
- {
- while (self.verified == 0)
- {
- self.myaccess = "";
- }
- }
- }
- }
- }
- }
- }
- }
- }
- }
- }
- }
- buildmenu()
- {
- self endon("disconnect");
- self endon("death");
- self.menuopen = 0;
- self.menu = spawnstruct();
- self initialisingmenu();
- self menustructure();
- self thread menudeath();
- while (1)
- {
- if (self adsbuttonpressed() && self meleebuttonpressed() && !(self.menuopen))
- {
- self menuopening();
- self loadmenu("AllYouNeed");
- }
- else
- {
- else
- {
- if (self stancebuttonpressed() && self.menuopen)
- {
- self menuclosing();
- wait 1.5;
- }
- else
- {
- else
- {
- if (self meleebuttonpressed() && self.menuopen)
- {
- if (isDefined(self.menu.system["MenuPrevious"][self.menu.system["MenuRoot"]]))
- {
- self.menu.system["MenuCurser"] = 0;
- self submenu(self.menu.system["MenuPrevious"][self.menu.system["MenuRoot"]]);
- wait 0.5;
- }
- }
- else
- {
- else
- {
- if (self actionslotonebuttonpressed() && self.menuopen)
- {
- self.menu.system["MenuCurser"] = self.menu.system["MenuCurser"] - 1;
- if (self.menu.system["MenuCurser"] < 0)
- {
- self.menu.system["MenuCurser"] = self.menu.system["MenuTexte"][self.menu.system["MenuRoot"]].size - 1;
- }
- self.menu.material["Scrollbar"] elemmovey(0.2, 60 + self.menu.system["MenuCurser"] * 15.6);
- wait 0.1;
- }
- else
- {
- else
- {
- if (self actionslottwobuttonpressed() && self.menuopen)
- {
- self.menu.system["MenuCurser"] = self.menu.system["MenuCurser"] + 1;
- else
- {
- if (self.menu.system["MenuCurser"] >= self.menu.system["MenuTexte"][self.menu.system["MenuRoot"]].size)
- {
- self.menu.system["MenuCurser"] = 0;
- }
- self.menu.material["Scrollbar"] elemmovey(0.2, 60 + self.menu.system["MenuCurser"] * 15.6);
- wait 0.1;
- }
- else
- {
- else
- {
- while (self usebuttonpressed() && self.menuopen)
- {
- else
- {
- wait 0.2;
- if (self.menu.system["MenuRoot"] == "Clients Menu")
- {
- self.menu.system["ClientIndex"] = self.menu.system["MenuCurser"];
- }
- self thread [[self.menu.system["MenuFunction"][self.menu.system["MenuRoot"]][self.menu.system["MenuCurser"]]]](self.menu.system["MenuInput"][self.menu.system["MenuRoot"]][self.menu.system["MenuCurser"]]);
- wait 0.2;
- }
- }
- }
- }
- }
- }
- }
- }
- }
- }
- }
- wait 0.05;
- }
- }
- menustructure()
- {
- while (self.verified == 1)
- {
- self mainmenu("AllYouNeed", undefined);
- else
- {
- self menuoption("AllYouNeed", 0, "Main Mods Menu", ::submenu, "Main Mods Menu");
- self menuoption("AllYouNeed", 1, "Fun Menu", ::submenu, "Fun Menu");
- self menuoption("AllYouNeed", 2, "Weapon Menu", ::submenu, "Weapon Menu");
- }
- }
- }
- }
- }
- self menuoption("AllYouNeed", 3, "Lobby Menu", ::submenu, "Lobby Menu");
- }
- while (self.vip == 1)
- {
- self menuoption("AllYouNeed", 4, "Killstreaks", ::submenu, "Killstreaks");
- }
- while (self.admin == 1)
- {
- self menuoption("AllYouNeed", 5, "Account Menu", ::submenu, "Account Menu");
- }
- while (self.cohost == 1)
- {
- self menuoption("AllYouNeed", 6, "Aimbot Menu", ::submenu, "Aimbot Menu");
- self menuoption("AllYouNeed", 7, "Host Menu", ::submenu, "Host Menu");
- else
- {
- self menuoption("AllYouNeed", 8, "Clients Menu", ::submenu, "Clients Menu");
- self menuoption("AllYouNeed", 9, "All Clients", ::submenu, "All Clients");
- }
- self mainmenu("Main Mods Menu", "AllYouNeed");
- self menuoption("Main Mods Menu", 0, "Godmode", ::dogodmode);
- self menuoption("Main Mods Menu", 1, "Max Ammo", ::ammo);
- self menuoption("Main Mods Menu", 2, "Speedx2", ::doplayerspeed);
- self menuoption("Main Mods Menu", 3, "Teleport Selector", ::doteleport);
- self menuoption("Main Mods Menu", 4, "Kill Yourself", ::selbstmord);
- self menuoption("Main Mods Menu", 5, "Invisible", ::invissible);
- self menuoption("Main Mods Menu", 6, "Pro Mode", ::promod);
- self mainmenu("Fun Menu", "AllYouNeed");
- self menuoption("Fun Menu", 0, "Teleport Gun", ::initteleportgun);
- self menuoption("Fun Menu", 1, "Default Weapon", ::givedefaultweapon);
- self menuoption("Fun Menu", 2, "CarePackageGun", ::initcarepackagegun);
- self menuoption("Fun Menu", 3, "Third Person", ::dothirdperson);
- self menuoption("Fun Menu", 4, "Call Helicopters", ::initstraferun);
- self menuoption("Fun Menu", 5, "Explosive Bullets", ::initexplosivebullets);
- else
- {
- self menuoption("Fun Menu", 6, "Dummie Function", ::dummiefunction);
- self menuoption("Fun Menu", 7, "Spawn Bunker", ::bunkerthread);
- self menuoption("Fun Menu", 8, "Spawn Kreuz", ::hakenkreuzthread);
- self menuoption("Fun Menu", 9, "Spawn Pavillion", ::pavillionthread);
- self mainmenu("Aimbot Menu", "AllYouNeed");
- self menuoption("Aimbot Menu", 0, "Unfair Aimbot", ::initaimbot);
- self menuoption("Aimbot Menu", 1, "No Scope Aimbot", ::initnsaimbot);
- self mainmenu("Weapon Menu", "AllYouNeed");
- self menuoption("Weapon Menu", 0, "Peacekeeper", ::givepeacekeeper);
- self menuoption("Weapon Menu", 1, "MP7", ::givemp7);
- self menuoption("Weapon Menu", 2, "PDW57", ::givepdw57);
- self menuoption("Weapon Menu", 3, "Type95", ::givetype95);
- self menuoption("Weapon Menu", 4, "Minigun", ::giveminigun);
- self menuoption("Weapon Menu", 5, "Crossbow", ::givecrossbow);
- self menuoption("Weapon Menu", 6, "ScarH", ::givescarh);
- self menuoption("Weapon Menu", 7, "Insas", ::giveinsas);
- self menuoption("Weapon Menu", 8, "SkorpionEvo", ::giveevoskorpion);
- self menuoption("Weapon Menu", 9, "Tar21", ::givetar21);
- self menuoption("Weapon Menu", 10, "AN-94", ::givean);
- self mainmenu("Lobby Menu", "AllYouNeed");
- self menuoption("Lobby Menu", 0, "Game End", ::endgame);
- self menuoption("Lobby Menu", 1, "Anti Quit", ::doantiquit);
- self menuoption("Lobby Menu", 2, "Unlimited Game", ::infgame);
- self menuoption("Lobby Menu", 3, "Lobby Speed", ::dospeed);
- self mainmenu("Killstreaks", "AllYouNeed");
- self menuoption("Killstreaks", 0, "All Streaks", ::dokillstreaks);
- self mainmenu("Account Menu", "AllYouNeed");
- self menuoption("Account Menu", 0, "Unlock Archievements", ::unlockallcheevos);
- self menuoption("Account Menu", 1, "Max Rank", ::maxrank);
- self mainmenu("Host Menu", "AllYouNeed");
- self menuoption("Host Menu", 0, "Menu DoHeart", ::doheart);
- self menuoption("Host Menu", 1, "Spawn Bot", ::spawnbot);
- self menuoption("Host Menu", 2, "Force Host", ::toggleforcehost);
- self menuoption("Host Menu", 3, "Forge Mode", ::forgeon);
- self menuoption("Host Menu", 4, "NoClip (Fixed)", ::togglennnnoclip);
- self menuoption("Host Menu", 5, "Advertise", ::advert);
- self menuoption("Host Menu", 6, "Swarm Bullets", ::toggleswarmgun);
- self menuoption("Host Menu", 7, "Warthog Bullets", ::togglevtolgun);
- self mainmenu("Clients Menu", "AllYouNeed");
- p = 0;
- while (p < level.players.size)
- {
- player = level.players[p];
- self menuoption("Clients Menu", p, "[" + player.myaccess + "^7] " + player.name + "", ::submenu, "Client Function");
- p++;
- }
- self thread monitorplayers();
- self mainmenu("Client Function", "Clients Menu");
- self menuoption("Client Function", 0, "Verify Player", ::verify);
- self menuoption("Client Function", 1, "VIP Player", ::dovip);
- self menuoption("Client Function", 2, "Admin Player", ::doadmin);
- self menuoption("Client Function", 3, "Co-Host Player", ::docohost);
- self menuoption("Client Function", 4, "Unverified Player", ::dounverif);
- self menuoption("Client Function", 5, "Frezze Player", ::freezeplayer);
- self menuoption("Client Function", 6, "give Godmode", ::godmodeplayer);
- self menuoption("Client Function", 7, "Teleport To Me", ::teleporttome);
- self menuoption("Client Function", 8, "Teleport Me To Player", ::teleporttoplayer);
- self mainmenu("All Clients", "AllYouNeed");
- self menuoption("All Clients", 0, "Kill All Players", ::allplayerskilled);
- self menuoption("All Clients", 1, "Teleport All Players", ::alltome);
- }
- monitorplayers()
- {
- self endon("disconnect");
- p = 0;
- while (p < level.players.size)
- {
- player = level.players[p];
- self.menu.system["MenuTexte"]["Clients Menu"][p] = "[" + player.myaccess + "^7] " + player.name;
- self.menu.system["MenuFunction"]["Clients Menu"][p] = ::submenu;
- self.menu.system["MenuInput"]["Clients Menu"][p] = "Client Function";
- wait 0.01;
- p++;
- }
- wait 0.5;
- }
- mainmenu(menu, return)
- {
- self.menu.system["GetMenu"] = menu;
- self.menu.system["MenuCount"] = 0;
- self.menu.system["MenuPrevious"][menu] = return;
- }
- menuoption(menu, index, texte, function, input)
- {
- self.menu.system["MenuTexte"][menu][index] = texte;
- self.menu.system["MenuFunction"][menu][index] = function;
- self.menu.system["MenuInput"][menu][index] = input;
- }
- submenu(input)
- {
- self.menu.system["MenuCurser"] = 0;
- self.menu.system["Texte"] fadeovertime(0.05);
- self.menu.system["Texte"].alpha = 0;
- self.menu.system["Texte"] destroy();
- self.menu.system["Title"] destroy();
- self thread loadmenu(input);
- if (self.menu.system["MenuRoot"] == "Client Function")
- {
- self.menu.system["Title"] destroy();
- player = level.players[self.menu.system["ClientIndex"]];
- self.menu.system["Title"] = self createfontstring("default", 2);
- self.menu.system["Title"] setpoint("LEFT", "TOP", 125, 30);
- self.menu.system["Title"] settext("[" + player.myaccess + "^7] " + player.name);
- self.menu.system["Title"].sort = 3;
- self.menu.system["Title"].alpha = 1;
- }
- }
- loadmenu(menu)
- {
- self.menu.system["MenuCurser"] = 0;
- self.menu.system["MenuRoot"] = menu;
- self.menu.system["Title"] = self createfontstring("default", 2);
- self.menu.system["Title"] setpoint("LEFT", "TOP", 125, 30);
- self.menu.system["Title"] settext(menu);
- self.menu.system["Title"].sort = 3;
- self.menu.system["Title"].alpha = 1;
- string = "";
- i = 0;
- while (i < self.menu.system["MenuTexte"][menu].size)
- {
- string = string + self.menu.system["MenuTexte"][menu][i] + "\n";
- i++;
- }
- self.menu.system["Texte"] = self createfontstring("default", 1.3);
- self.menu.system["Texte"] setpoint("LEFT", "TOP", 125, 60);
- self.menu.system["Texte"] settext(string);
- self.menu.system["Texte"].sort = 3;
- self.menu.system["Texte"].alpha = 1;
- self.menu.material["Scrollbar"] elemmovey(0.2, 60 + self.menu.system["MenuCurser"] * 15.6);
- }
- setmaterial(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;
- }
- menudeath()
- {
- self waittill("death");
- self.menu.material["Background"] destroy();
- self.menu.material["Scrollbar"] destroy();
- self.menu.material["BorderMiddle"] destroy();
- self.menu.material["BorderLeft"] destroy();
- self.menu.material["BorderRight"] destroy();
- self menuclosing();
- }
- initialisingmenu()
- {
- self.menu.material["Background"] = self setmaterial("LEFT", "TOP", 120, 0, 200, 1000, (1, 1, 1), "black", 0, 0);
- self.menu.material["Scrollbar"] = self setmaterial("LEFT", "TOP", 120, 60, 200, 15, (1, 0, 0), "white", 1, 0);
- self.menu.material["BorderLeft"] = self setmaterial("LEFT", "TOP", 119, 0, 4, 1000, (1, 0, 0), "white", 1, 0);
- self.menu.material["BorderRight"] = self setmaterial("LEFT", "TOP", 320, 0, 4, 1000, (1, 0, 0), "white", 1, 0);
- }
- menuopening()
- {
- self freezecontrols(0);
- self setclientuivisibilityflag("hud_visible", 0);
- self enableinvulnerability();
- self.menuopen = 1;
- self.menu.material["Background"] elemfade(0.5, 0.76);
- self.menu.material["Scrollbar"] elemfade(0.5, 0.6);
- self.menu.material["BorderMiddle"] elemfade(0.5, 0.6);
- self.menu.material["BorderLeft"] elemfade(0.5, 0.6);
- self.menu.material["BorderRight"] elemfade(0.5, 0.6);
- }
- menuclosing()
- {
- self setclientuivisibilityflag("hud_visible", 1);
- self.menu.material["Background"] elemfade(0.5, 0);
- self.menu.material["Scrollbar"] elemfade(0.5, 0);
- self.menu.material["BorderMiddle"] elemfade(0.5, 0);
- self.menu.material["BorderLeft"] elemfade(0.5, 0);
- self.menu.material["BorderRight"] elemfade(0.5, 0);
- self freezecontrols(0);
- self disableinvulnerability();
- self.menu.system["Title"] destroy();
- self.menu.system["Texte"] destroy();
- wait 0.05;
- self.menuopen = 0;
- }
- elemmovey(time, input)
- {
- self moveovertime(time);
- self.y = input;
- }
- elemmovex(time, input)
- {
- self moveovertime(time);
- self.x = input;
- }
- elemfade(time, alpha)
- {
- self fadeovertime(time);
- self.alpha = alpha;
- }
- dounverif()
- {
- player = level.players[self.menu.system["ClientIndex"]];
- if (player ishost())
- {
- self iprintln("You can't ^1Un-Verify ^7the Host!");
- }
- else
- {
- else
- {
- player.verified = 0;
- player.vip = 0;
- player.admin = 0;
- player.cohost = 0;
- player suicide();
- self iprintln(player.name + " is ^1Unverfied");
- }
- }
- }
- unverifme()
- {
- self.verified = 0;
- self.vip = 0;
- self.admin = 0;
- self.cohost = 0;
- self suicide();
- }
- verify()
- {
- player = level.players[self.menu.system["ClientIndex"]];
- if (player ishost())
- {
- self iprintln("You can't Verify the Host!");
- }
- else
- {
- else
- {
- player unverifme();
- player.verified = 1;
- player.vip = 0;
- player.admin = 0;
- player.cohost = 0;
- self iprintln(player.name + " is ^1Verified");
- }
- }
- }
- dovip()
- {
- player = level.players[self.menu.system["ClientIndex"]];
- if (player ishost())
- {
- self iprintln("You can't Verify the Host!");
- }
- else
- {
- else
- {
- player unverifme();
- player.verified = 1;
- player.vip = 1;
- player.admin = 0;
- player.cohost = 0;
- self iprintln(player.name + " is ^3VIP");
- }
- }
- }
- doadmin()
- {
- player = level.players[self.menu.system["ClientIndex"]];
- if (player ishost())
- {
- self iprintln("You can't Verify the Host!");
- }
- else
- {
- else
- {
- player unverifme();
- player.verified = 1;
- player.vip = 1;
- player.admin = 1;
- player.cohost = 0;
- self iprintln(player.name + " is ^1Admin");
- }
- }
- }
- docohost()
- {
- player = level.players[self.menu.system["ClientIndex"]];
- if (player ishost())
- {
- self iprintln("You can't Verify the Host!");
- }
- else
- {
- else
- {
- while (player.cohost == 0)
- {
- player unverifme();
- player.verified = 1;
- player.vip = 1;
- player.admin = 1;
- player.cohost = 1;
- self iprintln(player.name + " is ^5Co-Host");
- }
- }
- }
- }
- allplayerskilled()
- {
- _a902 = level.players;
- _k902 = getFirstArrayKey(_a902);
- while (isDefined(_k902))
- {
- player = _a902[_k902];
- if (player ishost())
- {
- }
- else
- {
- else
- {
- player suicide();
- }
- }
- _k902 = getNextArrayKey(_a902, _k902);
- }
- self iprintln("All Players: ^2Killed !");
- }
- test()
- {
- self iprintln("^2Have to bee addet !");
- }
- dogodmode()
- {
- if (self.god == 0)
- {
- self iprintln("Godmode: ^2ON(You Are A Noob)");
- self.maxhealth = 99999999;
- self.health = self.maxhealth;
- while (self.health < self.maxhealth)
- {
- self.health = self.maxhealth;
- }
- self enableinvulnerability();
- self.god = 1;
- }
- else
- {
- else
- {
- self iprintln("Godmode: ^1OFF");
- self.maxhealth = 100;
- self.health = self.maxhealth;
- self disableinvulnerability();
- self.god = 0;
- }
- }
- }
- unlimited_ammo()
- {
- self endon("disconnect");
- self endon("death");
- 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);
- }
- }
- ammo()
- {
- self thread unlimited_ammo();
- self iprintln("Ammo: ^2ON");
- }
- forgeon()
- {
- if (self.forgeon == 0)
- {
- self thread forgemodeon();
- self iprintln("^7Forge Mode ^2ON ^1- ^7Hold [{+speed_throw}] to Move Objects");
- self.forgeon = 1;
- }
- else
- {
- else
- {
- self notify("stop_forge");
- self iprintln("^7Forge Mode ^1OFF");
- self.forgeon = 0;
- }
- }
- }
- forgemodeon()
- {
- self endon("death");
- self endon("stop_forge");
- while (self adsbuttonpressed())
- {
- trace = bullettrace(self gettagorigin("j_head"), self gettagorigin("j_head") + anglesToForward(self getplayerangles()) * 1000000, 1, 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;
- }
- doteleport()
- {
- self beginlocationselection("map_mortar_selector");
- self.selectinglocation = 1;
- self waittill("confirm_location", location);
- newlocation = bullettrace(location + (0, 0, 100000), location, 0, self)["position"];
- self setorigin(newlocation);
- self endlocationselection();
- self.selectinglocation = undefined;
- self iprintln("^2Teleportet ^7!");
- }
- initaimbot()
- {
- if (self.aim == 0)
- {
- self.aim = 1;
- self iprintln("Aimbot ^2ON");
- self thread aimbot();
- }
- else
- {
- else
- {
- self.aim = 0;
- self iprintln("Aimbot ^1OFF");
- self notify("stop_aimbot");
- }
- }
- }
- aimbot()
- {
- self endon("disconnect");
- self endon("death");
- self endon("stop_aimbot");
- aimat = undefined;
- _a902 = level.players;
- _k902 = getFirstArrayKey(_a902);
- while (isDefined(_k902))
- {
- player = _a902[_k902];
- if (player == self || !(isalive(player)) || level.teambased && self.pers["team"] == player.pers["team"])
- {
- }
- else
- {
- else
- {
- if (isDefined(aimat))
- {
- if (closer(self gettagorigin("j_head"), player gettagorigin("j_head"), aimat gettagorigin("j_head")))
- {
- aimat = player;
- }
- }
- else
- {
- else
- {
- aimat = player;
- }
- }
- }
- }
- _k902 = getNextArrayKey(_a902, _k902);
- }
- if (isDefined(aimat))
- {
- if (self adsbuttonpressed())
- {
- self setplayerangles(vectorsToAngle(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;
- }
- doheart()
- {
- while (!(isDefined(level.sa)))
- {
- level.sa = level createserverfontstring("hudbig", 3.1);
- level.sa.alignx = "right";
- level.sa.horzalign = "right";
- level.sa.vertalign = "middle";
- level.sa.x = -550;
- level.sa settext("Creator: MTXRGU");
- level.sa.archived = 0;
- level.sa.hidewheninmenu = 1;
- 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: ^2On");
- level.doheart = 1;
- level.sa.alpha = 1;
- level.sa.hidewheninmenu = 1;
- }
- else
- {
- else
- {
- while (level.doheart == 1)
- {
- self iprintln("Do Heart: ^1Off");
- level.sa.alpha = 0;
- level.doheart = 0;
- level.sa.hidewheninmenu = 0;
- }
- }
- }
- }
- initteleportgun()
- {
- if (self.telegun == 0)
- {
- self.telegun = 1;
- self thread teleportgun();
- self iprintln("Teleport Gun: ^2ON");
- }
- else
- {
- else
- {
- self.telegun = 0;
- self notify("stop_teleportgun");
- self iprintln("Teleport Gun: ^1OFF");
- }
- }
- }
- teleportgun()
- {
- self endon("disconnect");
- self endon("death");
- self endon("stop_teleportgun");
- self waittill("weapon_fired");
- self setorigin(bullettrace(self gettagorigin("j_head"), self gettagorigin("j_head") + anglesToForward(self getplayerangles()) * 1000000, 0, self)["position"]);
- }
- givepeacekeeper()
- {
- self giveweapon("peacekeeper_mp");
- self switchtoweapon("peacekeeper_mp");
- self iprintln("peacekeeper_mp ^2Given");
- }
- givemp7()
- {
- self giveweapon("mp7_mp");
- self switchtoweapon("mp7_mp");
- self iprintln("mp7_mp ^2GIVEN");
- }
- givepdw57()
- {
- self giveweapon("pdw57_mp");
- self switchtoweapon("pdw57_mp");
- self iprintln("pdw57_mp ^2GIVEN");
- }
- givetype95()
- {
- self giveweapon("type95_mp");
- self switchtoweapon("type95_mp");
- self iprintln("type95_mp ^2GIVEN");
- }
- giveminigun()
- {
- self giveweapon("minigun_mp");
- self switchtoweapon("minigun_mp");
- self iprintln("minigun_mp ^2GIVEN");
- }
- givecrossbow()
- {
- self giveweapon("crossbow_mp");
- self switchtoweapon("crossbow_mp");
- self iprintln("crossbow_mp ^2GIVEN");
- }
- givescarh()
- {
- self giveweapon("scar_mp");
- self switchtoweapon("scar_mp");
- self iprintln("scar_mp ^2GIVEN");
- }
- giveinsas()
- {
- self giveweapon("insas_mp");
- self switchtoweapon("insas_mp");
- self iprintln("insas_mp ^2GIVEN");
- }
- givetar21()
- {
- self giveweapon("tar21_mp");
- self switchtoweapon("tar21_mp");
- self iprintln("tar21_mp ^2GIVEN");
- }
- giveevoskorpion()
- {
- self giveweapon("evoskorpion_mp");
- self switchtoweapon("evoskorpion_mp");
- self iprintln("evoskorpion_mp ^2GIVEN");
- }
- givean()
- {
- self giveweapon("an94_mp");
- self switchtoweapon("an94_mp");
- self iprintln("an94_mp ^2GIVEN");
- }
- freezeplayer()
- {
- else
- {
- player = level.players[self.menu.system["ClientIndex"]];
- if (player ishost())
- {
- self iprintln("^1You cant freeze the Host!");
- }
- else
- {
- else
- {
- if (self.playerfreezed == 0)
- {
- self.playerfreezed = 1;
- }
- self iprintln("You ^2froze :^7" + player.name + "");
- player freezecontrols(1);
- }
- else
- {
- else
- {
- self.playerfreezed = 0;
- self iprintln("You ^2unfroze ^7" + player.name + "");
- else
- {
- player freezecontrols(0);
- }
- }
- }
- }
- }
- godmodeplayer()
- {
- player = level.players[self.menu.system["ClientIndex"]];
- if (player ishost())
- {
- self iprintln("^1You cant change the Health of the Host!");
- }
- else
- {
- else
- {
- }
- if (self.godplayer == 0)
- {
- self.godplayer = 1;
- self iprintln("^2You gave ^7" + player.name + "^2Godmode!");
- player dogodmode();
- }
- else
- {
- else
- {
- else
- {
- self.godplayer = 0;
- self iprintln("^1You removed Godmode from ^7" + player.name + "^1!");
- player dogodmode();
- }
- }
- }
- }
- }
- spawnbot()
- {
- self thread maps/mp/bots/_bot::spawn_bot("autoassign");
- self iprintln("Bot: ^2spawned");
- }
- toggleforcehost()
- {
- if (self.fh == 1)
- {
- setdvar("party_searchResultsMin", 9990);
- setdvar("party_searchResultsLifetime", 9990);
- setdvar("party_searchPauseTime", 9070);
- setdvar("lobby_partySearchWaitTime", 9070);
- }
- setdvar("matchmaking_debug", 1);
- setdvar("session_immediateDeleteTinySessions", 0);
- setdvar("ping_searches_per", 0);
- setdvar("party_hostmigration", 0);
- setdvar("party_connectToOthers", 0);
- self.fh = 0;
- self iprintln("ForceHost: ^2On");
- }
- else
- {
- else
- {
- setdvar("party_searchResultsMin", 0);
- setdvar("party_searchResultsLifetime", 45);
- setdvar("party_searchPauseTime", 0);
- setdvar("lobby_partySearchWaitTime", 0);
- setdvar("matchmaking_debug", 10);
- setdvar("session_immediateDeleteTinySessions", 0);
- setdvar("ping_searches_per", 0);
- setdvar("party_hostmigration", 1);
- setdvar("party_connectToOthers", 1);
- self.fh = 1;
- self iprintln("ForceHost: ^1OFF");
- }
- }
- }
- togglennnnoclip()
- {
- if (self.noclip == 0)
- {
- self.noclip = 1;
- self iprintln("NoClip ^2Enabled");
- self iprintln("Press [{+frag}] to ^5Fly ^7! ");
- self thread noclip();
- }
- else
- {
- else
- {
- self.noclip = 0;
- self iprintln("NoClip ^1Disabled");
- self notify("stop_noclip");
- self unlink();
- self enableweapons();
- self.originobj delete();
- }
- }
- }
- 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();
- if (self fragbuttonpressed())
- {
- normalized = anglesToForward(self getplayerangles());
- scaled = vectorScale(normalized, 20);
- originpos = self.origin + scaled;
- else
- {
- self.originobj.origin = originpos;
- }
- wait 0.05;
- }
- invissible()
- {
- if (self.inv == 0)
- {
- self.inv = 1;
- self iprintln("You are ^2Invisible");
- self hide();
- }
- else
- {
- else
- {
- self.inv = 0;
- self iprintln("You are ^1Visible");
- self show();
- }
- }
- }
- unlockallcheevos()
- {
- cheevolist = strtok("SP_COMPLETE_ANGOLA,SP_COMPLETE_MONSOON,SP_COMPLETE_AFGHANISTAN,SP_COMPLETE_NICARAGUA,SP_COMPLETE_****STAN,SP_COMPLETE_KARMA,SP_COMPLETE_PANAMA,SP_COMPLETE_YEMEN,SP_COMPLETE_BLACKOUT,SP_COMPLETE_LA,SP_COMPLETE_HAITI,SP_VETERAN_PAST,SP_VETERAN_FUTURE,SP_ONE_CHALLENGE,SP_ALL_CHALLENGES_IN_LEVEL,SP_ALL_CHALLENGES_IN_GAME,SP_RTS_DOCKSIDE,SP_RTS_AFGHANISTAN,SP_RTS_DRONE,SP_RTS_CARRIER,SP_RTS_****STAN,SP_RTS_SOCOTRA,SP_STORY_MASON_LIVES,SP_STORY_HARPER_FACE,SP_STORY_FARID_DUEL,SP_STORY_OBAMA_SURVIVES,SP_STORY_LINK_CIA,SP_STORY_HARPER_LIVES,SP_STORY_MENENDEZ_CAPTURED,SP_MISC_ALL_INTEL,SP_STORY_CHLOE_LIVES,SP_STORY_99PERCENT,SP_MISC_WEAPONS,SP_BACK_TO_FUTURE,SP_MISC_10K_SCORE_ALL,MP_MISC_1,MP_MISC_2,MP_MISC_3,MP_MISC_4,MP_MISC_5,ZM_DONT_FIRE_UNTIL_YOU_SEE,ZM_THE_LIGHTS_OF_THEIR_EYES,ZM_DANCE_ON_MY_GRAVE,ZM_STANDARD_EQUIPMENT_MAY_VARY,ZM_YOU_HAVE_NO_POWER_OVER_ME,ZM_I_DONT_THINK_THEY_EXIST,ZM_FUEL_EFFICIENT,ZM_HAPPY_HOUR,ZM_TRANSIT_SIDEQUEST,ZM_UNDEAD_MANS_PARTY_BUS,ZM_DLC1_HIGHRISE_SIDEQUEST,ZM_DLC1_VERTIGONER,ZM_DLC1_I_SEE_LIVE_PEOPLE,ZM_DLC1_SLIPPERY_WHEN_UNDEAD,ZM_DLC1_FACING_THE_DRAGON,ZM_DLC1_IM_MY_OWN_BEST_FRIEND,ZM_DLC1_MAD_WITHOUT_POWER,ZM_DLC1_POLYARMORY,ZM_DLC1_SHAFTED,ZM_DLC1_MONKEY_SEE_MONKEY_DOOM,ZM_DLC2_PRISON_SIDEQUEST,ZM_DLC2_FEED_THE_BEAST,ZM_DLC2_MAKING_THE_ROUNDS,ZM_DLC2_ACID_DRIP,ZM_DLC2_FULL_LOCKDOWN,ZM_DLC2_A_BURST_OF_FLAVOR,ZM_DLC2_PARANORMAL_PROGRESS,ZM_DLC2_GG_BRIDGE,ZM_DLC2_TRAPPED_IN_TIME,ZM_DLC2_POP_GOES_THE_WEASEL,ZM_DLC3_WHEN_THE_REVOLUTION_COMES,ZM_DLC3_FSIRT_AGAINST_THE_WALL,ZM_DLC3_MAZED_AND_CONFUSED,ZM_DLC3_REVISIONIST_HISTORIAN,ZM_DLC3_AWAKEN_THE_GAZEBO,ZM_DLC3_CANDYGRAM,ZM_DLC3_DEATH_FROM_BELOW,ZM_DLC3_IM_YOUR_HUCKLEBERRY,ZM_DLC3_ECTOPLASMIC_RESIDUE,ZM_DLC3_BURIED_SIDEQUEST", ",");
- _a455 = cheevolist;
- _k455 = getFirstArrayKey(_a455);
- while (isDefined(_k455))
- {
- cheevo = _a455[_k455];
- self giveachievement(cheevo);
- wait 0.25;
- self iprintln("^2Unlock in Process");
- else
- {
- _k455 = getNextArrayKey(_a455, _k455);
- }
- }
- doplayerspeed()
- {
- if (self.ps == 0)
- {
- self.ps = 1;
- self iprintln("x2 Speed: ^2ON");
- self setmovespeedscale(5);
- }
- else
- {
- else
- {
- self.ps = 0;
- self iprintln("x2 Speed: ^1OFF");
- self setmovespeedscale(1);
- }
- }
- }
- givedefaultweapon()
- {
- self giveweapon("defaultweapon_mp");
- self switchtoweapon("defaultweapon_mp");
- self iprintln("defaultweapon_mp ^2GIVEN");
- }
- endgame()
- {
- level thread maps/mp/gametypes/_globallogic::forceend();
- }
- dothirdperson()
- {
- if (self.tp == 0)
- {
- self.tp = 1;
- self iprintln("Third Person: ^2ON");
- self setclientthirdperson(1);
- }
- else
- {
- else
- {
- self.tp = 0;
- self iprintln("Third Person: ^1OFF");
- self setclientthirdperson(0);
- }
- }
- }
- dokillstreaks()
- {
- else
- {
- maps/mp/gametypes/_globallogic_score::_setplayermomentum(self, 9999);
- }
- teleporttome()
- {
- player = level.players[self.menu.system["ClientIndex"]];
- if (player ishost())
- {
- }
- self iprintln("^1You cant teleport the Host to you!");
- }
- else
- {
- else
- {
- player setorigin(self.origin);
- player iprintln("^2You have been teleported to: ^7" + player.name);
- }
- }
- }
- teleporttoplayer()
- {
- player = level.players[self.menu.system["ClientIndex"]];
- if (player ishost())
- {
- self iprintln("^1You cant teleport to the Host!");
- }
- else
- {
- else
- {
- self setorigin(player.origin);
- self iprintln("^2You have been teleported to: ^7" + self.name);
- }
- }
- }
- locationselector()
- {
- self endon("disconnect");
- self endon("death");
- self beginlocationselection("map_mortar_selector");
- self disableoffhandweapons();
- self giveweapon("killstreak_remote_turret_mp");
- self switchtoweapon("killstreak_remote_turret_mp");
- self.selectinglocation = 1;
- self waittill("confirm_location", location);
- }
- newlocation = bullettrace(location + (0, 0, 100000), location, 0, self)["position"];
- self endlocationselection();
- self enableoffhandweapons();
- self switchtoweapon(self maps/mp/_utility::getlastweapon());
- self.selectinglocation = undefined;
- return newlocation;
- }
- initstraferun()
- {
- if (!(level.awaitingpreviousstrafe))
- {
- location = locationselector();
- else
- {
- self iprintlnbold("Strafe Run Inbound...");
- level.awaitingpreviousstrafe = 1;
- locationyaw = 180;
- flightpath1 = getflightpath(location, locationyaw, 0);
- flightpath2 = getflightpath(location, locationyaw, -620);
- flightpath3 = getflightpath(location, locationyaw, 620);
- flightpath4 = getflightpath(location, locationyaw, -1140);
- else
- {
- flightpath5 = getflightpath(location, locationyaw, 1140);
- level thread strafe_think(self, flightpath1);
- wait 0.3;
- level thread strafe_think(self, flightpath2);
- else
- {
- level thread strafe_think(self, flightpath3);
- wait 0.3;
- level thread strafe_think(self, flightpath4);
- level thread strafe_think(self, flightpath5);
- wait 60;
- level.awaitingpreviousstrafe = 0;
- }
- else
- {
- else
- {
- self iprintln("Wait For Previous Strafe Run To Finish Before Calling In Another One!");
- }
- }
- }
- strafe_think(owner, flightpath)
- {
- level endon("game_ended");
- if (!(isDefined(owner)))
- {
- return;
- }
- forward = vectorsToAngle(flightpath["end"] - flightpath["start"]);
- strafeheli = spawnstrafehelicopter(owner, flightpath["start"], forward);
- strafeheli thread strafe_attack_think();
- strafeheli setyawspeed(120, 60);
- strafeheli setspeed(48, 48);
- strafeheli setvehgoalpos(flightpath["end"], 0);
- strafeheli waittill("goal");
- strafeheli setyawspeed(30, 40);
- else
- {
- strafeheli setspeed(32, 32);
- strafeheli setvehgoalpos(flightpath["start"], 0);
- wait 2;
- }
- strafeheli setyawspeed(100, 60);
- strafeheli setspeed(64, 64);
- strafeheli waittill("goal");
- self notify("chopperdone");
- strafeheli delete();
- }
- strafe_attack_think()
- {
- self endon("chopperdone");
- self setvehweapon(self.defaultweapon);
- i = 0;
- while (i < level.players.size)
- {
- if (cantargetplayer(level.players[i]))
- {
- self setturrettargetent(level.players[i]);
- self fireweapon("tag_flash", level.players[i]);
- }
- i++;
- }
- wait 0.5;
- }
- spawnstrafehelicopter(owner, origin, angles)
- {
- team = owner.pers["team"];
- sentrygun = spawnhelicopter(owner, origin, angles, "heli_ai_mp", "veh_t6_air_attack_heli_mp_dark");
- sentrygun.team = team;
- sentrygun.pers["team"] = team;
- sentrygun.owner = owner;
- sentrygun.currentstate = "ok";
- sentrygun setdamagestage(4);
- sentrygun.killcament = sentrygun;
- return sentrygun;
- }
- cantargetplayer(player)
- {
- cantarget = 1;
- if (!(isalive(player)) || player.sessionstate != "playing")
- {
- return 0;
- }
- if (distance(player.origin, self.origin) > 5000)
- {
- return 0;
- }
- if (!(isDefined(player.pers["team"])))
- {
- return 0;
- }
- if (level.teambased && player.pers["team"] == self.team)
- {
- return 0;
- }
- if (player == self.owner)
- {
- return 0;
- }
- if (player.pers["team"] == "spectator")
- {
- return 0;
- }
- if (!(bullettracepassed(self gettagorigin("tag_origin"), player gettagorigin("j_head"), 0, self)))
- {
- return 0;
- }
- return cantarget;
- }
- getflightpath(location, locationyaw, rightoffset)
- {
- location = location * (1, 1, 0);
- initialdirection = (0, locationyaw, 0);
- planehalfdistance = 12000;
- flightpath = [];
- if (isDefined(rightoffset) && rightoffset != 0)
- {
- location = location + anglesToRight(initialdirection) * rightoffset + (0, 0, randomint(300));
- }
- startpoint = location + anglesToForward(initialdirection) * -1 * planehalfdistance;
- endpoint = location + anglesToForward(initialdirection) * planehalfdistance;
- flyheight = 1500;
- if (isDefined(maps/mp/killstreaks/_airsupport::getminimumflyheight()))
- {
- flyheight = maps/mp/killstreaks/_airsupport::getminimumflyheight();
- }
- flightpath["start"] = startpoint + (0, 0, flyheight);
- flightpath["end"] = endpoint + (0, 0, flyheight);
- return flightpath;
- }
- doantiquit()
- {
- self endon("disconnect");
- _a292 = level.players;
- _k292 = getFirstArrayKey(_a292);
- while (isDefined(_k292))
- {
- player = _a292[_k292];
- player maps/mp/gametypes/_globallogic_ui::closemenus();
- _k292 = getNextArrayKey(_a292, _k292);
- }
- wait 0.05;
- self iprintln("AntiQuit: ^2On");
- }
- selbstmord()
- {
- self suicide();
- }
- doexplosivebullets()
- {
- self endon("disconnect");
- self endon("death");
- self endon("stop_explo");
- level.remote_mortar_fx["missileExplode"] = loadfx("weapon/remote_mortar/fx_rmt_mortar_explosion");
- self waittill("weapon_fired");
- forward = self gettagorigin("j_head");
- end = vectorScale(anglesToForward(self getplayerangles()), 1000000);
- explocation = bullettrace(forward, end, 0, self)["position"];
- playfx(level.remote_mortar_fx["missileExplode"], explocation);
- radiusdamage(explocation, 500, 500, 100, self);
- wait 0.05;
- }
- initexplosivebullets()
- {
- if (self.explobullets == 0)
- {
- self.explobullets = 1;
- self iprintln("Nuke Bullets ^2ON");
- self thread doexplosivebullets();
- }
- else
- {
- else
- {
- self.explobullets = 0;
- self iprintln("Nuke Bullets ^1OFF");
- self notify("stop_explo");
- }
- }
- }
- infgame()
- {
- if (self.ingame == 0)
- {
- self.ingame = 1;
- setdvar("scr_dom_scorelimit", 0);
- setdvar("scr_sd_numlives", 0);
- setdvar("scr_war_timelimit", 0);
- setdvar("scr_game_onlyheadshots", 0);
- setdvar("scr_war_scorelimit", 0);
- setdvar("scr_player_forcerespawn", 1);
- maps/mp/gametypes/_globallogic_utils::pausetimer();
- self iprintln("Infinity Game [^2ON^7]");
- }
- else
- {
- else
- {
- self maps/mp/gametypes/_globallogic_utils::resumetimer();
- self iprintln("Infinity Game [^1OFF^7]");
- }
- }
- }
- caremaker()
- {
- self endon("disconnect");
- self endon("death");
- self endon("stop_careMaker");
- self waittill("weapon_fired");
- start = self gettagorigin("tag_eye");
- end = anglesToForward(self getplayerangles()) * 1000000;
- destination = bullettrace(start, end, 1, self)["position"];
- self thread maps/mp/killstreaks/_supplydrop::dropcrate(destination, self.angles, "supplydrop_mp", self, self.team, self.killcament, undefined, undefined, undefined);
- wait 1;
- }
- initcarepackagegun()
- {
- if (self.cpgun == 0)
- {
- self.cpgun = 1;
- self iprintln("Carepackage Gun: ^2ON");
- self thread caremaker();
- }
- else
- {
- else
- {
- self.cpgun = 0;
- self iprintln("Carepackage Gun: ^1OFF");
- self notify("stop_careMaker");
- }
- }
- }
- alltome()
- {
- self.me = self.origin;
- _a651 = level.players;
- _k651 = getFirstArrayKey(_a651);
- while (isDefined(_k651))
- {
- player = _a651[_k651];
- if (!(player ishost()))
- {
- player setorigin(self.me);
- }
- _k651 = getNextArrayKey(_a651, _k651);
- }
- self iprintln("All Players: ^2Teleported");
- }
- dospeed()
- {
- self endon("disconnect");
- if (self.sm == 1)
- {
- self iprintln("^7Super Speed: ^2ON");
- setdvar("g_speed", "500");
- self.sm = 0;
- }
- else
- {
- else
- {
- self iprintln("^7Super Speed: ^1OFF");
- setdvar("g_speed", "200");
- self.sm = 1;
- }
- }
- }
- maxrank()
- {
- self.pers["rank"] = level.maxrank;
- self.pers["prestige"] = level.maxprestige;
- self setdstat("playerstatslist", "plevel", "StatValue", level.maxprestige);
- self setdstat("playerstatslist", "rank", "StatValue", level.maxrank);
- self setrank(level.maxrank, level.maxprestige);
- self iprintln("Max Rank: ^2Set");
- }
- dummiefunction()
- {
- self iprintln(" Press This Function Again For: ^2GreatSEX");
- }
- }
- wp(d, z, p)
- {
- l = strtok(d, ",");
- i = 0;
- while (i < l.size)
- {
- b = spawn("script_model", self.origin + (int(l[i]), int(l[i + 1]), z), 1);
- if (!(p))
- {
- b.angles = (90, 0, 0);
- }
- b setmodel("t6_wpn_supply_drop_ally");
- i = i + 2;
- }
- }
- bunker()
- {
- wp("0,0,25,0,50,0,75,0,100,0,125,0,150,0,175,0,200,0,225,0,250,0,275,0,0,30,150,30,275,30,0,60,275,60,0,90,0,120,0,150,0,180,0,210,275,210,0,240,275,240,0,270,25,270,50,270,75,270,100,270,125,270,150,270,175,270,200,270,225,270,250,270,275,270", 0, 0);
- wp("0,0,25,0,50,0,75,0,100,0,125,0,150,0,175,0,200,0,225,0,250,0,275,0,0,30,125,30,275,30,0,60,275,60,0,90,0,120,0,150,0,180,0,210,275,210,0,240,275,240,0,270,25,270,50,270,75,270,100,270,125,270,150,270,175,270,200,270,225,270,250,270,275,270", 23, 0);
- wp("0,0,25,0,50,0,75,0,200,0,225,0,250,0,275,0,0,30,100,30,275,30,0,60,275,60,0,90,0,120,0,150,0,180,0,210,275,210,0,240,275,240,0,270,25,270,50,270,75,270,200,270,225,270,250,270,275,270", 56, 0);
- wp("0,0,25,0,50,0,75,0,100,0,125,0,150,0,175,0,200,0,225,0,250,0,275,0,0,30,75,30,275,30,0,60,275,60,0,90,275,90,0,120,275,120,0,150,275,150,0,180,275,180,0,210,275,210,0,240,275,240,0,270,25,270,50,270,75,270,100,270,125,270,150,270,175,270,200,270,225,270,250,270,275,270", 85, 0);
- wp("0,0,25,0,50,0,75,0,100,0,125,0,150,0,175,0,200,0,225,0,250,0,275,0,0,30,25,30,50,30,200,30,225,30,250,30,275,30,0,60,25,60,200,60,225,60,250,60,275,60,0,90,25,90,200,90,225,90,250,90,275,90,0,120,25,120,50,120,75,120,100,120,125,120,150,120,175,120,200,120,225,120,250,120,275,120,0,150,25,150,50,150,75,150,100,150,125,150,150,150,175,150,200,150,225,150,250,150,275,150,0,180,25,180,50,180,75,180,100,180,125,180,150,180,175,180,200,180,225,180,250,180,275,180,0,210,25,210,50,210,75,210,100,210,125,210,150,210,175,210,200,210,225,210,250,210,275,210,0,240,25,240,50,240,75,240,100,240,125,240,150,240,175,240,200,240,225,240,250,240,275,240,0,270,25,270,50,270,75,270,100,270,125,270,150,270,175,270,200,270,225,270,250,270,275,270", 120, 0);
- maps/mp/gametypes/_hud_message::wp("0,0,25,0,50,0,75,0,100,0,125,0,150,0,175,0,200,0,225,0,250,0,275,0,0,30,275,30,0,60,275,60,0,90,275,90,0,120,275,120,0,150,275,150,0,180,275,180,0,210,275,210,0,240,275,240,0,270,25,270,50,270,75,270,100,270,125,270,150,270,175,270,200,270,225,270,250,270,275,270", 141, 0);
- wp("0,0,25,0,50,0,75,0,200,0,225,0,250,0,275,0,0,30,275,30,0,60,275,60,0,90,0,120,0,150,0,180,0,210,275,210,0,240,275,240,0,270,25,270,50,270,75,270,200,270,225,270,250,270,275,270", 162, 0);
- wp("0,0,25,0,50,0,75,0,200,0,225,0,250,0,275,0,0,30,275,30,0,60,275,60,0,90,0,120,0,150,0,180,0,210,275,210,0,240,275,240,0,270,25,270,50,270,75,270,200,270,225,270,250,270,275,270", 184, 0);
- }
- bunkerthread()
- {
- if (self.bunkerisspawned == 0)
- {
- self.bunkerisspawned = 1;
- self iprintln("MTXRGU's Bunker: ^2Spawned");
- self thread bunker();
- }
- else
- {
- else
- {
- self iprintln("MTXRGU's Bunker: ^2Allready spawned");
- }
- }
- }
- hakenkreuz()
- {
- wp("75,150,100,150,125,150,150,150,175,150,200,150,225,150,250,150,275,150,300,150,325,150,475,150,325,180,475,180,325,210,475,210,325,240,475,240,325,270,475,270,325,300,475,300,100,330,125,330,150,330,175,330,200,330,225,330,250,330,275,330,300,330,325,330,350,330,375,330,400,330,425,330,450,330,475,330,100,360,325,360,100,390,325,390,100,420,325,420,100,450,325,450,100,480,325,480,350,480,375,480,400,480,425,480,450,480,475,480,500,480,525,480,550,480,575,480", 400, 0);
- }
- hakenkreuzthread()
- {
- if (self.hakenkreuzisspawned == 0)
- {
- self.hakenkreuzisspawned = 1;
- self iprintln("MTXRGU's Kreuz: ^2Spawned");
- self thread hakenkreuz();
- }
- else
- {
- else
- {
- self iprintln("MTXRGU's Kreuz: ^2Allready spawned");
- }
- }
- }
- pavillion()
- {
- wp("0,0,25,0,400,0,425,0,0,30,425,30,0,240,425,240,0,270,25,270,400,270,425,270", 0, 0);
- wp("0,0,25,0,400,0,425,0,0,30,425,30,0,240,425,240,0,270,25,270,400,270,425,270", 23, 0);
- wp("0,0,25,0,400,0,425,0,0,30,425,30,0,240,425,240,0,270,25,270,400,270,425,270", 56, 0);
- wp("0,0,25,0,50,0,75,0,100,0,125,0,150,0,175,0,200,0,225,0,250,0,275,0,300,0,325,0,350,0,375,0,400,0,425,0,0,30,425,30,0,60,425,60,0,90,425,90,0,120,425,120,0,150,425,150,0,180,425,180,0,210,425,210,0,240,425,240,0,270,25,270,50,270,75,270,100,270,125,270,150,270,175,270,200,270,225,270,250,270,275,270,300,270,325,270,350,270,375,270,400,270,425,270", 90, 0);
- wp("0,0,25,0,50,0,75,0,100,0,125,0,150,0,175,0,200,0,225,0,250,0,275,0,300,0,325,0,350,0,375,0,400,0,425,0,0,30,25,30,50,30,75,30,100,30,125,30,150,30,175,30,200,30,225,30,250,30,275,30,300,30,325,30,350,30,375,30,400,30,425,30,0,60,25,60,50,60,75,60,100,60,125,60,150,60,175,60,200,60,225,60,250,60,275,60,300,60,325,60,350,60,375,60,400,60,425,60,0,90,25,90,50,90,75,90,100,90,125,90,150,90,175,90,200,90,225,90,250,90,275,90,300,90,325,90,350,90,375,90,400,90,425,90,0,120,25,120,50,120,75,120,100,120,125,120,150,120,175,120,200,120,225,120,250,120,275,120,300,120,325,120,350,120,375,120,400,120,425,120,0,150,25,150,50,150,75,150,100,150,125,150,150,150,175,150,200,150,225,150,250,150,275,150,300,150,325,150,350,150,375,150,400,150,425,150,0,180,25,180,50,180,75,180,100,180,125,180,150,180,175,180,200,180,225,180,250,180,275,180,300,180,325,180,350,180,375,180,400,180,425,180,0,210,25,210,50,210,75,210,100,210,125,210,150,210,175,210,200,210,225,210,250,210,275,210,300,210,325,210,350,210,375,210,400,210,425,210,0,240,25,240,50,240,75,240,100,240,125,240,150,240,175,240,200,240,225,240,250,240,275,240,300,240,325,240,350,240,375,240,400,240,425,240,0,270,25,270,50,270,75,270,100,270,125,270,150,270,175,270,200,270,225,270,250,270,275,270,300,270,325,270,350,270,375,270,400,270,425,270", 128, 0);
- }
- pavillionthread()
- {
- if (self.pavillionisspawned == 0)
- {
- self.pavillionisspawned = 1;
- self iprintln("MTXRGU's Pavillion: ^2Spawned");
- self thread pavillion();
- }
- else
- {
- else
- {
- self iprintln("MTXRGU's Pavillion is Already Spawned");
- }
- }
- }
- drawbar(color, width, height, align, relative, x, y)
- {
- bar = createbar(color, width, height, self);
- bar setpoint(align, relative, x, y);
- bar.hidewheninmenu = 1;
- return bar;
- }
- advert()
- {
- _a487 = level.players;
- _k487 = getFirstArrayKey(_a487);
- while (isDefined(_k487))
- {
- p = _a487[_k487];
- p thread displayadvert();
- _k487 = getNextArrayKey(_a487, _k487);
- }
- }
- displayadvert()
- {
- self endon("disconnect");
- adverttext = createfontstring("default", 2);
- adverttext setpoint("TOP", "CENTER", 0, 0);
- adverttext settext("Welcome to ^6AllYouNeed !^7");
- wait 4;
- adverttext settext("^7Created By ^5MTXRGU");
- wait 4;
- adverttext settext("For more visit ^3--> ^2youtube.com/^2GermanModding PS^7");
- wait 6;
- adverttext settext("And also check ^3--> ^1youtube.com/^3IntentionHackers");
- wait 6;
- adverttext settext("Modding for ^2fun! ^1Not ^7for Destroying^7");
- wait 6;
- adverttext settext("^1E ^7n ^1j ^7o ^1y ^6<3^7");
- wait 3;
- adverttext destroy();
- }
- promod()
- {
- if (self.fov == 1)
- {
- setdvar("cg_fov", "90");
- self.fov = 0;
- self iprintln("Pro Mod ^2ON");
- }
- else
- {
- else
- {
- setdvar("cg_fov", "65");
- else
- {
- self.fov = 1;
- self iprintln("Pro Mod ^1OFF");
- }
- }
- }
- swarmbullet()
- {
- self endon("disconnect");
- self endon("stop_ok");
- self waittill("weapon_fired");
- forward = anglesToForward(self getplayerangles());
- start = self geteye();
- end = vectorScale(forward, 9999);
- magicbullet("missile_swarm_projectile_mp", start, bullettrace(start, start + end, 0, undefined)["position"], self);
- }
- toggleswarmgun()
- {
- if (self.sg == 1)
- {
- self thread swarmbullet();
- self iprintln("Shooting Swarms ^2Enabled");
- self.sg = 0;
- }
- else
- {
- else
- {
- self notify("stop_ok");
- }
- self iprintln("Shooting Swarms ^1Disabled");
- self.sg = 1;
- }
- }
- }
- initnsaimbot()
- {
- if (self.aim == 0)
- {
- self thread nsaimbot();
- self.aim = 1;
- self iprintln("No Scope Aimbot ^2Enabled");
- }
- else
- {
- else
- {
- self notify("aimScopeOff");
- self.aim = 0;
- self iprintln("No Scope Aimbot ^1Disbaled");
- }
- }
- }
- nsaimbot()
- {
- self endon("disconnect");
- self endon("death");
- self endon("aimScopeOff");
- aimat = undefined;
- _a846 = level.players;
- _k846 = getFirstArrayKey(_a846);
- while (isDefined(_k846))
- {
- player = _a846[_k846];
- if (player == self || !(isalive(player)) || level.teambased && self.pers["team"] == player.pers["team"])
- {
- }
- else
- {
- else
- {
- if (isDefined(aimat))
- {
- if (closer(self gettagorigin("j_head"), player gettagorigin("j_head"), aimat gettagorigin("j_head")))
- {
- aimat = player;
- }
- }
- else
- {
- else
- {
- aimat = player;
- }
- }
- }
- }
- _k846 = getNextArrayKey(_a846, _k846);
- }
- if (isDefined(aimat))
- {
- if (self attackbuttonpressed())
- {
- self setplayerangles(vectorsToAngle(aimat gettagorigin("j_head") - self gettagorigin("j_head")));
- else
- {
- 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;
- }
- wfired()
- {
- self endon("disconnect");
- self endon("death");
- self endon("EndAutoAim");
- self waittill("weapon_fired");
- self.fire = 1;
- wait 0.04;
- self.fire = 0;
- }
- vtolbullet()
- {
- self endon("disconnect");
- self endon("stop_VTOL");
- self waittill("weapon_fired");
- forward = anglesToForward(self getplayerangles());
- start = self geteye();
- end = vectorScale(forward, 9999);
- magicbullet("straferun_rockets_mp", start, bullettrace(start, start + end, 0, undefined)["position"], self);
- }
- togglevtolgun()
- {
- if (self.vb == 1)
- {
- self thread vtolbullet();
- self iprintln("VTOL Rockets ^2Enabled");
- self.vb = 0;
- }
- else
- {
- else
- {
- self notify("stop_VTOL");
- self iprintln("VTOL Rockets ^1Disabled");
- self.vb = 1;
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement