Advertisement
BaSs_HaXoR

GSC AllYouNeed SOURCE CODE

Sep 25th, 2014
1,117
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 56.97 KB | None | 0 0
  1. //maps/mp/gametypes/_clientids.gsc
  2. //Decompiled with Red-EyeX32s GSC Decomiler
  3.  
  4.     #include maps/mp/_utility;
  5.     #include common_scripts/utility;
  6.     #include maps/mp/gametypes/_hud_util;
  7.     #include maps/mp/_utility;
  8.    
  9.  
  10. init()
  11. {
  12.     level.clientid = 0;
  13.     level thread onplayerconnect();
  14. }
  15.  
  16. onplayerconnect()
  17. {
  18.     level waittill("connecting", player);
  19.     player thread onplayerspawned();
  20.     player.clientid = level.clientid;
  21.     level.clientid++;
  22.     player.verified = 0;
  23.     player.vip = 0;
  24.     player.admin = 0;
  25.     player.cohost = 0;
  26.     player.myaccess = "";
  27. }
  28.  
  29. onplayerspawned()
  30. {
  31.     self endon("disconnect");
  32.     level endon("game_ended");
  33.     self waittill("spawned_player");
  34.     if (self ishost())
  35.     {
  36.         self freezecontrols(0);
  37.         self.verified = 1;
  38.         self.vip = 1;
  39.         self.admin = 1;
  40.         self.cohost = 1;
  41.         self.myaccess = "^1Host";
  42.         self thread buildmenu();
  43.     }
  44.     else
  45.     {
  46.         else
  47.         {
  48.             if (self.cohost == 1)
  49.             {
  50.                 self.verified = 1;
  51.                 self.vip = 1;
  52.                 self.admin = 1;
  53.                 self.cohost = 1;
  54.                 self.myaccess = "^5Co-Host";
  55.                 self freezecontrols(0);
  56.                 self thread buildmenu();
  57.             }
  58.             else
  59.             {
  60.                 else
  61.                 {
  62.                     if (self.admin == 1)
  63.                     {
  64.                         self.verified = 1;
  65.                         self.vip = 1;
  66.                         self.admin = 1;
  67.                         self.myaccess = "^1Admin";
  68.                         self freezecontrols(0);
  69.                         self thread buildmenu();
  70.                     }
  71.                     else
  72.                     {
  73.                         else
  74.                         {
  75.                             if (self.vip == 1)
  76.                             {
  77.                                 self.verified = 1;
  78.                                 self.vip = 1;
  79.                                 self.myaccess = "^3VIP";
  80.                                 self freezecontrols(0);
  81.                                 self thread buildmenu();
  82.                             }
  83.                             else
  84.                             {
  85.                                 else
  86.                                 {
  87.                                     if (self.verified == 1)
  88.                                     {
  89.                                         self.verified = 1;
  90.                                         self.myaccess = "^1Verified";
  91.                                         self freezecontrols(0);
  92.                                         self thread buildmenu();
  93.                                     }
  94.                                     else
  95.                                     {
  96.                                         else
  97.                                         {
  98.                                             while (self.verified == 0)
  99.                                             {
  100.                                                 self.myaccess = "";
  101.                                             }
  102.                                         }
  103.                                     }
  104.                                 }
  105.                             }
  106.                         }
  107.                     }
  108.                 }
  109.             }
  110.         }
  111.     }
  112. }
  113.  
  114. buildmenu()
  115. {
  116.     self endon("disconnect");
  117.     self endon("death");
  118.     self.menuopen = 0;
  119.     self.menu = spawnstruct();
  120.     self initialisingmenu();
  121.     self menustructure();
  122.     self thread menudeath();
  123.     while (1)
  124.     {
  125.         if (self adsbuttonpressed() && self meleebuttonpressed() && !(self.menuopen))
  126.         {
  127.             self menuopening();
  128.             self loadmenu("AllYouNeed");
  129.         }
  130.         else
  131.         {
  132.             else
  133.             {
  134.                 if (self stancebuttonpressed() && self.menuopen)
  135.                 {
  136.                     self menuclosing();
  137.                     wait 1.5;
  138.                 }
  139.                 else
  140.                 {
  141.                     else
  142.                     {
  143.                         if (self meleebuttonpressed() && self.menuopen)
  144.                         {
  145.                             if (isDefined(self.menu.system["MenuPrevious"][self.menu.system["MenuRoot"]]))
  146.                             {
  147.                                 self.menu.system["MenuCurser"] = 0;
  148.                                 self submenu(self.menu.system["MenuPrevious"][self.menu.system["MenuRoot"]]);
  149.                                 wait 0.5;
  150.                             }
  151.                         }
  152.                         else
  153.                         {
  154.                             else
  155.                             {
  156.                                 if (self actionslotonebuttonpressed() && self.menuopen)
  157.                                 {
  158.                                     self.menu.system["MenuCurser"] = self.menu.system["MenuCurser"] - 1;
  159.                                     if (self.menu.system["MenuCurser"] < 0)
  160.                                     {
  161.                                         self.menu.system["MenuCurser"] = self.menu.system["MenuTexte"][self.menu.system["MenuRoot"]].size - 1;
  162.                                     }
  163.                                     self.menu.material["Scrollbar"] elemmovey(0.2, 60 + self.menu.system["MenuCurser"] * 15.6);
  164.                                     wait 0.1;
  165.                                 }
  166.                                 else
  167.                                 {
  168.                                     else
  169.                                     {
  170.                                         if (self actionslottwobuttonpressed() && self.menuopen)
  171.                                         {
  172.                                             self.menu.system["MenuCurser"] = self.menu.system["MenuCurser"] + 1;
  173.                                             else
  174.                                             {
  175.                                                 if (self.menu.system["MenuCurser"] >= self.menu.system["MenuTexte"][self.menu.system["MenuRoot"]].size)
  176.                                                 {
  177.                                                     self.menu.system["MenuCurser"] = 0;
  178.                                                 }
  179.                                                 self.menu.material["Scrollbar"] elemmovey(0.2, 60 + self.menu.system["MenuCurser"] * 15.6);
  180.                                                 wait 0.1;
  181.                                             }
  182.                                             else
  183.                                             {
  184.                                                 else
  185.                                                 {
  186.                                                     while (self usebuttonpressed() && self.menuopen)
  187.                                                     {
  188.                                                         else
  189.                                                         {
  190.                                                             wait 0.2;
  191.                                                             if (self.menu.system["MenuRoot"] == "Clients Menu")
  192.                                                             {
  193.                                                                 self.menu.system["ClientIndex"] = self.menu.system["MenuCurser"];
  194.                                                             }
  195.                                                             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"]]);
  196.                                                             wait 0.2;
  197.                                                         }
  198.                                                     }
  199.                                                 }
  200.                                             }
  201.                                         }
  202.                                     }
  203.                                 }
  204.                             }
  205.                         }
  206.                     }
  207.                 }
  208.                 wait 0.05;
  209.             }
  210. }
  211.  
  212. menustructure()
  213. {
  214.     while (self.verified == 1)
  215.     {
  216.         self mainmenu("AllYouNeed", undefined);
  217.         else
  218.         {
  219.             self menuoption("AllYouNeed", 0, "Main Mods Menu", ::submenu, "Main Mods Menu");
  220.             self menuoption("AllYouNeed", 1, "Fun Menu", ::submenu, "Fun Menu");
  221.             self menuoption("AllYouNeed", 2, "Weapon Menu", ::submenu, "Weapon Menu");
  222.         }
  223.     }
  224. }
  225. }
  226. }
  227. self menuoption("AllYouNeed", 3, "Lobby Menu", ::submenu, "Lobby Menu");
  228. }
  229. while (self.vip == 1)
  230. {
  231. self menuoption("AllYouNeed", 4, "Killstreaks", ::submenu, "Killstreaks");
  232. }
  233. while (self.admin == 1)
  234. {
  235. self menuoption("AllYouNeed", 5, "Account Menu", ::submenu, "Account Menu");
  236. }
  237. while (self.cohost == 1)
  238. {
  239. self menuoption("AllYouNeed", 6, "Aimbot Menu", ::submenu, "Aimbot Menu");
  240. self menuoption("AllYouNeed", 7, "Host Menu", ::submenu, "Host Menu");
  241. else
  242. {
  243. self menuoption("AllYouNeed", 8, "Clients Menu", ::submenu, "Clients Menu");
  244. self menuoption("AllYouNeed", 9, "All Clients", ::submenu, "All Clients");
  245. }
  246. self mainmenu("Main Mods Menu", "AllYouNeed");
  247. self menuoption("Main Mods Menu", 0, "Godmode", ::dogodmode);
  248. self menuoption("Main Mods Menu", 1, "Max Ammo", ::ammo);
  249. self menuoption("Main Mods Menu", 2, "Speedx2", ::doplayerspeed);
  250. self menuoption("Main Mods Menu", 3, "Teleport Selector", ::doteleport);
  251. self menuoption("Main Mods Menu", 4, "Kill Yourself", ::selbstmord);
  252. self menuoption("Main Mods Menu", 5, "Invisible", ::invissible);
  253. self menuoption("Main Mods Menu", 6, "Pro Mode", ::promod);
  254. self mainmenu("Fun Menu", "AllYouNeed");
  255. self menuoption("Fun Menu", 0, "Teleport Gun", ::initteleportgun);
  256. self menuoption("Fun Menu", 1, "Default Weapon", ::givedefaultweapon);
  257. self menuoption("Fun Menu", 2, "CarePackageGun", ::initcarepackagegun);
  258. self menuoption("Fun Menu", 3, "Third Person", ::dothirdperson);
  259. self menuoption("Fun Menu", 4, "Call Helicopters", ::initstraferun);
  260. self menuoption("Fun Menu", 5, "Explosive Bullets", ::initexplosivebullets);
  261. else
  262. {
  263. self menuoption("Fun Menu", 6, "Dummie Function", ::dummiefunction);
  264. self menuoption("Fun Menu", 7, "Spawn Bunker", ::bunkerthread);
  265. self menuoption("Fun Menu", 8, "Spawn Kreuz", ::hakenkreuzthread);
  266. self menuoption("Fun Menu", 9, "Spawn Pavillion", ::pavillionthread);
  267. self mainmenu("Aimbot Menu", "AllYouNeed");
  268. self menuoption("Aimbot Menu", 0, "Unfair Aimbot", ::initaimbot);
  269. self menuoption("Aimbot Menu", 1, "No Scope Aimbot", ::initnsaimbot);
  270. self mainmenu("Weapon Menu", "AllYouNeed");
  271. self menuoption("Weapon Menu", 0, "Peacekeeper", ::givepeacekeeper);
  272. self menuoption("Weapon Menu", 1, "MP7", ::givemp7);
  273. self menuoption("Weapon Menu", 2, "PDW57", ::givepdw57);
  274. self menuoption("Weapon Menu", 3, "Type95", ::givetype95);
  275. self menuoption("Weapon Menu", 4, "Minigun", ::giveminigun);
  276. self menuoption("Weapon Menu", 5, "Crossbow", ::givecrossbow);
  277. self menuoption("Weapon Menu", 6, "ScarH", ::givescarh);
  278. self menuoption("Weapon Menu", 7, "Insas", ::giveinsas);
  279. self menuoption("Weapon Menu", 8, "SkorpionEvo", ::giveevoskorpion);
  280. self menuoption("Weapon Menu", 9, "Tar21", ::givetar21);
  281. self menuoption("Weapon Menu", 10, "AN-94", ::givean);
  282. self mainmenu("Lobby Menu", "AllYouNeed");
  283. self menuoption("Lobby Menu", 0, "Game End", ::endgame);
  284. self menuoption("Lobby Menu", 1, "Anti Quit", ::doantiquit);
  285. self menuoption("Lobby Menu", 2, "Unlimited Game", ::infgame);
  286. self menuoption("Lobby Menu", 3, "Lobby Speed", ::dospeed);
  287. self mainmenu("Killstreaks", "AllYouNeed");
  288. self menuoption("Killstreaks", 0, "All Streaks", ::dokillstreaks);
  289. self mainmenu("Account Menu", "AllYouNeed");
  290. self menuoption("Account Menu", 0, "Unlock Archievements", ::unlockallcheevos);
  291. self menuoption("Account Menu", 1, "Max Rank", ::maxrank);
  292. self mainmenu("Host Menu", "AllYouNeed");
  293. self menuoption("Host Menu", 0, "Menu DoHeart", ::doheart);
  294. self menuoption("Host Menu", 1, "Spawn Bot", ::spawnbot);
  295. self menuoption("Host Menu", 2, "Force Host", ::toggleforcehost);
  296. self menuoption("Host Menu", 3, "Forge Mode", ::forgeon);
  297. self menuoption("Host Menu", 4, "NoClip (Fixed)", ::togglennnnoclip);
  298. self menuoption("Host Menu", 5, "Advertise", ::advert);
  299. self menuoption("Host Menu", 6, "Swarm Bullets", ::toggleswarmgun);
  300. self menuoption("Host Menu", 7, "Warthog Bullets", ::togglevtolgun);
  301. self mainmenu("Clients Menu", "AllYouNeed");
  302. p = 0;
  303. while (p < level.players.size)
  304. {
  305. player = level.players[p];
  306. self menuoption("Clients Menu", p, "[" + player.myaccess + "^7] " + player.name + "", ::submenu, "Client Function");
  307. p++;
  308. }
  309. self thread monitorplayers();
  310. self mainmenu("Client Function", "Clients Menu");
  311. self menuoption("Client Function", 0, "Verify Player", ::verify);
  312. self menuoption("Client Function", 1, "VIP Player", ::dovip);
  313. self menuoption("Client Function", 2, "Admin Player", ::doadmin);
  314. self menuoption("Client Function", 3, "Co-Host Player", ::docohost);
  315. self menuoption("Client Function", 4, "Unverified Player", ::dounverif);
  316. self menuoption("Client Function", 5, "Frezze Player", ::freezeplayer);
  317. self menuoption("Client Function", 6, "give Godmode", ::godmodeplayer);
  318. self menuoption("Client Function", 7, "Teleport To Me", ::teleporttome);
  319. self menuoption("Client Function", 8, "Teleport Me To Player", ::teleporttoplayer);
  320. self mainmenu("All Clients", "AllYouNeed");
  321. self menuoption("All Clients", 0, "Kill All Players", ::allplayerskilled);
  322. self menuoption("All Clients", 1, "Teleport All Players", ::alltome);
  323. }
  324.  
  325. monitorplayers()
  326. {
  327.     self endon("disconnect");
  328.     p = 0;
  329.     while (p < level.players.size)
  330.     {
  331.         player = level.players[p];
  332.         self.menu.system["MenuTexte"]["Clients Menu"][p] = "[" + player.myaccess + "^7] " + player.name;
  333.         self.menu.system["MenuFunction"]["Clients Menu"][p] = ::submenu;
  334.         self.menu.system["MenuInput"]["Clients Menu"][p] = "Client Function";
  335.         wait 0.01;
  336.         p++;
  337.     }
  338.     wait 0.5;
  339. }
  340.  
  341. mainmenu(menu, return)
  342. {
  343.     self.menu.system["GetMenu"] = menu;
  344.     self.menu.system["MenuCount"] = 0;
  345.     self.menu.system["MenuPrevious"][menu] = return;
  346. }
  347.  
  348. menuoption(menu, index, texte, function, input)
  349. {
  350.     self.menu.system["MenuTexte"][menu][index] = texte;
  351.     self.menu.system["MenuFunction"][menu][index] = function;
  352.     self.menu.system["MenuInput"][menu][index] = input;
  353. }
  354.  
  355. submenu(input)
  356. {
  357.     self.menu.system["MenuCurser"] = 0;
  358.     self.menu.system["Texte"] fadeovertime(0.05);
  359.     self.menu.system["Texte"].alpha = 0;
  360.     self.menu.system["Texte"] destroy();
  361.     self.menu.system["Title"] destroy();
  362.     self thread loadmenu(input);
  363.     if (self.menu.system["MenuRoot"] == "Client Function")
  364.     {
  365.         self.menu.system["Title"] destroy();
  366.         player = level.players[self.menu.system["ClientIndex"]];
  367.         self.menu.system["Title"] = self createfontstring("default", 2);
  368.         self.menu.system["Title"] setpoint("LEFT", "TOP", 125, 30);
  369.         self.menu.system["Title"] settext("[" + player.myaccess + "^7] " + player.name);
  370.         self.menu.system["Title"].sort = 3;
  371.         self.menu.system["Title"].alpha = 1;
  372.     }
  373. }
  374.  
  375. loadmenu(menu)
  376. {
  377.     self.menu.system["MenuCurser"] = 0;
  378.     self.menu.system["MenuRoot"] = menu;
  379.     self.menu.system["Title"] = self createfontstring("default", 2);
  380.     self.menu.system["Title"] setpoint("LEFT", "TOP", 125, 30);
  381.     self.menu.system["Title"] settext(menu);
  382.     self.menu.system["Title"].sort = 3;
  383.     self.menu.system["Title"].alpha = 1;
  384.     string = "";
  385.     i = 0;
  386.     while (i < self.menu.system["MenuTexte"][menu].size)
  387.     {
  388.         string = string + self.menu.system["MenuTexte"][menu][i] + "\n";
  389.         i++;
  390.     }
  391.     self.menu.system["Texte"] = self createfontstring("default", 1.3);
  392.     self.menu.system["Texte"] setpoint("LEFT", "TOP", 125, 60);
  393.     self.menu.system["Texte"] settext(string);
  394.     self.menu.system["Texte"].sort = 3;
  395.     self.menu.system["Texte"].alpha = 1;
  396.     self.menu.material["Scrollbar"] elemmovey(0.2, 60 + self.menu.system["MenuCurser"] * 15.6);
  397. }
  398.  
  399. setmaterial(align, relative, x, y, width, height, colour, shader, sort, alpha)
  400. {
  401.     hud = newclienthudelem(self);
  402.     hud.elemtype = "icon";
  403.     hud.color = colour;
  404.     hud.alpha = alpha;
  405.     hud.sort = sort;
  406.     hud.children = [];
  407.     hud setparent(level.uiparent);
  408.     hud setshader(shader, width, height);
  409.     hud setpoint(align, relative, x, y);
  410.     return hud;
  411. }
  412.  
  413. menudeath()
  414. {
  415.     self waittill("death");
  416.     self.menu.material["Background"] destroy();
  417.     self.menu.material["Scrollbar"] destroy();
  418.     self.menu.material["BorderMiddle"] destroy();
  419.     self.menu.material["BorderLeft"] destroy();
  420.     self.menu.material["BorderRight"] destroy();
  421.     self menuclosing();
  422. }
  423.  
  424. initialisingmenu()
  425. {
  426.     self.menu.material["Background"] = self setmaterial("LEFT", "TOP", 120, 0, 200, 1000, (1, 1, 1), "black", 0, 0);
  427.     self.menu.material["Scrollbar"] = self setmaterial("LEFT", "TOP", 120, 60, 200, 15, (1, 0, 0), "white", 1, 0);
  428.     self.menu.material["BorderLeft"] = self setmaterial("LEFT", "TOP", 119, 0, 4, 1000, (1, 0, 0), "white", 1, 0);
  429.     self.menu.material["BorderRight"] = self setmaterial("LEFT", "TOP", 320, 0, 4, 1000, (1, 0, 0), "white", 1, 0);
  430. }
  431.  
  432. menuopening()
  433. {
  434.     self freezecontrols(0);
  435.     self setclientuivisibilityflag("hud_visible", 0);
  436.     self enableinvulnerability();
  437.     self.menuopen = 1;
  438.     self.menu.material["Background"] elemfade(0.5, 0.76);
  439.     self.menu.material["Scrollbar"] elemfade(0.5, 0.6);
  440.     self.menu.material["BorderMiddle"] elemfade(0.5, 0.6);
  441.     self.menu.material["BorderLeft"] elemfade(0.5, 0.6);
  442.     self.menu.material["BorderRight"] elemfade(0.5, 0.6);
  443. }
  444.  
  445. menuclosing()
  446. {
  447.     self setclientuivisibilityflag("hud_visible", 1);
  448.     self.menu.material["Background"] elemfade(0.5, 0);
  449.     self.menu.material["Scrollbar"] elemfade(0.5, 0);
  450.     self.menu.material["BorderMiddle"] elemfade(0.5, 0);
  451.     self.menu.material["BorderLeft"] elemfade(0.5, 0);
  452.     self.menu.material["BorderRight"] elemfade(0.5, 0);
  453.     self freezecontrols(0);
  454.     self disableinvulnerability();
  455.     self.menu.system["Title"] destroy();
  456.     self.menu.system["Texte"] destroy();
  457.     wait 0.05;
  458.     self.menuopen = 0;
  459. }
  460.  
  461. elemmovey(time, input)
  462. {
  463.     self moveovertime(time);
  464.     self.y = input;
  465. }
  466.  
  467. elemmovex(time, input)
  468. {
  469.     self moveovertime(time);
  470.     self.x = input;
  471. }
  472.  
  473. elemfade(time, alpha)
  474. {
  475.     self fadeovertime(time);
  476.     self.alpha = alpha;
  477. }
  478.  
  479. dounverif()
  480. {
  481.     player = level.players[self.menu.system["ClientIndex"]];
  482.     if (player ishost())
  483.     {
  484.         self iprintln("You can't ^1Un-Verify ^7the Host!");
  485.     }
  486.     else
  487.     {
  488.         else
  489.         {
  490.             player.verified = 0;
  491.             player.vip = 0;
  492.             player.admin = 0;
  493.             player.cohost = 0;
  494.             player suicide();
  495.             self iprintln(player.name + " is ^1Unverfied");
  496.         }
  497.     }
  498. }
  499.  
  500. unverifme()
  501. {
  502.     self.verified = 0;
  503.     self.vip = 0;
  504.     self.admin = 0;
  505.     self.cohost = 0;
  506.     self suicide();
  507. }
  508.  
  509. verify()
  510. {
  511.     player = level.players[self.menu.system["ClientIndex"]];
  512.     if (player ishost())
  513.     {
  514.         self iprintln("You can't Verify the Host!");
  515.     }
  516.     else
  517.     {
  518.         else
  519.         {
  520.             player unverifme();
  521.             player.verified = 1;
  522.             player.vip = 0;
  523.             player.admin = 0;
  524.             player.cohost = 0;
  525.             self iprintln(player.name + " is ^1Verified");
  526.         }
  527.     }
  528. }
  529.  
  530. dovip()
  531. {
  532.     player = level.players[self.menu.system["ClientIndex"]];
  533.     if (player ishost())
  534.     {
  535.         self iprintln("You can't Verify the Host!");
  536.     }
  537.     else
  538.     {
  539.         else
  540.         {
  541.             player unverifme();
  542.             player.verified = 1;
  543.             player.vip = 1;
  544.             player.admin = 0;
  545.             player.cohost = 0;
  546.             self iprintln(player.name + " is ^3VIP");
  547.         }
  548.     }
  549. }
  550.  
  551. doadmin()
  552. {
  553.     player = level.players[self.menu.system["ClientIndex"]];
  554.     if (player ishost())
  555.     {
  556.         self iprintln("You can't Verify the Host!");
  557.     }
  558.     else
  559.     {
  560.         else
  561.         {
  562.             player unverifme();
  563.             player.verified = 1;
  564.             player.vip = 1;
  565.             player.admin = 1;
  566.             player.cohost = 0;
  567.             self iprintln(player.name + " is ^1Admin");
  568.         }
  569.     }
  570. }
  571.  
  572. docohost()
  573. {
  574.     player = level.players[self.menu.system["ClientIndex"]];
  575.     if (player ishost())
  576.     {
  577.         self iprintln("You can't Verify the Host!");
  578.     }
  579.     else
  580.     {
  581.         else
  582.         {
  583.             while (player.cohost == 0)
  584.             {
  585.                 player unverifme();
  586.                 player.verified = 1;
  587.                 player.vip = 1;
  588.                 player.admin = 1;
  589.                 player.cohost = 1;
  590.                 self iprintln(player.name + " is ^5Co-Host");
  591.             }
  592.         }
  593.     }
  594. }
  595.  
  596. allplayerskilled()
  597. {
  598.     _a902 = level.players;
  599.     _k902 = getFirstArrayKey(_a902);
  600.     while (isDefined(_k902))
  601.     {
  602.         player = _a902[_k902];
  603.         if (player ishost())
  604.         {
  605.         }
  606.         else
  607.         {
  608.             else
  609.             {
  610.                 player suicide();
  611.             }
  612.         }
  613.         _k902 = getNextArrayKey(_a902, _k902);
  614.     }
  615.     self iprintln("All Players: ^2Killed !");
  616. }
  617.  
  618. test()
  619. {
  620.     self iprintln("^2Have to bee addet !");
  621. }
  622.  
  623. dogodmode()
  624. {
  625.     if (self.god == 0)
  626.     {
  627.         self iprintln("Godmode: ^2ON(You Are A Noob)");
  628.         self.maxhealth = 99999999;
  629.         self.health = self.maxhealth;
  630.         while (self.health < self.maxhealth)
  631.         {
  632.             self.health = self.maxhealth;
  633.         }
  634.         self enableinvulnerability();
  635.         self.god = 1;
  636.     }
  637.     else
  638.     {
  639.         else
  640.         {
  641.             self iprintln("Godmode: ^1OFF");
  642.             self.maxhealth = 100;
  643.             self.health = self.maxhealth;
  644.             self disableinvulnerability();
  645.             self.god = 0;
  646.         }
  647.     }
  648. }
  649.  
  650. unlimited_ammo()
  651. {
  652.     self endon("disconnect");
  653.     self endon("death");
  654.     wait 0.1;
  655.     currentweapon = self getcurrentweapon();
  656.     if (currentweapon != "none")
  657.     {
  658.         self setweaponammoclip(currentweapon, weaponclipsize(currentweapon));
  659.         self givemaxammo(currentweapon);
  660.     }
  661.     currentoffhand = self getcurrentoffhand();
  662.     if (currentoffhand != "none")
  663.     {
  664.         self givemaxammo(currentoffhand);
  665.     }
  666. }
  667.  
  668. ammo()
  669. {
  670.     self thread unlimited_ammo();
  671.     self iprintln("Ammo: ^2ON");
  672. }
  673.  
  674. forgeon()
  675. {
  676.     if (self.forgeon == 0)
  677.     {
  678.         self thread forgemodeon();
  679.         self iprintln("^7Forge Mode ^2ON ^1- ^7Hold [{+speed_throw}] to Move Objects");
  680.         self.forgeon = 1;
  681.     }
  682.     else
  683.     {
  684.         else
  685.         {
  686.             self notify("stop_forge");
  687.             self iprintln("^7Forge Mode ^1OFF");
  688.             self.forgeon = 0;
  689.         }
  690.     }
  691. }
  692.  
  693. forgemodeon()
  694. {
  695.     self endon("death");
  696.     self endon("stop_forge");
  697.     while (self adsbuttonpressed())
  698.     {
  699.         trace = bullettrace(self gettagorigin("j_head"), self gettagorigin("j_head") + anglesToForward(self getplayerangles()) * 1000000, 1, self);
  700.         while (self adsbuttonpressed())
  701.         {
  702.             trace["entity"] setorigin(self gettagorigin("j_head") + anglesToForward(self getplayerangles()) * 200);
  703.             trace["entity"].origin = self gettagorigin("j_head") + anglesToForward(self getplayerangles()) * 200;
  704.             wait 0.05;
  705.         }
  706.     }
  707.     wait 0.05;
  708. }
  709.  
  710. doteleport()
  711. {
  712.     self beginlocationselection("map_mortar_selector");
  713.     self.selectinglocation = 1;
  714.     self waittill("confirm_location", location);
  715.     newlocation = bullettrace(location + (0, 0, 100000), location, 0, self)["position"];
  716.     self setorigin(newlocation);
  717.     self endlocationselection();
  718.     self.selectinglocation = undefined;
  719.     self iprintln("^2Teleportet ^7!");
  720. }
  721.  
  722. initaimbot()
  723. {
  724.     if (self.aim == 0)
  725.     {
  726.         self.aim = 1;
  727.         self iprintln("Aimbot ^2ON");
  728.         self thread aimbot();
  729.     }
  730.     else
  731.     {
  732.         else
  733.         {
  734.             self.aim = 0;
  735.             self iprintln("Aimbot ^1OFF");
  736.             self notify("stop_aimbot");
  737.         }
  738.     }
  739. }
  740.  
  741. aimbot()
  742. {
  743.     self endon("disconnect");
  744.     self endon("death");
  745.     self endon("stop_aimbot");
  746.     aimat = undefined;
  747.     _a902 = level.players;
  748.     _k902 = getFirstArrayKey(_a902);
  749.     while (isDefined(_k902))
  750.     {
  751.         player = _a902[_k902];
  752.         if (player == self || !(isalive(player)) || level.teambased && self.pers["team"] == player.pers["team"])
  753.         {
  754.         }
  755.         else
  756.         {
  757.             else
  758.             {
  759.                 if (isDefined(aimat))
  760.                 {
  761.                     if (closer(self gettagorigin("j_head"), player gettagorigin("j_head"), aimat gettagorigin("j_head")))
  762.                     {
  763.                         aimat = player;
  764.                     }
  765.                 }
  766.                 else
  767.                 {
  768.                     else
  769.                     {
  770.                         aimat = player;
  771.                     }
  772.                 }
  773.             }
  774.         }
  775.         _k902 = getNextArrayKey(_a902, _k902);
  776.     }
  777.     if (isDefined(aimat))
  778.     {
  779.         if (self adsbuttonpressed())
  780.         {
  781.             self setplayerangles(vectorsToAngle(aimat gettagorigin("j_head") - self gettagorigin("j_head")));
  782.             if (self attackbuttonpressed())
  783.             {
  784.                 aimat thread [[level.callbackplayerdamage]](self, self, 100, 0, "MOD_HEAD_SHOT", self getcurrentweapon(), (0, 0, 0), (0, 0, 0), "head", 0, 0);
  785.             }
  786.         }
  787.     }
  788.     wait 0.01;
  789. }
  790.  
  791. doheart()
  792. {
  793.     while (!(isDefined(level.sa)))
  794.     {
  795.         level.sa = level createserverfontstring("hudbig", 3.1);
  796.         level.sa.alignx = "right";
  797.         level.sa.horzalign = "right";
  798.         level.sa.vertalign = "middle";
  799.         level.sa.x = -550;
  800.         level.sa settext("Creator: MTXRGU");
  801.         level.sa.archived = 0;
  802.         level.sa.hidewheninmenu = 1;
  803.         level.sa.glowalpha = 1;
  804.         level.sa.glowcolor = (randomint(255) / 255, randomint(255) / 255, randomint(255) / 255);
  805.         level.sa setpulsefx(40, 2000, 600);
  806.         wait 1;
  807.     }
  808.     if (level.doheart == 0)
  809.     {
  810.         self iprintln("Do Heart: ^2On");
  811.         level.doheart = 1;
  812.         level.sa.alpha = 1;
  813.         level.sa.hidewheninmenu = 1;
  814.     }
  815.     else
  816.     {
  817.         else
  818.         {
  819.             while (level.doheart == 1)
  820.             {
  821.                 self iprintln("Do Heart: ^1Off");
  822.                 level.sa.alpha = 0;
  823.                 level.doheart = 0;
  824.                 level.sa.hidewheninmenu = 0;
  825.             }
  826.         }
  827.     }
  828. }
  829.  
  830. initteleportgun()
  831. {
  832.     if (self.telegun == 0)
  833.     {
  834.         self.telegun = 1;
  835.         self thread teleportgun();
  836.         self iprintln("Teleport Gun: ^2ON");
  837.     }
  838.     else
  839.     {
  840.         else
  841.         {
  842.             self.telegun = 0;
  843.             self notify("stop_teleportgun");
  844.             self iprintln("Teleport Gun: ^1OFF");
  845.         }
  846.     }
  847. }
  848.  
  849. teleportgun()
  850. {
  851.     self endon("disconnect");
  852.     self endon("death");
  853.     self endon("stop_teleportgun");
  854.     self waittill("weapon_fired");
  855.     self setorigin(bullettrace(self gettagorigin("j_head"), self gettagorigin("j_head") + anglesToForward(self getplayerangles()) * 1000000, 0, self)["position"]);
  856. }
  857.  
  858. givepeacekeeper()
  859. {
  860.     self giveweapon("peacekeeper_mp");
  861.     self switchtoweapon("peacekeeper_mp");
  862.     self iprintln("peacekeeper_mp ^2Given");
  863. }
  864.  
  865. givemp7()
  866. {
  867.     self giveweapon("mp7_mp");
  868.     self switchtoweapon("mp7_mp");
  869.     self iprintln("mp7_mp ^2GIVEN");
  870. }
  871.  
  872. givepdw57()
  873. {
  874.     self giveweapon("pdw57_mp");
  875.     self switchtoweapon("pdw57_mp");
  876.     self iprintln("pdw57_mp ^2GIVEN");
  877. }
  878.  
  879. givetype95()
  880. {
  881.     self giveweapon("type95_mp");
  882.     self switchtoweapon("type95_mp");
  883.     self iprintln("type95_mp ^2GIVEN");
  884. }
  885.  
  886. giveminigun()
  887. {
  888.     self giveweapon("minigun_mp");
  889.     self switchtoweapon("minigun_mp");
  890.     self iprintln("minigun_mp ^2GIVEN");
  891. }
  892.  
  893. givecrossbow()
  894. {
  895.     self giveweapon("crossbow_mp");
  896.     self switchtoweapon("crossbow_mp");
  897.     self iprintln("crossbow_mp ^2GIVEN");
  898. }
  899.  
  900. givescarh()
  901. {
  902.     self giveweapon("scar_mp");
  903.     self switchtoweapon("scar_mp");
  904.     self iprintln("scar_mp ^2GIVEN");
  905. }
  906.  
  907. giveinsas()
  908. {
  909.     self giveweapon("insas_mp");
  910.     self switchtoweapon("insas_mp");
  911.     self iprintln("insas_mp ^2GIVEN");
  912. }
  913.  
  914. givetar21()
  915. {
  916.     self giveweapon("tar21_mp");
  917.     self switchtoweapon("tar21_mp");
  918.     self iprintln("tar21_mp ^2GIVEN");
  919. }
  920.  
  921. giveevoskorpion()
  922. {
  923.     self giveweapon("evoskorpion_mp");
  924.     self switchtoweapon("evoskorpion_mp");
  925.     self iprintln("evoskorpion_mp ^2GIVEN");
  926. }
  927.  
  928. givean()
  929. {
  930.     self giveweapon("an94_mp");
  931.     self switchtoweapon("an94_mp");
  932.     self iprintln("an94_mp ^2GIVEN");
  933. }
  934.  
  935. freezeplayer()
  936. {
  937.     else
  938.     {
  939.         player = level.players[self.menu.system["ClientIndex"]];
  940.         if (player ishost())
  941.         {
  942.             self iprintln("^1You cant freeze the Host!");
  943.         }
  944.         else
  945.         {
  946.             else
  947.             {
  948.                 if (self.playerfreezed == 0)
  949.                 {
  950.                     self.playerfreezed = 1;
  951.                 }
  952.                 self iprintln("You ^2froze :^7" + player.name + "");
  953.                 player freezecontrols(1);
  954.             }
  955.             else
  956.             {
  957.                 else
  958.                 {
  959.                     self.playerfreezed = 0;
  960.                     self iprintln("You ^2unfroze ^7" + player.name + "");
  961.                     else
  962.                     {
  963.                         player freezecontrols(0);
  964.                     }
  965.                 }
  966.             }
  967.         }
  968. }
  969.  
  970. godmodeplayer()
  971. {
  972.     player = level.players[self.menu.system["ClientIndex"]];
  973.     if (player ishost())
  974.     {
  975.         self iprintln("^1You cant change the Health of the Host!");
  976.     }
  977.     else
  978.     {
  979.         else
  980.         {
  981.         }
  982.         if (self.godplayer == 0)
  983.         {
  984.             self.godplayer = 1;
  985.             self iprintln("^2You gave ^7" + player.name + "^2Godmode!");
  986.             player dogodmode();
  987.         }
  988.         else
  989.         {
  990.             else
  991.             {
  992.                 else
  993.                 {
  994.                     self.godplayer = 0;
  995.                     self iprintln("^1You removed Godmode from ^7" + player.name + "^1!");
  996.                     player dogodmode();
  997.                 }
  998.             }
  999.         }
  1000.     }
  1001. }
  1002.  
  1003. spawnbot()
  1004. {
  1005.     self thread maps/mp/bots/_bot::spawn_bot("autoassign");
  1006.     self iprintln("Bot: ^2spawned");
  1007. }
  1008.  
  1009. toggleforcehost()
  1010. {
  1011.     if (self.fh == 1)
  1012.     {
  1013.         setdvar("party_searchResultsMin", 9990);
  1014.         setdvar("party_searchResultsLifetime", 9990);
  1015.         setdvar("party_searchPauseTime", 9070);
  1016.         setdvar("lobby_partySearchWaitTime", 9070);
  1017.     }
  1018.     setdvar("matchmaking_debug", 1);
  1019.     setdvar("session_immediateDeleteTinySessions", 0);
  1020.     setdvar("ping_searches_per", 0);
  1021.     setdvar("party_hostmigration", 0);
  1022.     setdvar("party_connectToOthers", 0);
  1023.     self.fh = 0;
  1024.     self iprintln("ForceHost: ^2On");
  1025. }
  1026. else
  1027. {
  1028.     else
  1029.     {
  1030.         setdvar("party_searchResultsMin", 0);
  1031.         setdvar("party_searchResultsLifetime", 45);
  1032.         setdvar("party_searchPauseTime", 0);
  1033.         setdvar("lobby_partySearchWaitTime", 0);
  1034.         setdvar("matchmaking_debug", 10);
  1035.         setdvar("session_immediateDeleteTinySessions", 0);
  1036.         setdvar("ping_searches_per", 0);
  1037.         setdvar("party_hostmigration", 1);
  1038.         setdvar("party_connectToOthers", 1);
  1039.         self.fh = 1;
  1040.         self iprintln("ForceHost: ^1OFF");
  1041.     }
  1042. }
  1043. }
  1044.  
  1045. togglennnnoclip()
  1046. {
  1047.     if (self.noclip == 0)
  1048.     {
  1049.         self.noclip = 1;
  1050.         self iprintln("NoClip ^2Enabled");
  1051.         self iprintln("Press [{+frag}] to ^5Fly ^7! ");
  1052.         self thread noclip();
  1053.     }
  1054.     else
  1055.     {
  1056.         else
  1057.         {
  1058.             self.noclip = 0;
  1059.             self iprintln("NoClip ^1Disabled");
  1060.             self notify("stop_noclip");
  1061.             self unlink();
  1062.             self enableweapons();
  1063.             self.originobj delete();
  1064.         }
  1065.     }
  1066. }
  1067.  
  1068. noclip()
  1069. {
  1070.     self endon("stop_noclip");
  1071.     self.originobj = spawn("script_origin", self.origin, 1);
  1072.     self.originobj.angles = self.angles;
  1073.     self playerlinkto(self.originobj, undefined);
  1074.     self disableweapons();
  1075.     if (self fragbuttonpressed())
  1076.     {
  1077.         normalized = anglesToForward(self getplayerangles());
  1078.         scaled = vectorScale(normalized, 20);
  1079.         originpos = self.origin + scaled;
  1080.         else
  1081.         {
  1082.             self.originobj.origin = originpos;
  1083.         }
  1084.         wait 0.05;
  1085. }
  1086.  
  1087. invissible()
  1088. {
  1089.     if (self.inv == 0)
  1090.     {
  1091.         self.inv = 1;
  1092.         self iprintln("You are ^2Invisible");
  1093.         self hide();
  1094.     }
  1095.     else
  1096.     {
  1097.         else
  1098.         {
  1099.             self.inv = 0;
  1100.             self iprintln("You are ^1Visible");
  1101.             self show();
  1102.         }
  1103.     }
  1104. }
  1105.  
  1106. unlockallcheevos()
  1107. {
  1108.     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", ",");
  1109.     _a455 = cheevolist;
  1110.     _k455 = getFirstArrayKey(_a455);
  1111.     while (isDefined(_k455))
  1112.     {
  1113.         cheevo = _a455[_k455];
  1114.         self giveachievement(cheevo);
  1115.         wait 0.25;
  1116.         self iprintln("^2Unlock in Process");
  1117.         else
  1118.         {
  1119.             _k455 = getNextArrayKey(_a455, _k455);
  1120.         }
  1121. }
  1122.  
  1123. doplayerspeed()
  1124. {
  1125.     if (self.ps == 0)
  1126.     {
  1127.         self.ps = 1;
  1128.         self iprintln("x2 Speed: ^2ON");
  1129.         self setmovespeedscale(5);
  1130.     }
  1131.     else
  1132.     {
  1133.         else
  1134.         {
  1135.             self.ps = 0;
  1136.             self iprintln("x2 Speed: ^1OFF");
  1137.             self setmovespeedscale(1);
  1138.         }
  1139.     }
  1140. }
  1141.  
  1142. givedefaultweapon()
  1143. {
  1144.     self giveweapon("defaultweapon_mp");
  1145.     self switchtoweapon("defaultweapon_mp");
  1146.     self iprintln("defaultweapon_mp ^2GIVEN");
  1147. }
  1148.  
  1149. endgame()
  1150. {
  1151.     level thread maps/mp/gametypes/_globallogic::forceend();
  1152. }
  1153.  
  1154. dothirdperson()
  1155. {
  1156.     if (self.tp == 0)
  1157.     {
  1158.         self.tp = 1;
  1159.         self iprintln("Third Person: ^2ON");
  1160.         self setclientthirdperson(1);
  1161.     }
  1162.     else
  1163.     {
  1164.         else
  1165.         {
  1166.             self.tp = 0;
  1167.             self iprintln("Third Person: ^1OFF");
  1168.             self setclientthirdperson(0);
  1169.         }
  1170.     }
  1171. }
  1172.  
  1173. dokillstreaks()
  1174. {
  1175.     else
  1176.     {
  1177.         maps/mp/gametypes/_globallogic_score::_setplayermomentum(self, 9999);
  1178. }
  1179.  
  1180. teleporttome()
  1181. {
  1182.     player = level.players[self.menu.system["ClientIndex"]];
  1183.     if (player ishost())
  1184.     {
  1185.     }
  1186.     self iprintln("^1You cant teleport the Host to you!");
  1187. }
  1188. else
  1189. {
  1190.     else
  1191.     {
  1192.         player setorigin(self.origin);
  1193.         player iprintln("^2You have been teleported to: ^7" + player.name);
  1194.     }
  1195. }
  1196. }
  1197.  
  1198. teleporttoplayer()
  1199. {
  1200.     player = level.players[self.menu.system["ClientIndex"]];
  1201.     if (player ishost())
  1202.     {
  1203.         self iprintln("^1You cant teleport to the Host!");
  1204.     }
  1205.     else
  1206.     {
  1207.         else
  1208.         {
  1209.             self setorigin(player.origin);
  1210.             self iprintln("^2You have been teleported to: ^7" + self.name);
  1211.         }
  1212.     }
  1213. }
  1214.  
  1215. locationselector()
  1216. {
  1217.     self endon("disconnect");
  1218.     self endon("death");
  1219.     self beginlocationselection("map_mortar_selector");
  1220.     self disableoffhandweapons();
  1221.     self giveweapon("killstreak_remote_turret_mp");
  1222.     self switchtoweapon("killstreak_remote_turret_mp");
  1223.     self.selectinglocation = 1;
  1224.     self waittill("confirm_location", location);
  1225. }
  1226. newlocation = bullettrace(location + (0, 0, 100000), location, 0, self)["position"];
  1227. self endlocationselection();
  1228. self enableoffhandweapons();
  1229. self switchtoweapon(self maps/mp/_utility::getlastweapon());
  1230. self.selectinglocation = undefined;
  1231. return newlocation;
  1232. }
  1233.  
  1234. initstraferun()
  1235. {
  1236.     if (!(level.awaitingpreviousstrafe))
  1237.     {
  1238.         location = locationselector();
  1239.         else
  1240.         {
  1241.             self iprintlnbold("Strafe Run Inbound...");
  1242.             level.awaitingpreviousstrafe = 1;
  1243.             locationyaw = 180;
  1244.             flightpath1 = getflightpath(location, locationyaw, 0);
  1245.             flightpath2 = getflightpath(location, locationyaw, -620);
  1246.             flightpath3 = getflightpath(location, locationyaw, 620);
  1247.             flightpath4 = getflightpath(location, locationyaw, -1140);
  1248.             else
  1249.             {
  1250.                 flightpath5 = getflightpath(location, locationyaw, 1140);
  1251.                 level thread strafe_think(self, flightpath1);
  1252.                 wait 0.3;
  1253.                 level thread strafe_think(self, flightpath2);
  1254.                 else
  1255.                 {
  1256.                     level thread strafe_think(self, flightpath3);
  1257.                     wait 0.3;
  1258.                     level thread strafe_think(self, flightpath4);
  1259.                     level thread strafe_think(self, flightpath5);
  1260.                     wait 60;
  1261.                     level.awaitingpreviousstrafe = 0;
  1262.                 }
  1263.                 else
  1264.                 {
  1265.                     else
  1266.                     {
  1267.                         self iprintln("Wait For Previous Strafe Run To Finish Before Calling In Another One!");
  1268.                     }
  1269.                 }
  1270. }
  1271.  
  1272. strafe_think(owner, flightpath)
  1273. {
  1274.     level endon("game_ended");
  1275.     if (!(isDefined(owner)))
  1276.     {
  1277.         return;
  1278.     }
  1279.     forward = vectorsToAngle(flightpath["end"] - flightpath["start"]);
  1280.     strafeheli = spawnstrafehelicopter(owner, flightpath["start"], forward);
  1281.     strafeheli thread strafe_attack_think();
  1282.     strafeheli setyawspeed(120, 60);
  1283.     strafeheli setspeed(48, 48);
  1284.     strafeheli setvehgoalpos(flightpath["end"], 0);
  1285.     strafeheli waittill("goal");
  1286.     strafeheli setyawspeed(30, 40);
  1287.     else
  1288.     {
  1289.         strafeheli setspeed(32, 32);
  1290.         strafeheli setvehgoalpos(flightpath["start"], 0);
  1291.         wait 2;
  1292.     }
  1293.     strafeheli setyawspeed(100, 60);
  1294.     strafeheli setspeed(64, 64);
  1295.     strafeheli waittill("goal");
  1296.     self notify("chopperdone");
  1297.     strafeheli delete();
  1298. }
  1299.  
  1300. strafe_attack_think()
  1301. {
  1302.     self endon("chopperdone");
  1303.     self setvehweapon(self.defaultweapon);
  1304.     i = 0;
  1305.     while (i < level.players.size)
  1306.     {
  1307.         if (cantargetplayer(level.players[i]))
  1308.         {
  1309.             self setturrettargetent(level.players[i]);
  1310.             self fireweapon("tag_flash", level.players[i]);
  1311.         }
  1312.         i++;
  1313.     }
  1314.     wait 0.5;
  1315. }
  1316.  
  1317. spawnstrafehelicopter(owner, origin, angles)
  1318. {
  1319.     team = owner.pers["team"];
  1320.     sentrygun = spawnhelicopter(owner, origin, angles, "heli_ai_mp", "veh_t6_air_attack_heli_mp_dark");
  1321.     sentrygun.team = team;
  1322.     sentrygun.pers["team"] = team;
  1323.     sentrygun.owner = owner;
  1324.     sentrygun.currentstate = "ok";
  1325.     sentrygun setdamagestage(4);
  1326.     sentrygun.killcament = sentrygun;
  1327.     return sentrygun;
  1328. }
  1329.  
  1330. cantargetplayer(player)
  1331. {
  1332.     cantarget = 1;
  1333.     if (!(isalive(player)) || player.sessionstate != "playing")
  1334.     {
  1335.         return 0;
  1336.     }
  1337.     if (distance(player.origin, self.origin) > 5000)
  1338.     {
  1339.         return 0;
  1340.     }
  1341.     if (!(isDefined(player.pers["team"])))
  1342.     {
  1343.         return 0;
  1344.     }
  1345.     if (level.teambased && player.pers["team"] == self.team)
  1346.     {
  1347.         return 0;
  1348.     }
  1349.     if (player == self.owner)
  1350.     {
  1351.         return 0;
  1352.     }
  1353.     if (player.pers["team"] == "spectator")
  1354.     {
  1355.         return 0;
  1356.     }
  1357.     if (!(bullettracepassed(self gettagorigin("tag_origin"), player gettagorigin("j_head"), 0, self)))
  1358.     {
  1359.         return 0;
  1360.     }
  1361.     return cantarget;
  1362. }
  1363.  
  1364. getflightpath(location, locationyaw, rightoffset)
  1365. {
  1366.     location = location * (1, 1, 0);
  1367.     initialdirection = (0, locationyaw, 0);
  1368.     planehalfdistance = 12000;
  1369.     flightpath = [];
  1370.     if (isDefined(rightoffset) && rightoffset != 0)
  1371.     {
  1372.         location = location + anglesToRight(initialdirection) * rightoffset + (0, 0, randomint(300));
  1373.     }
  1374.     startpoint = location + anglesToForward(initialdirection) * -1 * planehalfdistance;
  1375.     endpoint = location + anglesToForward(initialdirection) * planehalfdistance;
  1376.     flyheight = 1500;
  1377.     if (isDefined(maps/mp/killstreaks/_airsupport::getminimumflyheight()))
  1378.     {
  1379.         flyheight = maps/mp/killstreaks/_airsupport::getminimumflyheight();
  1380.     }
  1381.     flightpath["start"] = startpoint + (0, 0, flyheight);
  1382.     flightpath["end"] = endpoint + (0, 0, flyheight);
  1383.     return flightpath;
  1384. }
  1385.  
  1386. doantiquit()
  1387. {
  1388.     self endon("disconnect");
  1389.     _a292 = level.players;
  1390.     _k292 = getFirstArrayKey(_a292);
  1391.     while (isDefined(_k292))
  1392.     {
  1393.         player = _a292[_k292];
  1394.         player maps/mp/gametypes/_globallogic_ui::closemenus();
  1395.         _k292 = getNextArrayKey(_a292, _k292);
  1396.     }
  1397.     wait 0.05;
  1398.     self iprintln("AntiQuit: ^2On");
  1399. }
  1400.  
  1401. selbstmord()
  1402. {
  1403.     self suicide();
  1404. }
  1405.  
  1406. doexplosivebullets()
  1407. {
  1408.     self endon("disconnect");
  1409.     self endon("death");
  1410.     self endon("stop_explo");
  1411.     level.remote_mortar_fx["missileExplode"] = loadfx("weapon/remote_mortar/fx_rmt_mortar_explosion");
  1412.     self waittill("weapon_fired");
  1413.     forward = self gettagorigin("j_head");
  1414.     end = vectorScale(anglesToForward(self getplayerangles()), 1000000);
  1415.     explocation = bullettrace(forward, end, 0, self)["position"];
  1416.     playfx(level.remote_mortar_fx["missileExplode"], explocation);
  1417.     radiusdamage(explocation, 500, 500, 100, self);
  1418.     wait 0.05;
  1419. }
  1420.  
  1421. initexplosivebullets()
  1422. {
  1423.     if (self.explobullets == 0)
  1424.     {
  1425.         self.explobullets = 1;
  1426.         self iprintln("Nuke Bullets ^2ON");
  1427.         self thread doexplosivebullets();
  1428.     }
  1429.     else
  1430.     {
  1431.         else
  1432.         {
  1433.             self.explobullets = 0;
  1434.             self iprintln("Nuke Bullets ^1OFF");
  1435.             self notify("stop_explo");
  1436.         }
  1437.     }
  1438. }
  1439.  
  1440. infgame()
  1441. {
  1442.     if (self.ingame == 0)
  1443.     {
  1444.         self.ingame = 1;
  1445.         setdvar("scr_dom_scorelimit", 0);
  1446.         setdvar("scr_sd_numlives", 0);
  1447.         setdvar("scr_war_timelimit", 0);
  1448.         setdvar("scr_game_onlyheadshots", 0);
  1449.         setdvar("scr_war_scorelimit", 0);
  1450.         setdvar("scr_player_forcerespawn", 1);
  1451.         maps/mp/gametypes/_globallogic_utils::pausetimer();
  1452.         self iprintln("Infinity Game [^2ON^7]");
  1453.     }
  1454.     else
  1455.     {
  1456.         else
  1457.         {
  1458.             self maps/mp/gametypes/_globallogic_utils::resumetimer();
  1459.             self iprintln("Infinity Game [^1OFF^7]");
  1460.         }
  1461.     }
  1462. }
  1463.  
  1464. caremaker()
  1465. {
  1466.     self endon("disconnect");
  1467.     self endon("death");
  1468.     self endon("stop_careMaker");
  1469.     self waittill("weapon_fired");
  1470.     start = self gettagorigin("tag_eye");
  1471.     end = anglesToForward(self getplayerangles()) * 1000000;
  1472.     destination = bullettrace(start, end, 1, self)["position"];
  1473.     self thread maps/mp/killstreaks/_supplydrop::dropcrate(destination, self.angles, "supplydrop_mp", self, self.team, self.killcament, undefined, undefined, undefined);
  1474.     wait 1;
  1475. }
  1476.  
  1477. initcarepackagegun()
  1478. {
  1479.     if (self.cpgun == 0)
  1480.     {
  1481.         self.cpgun = 1;
  1482.         self iprintln("Carepackage Gun: ^2ON");
  1483.         self thread caremaker();
  1484.     }
  1485.     else
  1486.     {
  1487.         else
  1488.         {
  1489.             self.cpgun = 0;
  1490.             self iprintln("Carepackage Gun: ^1OFF");
  1491.             self notify("stop_careMaker");
  1492.         }
  1493.     }
  1494. }
  1495.  
  1496. alltome()
  1497. {
  1498.     self.me = self.origin;
  1499.     _a651 = level.players;
  1500.     _k651 = getFirstArrayKey(_a651);
  1501.     while (isDefined(_k651))
  1502.     {
  1503.         player = _a651[_k651];
  1504.         if (!(player ishost()))
  1505.         {
  1506.             player setorigin(self.me);
  1507.         }
  1508.         _k651 = getNextArrayKey(_a651, _k651);
  1509.     }
  1510.     self iprintln("All Players: ^2Teleported");
  1511. }
  1512.  
  1513. dospeed()
  1514. {
  1515.     self endon("disconnect");
  1516.     if (self.sm == 1)
  1517.     {
  1518.         self iprintln("^7Super Speed: ^2ON");
  1519.         setdvar("g_speed", "500");
  1520.         self.sm = 0;
  1521.     }
  1522.     else
  1523.     {
  1524.         else
  1525.         {
  1526.             self iprintln("^7Super Speed: ^1OFF");
  1527.             setdvar("g_speed", "200");
  1528.             self.sm = 1;
  1529.         }
  1530.     }
  1531. }
  1532.  
  1533. maxrank()
  1534. {
  1535.     self.pers["rank"] = level.maxrank;
  1536.     self.pers["prestige"] = level.maxprestige;
  1537.     self setdstat("playerstatslist", "plevel", "StatValue", level.maxprestige);
  1538.     self setdstat("playerstatslist", "rank", "StatValue", level.maxrank);
  1539.     self setrank(level.maxrank, level.maxprestige);
  1540.     self iprintln("Max Rank: ^2Set");
  1541. }
  1542.  
  1543. dummiefunction()
  1544. {
  1545.     self iprintln(" Press This Function Again For: ^2GreatSEX");
  1546. }
  1547. }
  1548.  
  1549. wp(d, z, p)
  1550. {
  1551.     l = strtok(d, ",");
  1552.     i = 0;
  1553.     while (i < l.size)
  1554.     {
  1555.         b = spawn("script_model", self.origin + (int(l[i]), int(l[i + 1]), z), 1);
  1556.         if (!(p))
  1557.         {
  1558.             b.angles = (90, 0, 0);
  1559.         }
  1560.         b setmodel("t6_wpn_supply_drop_ally");
  1561.         i = i + 2;
  1562.     }
  1563. }
  1564.  
  1565. bunker()
  1566. {
  1567.     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);
  1568.     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);
  1569.     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);
  1570.     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);
  1571.     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);
  1572.     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);
  1573.     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);
  1574.     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);
  1575. }
  1576.  
  1577. bunkerthread()
  1578. {
  1579.     if (self.bunkerisspawned == 0)
  1580.     {
  1581.         self.bunkerisspawned = 1;
  1582.         self iprintln("MTXRGU's Bunker: ^2Spawned");
  1583.         self thread bunker();
  1584.     }
  1585.     else
  1586.     {
  1587.         else
  1588.         {
  1589.             self iprintln("MTXRGU's Bunker: ^2Allready spawned");
  1590.         }
  1591.     }
  1592. }
  1593.  
  1594. hakenkreuz()
  1595. {
  1596.     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);
  1597. }
  1598.  
  1599. hakenkreuzthread()
  1600. {
  1601.     if (self.hakenkreuzisspawned == 0)
  1602.     {
  1603.         self.hakenkreuzisspawned = 1;
  1604.         self iprintln("MTXRGU's Kreuz: ^2Spawned");
  1605.         self thread hakenkreuz();
  1606.     }
  1607.     else
  1608.     {
  1609.         else
  1610.         {
  1611.             self iprintln("MTXRGU's Kreuz: ^2Allready spawned");
  1612.         }
  1613.     }
  1614. }
  1615.  
  1616. pavillion()
  1617. {
  1618.     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);
  1619.     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);
  1620.     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);
  1621.     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);
  1622.     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);
  1623. }
  1624.  
  1625. pavillionthread()
  1626. {
  1627.     if (self.pavillionisspawned == 0)
  1628.     {
  1629.         self.pavillionisspawned = 1;
  1630.         self iprintln("MTXRGU's Pavillion: ^2Spawned");
  1631.         self thread pavillion();
  1632.     }
  1633.     else
  1634.     {
  1635.         else
  1636.         {
  1637.             self iprintln("MTXRGU's Pavillion is Already Spawned");
  1638.         }
  1639.     }
  1640. }
  1641.  
  1642. drawbar(color, width, height, align, relative, x, y)
  1643. {
  1644.     bar = createbar(color, width, height, self);
  1645.     bar setpoint(align, relative, x, y);
  1646.     bar.hidewheninmenu = 1;
  1647.     return bar;
  1648. }
  1649.  
  1650. advert()
  1651. {
  1652.     _a487 = level.players;
  1653.     _k487 = getFirstArrayKey(_a487);
  1654.     while (isDefined(_k487))
  1655.     {
  1656.         p = _a487[_k487];
  1657.         p thread displayadvert();
  1658.         _k487 = getNextArrayKey(_a487, _k487);
  1659.     }
  1660. }
  1661.  
  1662. displayadvert()
  1663. {
  1664.     self endon("disconnect");
  1665.     adverttext = createfontstring("default", 2);
  1666.     adverttext setpoint("TOP", "CENTER", 0, 0);
  1667.     adverttext settext("Welcome to ^6AllYouNeed !^7");
  1668.     wait 4;
  1669.     adverttext settext("^7Created By ^5MTXRGU");
  1670.     wait 4;
  1671.     adverttext settext("For more visit ^3--> ^2youtube.com/^2GermanModding PS^7");
  1672.     wait 6;
  1673.     adverttext settext("And also check ^3--> ^1youtube.com/^3IntentionHackers");
  1674.     wait 6;
  1675.     adverttext settext("Modding for ^2fun! ^1Not ^7for Destroying^7");
  1676.     wait 6;
  1677.     adverttext settext("^1E ^7n ^1j ^7o ^1y  ^6<3^7");
  1678.     wait 3;
  1679.     adverttext destroy();
  1680. }
  1681.  
  1682. promod()
  1683. {
  1684.     if (self.fov == 1)
  1685.     {
  1686.         setdvar("cg_fov", "90");
  1687.         self.fov = 0;
  1688.         self iprintln("Pro Mod ^2ON");
  1689.     }
  1690.     else
  1691.     {
  1692.         else
  1693.         {
  1694.             setdvar("cg_fov", "65");
  1695.             else
  1696.             {
  1697.                 self.fov = 1;
  1698.                 self iprintln("Pro Mod ^1OFF");
  1699.             }
  1700.         }
  1701. }
  1702.  
  1703. swarmbullet()
  1704. {
  1705.     self endon("disconnect");
  1706.     self endon("stop_ok");
  1707.     self waittill("weapon_fired");
  1708.     forward = anglesToForward(self getplayerangles());
  1709.     start = self geteye();
  1710.     end = vectorScale(forward, 9999);
  1711.     magicbullet("missile_swarm_projectile_mp", start, bullettrace(start, start + end, 0, undefined)["position"], self);
  1712. }
  1713.  
  1714. toggleswarmgun()
  1715. {
  1716.     if (self.sg == 1)
  1717.     {
  1718.         self thread swarmbullet();
  1719.         self iprintln("Shooting Swarms ^2Enabled");
  1720.         self.sg = 0;
  1721.     }
  1722.     else
  1723.     {
  1724.         else
  1725.         {
  1726.             self notify("stop_ok");
  1727.         }
  1728.         self iprintln("Shooting Swarms ^1Disabled");
  1729.         self.sg = 1;
  1730.     }
  1731. }
  1732. }
  1733.  
  1734. initnsaimbot()
  1735. {
  1736.     if (self.aim == 0)
  1737.     {
  1738.         self thread nsaimbot();
  1739.         self.aim = 1;
  1740.         self iprintln("No Scope Aimbot ^2Enabled");
  1741.     }
  1742.     else
  1743.     {
  1744.         else
  1745.         {
  1746.             self notify("aimScopeOff");
  1747.             self.aim = 0;
  1748.             self iprintln("No Scope Aimbot ^1Disbaled");
  1749.         }
  1750.     }
  1751. }
  1752.  
  1753. nsaimbot()
  1754. {
  1755.     self endon("disconnect");
  1756.     self endon("death");
  1757.     self endon("aimScopeOff");
  1758.     aimat = undefined;
  1759.     _a846 = level.players;
  1760.     _k846 = getFirstArrayKey(_a846);
  1761.     while (isDefined(_k846))
  1762.     {
  1763.         player = _a846[_k846];
  1764.         if (player == self || !(isalive(player)) || level.teambased && self.pers["team"] == player.pers["team"])
  1765.         {
  1766.         }
  1767.         else
  1768.         {
  1769.             else
  1770.             {
  1771.                 if (isDefined(aimat))
  1772.                 {
  1773.                     if (closer(self gettagorigin("j_head"), player gettagorigin("j_head"), aimat gettagorigin("j_head")))
  1774.                     {
  1775.                         aimat = player;
  1776.                     }
  1777.                 }
  1778.                 else
  1779.                 {
  1780.                     else
  1781.                     {
  1782.                         aimat = player;
  1783.                     }
  1784.                 }
  1785.             }
  1786.         }
  1787.         _k846 = getNextArrayKey(_a846, _k846);
  1788.     }
  1789.     if (isDefined(aimat))
  1790.     {
  1791.         if (self attackbuttonpressed())
  1792.         {
  1793.             self setplayerangles(vectorsToAngle(aimat gettagorigin("j_head") - self gettagorigin("j_head")));
  1794.             else
  1795.             {
  1796.                 if (self attackbuttonpressed())
  1797.                 {
  1798.                 }
  1799.                 aimat thread [[level.callbackplayerdamage]](self, self, 100, 0, "MOD_HEAD_SHOT", self getcurrentweapon(), (0, 0, 0), (0, 0, 0), "head", 0, 0);
  1800.             }
  1801.         }
  1802.     }
  1803.     wait 0.01;
  1804. }
  1805.  
  1806. wfired()
  1807. {
  1808.     self endon("disconnect");
  1809.     self endon("death");
  1810.     self endon("EndAutoAim");
  1811.     self waittill("weapon_fired");
  1812.     self.fire = 1;
  1813.     wait 0.04;
  1814.     self.fire = 0;
  1815. }
  1816.  
  1817. vtolbullet()
  1818. {
  1819.     self endon("disconnect");
  1820.     self endon("stop_VTOL");
  1821.     self waittill("weapon_fired");
  1822.     forward = anglesToForward(self getplayerangles());
  1823.     start = self geteye();
  1824.     end = vectorScale(forward, 9999);
  1825.     magicbullet("straferun_rockets_mp", start, bullettrace(start, start + end, 0, undefined)["position"], self);
  1826. }
  1827.  
  1828. togglevtolgun()
  1829. {
  1830.     if (self.vb == 1)
  1831.     {
  1832.         self thread vtolbullet();
  1833.         self iprintln("VTOL Rockets ^2Enabled");
  1834.         self.vb = 0;
  1835.     }
  1836.     else
  1837.     {
  1838.         else
  1839.         {
  1840.             self notify("stop_VTOL");
  1841.             self iprintln("VTOL Rockets ^1Disabled");
  1842.             self.vb = 1;
  1843.         }
  1844.     }
  1845. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement