Advertisement
Liamm

Xenon Menu

Oct 8th, 2015
644
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 56.26 KB | None | 0 0
  1. //Credits Liam for source
  2.  
  3.  
  4.  
  5. #include maps/mp/gametypes/_globallogic;
  6. #include maps/mp/gametypes/_hud;
  7. #include maps/mp/gametypes/_hud_util;
  8. #include maps/mp/_utility;
  9. #include common_scripts/utility;
  10. #include maps/mp/gametypes/_hud_message;
  11. #include maps/mp/killstreaks/_ai_tank;
  12.  
  13. init()
  14. {
  15.     level thread onPlayerConnect();
  16.     precacheShader("loadscreen_" + getDvar("mapname"));
  17.     setDvar("black_hole","0");
  18.     precacheShader("gradient_center");
  19.     level.BlackHoeFx=loadfx("explosions/aerial_explosion");
  20.     precacheModel("veh_t6_drone_hunterkiller");
  21.     precacheModel("mp_mp7");
  22.     precacheModel("viewmodel_hands_no_model");
  23.     precacheModel("defaultactor");
  24.     precacheShader("rank_prestige14");
  25. }
  26.  
  27. onPlayerConnect()
  28. {
  29.     for(;;)
  30.     {
  31.         level waittill("connected", player);
  32.         player thread onPlayerSpawned();
  33.     }
  34. }
  35.  
  36. onPlayerSpawned()
  37. {
  38.     self endon("disconnect");
  39.     level endon("game_ended");
  40.     for(;;)
  41.     {
  42.         self waittill("spawned_player");
  43.         self thread Mapname();
  44.         if(self isHost())
  45.         {
  46.         self thread destroyElemOnDeath();
  47.         self thread RunControl();
  48.         }
  49.     }
  50. }
  51.  
  52. RunControl()
  53. {
  54.     self addMenu("Main", 0, "GameModes", ::NewMenu, "FunMenu");
  55.     self addMenu("Main", 1, "Edit ^1Self", ::NewMenu, "EDP");
  56.     self addMenu("Main", 2, "Advertise", ::NewMenu, "Adv");
  57.     self addMenu("Main", 3, "VIP Menu", ::NewMenu, "VIPM");
  58.     self addMenu("Main", 4, "Admin Menu", ::NewMenu, "ADM");
  59.     self addMenu("Main", 5, "Lobby Menu", ::NewMenu, "EDMenu");
  60.    
  61.     self addMenu("FunMenu", 0, "Cranked", ::NewMenu, "FunMenu");
  62.     self addMenu("FunMenu", 1, "AON", ::NewMenu, "FunMenu");
  63.    
  64.     self addMenu("VIPM", 0, "Cranked", ::NewMenu, "FunMenu");
  65.     self addMenu("VIPM", 1, "AON", ::NewMenu, "FunMenu");
  66.    
  67.     self addMenu("ADM", 0, "Aimbot Menu", ::NewMenu, "Aim");
  68.     self addOpt("ADM", 1, "Explosive Bullets", ::Test);
  69.    
  70.     self addOpt("Aim", 0, "Regular Aimbot", ::Test);
  71.     self addOpt("Aim", 1, "Unfair Aimbot", ::Test);
  72.    
  73.     self addMenu("Adv", 0, "Welcome", ::NewMenu, "Adv");
  74.     self addMenu("Adv", 1, "Host", ::NewMenu, "Adv");
  75.     self addOpt("Adv", 2, "Kill Text", ::ToggleKillTxt);
  76.     self addMenu("Adv", 3, "Host1", ::NewMenu, "Adv");
  77.     self addMenu("Adv", 4, "More Advertisements", ::NewMenu, "Adv2");
  78.      
  79.     self addOpt("Adv2", 0, "Host DoHeart", ::Test);
  80.     self addOpt("Adv2", 1, "Menu DoHeart", ::Test);
  81.    
  82.     self addOpt("KS", 0, "UAV", ::GiveUAV);
  83.     self addOpt("KS", 1, "RCXD", ::GiveRC);
  84.     self addOpt("KS", 2, "Hunter Killer", ::GiveHunt);
  85.     self addOpt("KS", 3, "Care Package", ::GiveCare);
  86.     self addOpt("KS", 4, "Counter UAV", ::GiveCUAV);
  87.     self addOpt("KS", 5, "Guardian", ::GiveGaurd);
  88.     self addOpt("KS", 6, "Helicopter", ::GiveHell);
  89.     self addOpt("KS", 7, "Lightning Strike", ::GiveLS);
  90.     self addOpt("KS", 8, "Sentry Gun", ::GiveSG);
  91.     self addOpt("KS", 9, "EMP", ::GiveEMP);
  92.     self addMenu("KS", 10, "More Killstreaks", ::NewMenu, "KS2");
  93.    
  94.     self addOpt("KS2", 0, "AGR Army", ::AGR_ARMY);
  95.     self addOpt("KS2", 1, "Circling Plane", ::GiveRC);
  96.     self addOpt("KS2", 2, "Hunter Killer", ::GiveHunt);
  97.    
  98.     self addMenu("WPN", 0, "Edit Weapons", ::NewMenu, "NWPN");
  99.     self addMenu("WPN", 1, "Modded Weapons", ::NewMenu, "MWPN");
  100.    
  101.     self addOpt("NWPN", 0, "Edit ViewModel", ::ViewM);
  102.     self addOpt("NWPN", 1, "No Hands", ::NH);
  103.     self addOpt("NWPN", 2, "XModel Edit", ::ViewMP7);
  104.    
  105.     self addOpt("MWPN", 0, "~~~~Don't Spam~~~~", ::NO);
  106.     self addOpt("MWPN", 1, "Super Executioner", ::SuperMagnum);
  107.     self addOpt("MWPN", 2, "AC130", ::doac130);
  108.    
  109.     self addOpt("EDP", 0, "Godmode", ::Fox);
  110.     self addOpt("EDP", 1, "suicide Bomber", ::suicideBomb);
  111.     self addOpt("EDP", 2, "Messed Up Clone", ::deadclone);
  112.     self addOpt("EDP", 3, "Edit XYZ Positioning", ::xyzEditor);
  113.     self addOpt("EDP", 4, "Unlimited Ammo", ::InfiniteAmmo);
  114.     self addOpt("EDP", 5, "All Perks", ::doPerks);
  115.     self addOpt("EDP", 6, "No Clip", ::UFOMode);
  116.     self addMenu("EDP", 7, "EDP 7", ::NewMenu, "EDP");
  117.    
  118.     self addOpt("EDMenu", 0, "Multi Jump", ::Test);
  119.     self addMenu("EDMenu", 1, "Super Speed", ::NewMenu, "EDMenu");
  120.     self addMenu("EDMenu", 2, "Killstreaks", ::NewMenu, "KS");
  121.     self addMenu("EDMenu", 3, "Weapons", ::NewMenu, "WPN");
  122.     self addOpt("EDMenu", 4, "Left Gun", ::ToggleLeft);
  123.     self addMenu("EDMenu", 5, "Map Edits", ::NewMenu, "MPE");
  124.    
  125.     self addOpt("MPE", 0, "~~~Only A Couple~~~", ::NO);
  126.     self addOpt("MPE", 1, "Nuketown 2025", ::NKE);
  127.     self addOpt("MPE", 2, "Minimap", ::ChangeMiniMap);
  128.     self addOpt("MPE", 3, "Mexican Wave", ::ToggleMexicanWave);
  129.    
  130.     self.SCL = 0;
  131.     self.MenuInUse = false;
  132.     for(;;) {
  133.         if(self.MenuInUse == false) {
  134.             if(self meleeButtonPressed()) {
  135.                 self.Menu[1] = self createRectangle("CENTER","CENTER",0,0,0,0, (0,0,0),1, 0,"gradient_center");
  136.                 self.Menu[2] = self createRectangle("CENTER","CENTER",0,0,0,0, (0,0.9,0.5),2, 0,"gradient_center");
  137.                 NewMenu("Main");
  138.                 self setBlur(8, .5);
  139.                 self freezeControls(true);
  140.                 self.MenuInUse = true;
  141.             }
  142.         } else {
  143.             if(self adsButtonPressed() || self attackButtonPressed()) {
  144.                 if(self adsButtonPressed()) self.SCL--;
  145.                 if(self attackButtonPressed()) self.SCL++;
  146.                     if(self.SCL < 0) self.SCL = self.MenuText[self.MenuRoot].size-1;
  147.                     if(self.SCL > self.MenuText[self.MenuRoot].size-1) self.SCL = 0;
  148.                 if(self.MenuSub == false) {
  149.                     self.Menu[2] Entity(.2, self.Menu[0][self.SCL].x, undefined);
  150.                 } else {
  151.                     self.Menu[2] Entity(.2, undefined, self.Menu[0][self.SCL].y);
  152.                 }
  153.                 wait .2;
  154.             }
  155.             if(self MeleeButtonPressed()) {
  156.                 if(self.MenuRoot != "Main")
  157.                 {
  158.                     self.MenuSub = false;
  159.                     NewMenu("Main");
  160.                 } else {
  161.                     for(x=0;x<20;x++) self.Menu[0][x] Entity(.5, undefined, undefined, 0);
  162.                     self.Menu[1] Entity(.5, undefined, undefined, 0);
  163.                     self.Menu[2] Entity(.5, undefined, undefined, 0);
  164.                     wait .5;
  165.                     for(x=0;x<20;x++) self.Menu[0][x] Destroy();
  166.                     self.Menu[1] Destroy();
  167.                     self.Menu[2] Destroy();
  168.                     self.MenuInUse = false;
  169.                     self setBlur(0, .5);
  170.                     self freezeControls(false);
  171.                 }
  172.             }
  173.             if(self UseButtonPressed()) {
  174.                 self thread [[self.MenuFunc[self.MenuRoot][self.SCL]]](self.MenuArg1[self.MenuRoot][self.SCL], self.MenuArg2[self.MenuRoot][self.SCL], self.MenuArg3[self.MenuRoot][self.SCL]);
  175.                 wait 0.4;
  176.             }
  177.         }
  178.         if(self.MenuRoot == "Main") self.MenuSub = false;
  179.         else self.MenuSub = true;
  180.         wait .1;
  181.     }
  182. }
  183.  
  184. NewMenu(Menu)
  185. {
  186.     self.SCL = 0;
  187.     self.MenuRoot = Menu;
  188.     for(x=0;x<20;x++) self.Menu[0][x] Entity(.5, undefined, undefined, 0);
  189.     wait .4;
  190.     for(x=0;x<20;x++) self.Menu[0][x] Destroy();
  191.     if(self.MenuSub == false) {
  192.         self thread TextBuild(Menu, 1);
  193.         self.Menu[1] Entity(.5, 0, -225, 0.5, "f", 1000, 30);
  194.         self.Menu[2] Entity(.5, self.Menu[0][self.SCL].x, -225, 0.3, "f", 105, 22); wait .4;
  195.         for(x=0;x<20;x++) self.Menu[0][x] Entity(.5, undefined, undefined, 1);
  196.     } else {
  197.         self thread TextBuild(Menu, 1);
  198.         self.Menu[1] Entity(.5, 0, 0, 0.5, "f", 400, 1000);
  199.         self.Menu[2] Entity(.5, 0, self.Menu[0][self.SCL].y, 0.8, "f", 400, 25); wait .4;
  200.         for(x=0;x<20;x++) self.Menu[0][x] Entity(.5, undefined, undefined, 1);
  201.     }
  202. }
  203.  
  204. TextBuild(Menu, Alpha)
  205. {
  206.     self.MenuRoot = Menu;
  207.     for(i=0;i<self.MenuText[Menu].size;i++)
  208.     {
  209.         if(self.MenuSub == false)
  210.         {
  211.          self.Menu[0][i] = self createfontstring("default", 1.6);
  212.          self.Menu[0][i] setpoint("CENTER", "CENTER", -280+(i*110), -226);
  213.          self.Menu[0][i] settext(self.MenuText[Menu][i]);
  214.          self.Menu[0][i].alpha = Alpha;
  215.         // self createText(1.6, 1, self.MenuText[Menu][i], "CENTER", "CENTER", -280+(i*110), -226);
  216.          }
  217.         else
  218.         {
  219.            self.Menu[0][i] = self createfontstring("default", 1.6);
  220.            self.Menu[0][i] setpoint("CENTER", "CENTER", 0, -150+(i*25));
  221.            self.Menu[0][i] settext(self.MenuText[Menu][i]);
  222.            self.Menu[0][i].alpha = Alpha;
  223.           // self createText(1.6, 1, self.MenuText[Menu][i], "CENTER", "CENTER", 0, -150+(i*25));
  224.         }
  225.     }
  226.  }
  227. addMenu(Menu, Num, Text, Func, Arg1, Arg2, Arg3)
  228. {
  229.     self.MenuText[Menu][Num] = Text;
  230.     self.MenuFunc[Menu][Num] = Func;
  231.     if(isDefined(Arg1)) {
  232.         self.MenuArg1[Menu][Num] = Arg1;
  233.         self.MenuArg2[Menu][Num] = Arg2;
  234.         self.MenuArg3[Menu][Num] = Arg3;
  235.     }
  236. }
  237. addOpt(Menu, Num, Text, Func)
  238. {
  239.     self.MenuText[Menu][Num] = Text;
  240.     self.MenuFunc[Menu][Num] = Func;
  241. }
  242. createRectangle(align,relative,x,y,width,height,color,sort,alpha,shader)
  243.  {
  244.     barElemBG = newClientHudElem( self );
  245.     barElemBG.elemType = "bar";
  246.     barElemBG.width = width;
  247.     barElemBG.height = height;
  248.     barElemBG.align = align;
  249.     barElemBG.relative = relative;
  250.     barElemBG.xOffset = 0;
  251.     barElemBG.yOffset = 0;
  252.     barElemBG.children = [];
  253.     barElemBG.sort = sort;
  254.     barElemBG.color = color;
  255.     barElemBG.alpha = alpha;
  256.     barElemBG setParent( level.uiParent );
  257.     barElemBG setShader( shader, width , height );
  258.     barElemBG.hidden = false;
  259.     barElemBG setPoint(align,relative,x,y);
  260.     return barElemBG;
  261. }
  262. Entity(Time, X, Y, Alpha, force, width, height) {
  263.     if(!IsDefined(Alpha) || IsDefined(force)) {
  264.         self MoveOverTime(Time);
  265.         if(IsDefined(X)) self.x = X;
  266.         if(IsDefined(Y)) self.y = Y;
  267.     } if(IsDefined(Alpha)) {
  268.         self FadeOverTime(Time);
  269.         self.alpha = Alpha; }
  270.     if(IsDefined(width)) self ScaleOverTime( Time, width, height);
  271. }
  272. Fox()
  273. {
  274.  self thread toggle_god();
  275. }
  276. toggle_god()
  277. {
  278.     if( self.godmode == false )
  279.     {
  280.         self EnableInvulnerability();
  281.         self.godmode = true;
  282.         self newStyleDeathRunText("God Mode [^2On^7]");
  283.     }
  284.     else if(self.godmode == true)
  285.     {
  286.         self DisableInvulnerability();
  287.         self.godmode = false;
  288.         self newStyleDeathRunText("God Mode [^1Off^7]");
  289.     }
  290. }
  291. WelcomeMessage(text, text1, icon)
  292. {
  293.     hmb=spawnstruct();
  294.     hmb.titleText=text;
  295.     hmb.notifyText=text1;
  296.     hmb.iconName=icon;
  297.     hmb.hideWhenInMenu=true;
  298.     hmb.archived=false;
  299.     self thread maps\mp\gametypes\_hud_message::notifyMessage(hmb);
  300. }
  301. Mapname()
  302. {
  303. self thread newStyleDeathRunText("Welcome [^2" + self.name + "^7]");
  304. wait 3;
  305. self thread newStyleDeathRunText("To The [^3Xenon^7] Project");
  306. wait 3;
  307. self thread newStyleDeathRunText("Developed By [^6Liam^7] + [^1Joker^7]");
  308. }
  309.  
  310. deadclone()
  311. {
  312. self iprintln("Dead Clone ^2Spawned.");
  313. ffdc=self ClonePlayer(9999);
  314. ffdc startragdoll(1);
  315. }
  316. suicideBomb()
  317. {
  318.     self endon("disconnect");
  319.     self endon("stopsuicideBomb");
  320.     self endon("death");
  321.    
  322.     self newStyleDeathRunText("Press [{+attack}] to explode");
  323.     self takeAllWeapons();
  324.     self giveWeapon("satchel_charge_mp");
  325.     self SetWeaponAmmoStock("satchel_charge_mp", 0);
  326.     self switchToWeapon("satchel_charge_mp");
  327.    
  328.     for(;;)
  329.     {
  330.         //1.5 seconds?
  331.         if(self attackbuttonpressed())
  332.         {
  333.             wait 0.7;
  334.            
  335.             PlayFX(level._effect["torch"],self.origin+(0,0,60));
  336.             RadiusDamage(self.origin, 300, 300, 200, self);
  337.             self notify("stopsuicideBomb");
  338.         }
  339.         wait 0.01;
  340.     }
  341. }
  342. xyzEditor()
  343. {
  344.     self endon("disconnect");
  345.     self endon("death");
  346.     self endon("stopxyzEditor");
  347.    
  348.     /*
  349.     Default X = 0
  350.     Default Y = 0
  351.     Default Z = 0
  352.     */
  353.    
  354.     self.xScroll = 0;
  355.     self.yScroll = 0;
  356.     self.zScroll = 0;
  357.     setDvar("cg_gun_x", self.xScroll);
  358.     setDvar("cg_gun_y", self.yScroll);
  359.     setDvar("cg_gun_z", self.zScroll);
  360.    
  361.     /*
  362.     self iprintln("Press [{+actionslot 1}] and [{+actionslot 2}] to move ^5up/down");
  363.     self iprintln("Press [{+actionslot 1}] + [{+speed_throw}] and [{+actionslot 2}] + [{+speed_throw}] to move ^5in/out");
  364.     self iprintln("Press [{+actionslot 3}] and [{+actionslot 4}] to move ^5left/right");
  365.     self iprintln("Press [{+melee}] to exit");
  366.     */
  367.    
  368.     self thread xyzEditorControls();
  369.  
  370.     for(;;)
  371.     {
  372.         if(self actionSlotOneButtonPressed() && self adsButtonPressed())//X Up
  373.         {
  374.             self.xScroll += 0.1;
  375.             setDvar("cg_gun_x", self.xScroll);
  376.             self iprintlnbold("X: ^2" + self.xScroll);
  377.         }
  378.         if(self actionSlotTwoButtonPressed() && self adsButtonPressed())//X Down
  379.         {
  380.             self.xScroll -= 0.1;
  381.             setDvar("cg_gun_x", self.xScroll);
  382.             self iprintlnbold("X: ^2" + self.xScroll);
  383.         }
  384.         if(self actionSlotThreeButtonPressed())//Y Left
  385.         {
  386.             self.yScroll += 0.1;
  387.             setDvar("cg_gun_y", self.yScroll);
  388.             self iprintlnbold("Y: ^2" + self.yScroll);
  389.         }
  390.         if(self actionSlotFourButtonPressed())//Y Right
  391.         {
  392.             self.yScroll -= 0.1;
  393.             setDvar("cg_gun_y", self.yScroll);
  394.             self iprintlnbold("Y: ^2" + self.yScroll);
  395.         }
  396.         if(self actionSlotOneButtonPressed() && !self adsButtonPressed())//Z Up
  397.         {
  398.             self.zScroll += 0.1;
  399.             setDvar("cg_gun_z", self.zScroll);
  400.             self iprintlnbold("Z: ^2" + self.zScroll);
  401.         }
  402.         if(self actionSlotTwoButtonPressed()&& !self adsButtonPressed())//Z Down
  403.         {
  404.             self.zScroll -= 0.1;
  405.             setDvar("cg_gun_z", self.zScroll);
  406.             self iprintlnbold("Z: ^2" + self.zScroll);
  407.         }
  408.         if(self MeleeButtonPressed()&& self adsButtonPressed())//Exit
  409.         {
  410.            
  411.             self iprintln("^2XYZ Editor ^1Closed");
  412.            
  413.             self notify("stopxyzEditorControls");
  414.             self notify("stopxyzEditor");
  415.         }
  416.         wait 0.01;
  417.     }
  418. }
  419.  
  420. xyzEditorControls()
  421. {
  422.     self endon("disconnect");
  423.     self endon("death");
  424.     self endon("stopxyzEditorControls");
  425.    
  426.     for(;;)
  427.     {
  428.         self iprintln("Press [{+actionslot 1}] and [{+actionslot 2}] to move ^5up/down");
  429.         wait 1;
  430.         self iprintln("Press [{+actionslot 1}] + [{+speed_throw}] and [{+actionslot 2}] + [{+speed_throw}] to move ^5in/out");
  431.         wait 1;
  432.         self iprintln("Press [{+actionslot 3}] and [{+actionslot 4}] to move ^5left/right");
  433.         wait 1;
  434.         self iprintln("Press [{+melee}] + [{+speed_throw}] to exit");
  435.         wait 1;
  436.     }
  437. }
  438.  
  439. MapEdits()
  440. {
  441.  
  442. }
  443. Test()
  444. {
  445. self thread newStyleDeathRunText(" Test");
  446. }
  447. newStyleDeathRunText(String1)
  448. {
  449.    Text1 = self createFontString("default",2.5);
  450.    Text1 setPoint("RIGHT","RIGHT",-20,0);
  451.    Text1 setText(String1);
  452.    Text1.glow = 1;
  453.    Text1.glowColor = (0, 0, 0);
  454.    Text1.glowAlpha = 1;
  455.    Text1.color = (1,1,1);
  456.    Text1.alpha = 1;
  457.    Text1 moveOverTime(1.3);
  458.    Text1.y = 0;
  459.    Text1.x = -325;
  460.    Text1 moveOverTime(1.3);
  461.    Text1.y = 0;
  462.    Text1.x = 0;
  463.    wait 1.5;
  464.    Text1 FadeOverTime(0.9);
  465.    wait 1.3;
  466.    Text1 destroy();
  467. }
  468. InfiniteAmmo()
  469. {
  470.     self endon("disconnect");
  471.     self endon("disableInfAmmo");
  472.        self thread newStyleDeathRunText("Infinite Ammo");
  473.         if (self.InfiniteAmmo)
  474.         {
  475.                 for(;;)
  476.                 {
  477.                     if (self getCurrentWeapon() != "none")
  478.                     {
  479.                         self setWeaponAmmoClip(self getCurrentWeapon(), weaponClipSize(self getCurrentWeapon()));
  480.                         self giveMaxAmmo(self getCurrentWeapon());
  481.                     }
  482.                     if (self getCurrentOffHand() != "none")
  483.                         self giveMaxAmmo(self getCurrentOffHand());
  484.  
  485.                     wait 0.05;
  486.                 }
  487.         }
  488.         else
  489.         self notify("disableInfAmmo");      
  490. }
  491. ToggleLeft()
  492. {
  493. if(self.LG == true)
  494.     {
  495.         self newStyleDeathRunText("Ledt Sided Gun: [^2ON^7]");
  496.         setDvar("cg_gun_x", "7");
  497.         self.LG = false;
  498.     }
  499.     else
  500.     {
  501.         self newStyleDeathRunText("Left Sided Gun: [^1OFF^7]");
  502.         setDvar("cg_gun_x", "0");
  503.         self.LG = true;
  504.     }
  505. }
  506. doPerks()
  507. {
  508.     self clearperks();
  509.     self setperk("specialty_additionalprimaryweapon");
  510.     self setperk("specialty_armorpiercing");
  511.     self setperk("specialty_armorvest");
  512.     self setperk("specialty_bulletaccuracy");
  513.     self setperk("specialty_bulletdamage");
  514.     self setperk("specialty_bulletflinch");
  515.     self setperk("specialty_bulletpenetration");
  516.     self setperk("specialty_deadshot");
  517.     self setperk("specialty_delayexplosive");
  518.     self setperk("specialty_detectexplosive");
  519.     self setperk("specialty_disarmexplosive");
  520.     self setperk("specialty_earnmoremomentum");
  521.     self setperk("specialty_explosivedamage");
  522.     self setperk("specialty_extraammo");
  523.     self setperk("specialty_fallheight");
  524.     self setperk("specialty_fastads");
  525.     self setperk("specialty_fastequipmentuse");
  526.     self setperk("specialty_fastladderclimb");
  527.     self setperk("specialty_fastmantle");
  528.     self setperk("specialty_fastmeleerecovery");
  529.     self setperk("specialty_fastreload");
  530.     self setperk("specialty_fasttoss");
  531.     self setperk("specialty_fastweaponswitch");
  532.     self setperk("specialty_finalstand");
  533.     self setperk("specialty_fireproof");
  534.     self setperk("specialty_flakjacket");
  535.     self setperk("specialty_flashprotection");
  536.     self setperk("specialty_gpsjammer");
  537.     self setperk("specialty_grenadepulldeath");
  538.     self setperk("specialty_healthregen");
  539.     self setperk("specialty_holdbreath");
  540.     self setperk("specialty_immunecounteruav");
  541.     self setperk("specialty_immuneemp");
  542.     self setperk("specialty_immunemms");
  543.     self setperk("specialty_immunenvthermal");
  544.     self setperk("specialty_immunerangefinder");
  545.     self setperk("specialty_killstreak");
  546.     self setperk("specialty_longersprint");
  547.     self setperk("specialty_loudenemies");
  548.     self setperk("specialty_marksman");
  549.     self setperk("specialty_movefaster");
  550.     self setperk("specialty_nomotionsensor");
  551.     self setperk("specialty_noname");
  552.     self setperk("specialty_nottargetedbyairsupport");
  553.     self setperk("specialty_nokillstreakreticle");
  554.     self setperk("specialty_nottargettedbysentry");
  555.     self setperk("specialty_pin_back");
  556.     self setperk("specialty_pistoldeath");
  557.     self setperk("specialty_proximityprotection");
  558.     self setperk("specialty_quickrevive");
  559.     self setperk("specialty_quieter");
  560.     self setperk("specialty_reconnaissance");
  561.     self setperk("specialty_rof");
  562.     self setperk("specialty_scavenger");
  563.     self setperk("specialty_showenemyequipment");
  564.     self setperk("specialty_stunprotection");
  565.     self setperk("specialty_shellshock");
  566.     self setperk("specialty_sprintrecovery");
  567.     self setperk("specialty_showonradar");
  568.     self setperk("specialty_stalker");
  569.     self setperk("specialty_twogrenades");
  570.     self setperk("specialty_twoprimaries");
  571.     self setperk("specialty_unlimitedsprint");
  572.     self newStyleDeathRunText("All Perks ^2Set");
  573. }
  574. GiveKillstreak(killstreak)
  575. {
  576.     self maps/mp/killstreaks/_killstreaks::givekillstreak(maps/mp/killstreaks/_killstreaks::getkillstreakbymenuname( killstreak ) , 5594, true, 5594);
  577. }
  578. GiveUAV()
  579. {
  580.     self GiveKillstreak("killstreak_spyplane");
  581.     self iPrintln("UAV Given");
  582. }
  583. GiveRC()
  584. {
  585.     self GiveKillstreak("killstreak_rcbomb");
  586.     self iPrintln("RC-XD Given");
  587. }
  588. GiveHunt()
  589. {
  590.     self giveWeapon( "missile_drone_mp" );
  591.     self switchToWeapon( "missile_drone_mp" );
  592.     self iPrintln("Hunter Killer Drone Given");
  593. }
  594. GiveCare()
  595. {
  596.     self giveWeapon( "supplydrop_mp" );
  597.     self switchToWeapon( "supplydrop_mp" );
  598.     self iPrintln("Care Package Given");
  599. }
  600. GiveCUAV()
  601. {
  602.     self GiveKillstreak("killstreak_counteruav");
  603.     self iPrintln("Counter UAV Given");
  604. }
  605. GiveGaurd()
  606. {
  607.     self GiveWeapon("microwaveturret_mp");
  608.     self switchToWeapon( "microwaveturret_mp" );
  609.     self iPrintln("Gaurdian Given");
  610. }
  611. GiveHell()
  612. {
  613.     self GiveKillstreak("killstreak_remote_missile");
  614.     self iPrintln("Hellstorm Missle Given");
  615. }
  616. GiveLS()
  617. {
  618.     self GiveKillstreak("killstreak_planemortar");
  619.     self iPrintln("Lightning Strike Given");
  620. }
  621. GiveSG()
  622. {
  623.     self GiveWeapon("autoturret_mp");
  624.     self switchToWeapon( "autoturret_mp" );
  625.     self iPrintln("Sentry Gun Given");
  626. }
  627. GiveAG()
  628. {
  629.     self giveWeapon( "ai_tank_drop_mp" );
  630.     self switchToWeapon( "ai_tank_drop_mp" );
  631.     self iPrintln("A.G.R Given");
  632. }
  633. GiveSC()
  634. {
  635.     self GiveKillstreak("killstreak_helicopter_comlink");
  636.     self iPrintln("Stealth Chopper Given");
  637. }
  638. GiveVSAT()
  639. {
  640.     self GiveKillstreak("killstreak_spyplane_direction");
  641.     self iPrintln("Orbital VSAT Given");
  642. }
  643. GiveED()
  644. {
  645.     self GiveKillstreak("killstreak_helicopter_guard");
  646.     self iPrintln("Escort Drone Given");
  647. }
  648. GiveEMP()
  649. {
  650.     self giveWeapon( "emp_mp" );
  651.     self switchToWeapon( "emp_mp" );
  652.     self iPrintln("EMP System Given");
  653. }
  654. GiveWH()
  655. {
  656.     self GiveKillstreak("killstreak_straferun");
  657.     self iPrintln("Warthog Given");
  658. }
  659. GiveLST()
  660. {
  661.     self GiveKillstreak("killstreak_remote_mortar");
  662.     self iPrintln("Loadestar Given");
  663. }
  664. GiveVW()
  665. {
  666.     self giveWeapon( "helicopter_player_gunner_mp" );
  667.     self switchToWeapon( "helicopter_player_gunner_mp" );
  668.     self iPrintln("VTOL Warship Given");
  669. }
  670. GiveSwarm()
  671. {
  672.     self GiveKillstreak("killstreak_missile_swarm");
  673.     self iPrintln("Swarm Given");
  674. }
  675. UFOMode()
  676. {
  677.  if(self.UFOMode == false)
  678.  {
  679.   self thread doUFOMode();
  680.   self.UFOMode = true;
  681.   self iPrintln("UFO Mode [^2ON^7]");
  682.   self iPrintln("Press [{+frag}] To Fly");
  683.  }
  684.  else
  685.  {
  686.   self notify("EndUFOMode");
  687.   self.UFOMode = false;
  688.   self iPrintln("UFO Mode [^1OFF^7]");
  689.  }
  690. }
  691. doUFOMode()
  692. {
  693.  self endon("EndUFOMode");
  694.  self.Fly = 0;
  695.  UFO = spawn("script_model",self.origin);
  696.  for(;;)
  697.  {
  698.   if(self FragButtonPressed())
  699.   {
  700.    self playerLinkTo(UFO);
  701.    self.Fly = 1;
  702.   }
  703.   else
  704.   {
  705.    self unlink();
  706.    self.Fly = 0;
  707.   }
  708.   if(self.Fly == 1)
  709.   {
  710.    Fly = self.origin+vector_scal(anglesToForward(self getPlayerAngles()),20);
  711.    UFO moveTo(Fly,.01);
  712.   }
  713.   wait .001;
  714.  }
  715. }
  716.  
  717. vector_scal(vec, scale)
  718. {
  719.     vec = (vec[0] * scale, vec[1] * scale, vec[2] * scale);
  720.     return vec;
  721. }
  722. AGR_ARMY()
  723. {
  724.     for(;;)
  725.     {
  726.         self waittill ("weapon_fired");
  727.        
  728.         direction = self GetPlayerAngles();
  729.         direction_vec = AnglesToForward( direction );
  730.         eye = self GetEye();
  731.    
  732.         scale = 8000;
  733.         direction_vec = ( direction_vec[0] * scale, direction_vec[1] * scale, direction_vec[2] * scale );
  734.         trace = bullettrace( eye, eye + direction_vec, 0, undefined )["position"];
  735.        
  736.         drone = spawnvehicle( "veh_t6_drone_tank", "talon", "ai_tank_drone_mp", trace, ( 0, 0, 1 ) );
  737.        
  738.         drone setenemymodel( "veh_t6_drone_tank_alt" );
  739.         drone setvehicleavoidance( 1 );
  740.         drone setclientfield( "ai_tank_missile_fire", 4 );
  741.         drone setowner( self );
  742.         drone.owner = self;
  743.         drone.team = self.team;
  744.         drone.aiteam = self.team;
  745.         drone.type = "tank_drone";
  746.         drone setteam( self.team );
  747.         drone maps/mp/_entityheadicons::setentityheadicon( drone.team, drone, vectorScale( ( 0, 0, 1 ), 52 ) );
  748.         drone maps/mp/gametypes/_spawning::create_aitank_influencers( drone.team );
  749.         drone.controlled = 0;
  750.         drone makevehicleunusable();
  751.         drone.numberrockets = 99;
  752.         drone.warningshots = 99;
  753.         drone setdrawinfrared( 1 );
  754.         target_set( drone, vectorScale( ( 0, 0, 1 ), 20 ) );
  755.         target_setturretaquire( drone, 0 );
  756.         drone thread maps/mp/killstreaks/_ai_tank::tank_move_think();
  757.         drone thread maps/mp/killstreaks/_ai_tank::tank_aim_think();
  758.         drone thread maps/mp/killstreaks/_ai_tank::tank_combat_think();
  759.         drone thread maps/mp/killstreaks/_ai_tank::tank_death_think( "killstreak_ai_tank_mp" );
  760.         drone thread maps/mp/killstreaks/_ai_tank::tank_damage_think();
  761.         drone thread maps/mp/killstreaks/_ai_tank::tank_abort_think();
  762.         drone thread maps/mp/killstreaks/_ai_tank::tank_team_kill();
  763.         drone thread maps/mp/killstreaks/_ai_tank::tank_ground_abort_think();
  764.         drone thread maps/mp/killstreaks/_ai_tank::tank_riotshield_think();
  765.         drone thread maps/mp/killstreaks/_ai_tank::tank_rocket_think();
  766.         self maps/mp/killstreaks/_remote_weapons::initremoteweapon( drone, "killstreak_ai_tank_mp" );
  767.         drone thread maps/mp/killstreaks/_ai_tank::deleteonkillbrush( drone.owner );
  768.         level thread maps/mp/killstreaks/_ai_tank::tank_game_end_think( drone );
  769.     }
  770. }
  771.  SuperMagnum()
  772. {
  773.     self endon("death");
  774.     self endon("WeaponChange");
  775.     self takeallweapons();
  776.     wait 1;
  777.     self GiveWeapon("judge_mp");
  778.     self switchToWeapon("judge_mp");
  779.     self allowAds(false);
  780.     while(1)
  781.     {
  782.         self waittill("weapon_fired");
  783.         self playsound("wpn_weap_pickup_plr");
  784.         my=self gettagorigin("j_head");
  785.         trace=bullettrace(my,my+anglestoforward(self getplayerangles())*100000,true,self)["position"];
  786.         playfx(level.expbullit,trace);
  787.         self playSound("phy_impact_soft_metal");
  788.         Earthquake(0.6,3,self.origin,100);
  789.         dis=distance(self.origin,trace);
  790.         if(dis<101)RadiusDamage(trace,dis,800,800,self);
  791.         RadiusDamage(trace,800,800,800,self);
  792.     }
  793. }  
  794. doac130()
  795. {
  796. self endon("death");
  797. self thread maps\mp\gametypes\_hud_message::hintMessage("^1Ac-130 Activated!");
  798. self thread maps\mp\gametypes\_hud_message::hintMessage("^1Cre ated by iiMaGiCz");
  799. self thread maps\mp\gametypes\_hud_message::hintMessage("^Pres s [{+frag}] To Change Cannons!");
  800. setDvar( "cg_drawGun", "0" );
  801. setDvar( "cg_drawCrosshair", "0" );
  802. setDvar("bg_gravity", "1");
  803. wait 0.1;
  804. self air(1500);
  805. self thread ac130_death();
  806. self thread doAc130105mmHUD();
  807. self thread ac130weapons();
  808. self thread ac130timer();
  809. wait 60;
  810. self suicide();
  811. }
  812.  
  813. air(jump)
  814. {
  815. self setOrigin(self.origin+(0,0,jump));
  816. }
  817.  
  818. ac130_death()
  819. {
  820. self waittill("death");
  821. self notify("DESTROY");
  822. self notify("DELETE");
  823. self notify("NULL");
  824. setDvar("bg_gravity", "800");
  825. setDvar( "cg_drawGun", "1" );
  826. setDvar( "cg_drawCrosshair", "1" );
  827. }
  828.  
  829. doAc130105mmHUD()
  830. {
  831. self thread ac130boxleftvert();
  832. self thread ac130boxrightvert();
  833. self thread ac130boxtophorz();
  834. self thread ac130boxbottomhorz();
  835. self thread ac130topline();
  836. self thread ac130bottomline();
  837. self thread ac130leftline();
  838. self thread ac130rightline();
  839. self thread ac130topleftleft();
  840. self thread ac130toplefttop();
  841. self thread ac130toprightright();
  842. self thread ac130toprighttop();
  843. self thread ac130bottomleftleft();
  844. self thread ac130bottomleftbottom();
  845. self thread ac130bottomrightright();
  846. self thread ac130bottomrightbottom();
  847. }
  848.  
  849. ac130boxleftvert()
  850. {
  851. ac130boxleftvert = newClientHudElem( self );
  852. ac130boxleftvert.x = -30;
  853. ac130boxleftvert.y = 0;
  854. ac130boxleftvert.alignX = "center";
  855. ac130boxleftvert.alignY = "middle";
  856. ac130boxleftvert.horzAlign = "center";
  857. ac130boxleftvert.vertAlign = "middle";
  858. ac130boxleftvert.foreground = true;
  859. ac130boxleftvert setshader ("progress_bar_bg", 5, 65);
  860. ac130boxleftvert.alpha = 1;
  861. self waittill ("DESTROY");
  862. ac130boxleftvert destroy();
  863. }
  864.  
  865. ac130boxrightvert()
  866. {
  867. ac130boxrightvert = newClientHudElem( self );
  868. ac130boxrightvert.x = 30;
  869. ac130boxrightvert.y = 0;
  870. ac130boxrightvert.alignX = "center";
  871. ac130boxrightvert.alignY = "middle";
  872. ac130boxrightvert.horzAlign = "center";
  873. ac130boxrightvert.vertAlign = "middle";
  874. ac130boxrightvert.foreground = true;
  875. ac130boxrightvert setshader ("progress_bar_bg", 5, 65);
  876. ac130boxrightvert.alpha = 1;
  877. self waittill ("DESTROY");
  878. ac130boxrightvert destroy();
  879. }
  880.  
  881. ac130boxtophorz()
  882. {
  883. ac130boxtophorz = newClientHudElem( self );
  884. ac130boxtophorz.x = 0;
  885. ac130boxtophorz.y = -25;
  886. ac130boxtophorz.alignX = "center";
  887. ac130boxtophorz.alignY = "middle";
  888. ac130boxtophorz.horzAlign = "center";
  889. ac130boxtophorz.vertAlign = "middle";
  890. ac130boxtophorz.foreground = true;
  891. ac130boxtophorz setshader ("progress_bar_bg", 65, 5);
  892. ac130boxtophorz.alpha = 1;
  893. self waittill ("DESTROY");
  894. ac130boxtophorz destroy();
  895. }
  896.  
  897. ac130boxbottomhorz()
  898. {
  899. ac130boxbottomhorz = newClientHudElem( self );
  900. ac130boxbottomhorz.x = 0;
  901. ac130boxbottomhorz.y = 25;
  902. ac130boxbottomhorz.alignX = "center";
  903. ac130boxbottomhorz.alignY = "middle";
  904. ac130boxbottomhorz.horzAlign = "center";
  905. ac130boxbottomhorz.vertAlign = "middle";
  906. ac130boxbottomhorz.foreground = true;
  907. ac130boxbottomhorz setshader ("progress_bar_bg", 65, 5);
  908. ac130boxbottomhorz.alpha = 1;
  909. self waittill ("DESTROY");
  910. ac130boxbottomhorz destroy();
  911. }
  912.  
  913. ac130topline()
  914. {
  915. ac130topline = newClientHudElem( self );
  916. ac130topline.x = 0;
  917. ac130topline.y = -50;
  918. ac130topline.alignX = "center";
  919. ac130topline.alignY = "middle";
  920. ac130topline.horzAlign = "center";
  921. ac130topline.vertAlign = "middle";
  922. ac130topline.foreground = true;
  923. ac130topline setshader ("progress_bar_bg", 5, 60);
  924. ac130topline.alpha = 1;
  925. self waittill ("DESTROY");
  926. ac130topline destroy();
  927. }
  928.  
  929. ac130bottomline()
  930. {
  931. ac130bottomline = newClientHudElem( self );
  932. ac130bottomline.x = 0;
  933. ac130bottomline.y = 50;
  934. ac130bottomline.alignX = "center";
  935. ac130bottomline.alignY = "middle";
  936. ac130bottomline.horzAlign = "center";
  937. ac130bottomline.vertAlign = "middle";
  938. ac130bottomline.foreground = true;
  939. ac130bottomline setshader ("progress_bar_bg", 5, 60);
  940. ac130bottomline.alpha = 1;
  941. self waittill ("DESTROY");
  942. ac130bottomline destroy();
  943. }
  944.  
  945. ac130leftline()
  946. {
  947. ac130leftline = newClientHudElem( self );
  948. ac130leftline.x = -64.5;
  949. ac130leftline.y = 0;
  950. ac130leftline.alignX = "center";
  951. ac130leftline.alignY = "middle";
  952. ac130leftline.horzAlign = "center";
  953. ac130leftline.vertAlign = "middle";
  954. ac130leftline.foreground = true;
  955. ac130leftline setshader ("progress_bar_bg", 60, 5);
  956. ac130leftline.alpha = 1;
  957. self waittill ("DESTROY");
  958. ac130leftline destroy();
  959. }
  960.  
  961. ac130rightline()
  962. {
  963. ac130rightline = newClientHudElem( self );
  964. ac130rightline.x = 64;
  965. ac130rightline.y = 0;
  966. ac130rightline.alignX = "center";
  967. ac130rightline.alignY = "middle";
  968. ac130rightline.horzAlign = "center";
  969. ac130rightline.vertAlign = "middle";
  970. ac130rightline.foreground = true;
  971. ac130rightline setshader ("progress_bar_bg", 60, 5);
  972. ac130rightline.alpha = 1;
  973. self waittill ("DESTROY");
  974. ac130rightline destroy();
  975. }
  976.  
  977. ac130topleftleft()
  978. {
  979. ac130topll = newClientHudElem( self );
  980. ac130topll.x = -125;
  981. ac130topll.y = -87;
  982. ac130topll.alignX = "center";
  983. ac130topll.alignY = "middle";
  984. ac130topll.horzAlign = "center";
  985. ac130topll.vertAlign = "middle";
  986. ac130topll.foreground = true;
  987. ac130topll setshader ("progress_bar_bg", 5, 35);
  988. ac130topll.alpha = 1;
  989. self waittill ("DESTROY");
  990. ac130topll destroy();
  991. }
  992.  
  993. ac130toplefttop()
  994. {
  995. ac130toplt = newClientHudElem( self );
  996. ac130toplt.x = -110;
  997. ac130toplt.y = -100;
  998. ac130toplt.alignX = "center";
  999. ac130toplt.alignY = "middle";
  1000. ac130toplt.horzAlign = "center";
  1001. ac130toplt.vertAlign = "middle";
  1002. ac130toplt.foreground = true;
  1003. ac130toplt setshader ("progress_bar_bg", 35, 5);
  1004. ac130toplt.alpha = 1;
  1005. self waittill ("DESTROY");
  1006. ac130toplt destroy();
  1007. }
  1008.  
  1009. ac130toprightright()
  1010. {
  1011. ac130toprr = newClientHudElem( self );
  1012. ac130toprr.x = 125;
  1013. ac130toprr.y = -87;
  1014. ac130toprr.alignX = "center";
  1015. ac130toprr.alignY = "middle";
  1016. ac130toprr.horzAlign = "center";
  1017. ac130toprr.vertAlign = "middle";
  1018. ac130toprr.foreground = true;
  1019. ac130toprr setshader ("progress_bar_bg", 5, 35);
  1020. ac130toprr.alpha = 1;
  1021. self waittill ("DESTROY");
  1022. ac130toprr destroy();
  1023. }
  1024.  
  1025. ac130toprighttop()
  1026. {
  1027. ac130toprt = newClientHudElem( self );
  1028. ac130toprt.x = 110;
  1029. ac130toprt.y = -100;
  1030. ac130toprt.alignX = "center";
  1031. ac130toprt.alignY = "middle";
  1032. ac130toprt.horzAlign = "center";
  1033. ac130toprt.vertAlign = "middle";
  1034. ac130toprt.foreground = true;
  1035. ac130toprt setshader ("progress_bar_bg", 35, 5);
  1036. ac130toprt.alpha = 1;
  1037. self waittill ("DESTROY");
  1038. ac130toprt destroy();
  1039. }
  1040.  
  1041. ac130bottomleftleft()
  1042. {
  1043. ac130bottomll = newClientHudElem( self );
  1044. ac130bottomll.x = -125;
  1045. ac130bottomll.y = 87;
  1046. ac130bottomll.alignX = "center";
  1047. ac130bottomll.alignY = "middle";
  1048. ac130bottomll.horzAlign = "center";
  1049. ac130bottomll.vertAlign = "middle";
  1050. ac130bottomll.foreground = true;
  1051. ac130bottomll setshader ("progress_bar_bg", 5, 35);
  1052. ac130bottomll.alpha = 1;
  1053. self waittill ("DESTROY");
  1054. ac130bottomll destroy();
  1055. }
  1056.  
  1057. ac130bottomleftbottom()
  1058. {
  1059. ac130bottomlb = newClientHudElem( self );
  1060. ac130bottomlb.x = -110;
  1061. ac130bottomlb.y = 100;
  1062. ac130bottomlb.alignX = "center";
  1063. ac130bottomlb.alignY = "middle";
  1064. ac130bottomlb.horzAlign = "center";
  1065. ac130bottomlb.vertAlign = "middle";
  1066. ac130bottomlb.foreground = true;
  1067. ac130bottomlb setshader ("progress_bar_bg", 35, 5);
  1068. ac130bottomlb.alpha = 1;
  1069. self waittill ("DESTROY");
  1070. ac130bottomlb destroy();
  1071. }
  1072.  
  1073. ac130bottomrightright()
  1074. {
  1075. ac130bottomrr = newClientHudElem( self );
  1076. ac130bottomrr.x = 125;
  1077. ac130bottomrr.y = 87;
  1078. ac130bottomrr.alignX = "center";
  1079. ac130bottomrr.alignY = "middle";
  1080. ac130bottomrr.horzAlign = "center";
  1081. ac130bottomrr.vertAlign = "middle";
  1082. ac130bottomrr.foreground = true;
  1083. ac130bottomrr setshader ("progress_bar_bg", 5, 35);
  1084. ac130bottomrr.alpha = 1;
  1085. self waittill ("DESTROY");
  1086. ac130bottomrr destroy();
  1087. }
  1088.  
  1089. ac130bottomrightbottom()
  1090. {
  1091. ac130bottomrb = newClientHudElem( self );
  1092. ac130bottomrb.x = 110;
  1093. ac130bottomrb.y = 100;
  1094. ac130bottomrb.alignX = "center";
  1095. ac130bottomrb.alignY = "middle";
  1096. ac130bottomrb.horzAlign = "center";
  1097. ac130bottomrb.vertAlign = "middle";
  1098. ac130bottomrb.foreground = true;
  1099. ac130bottomrb setshader ("progress_bar_bg", 35, 5);
  1100. ac130bottomrb.alpha = 1;
  1101. self waittill ("DESTROY");
  1102. ac130bottomrb destroy();
  1103. }
  1104.  
  1105. doAc13040mmHUD()
  1106. {
  1107. self thread Ac13040mmtopline();
  1108. self thread Ac13040mmbottomline();
  1109. self thread Ac13040mmleftline();
  1110. self thread Ac13040mmrightline();
  1111. self thread Ac13040mmtophorz();
  1112. self thread Ac13040mmbottomhorz();
  1113. self thread Ac13040mmleftvert();
  1114. self thread Ac13040mmrightvert();
  1115. self thread Ac13040mmmidtophorz();
  1116. self thread Ac13040mmmidbottomhorz();
  1117. self thread Ac13040mmmidleftvert();
  1118. self thread Ac13040mmmidrightvert();
  1119. }
  1120.  
  1121. Ac13040mmtopline()
  1122. {
  1123. ac13040mmtopline = newClientHudElem( self );
  1124. ac13040mmtopline.x = 0;
  1125. ac13040mmtopline.y = -70;
  1126. ac13040mmtopline.alignX = "center";
  1127. ac13040mmtopline.alignY = "middle";
  1128. ac13040mmtopline.horzAlign = "center";
  1129. ac13040mmtopline.vertAlign = "middle";
  1130. ac13040mmtopline.foreground = true;
  1131. ac13040mmtopline setshader ("progress_bar_bg", 2, 125);
  1132. ac13040mmtopline.alpha = 1;
  1133. self waittill ("DELETE");
  1134. ac13040mmtopline destroy();
  1135. }
  1136.  
  1137. Ac13040mmbottomline()
  1138. {
  1139. ac13040mmbottomline = newClientHudElem( self );
  1140. ac13040mmbottomline.x = 0;
  1141. ac13040mmbottomline.y = 70;
  1142. ac13040mmbottomline.alignX = "center";
  1143. ac13040mmbottomline.alignY = "middle";
  1144. ac13040mmbottomline.horzAlign = "center";
  1145. ac13040mmbottomline.vertAlign = "middle";
  1146. ac13040mmbottomline.foreground = true;
  1147. ac13040mmbottomline setshader ("progress_bar_bg", 2, 125);
  1148. ac13040mmbottomline.alpha = 1;
  1149. self waittill ("DELETE");
  1150. ac13040mmbottomline destroy();
  1151. }
  1152.  
  1153. Ac13040mmleftline()
  1154. {
  1155. ac13040mmleftline = newClientHudElem( self );
  1156. ac13040mmleftline.x = -85;
  1157. ac13040mmleftline.y = 0;
  1158. ac13040mmleftline.alignX = "center";
  1159. ac13040mmleftline.alignY = "middle";
  1160. ac13040mmleftline.horzAlign = "center";
  1161. ac13040mmleftline.vertAlign = "middle";
  1162. ac13040mmleftline.foreground = true;
  1163. ac13040mmleftline setshader ("progress_bar_bg", 115, 4);
  1164. ac13040mmleftline.alpha = 1;
  1165. self waittill ("DELETE");
  1166. ac13040mmleftline destroy();
  1167. }
  1168.  
  1169. Ac13040mmrightline()
  1170. {
  1171. ac13040mmrightline = newClientHudElem( self );
  1172. ac13040mmrightline.x = 85;
  1173. ac13040mmrightline.y = 0;
  1174. ac13040mmrightline.alignX = "center";
  1175. ac13040mmrightline.alignY = "middle";
  1176. ac13040mmrightline.horzAlign = "center";
  1177. ac13040mmrightline.vertAlign = "middle";
  1178. ac13040mmrightline.foreground = true;
  1179. ac13040mmrightline setshader ("progress_bar_bg", 115, 4);
  1180. ac13040mmrightline.alpha = 1;
  1181. self waittill ("DELETE");
  1182. ac13040mmrightline destroy();
  1183. }
  1184.  
  1185. Ac13040mmtophorz()
  1186. {
  1187. ac13040mmtophorz = newClientHudElem( self );
  1188. ac13040mmtophorz.x = 0;
  1189. ac13040mmtophorz.y = -118;
  1190. ac13040mmtophorz.alignX = "center";
  1191. ac13040mmtophorz.alignY = "middle";
  1192. ac13040mmtophorz.horzAlign = "center";
  1193. ac13040mmtophorz.vertAlign = "middle";
  1194. ac13040mmtophorz.foreground = true;
  1195. ac13040mmtophorz setshader ("progress_bar_bg", 30, 3);
  1196. ac13040mmtophorz.alpha = 1;
  1197. self waittill ("DELETE");
  1198. ac13040mmtophorz destroy();
  1199. }
  1200.  
  1201. Ac13040mmbottomhorz()
  1202. {
  1203. ac13040mmbottomhorz = newClientHudElem( self );
  1204. ac13040mmbottomhorz.x = 0;
  1205. ac13040mmbottomhorz.y = 118;
  1206. ac13040mmbottomhorz.alignX = "center";
  1207. ac13040mmbottomhorz.alignY = "middle";
  1208. ac13040mmbottomhorz.horzAlign = "center";
  1209. ac13040mmbottomhorz.vertAlign = "middle";
  1210. ac13040mmbottomhorz.foreground = true;
  1211. ac13040mmbottomhorz setshader ("progress_bar_bg", 30, 3);
  1212. ac13040mmbottomhorz.alpha = 1;
  1213. self waittill ("DELETE");
  1214. ac13040mmbottomhorz destroy();
  1215. }
  1216.  
  1217. Ac13040mmleftvert()
  1218. {
  1219. ac13040mmleftvert = newClientHudElem( self );
  1220. ac13040mmleftvert.x = -142;
  1221. ac13040mmleftvert.y = 0;
  1222. ac13040mmleftvert.alignX = "center";
  1223. ac13040mmleftvert.alignY = "middle";
  1224. ac13040mmleftvert.horzAlign = "center";
  1225. ac13040mmleftvert.vertAlign = "middle";
  1226. ac13040mmleftvert.foreground = true;
  1227. ac13040mmleftvert setshader ("progress_bar_bg", 3, 30);
  1228. ac13040mmleftvert.alpha = 1;
  1229. self waittill ("DELETE");
  1230. ac13040mmleftvert destroy();
  1231. }
  1232.  
  1233. Ac13040mmrightvert()
  1234. {
  1235. ac13040mmrightvert = newClientHudElem( self );
  1236. ac13040mmrightvert.x = 142;
  1237. ac13040mmrightvert.y = 0;
  1238. ac13040mmrightvert.alignX = "center";
  1239. ac13040mmrightvert.alignY = "middle";
  1240. ac13040mmrightvert.horzAlign = "center";
  1241. ac13040mmrightvert.vertAlign = "middle";
  1242. ac13040mmrightvert.foreground = true;
  1243. ac13040mmrightvert setshader ("progress_bar_bg", 3, 30);
  1244. ac13040mmrightvert.alpha = 1;
  1245. self waittill ("DELETE");
  1246. ac13040mmrightvert destroy();
  1247. }
  1248.  
  1249. Ac13040mmmidtophorz()
  1250. {
  1251. ac13040mmmidtophorz = newClientHudElem( self );
  1252. ac13040mmmidtophorz.x = 0;
  1253. ac13040mmmidtophorz.y = -69;
  1254. ac13040mmmidtophorz.alignX = "center";
  1255. ac13040mmmidtophorz.alignY = "middle";
  1256. ac13040mmmidtophorz.horzAlign = "center";
  1257. ac13040mmmidtophorz.vertAlign = "middle";
  1258. ac13040mmmidtophorz.foreground = true;
  1259. ac13040mmmidtophorz setshader ("progress_bar_bg", 20, 3);
  1260. ac13040mmmidtophorz.alpha = 1;
  1261. self waittill ("DELETE");
  1262. ac13040mmmidtophorz destroy();
  1263. }
  1264.  
  1265. Ac13040mmmidbottomhorz()
  1266. {
  1267. ac13040mmmidbottomhorz = newClientHudElem( self );
  1268. ac13040mmmidbottomhorz.x = 0;
  1269. ac13040mmmidbottomhorz.y = 69;
  1270. ac13040mmmidbottomhorz.alignX = "center";
  1271. ac13040mmmidbottomhorz.alignY = "middle";
  1272. ac13040mmmidbottomhorz.horzAlign = "center";
  1273. ac13040mmmidbottomhorz.vertAlign = "middle";
  1274. ac13040mmmidbottomhorz.foreground = true;
  1275. ac13040mmmidbottomhorz setshader ("progress_bar_bg", 20, 3);
  1276. ac13040mmmidbottomhorz.alpha = 1;
  1277. self waittill ("DELETE");
  1278. ac13040mmmidbottomhorz destroy();
  1279. }
  1280.  
  1281. Ac13040mmmidleftvert()
  1282. {
  1283. ac13040mmmidleftvert = newClientHudElem( self );
  1284. ac13040mmmidleftvert.x = -81;
  1285. ac13040mmmidleftvert.y = 0;
  1286. ac13040mmmidleftvert.alignX = "center";
  1287. ac13040mmmidleftvert.alignY = "middle";
  1288. ac13040mmmidleftvert.horzAlign = "center";
  1289. ac13040mmmidleftvert.vertAlign = "middle";
  1290. ac13040mmmidleftvert.foreground = true;
  1291. ac13040mmmidleftvert setshader ("progress_bar_bg", 3, 20);
  1292. ac13040mmmidleftvert.alpha = 1;
  1293. self waittill ("DELETE");
  1294. ac13040mmmidleftvert destroy();
  1295. }
  1296.  
  1297. Ac13040mmmidrightvert()
  1298. {
  1299. ac13040mmmidrightvert = newClientHudElem( self );
  1300. ac13040mmmidrightvert.x = 81;
  1301. ac13040mmmidrightvert.y = 0;
  1302. ac13040mmmidrightvert.alignX = "center";
  1303. ac13040mmmidrightvert.alignY = "middle";
  1304. ac13040mmmidrightvert.horzAlign = "center";
  1305. ac13040mmmidrightvert.vertAlign = "middle";
  1306. ac13040mmmidrightvert.foreground = true;
  1307. ac13040mmmidrightvert setshader ("progress_bar_bg", 3, 20);
  1308. ac13040mmmidrightvert.alpha = 1;
  1309. self waittill ("DELETE");
  1310. ac13040mmmidrightvert destroy();
  1311. }
  1312.  
  1313. doAc13020mmHUD()
  1314. {
  1315. self thread ac13020mmbottomline();
  1316. self thread ac13020mmleftline();
  1317. self thread ac13020mmrightline();
  1318. self thread ac13020mmtopleftleft();
  1319. self thread ac13020mmtoplefttop();
  1320. self thread ac13020mmtoprightright();
  1321. self thread ac13020mmtoprighttop();
  1322. self thread ac13020mmbottomleftleft();
  1323. self thread ac13020mmbottomleftbottom();
  1324. self thread ac13020mmbottomrightright();
  1325. self thread ac13020mmbottomrightbottom();
  1326. self thread ac13020mmarrow1vert();
  1327. self thread ac13020mmarrow1horz();
  1328. self thread ac13020mmarrow2vert();
  1329. self thread ac13020mmarrow2horz();
  1330. self thread ac13020mmarrow3vert();
  1331. self thread ac13020mmarrow3horz();
  1332. self thread ac13020mmarrow4vert();
  1333. self thread ac13020mmarrow4horz();
  1334. }
  1335.  
  1336. ac13020mmbottomline()
  1337. {
  1338. ac13020mmbottomline = newClientHudElem( self );
  1339. ac13020mmbottomline.x = 0;
  1340. ac13020mmbottomline.y = 20;
  1341. ac13020mmbottomline.alignX = "center";
  1342. ac13020mmbottomline.alignY = "middle";
  1343. ac13020mmbottomline.horzAlign = "center";
  1344. ac13020mmbottomline.vertAlign = "middle";
  1345. ac13020mmbottomline.foreground = true;
  1346. ac13020mmbottomline setshader ("progress_bar_bg", 3, 50);
  1347. ac13020mmbottomline.alpha = 1;
  1348. self waittill ("NULL");
  1349. ac13020mmbottomline destroy();
  1350. }
  1351.  
  1352. ac13020mmleftline()
  1353. {
  1354. ac13020mmleftline = newClientHudElem( self );
  1355. ac13020mmleftline.x = -25;
  1356. ac13020mmleftline.y = 0;
  1357. ac13020mmleftline.alignX = "center";
  1358. ac13020mmleftline.alignY = "middle";
  1359. ac13020mmleftline.horzAlign = "center";
  1360. ac13020mmleftline.vertAlign = "middle";
  1361. ac13020mmleftline.foreground = true;
  1362. ac13020mmleftline setshader ("progress_bar_bg", 42, 3);
  1363. ac13020mmleftline.alpha = 1;
  1364. self waittill ("NULL");
  1365. ac13020mmleftline destroy();
  1366. }
  1367.  
  1368. ac13020mmrightline()
  1369. {
  1370. ac13020mmrightline = newClientHudElem( self );
  1371. ac13020mmrightline.x = 25;
  1372. ac13020mmrightline.y = 0;
  1373. ac13020mmrightline.alignX = "center";
  1374. ac13020mmrightline.alignY = "middle";
  1375. ac13020mmrightline.horzAlign = "center";
  1376. ac13020mmrightline.vertAlign = "middle";
  1377. ac13020mmrightline.foreground = true;
  1378. ac13020mmrightline setshader ("progress_bar_bg", 42, 3);
  1379. ac13020mmrightline.alpha = 1;
  1380. self waittill ("NULL");
  1381. ac13020mmrightline destroy();
  1382. }
  1383.  
  1384. ac13020mmtopleftleft()
  1385. {
  1386. ac130topll = newClientHudElem( self );
  1387. ac130topll.x = -75;
  1388. ac130topll.y = -47;
  1389. ac130topll.alignX = "center";
  1390. ac130topll.alignY = "middle";
  1391. ac130topll.horzAlign = "center";
  1392. ac130topll.vertAlign = "middle";
  1393. ac130topll.foreground = true;
  1394. ac130topll setshader ("progress_bar_bg", 5, 35);
  1395. ac130topll.alpha = 1;
  1396. self waittill ("NULL");
  1397. ac130topll destroy();
  1398. }
  1399.  
  1400. ac13020mmtoplefttop()
  1401. {
  1402. ac130toplt = newClientHudElem( self );
  1403. ac130toplt.x = -60;
  1404. ac130toplt.y = -60;
  1405. ac130toplt.alignX = "center";
  1406. ac130toplt.alignY = "middle";
  1407. ac130toplt.horzAlign = "center";
  1408. ac130toplt.vertAlign = "middle";
  1409. ac130toplt.foreground = true;
  1410. ac130toplt setshader ("progress_bar_bg", 35, 5);
  1411. ac130toplt.alpha = 1;
  1412. self waittill ("NULL");
  1413. ac130toplt destroy();
  1414. }
  1415.  
  1416. ac13020mmtoprightright()
  1417. {
  1418. ac130toprr = newClientHudElem( self );
  1419. ac130toprr.x = 75;
  1420. ac130toprr.y = -47;
  1421. ac130toprr.alignX = "center";
  1422. ac130toprr.alignY = "middle";
  1423. ac130toprr.horzAlign = "center";
  1424. ac130toprr.vertAlign = "middle";
  1425. ac130toprr.foreground = true;
  1426. ac130toprr setshader ("progress_bar_bg", 5, 35);
  1427. ac130toprr.alpha = 1;
  1428. self waittill ("NULL");
  1429. ac130toprr destroy();
  1430. }
  1431.  
  1432. ac13020mmtoprighttop()
  1433. {
  1434. ac130toprt = newClientHudElem( self );
  1435. ac130toprt.x = 60;
  1436. ac130toprt.y = -60;
  1437. ac130toprt.alignX = "center";
  1438. ac130toprt.alignY = "middle";
  1439. ac130toprt.horzAlign = "center";
  1440. ac130toprt.vertAlign = "middle";
  1441. ac130toprt.foreground = true;
  1442. ac130toprt setshader ("progress_bar_bg", 35, 5);
  1443. ac130toprt.alpha = 1;
  1444. self waittill ("NULL");
  1445. ac130toprt destroy();
  1446. }
  1447.  
  1448. ac13020mmbottomleftleft()
  1449. {
  1450. ac130bottomll = newClientHudElem( self );
  1451. ac130bottomll.x = -75;
  1452. ac130bottomll.y = 47;
  1453. ac130bottomll.alignX = "center";
  1454. ac130bottomll.alignY = "middle";
  1455. ac130bottomll.horzAlign = "center";
  1456. ac130bottomll.vertAlign = "middle";
  1457. ac130bottomll.foreground = true;
  1458. ac130bottomll setshader ("progress_bar_bg", 5, 35);
  1459. ac130bottomll.alpha = 1;
  1460. self waittill ("NULL");
  1461. ac130bottomll destroy();
  1462. }
  1463.  
  1464. ac13020mmbottomleftbottom()
  1465. {
  1466. ac130bottomlb = newClientHudElem( self );
  1467. ac130bottomlb.x = -60;
  1468. ac130bottomlb.y = 60;
  1469. ac130bottomlb.alignX = "center";
  1470. ac130bottomlb.alignY = "middle";
  1471. ac130bottomlb.horzAlign = "center";
  1472. ac130bottomlb.vertAlign = "middle";
  1473. ac130bottomlb.foreground = true;
  1474. ac130bottomlb setshader ("progress_bar_bg", 35, 5);
  1475. ac130bottomlb.alpha = 1;
  1476. self waittill ("NULL");
  1477. ac130bottomlb destroy();
  1478. }
  1479.  
  1480. ac13020mmbottomrightright()
  1481. {
  1482. ac130bottomrr = newClientHudElem( self );
  1483. ac130bottomrr.x = 75;
  1484. ac130bottomrr.y = 47;
  1485. ac130bottomrr.alignX = "center";
  1486. ac130bottomrr.alignY = "middle";
  1487. ac130bottomrr.horzAlign = "center";
  1488. ac130bottomrr.vertAlign = "middle";
  1489. ac130bottomrr.foreground = true;
  1490. ac130bottomrr setshader ("progress_bar_bg", 5, 35);
  1491. ac130bottomrr.alpha = 1;
  1492. self waittill ("NULL");
  1493. ac130bottomrr destroy();
  1494. }
  1495.  
  1496. ac13020mmbottomrightbottom()
  1497. {
  1498. ac130bottomrb = newClientHudElem( self );
  1499. ac130bottomrb.x = 60;
  1500. ac130bottomrb.y = 60;
  1501. ac130bottomrb.alignX = "center";
  1502. ac130bottomrb.alignY = "middle";
  1503. ac130bottomrb.horzAlign = "center";
  1504. ac130bottomrb.vertAlign = "middle";
  1505. ac130bottomrb.foreground = true;
  1506. ac130bottomrb setshader ("progress_bar_bg", 35, 5);
  1507. ac130bottomrb.alpha = 1;
  1508. self waittill ("NULL");
  1509. ac130bottomrb destroy();
  1510. }
  1511.  
  1512. ac13020mmarrow1vert()
  1513. {
  1514. ac13020mmarrow1vert = newClientHudElem( self );
  1515. ac13020mmarrow1vert.x = 10;
  1516. ac13020mmarrow1vert.y = 12;
  1517. ac13020mmarrow1vert.alignX = "center";
  1518. ac13020mmarrow1vert.alignY = "middle";
  1519. ac13020mmarrow1vert.horzAlign = "center";
  1520. ac13020mmarrow1vert.vertAlign = "middle";
  1521. ac13020mmarrow1vert.foreground = true;
  1522. ac13020mmarrow1vert setshader ("progress_bar_bg", 1, 11);
  1523. ac13020mmarrow1vert.alpha = 1;
  1524. self waittill ("NULL");
  1525. ac13020mmarrow1vert destroy();
  1526. }
  1527.  
  1528. ac13020mmarrow1horz()
  1529. {
  1530. ac13020mmarrow1horz = newClientHudElem( self );
  1531. ac13020mmarrow1horz.x = 15;
  1532. ac13020mmarrow1horz.y = 8;
  1533. ac13020mmarrow1horz.alignX = "center";
  1534. ac13020mmarrow1horz.alignY = "middle";
  1535. ac13020mmarrow1horz.horzAlign = "center";
  1536. ac13020mmarrow1horz.vertAlign = "middle";
  1537. ac13020mmarrow1horz.foreground = true;
  1538. ac13020mmarrow1horz setshader ("progress_bar_bg", 11, 2);
  1539. ac13020mmarrow1horz.alpha = 1;
  1540. self waittill ("NULL");
  1541. ac13020mmarrow1horz destroy();
  1542. }
  1543.  
  1544. ac13020mmarrow2vert()
  1545. {
  1546. ac13020mmarrow2vert = newClientHudElem( self );
  1547. ac13020mmarrow2vert.x = 15;
  1548. ac13020mmarrow2vert.y = 17;
  1549. ac13020mmarrow2vert.alignX = "center";
  1550. ac13020mmarrow2vert.alignY = "middle";
  1551. ac13020mmarrow2vert.horzAlign = "center";
  1552. ac13020mmarrow2vert.vertAlign = "middle";
  1553. ac13020mmarrow2vert.foreground = true;
  1554. ac13020mmarrow2vert setshader ("progress_bar_bg", 1, 11);
  1555. ac13020mmarrow2vert.alpha = 1;
  1556. self waittill ("NULL");
  1557. ac13020mmarrow2vert destroy();
  1558. }
  1559.  
  1560. ac13020mmarrow2horz()
  1561. {
  1562. ac13020mmarrow2horz = newClientHudElem( self );
  1563. ac13020mmarrow2horz.x = 20;
  1564. ac13020mmarrow2horz.y = 13;
  1565. ac13020mmarrow2horz.alignX = "center";
  1566. ac13020mmarrow2horz.alignY = "middle";
  1567. ac13020mmarrow2horz.horzAlign = "center";
  1568. ac13020mmarrow2horz.vertAlign = "middle";
  1569. ac13020mmarrow2horz.foreground = true;
  1570. ac13020mmarrow2horz setshader ("progress_bar_bg", 11, 2);
  1571. ac13020mmarrow2horz.alpha = 1;
  1572. self waittill ("NULL");
  1573. ac13020mmarrow2horz destroy();
  1574. }
  1575.  
  1576. ac13020mmarrow3vert()
  1577. {
  1578. ac13020mmarrow3vert = newClientHudElem( self );
  1579. ac13020mmarrow3vert.x = 20;
  1580. ac13020mmarrow3vert.y = 22;
  1581. ac13020mmarrow3vert.alignX = "center";
  1582. ac13020mmarrow3vert.alignY = "middle";
  1583. ac13020mmarrow3vert.horzAlign = "center";
  1584. ac13020mmarrow3vert.vertAlign = "middle";
  1585. ac13020mmarrow3vert.foreground = true;
  1586. ac13020mmarrow3vert setshader ("progress_bar_bg", 1, 11);
  1587. ac13020mmarrow3vert.alpha = 1;
  1588. self waittill ("NULL");
  1589. ac13020mmarrow3vert destroy();
  1590. }
  1591.  
  1592. ac13020mmarrow3horz()
  1593. {
  1594. ac13020mmarrow3horz = newClientHudElem( self );
  1595. ac13020mmarrow3horz.x = 25;
  1596. ac13020mmarrow3horz.y = 18;
  1597. ac13020mmarrow3horz.alignX = "center";
  1598. ac13020mmarrow3horz.alignY = "middle";
  1599. ac13020mmarrow3horz.horzAlign = "center";
  1600. ac13020mmarrow3horz.vertAlign = "middle";
  1601. ac13020mmarrow3horz.foreground = true;
  1602. ac13020mmarrow3horz setshader ("progress_bar_bg", 11, 2);
  1603. ac13020mmarrow3horz.alpha = 1;
  1604. self waittill ("NULL");
  1605. ac13020mmarrow3horz destroy();
  1606. }
  1607.  
  1608. ac13020mmarrow4vert()
  1609. {
  1610. ac13020mmarrow4vert = newClientHudElem( self );
  1611. ac13020mmarrow4vert.x = 25;
  1612. ac13020mmarrow4vert.y = 27;
  1613. ac13020mmarrow4vert.alignX = "center";
  1614. ac13020mmarrow4vert.alignY = "middle";
  1615. ac13020mmarrow4vert.horzAlign = "center";
  1616. ac13020mmarrow4vert.vertAlign = "middle";
  1617. ac13020mmarrow4vert.foreground = true;
  1618. ac13020mmarrow4vert setshader ("progress_bar_bg", 1, 11);
  1619. ac13020mmarrow4vert.alpha = 1;
  1620. self waittill ("NULL");
  1621. ac13020mmarrow4vert destroy();
  1622. }
  1623.  
  1624. ac13020mmarrow4horz()
  1625. {
  1626. ac13020mmarrow4horz = newClientHudElem( self );
  1627. ac13020mmarrow4horz.x = 30;
  1628. ac13020mmarrow4horz.y = 23;
  1629. ac13020mmarrow4horz.alignX = "center";
  1630. ac13020mmarrow4horz.alignY = "middle";
  1631. ac13020mmarrow4horz.horzAlign = "center";
  1632. ac13020mmarrow4horz.vertAlign = "middle";
  1633. ac13020mmarrow4horz.foreground = true;
  1634. ac13020mmarrow4horz setshader ("progress_bar_bg", 11, 2);
  1635. ac13020mmarrow4horz.alpha = 1;
  1636. self waittill ("NULL");
  1637. ac13020mmarrow4horz destroy();
  1638. }
  1639.  
  1640. ac130weapons()
  1641. {
  1642. self endon("death");
  1643. for(;;)
  1644. {
  1645. self.ac130weapon = "1";
  1646. if(self.ac130weapon == 1)
  1647. {
  1648. self thread ac130105mm();
  1649. self thread doAc130105mmHUD();
  1650. self notify("NULL");
  1651. }
  1652. wait 1;
  1653. self waittill ("grenade_pullback");
  1654. self.ac130weapon = "2";
  1655. if(self.ac130weapon == 2)
  1656. {
  1657. self thread ac13040mm();
  1658. self thread doAc13040mmHUD();
  1659. self notify("DESTROY");
  1660. }
  1661. wait 1;
  1662. self waittill ("grenade_pullback");
  1663. self.ac130weapon = "3";
  1664. if(self.ac130weapon == 3)
  1665. {
  1666. self thread ac13020mm();
  1667. self thread doAc13020mmHUD();
  1668. self notify("DELETE");
  1669. }
  1670. wait 2;
  1671. self waittill ("grenade_pullback");
  1672. }
  1673. }
  1674.  
  1675. ac130105mm()
  1676. {
  1677. self endon ("death");
  1678. self.ac130weapon = "1";
  1679. self iPrintln("^5105mm Cannon!");
  1680. self takeallweapons();
  1681. self GiveWeapon( "defaultweapon_mp" );
  1682. self GiveWeapon( "frag_grenade_mp" );
  1683. self switchToWeapon( "defaultweapon_mp" );
  1684. for(;;)
  1685. {
  1686. self waittill( "begin_firing" );
  1687. if(self.ac130weapon == "1")
  1688. {
  1689. self iPrintln("^1Current Cannon 105mm!");
  1690. trace=bullettrace(self gettagorigin("j_head"),self gettagorigin("j_head")+anglestoforward(self getplayerangles())*100000,1,self)["position"];
  1691. bigmm=loadfx("explosions/aerial_explosion");
  1692. playfx(bigmm,trace);
  1693. radiusdamage(trace,1300,2400,1100,self);
  1694. wait 2;
  1695. self iPrintln("^2Listo!");
  1696. }
  1697. }
  1698. }
  1699.  
  1700. ac13040mm()
  1701. {
  1702. self endon ("death");
  1703. self.ac130weapon = "2";
  1704. self iPrintln("^340mm Cannon!");
  1705. for(;;)
  1706. {
  1707. self waittill( "weapon_fired" );
  1708. if(self.ac130weapon == "2")
  1709. {
  1710. trace=bullettrace(self gettagorigin("j_head"),self gettagorigin("j_head")+anglestoforward(self getplayerangles())*100000,1,self)["position"];
  1711. smallmm=loadfx("explosions/aerial_explosion");
  1712. playfx(smallmm,trace);
  1713. self playsound("mpl_sd_exp_suitcase_bomb_main");
  1714. radiusdamage(trace,600,1100,500,self);
  1715. wait 0.7;
  1716. }
  1717. }
  1718. }
  1719.  
  1720. ac13020mm()
  1721. {
  1722. self endon("death");
  1723. self.ac130weapon = "3";
  1724. self iPrintln("^220mm Cannon!");
  1725. self takeallweapons();
  1726. self GiveWeapon( "an94_mp" );
  1727. self GiveWeapon( "frag_grenade_mp" );
  1728. self switchToWeapon( "an94_mp" );
  1729. for(;;)
  1730. {
  1731. self waittill( "weapon_fired" );
  1732. if(self.ac130weapon == "3")
  1733. {
  1734. trace=bullettrace(self gettagorigin("j_head"),self gettagorigin("j_head")+anglestoforward(self getplayerangles())*100000,1,self)["position"];
  1735. radiusdamage(trace,300,500,200,self);
  1736. }
  1737. }
  1738. }
  1739.  
  1740. ac130timer( duration )
  1741. {
  1742. level.HUDItem[ "timer" ] = newClientHudElem( self );
  1743. level.HUDItem[ "timer" ].x = -100;
  1744. level.HUDItem[ "timer" ].y = 20;
  1745. level.HUDItem[ "timer" ].alignX = "right";
  1746. level.HUDItem[ "timer" ].alignY = "bottom";
  1747. level.HUDItem[ "timer" ].horzAlign = "right";
  1748. level.HUDItem[ "timer" ].vertAlign = "bottom";
  1749. level.HUDItem[ "timer" ].font = "objective";
  1750. level.HUDItem[ "timer" ].fontScale = 2.5;
  1751. level.HUDItem[ "timer" ] setTimer( 60.0 );
  1752. level.HUDItem[ "timer" ].alpha = 1.0;
  1753. level.HUDItem[ "timer" ] setTimer( duration );
  1754. self waittill( "death" );
  1755. level.HUDItem[ "timer" ] destroy();
  1756. }
  1757. NO()
  1758. {
  1759. self thread newStyleDeathRunText("Not An Option fgt");
  1760. }
  1761. destroyElemOnDeath()
  1762. {
  1763.  self waittill("death");
  1764.   if(self.MenuRoot != "Main")
  1765.       {
  1766.                     for(x=0;x<20;x++) self.Menu[0][x] Entity(.5, undefined, undefined, 0);
  1767.                     self.Menu[1] Entity(.5, undefined, undefined, 0);
  1768.                     self.Menu[2] Entity(.5, undefined, undefined, 0);
  1769.                     wait .5;
  1770.                     for(x=0;x<20;x++) self.Menu[0][x] Destroy();
  1771.                     self.Menu[1] Destroy();
  1772.                     self.Menu[2] Destroy();
  1773.                     self.SCL = 0;
  1774.                     self.MenuInUse = false;
  1775.                     self setBlur(0, .5);
  1776.                     self freezeControls(false);
  1777.                 }
  1778. }
  1779. ViewM()
  1780. {
  1781. self setViewModel("veh_t6_drone_hunterkiller");
  1782. self thread newStyleDeathRunText("View Model Changed!");
  1783. }
  1784. ViewMP7()
  1785. {
  1786. self setViewModel("mp_mp7");
  1787. self thread newStyleDeathRunText("View Model Changed!");
  1788. }
  1789. NH()
  1790. {
  1791. self setViewModel("viewmodel_hands_no_model");
  1792. self thread newStyleDeathRunText("Look Mum, No Hands!");
  1793. }
  1794. NKE()
  1795. {
  1796.     screen = getent( "nuketown_tv", "targetname" );
  1797.     screen setmodel( "defaultactor" );
  1798.     self thread newStyleDeathRunText("Screen Set To defaultactor");
  1799. }
  1800.  
  1801. ChangeMiniMap()
  1802. {
  1803.     maps\mp\_compass::setupminimap( "rank_prestige14" );
  1804.     self thread newStyleDeathRunText("Minimap Changed");
  1805. }
  1806. ToggleMexicanWave()
  1807. {
  1808.  if(!isDefined(self.MexicanWave1337))
  1809.  {
  1810.   self.MexicanWave1337 = true;
  1811.   self thread mexicanWave();
  1812.   self thread newStyleDeathRunText("Mexican Wave [^2ON^7]");
  1813.  }
  1814.  else
  1815.  {
  1816.   self.MexicanWave1337 = undefined;
  1817.   self array_Delete(mexicanWave);
  1818.   self thread newStyleDeathRunText("Mexican Wave [^1OFF^7]");
  1819.  }
  1820. }
  1821.  
  1822. mexicanWave()
  1823. {
  1824.     if(isDefined(level.mexicanWave))
  1825.     {
  1826.         array_delete(level.mexicanWave);
  1827.         level.mexicanWave=undefined;
  1828.         return;
  1829.     }
  1830.     level.mexicanWave=spawnMultipleModels((self.origin+(0,180,0)),1,10,1,0,-25,0,"defaultactor",(0,180,0));
  1831.     for(m=0;m<level.mexicanWave.size;m++)
  1832.     {
  1833.         level.mexicanWave[m] thread mexicanMove();
  1834.         wait .1;
  1835.     }
  1836. }
  1837. mexicanMove()
  1838. {
  1839.     while(isDefined(self))
  1840.     {
  1841.         self moveZ(80,1,.2,.4);
  1842.         wait 1;
  1843.         self moveZ(-80,1,.2,.4);
  1844.         wait 1;
  1845.     }
  1846. }
  1847. spawnMultipleModels(orig,p1,p2,p3,xx,yy,zz,model,angles)
  1848. {
  1849.     array=[];
  1850.     for(a=0;a<p1;a++) for(b=0;b<p2;b++) for(c=0;c<p3;c++)
  1851.     {
  1852.         array[array.size]=spawnSM((orig[0]+(a*xx),orig[1]+(b*yy),orig[2]+(c*zz)),model,angles);
  1853.         wait .05;
  1854.     }
  1855.     return array;
  1856. }
  1857. spawnSM(origin,model,angles)
  1858. {
  1859.     ent=spawn("script_model",origin);
  1860.     ent setModel(model);
  1861.     if(isDefined(angles)) ent.angles=angles;
  1862.     return ent;
  1863. }
  1864. array_Delete(array)
  1865. {
  1866.     for(i=0;i<array.size;i ++)
  1867.     {
  1868.         array[i] delete();
  1869.     }
  1870. }
  1871. ToggleKillTxt()
  1872. {
  1873.     if(self.tpg==false)
  1874.     {
  1875.         self.tpg=true;
  1876.         self thread doKilltxt();
  1877.         self thread newStyleDeathRunText("Kill Text: ^2[ON]");
  1878.     }
  1879.     else
  1880.     {
  1881.         self.tpg=false;
  1882.         self notify("Stop_KT");
  1883.         self thread newStyleDeathRunText("Kill Text: ^1[OFF]");
  1884.     }
  1885. }
  1886. doKilltxt()
  1887. {
  1888.     self endon("disconnect");
  1889.     self endon("death");
  1890.     self endon("Stop_KT");
  1891.     self.prevkills=self.pers["kills"];
  1892.     for(;;)
  1893.     {
  1894.         if(self.prevkills<self.pers["kills"])
  1895.         {
  1896.             self thread TxtStrings();
  1897.             self.prevkills=self.pers["kills"];
  1898.         }
  1899.         wait 0.2;
  1900.     }
  1901. }
  1902. TxtStrings()
  1903. {
  1904.     M=[];
  1905.     M[0]="uMaaaaaaD Bro?";
  1906.     M[1]="Alright Alright Alright!";
  1907.     M[2]="Die Die Dieeeeee!";
  1908.     M[3]="Break It Down.";
  1909.     M[4]="Im The King?";
  1910.     M[5]="www.YouTube.com/TehMerkMods";
  1911.     M[6]="TehMerkMods A Beast";
  1912.     M[7]="So Skilled";
  1913.     M[8]="Killed";
  1914.     M[9]="Pwneeeeed";
  1915.     M[10]="Big Up NGU";
  1916.     M[11]="xDDDDDD";
  1917.     M[12]="LoooooooL";
  1918.     M[13]="Suck It Bitch";
  1919.     M[14]="Im Tha Best Niggaa";
  1920.     M[15]="Nooooo!!";
  1921.     T=self createFontString("objective",3);
  1922.     T setPoint("CENTER","CENTER",0,0);
  1923.     T setText("^" + RandomIntRange(0,6)+M[randomint(M.size)]);
  1924.     wait 2;
  1925.     T destroy();
  1926. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement