Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- //Credits Liam for source
- #include maps/mp/gametypes/_globallogic;
- #include maps/mp/gametypes/_hud;
- #include maps/mp/gametypes/_hud_util;
- #include maps/mp/_utility;
- #include common_scripts/utility;
- #include maps/mp/gametypes/_hud_message;
- #include maps/mp/killstreaks/_ai_tank;
- init()
- {
- level thread onPlayerConnect();
- precacheShader("loadscreen_" + getDvar("mapname"));
- setDvar("black_hole","0");
- precacheShader("gradient_center");
- level.BlackHoeFx=loadfx("explosions/aerial_explosion");
- precacheModel("veh_t6_drone_hunterkiller");
- precacheModel("mp_mp7");
- precacheModel("viewmodel_hands_no_model");
- precacheModel("defaultactor");
- precacheShader("rank_prestige14");
- }
- onPlayerConnect()
- {
- for(;;)
- {
- level waittill("connected", player);
- player thread onPlayerSpawned();
- }
- }
- onPlayerSpawned()
- {
- self endon("disconnect");
- level endon("game_ended");
- for(;;)
- {
- self waittill("spawned_player");
- self thread Mapname();
- if(self isHost())
- {
- self thread destroyElemOnDeath();
- self thread RunControl();
- }
- }
- }
- RunControl()
- {
- self addMenu("Main", 0, "GameModes", ::NewMenu, "FunMenu");
- self addMenu("Main", 1, "Edit ^1Self", ::NewMenu, "EDP");
- self addMenu("Main", 2, "Advertise", ::NewMenu, "Adv");
- self addMenu("Main", 3, "VIP Menu", ::NewMenu, "VIPM");
- self addMenu("Main", 4, "Admin Menu", ::NewMenu, "ADM");
- self addMenu("Main", 5, "Lobby Menu", ::NewMenu, "EDMenu");
- self addMenu("FunMenu", 0, "Cranked", ::NewMenu, "FunMenu");
- self addMenu("FunMenu", 1, "AON", ::NewMenu, "FunMenu");
- self addMenu("VIPM", 0, "Cranked", ::NewMenu, "FunMenu");
- self addMenu("VIPM", 1, "AON", ::NewMenu, "FunMenu");
- self addMenu("ADM", 0, "Aimbot Menu", ::NewMenu, "Aim");
- self addOpt("ADM", 1, "Explosive Bullets", ::Test);
- self addOpt("Aim", 0, "Regular Aimbot", ::Test);
- self addOpt("Aim", 1, "Unfair Aimbot", ::Test);
- self addMenu("Adv", 0, "Welcome", ::NewMenu, "Adv");
- self addMenu("Adv", 1, "Host", ::NewMenu, "Adv");
- self addOpt("Adv", 2, "Kill Text", ::ToggleKillTxt);
- self addMenu("Adv", 3, "Host1", ::NewMenu, "Adv");
- self addMenu("Adv", 4, "More Advertisements", ::NewMenu, "Adv2");
- self addOpt("Adv2", 0, "Host DoHeart", ::Test);
- self addOpt("Adv2", 1, "Menu DoHeart", ::Test);
- self addOpt("KS", 0, "UAV", ::GiveUAV);
- self addOpt("KS", 1, "RCXD", ::GiveRC);
- self addOpt("KS", 2, "Hunter Killer", ::GiveHunt);
- self addOpt("KS", 3, "Care Package", ::GiveCare);
- self addOpt("KS", 4, "Counter UAV", ::GiveCUAV);
- self addOpt("KS", 5, "Guardian", ::GiveGaurd);
- self addOpt("KS", 6, "Helicopter", ::GiveHell);
- self addOpt("KS", 7, "Lightning Strike", ::GiveLS);
- self addOpt("KS", 8, "Sentry Gun", ::GiveSG);
- self addOpt("KS", 9, "EMP", ::GiveEMP);
- self addMenu("KS", 10, "More Killstreaks", ::NewMenu, "KS2");
- self addOpt("KS2", 0, "AGR Army", ::AGR_ARMY);
- self addOpt("KS2", 1, "Circling Plane", ::GiveRC);
- self addOpt("KS2", 2, "Hunter Killer", ::GiveHunt);
- self addMenu("WPN", 0, "Edit Weapons", ::NewMenu, "NWPN");
- self addMenu("WPN", 1, "Modded Weapons", ::NewMenu, "MWPN");
- self addOpt("NWPN", 0, "Edit ViewModel", ::ViewM);
- self addOpt("NWPN", 1, "No Hands", ::NH);
- self addOpt("NWPN", 2, "XModel Edit", ::ViewMP7);
- self addOpt("MWPN", 0, "~~~~Don't Spam~~~~", ::NO);
- self addOpt("MWPN", 1, "Super Executioner", ::SuperMagnum);
- self addOpt("MWPN", 2, "AC130", ::doac130);
- self addOpt("EDP", 0, "Godmode", ::Fox);
- self addOpt("EDP", 1, "suicide Bomber", ::suicideBomb);
- self addOpt("EDP", 2, "Messed Up Clone", ::deadclone);
- self addOpt("EDP", 3, "Edit XYZ Positioning", ::xyzEditor);
- self addOpt("EDP", 4, "Unlimited Ammo", ::InfiniteAmmo);
- self addOpt("EDP", 5, "All Perks", ::doPerks);
- self addOpt("EDP", 6, "No Clip", ::UFOMode);
- self addMenu("EDP", 7, "EDP 7", ::NewMenu, "EDP");
- self addOpt("EDMenu", 0, "Multi Jump", ::Test);
- self addMenu("EDMenu", 1, "Super Speed", ::NewMenu, "EDMenu");
- self addMenu("EDMenu", 2, "Killstreaks", ::NewMenu, "KS");
- self addMenu("EDMenu", 3, "Weapons", ::NewMenu, "WPN");
- self addOpt("EDMenu", 4, "Left Gun", ::ToggleLeft);
- self addMenu("EDMenu", 5, "Map Edits", ::NewMenu, "MPE");
- self addOpt("MPE", 0, "~~~Only A Couple~~~", ::NO);
- self addOpt("MPE", 1, "Nuketown 2025", ::NKE);
- self addOpt("MPE", 2, "Minimap", ::ChangeMiniMap);
- self addOpt("MPE", 3, "Mexican Wave", ::ToggleMexicanWave);
- self.SCL = 0;
- self.MenuInUse = false;
- for(;;) {
- if(self.MenuInUse == false) {
- if(self meleeButtonPressed()) {
- self.Menu[1] = self createRectangle("CENTER","CENTER",0,0,0,0, (0,0,0),1, 0,"gradient_center");
- self.Menu[2] = self createRectangle("CENTER","CENTER",0,0,0,0, (0,0.9,0.5),2, 0,"gradient_center");
- NewMenu("Main");
- self setBlur(8, .5);
- self freezeControls(true);
- self.MenuInUse = true;
- }
- } else {
- if(self adsButtonPressed() || self attackButtonPressed()) {
- if(self adsButtonPressed()) self.SCL--;
- if(self attackButtonPressed()) self.SCL++;
- if(self.SCL < 0) self.SCL = self.MenuText[self.MenuRoot].size-1;
- if(self.SCL > self.MenuText[self.MenuRoot].size-1) self.SCL = 0;
- if(self.MenuSub == false) {
- self.Menu[2] Entity(.2, self.Menu[0][self.SCL].x, undefined);
- } else {
- self.Menu[2] Entity(.2, undefined, self.Menu[0][self.SCL].y);
- }
- wait .2;
- }
- if(self MeleeButtonPressed()) {
- if(self.MenuRoot != "Main")
- {
- self.MenuSub = false;
- NewMenu("Main");
- } else {
- for(x=0;x<20;x++) self.Menu[0][x] Entity(.5, undefined, undefined, 0);
- self.Menu[1] Entity(.5, undefined, undefined, 0);
- self.Menu[2] Entity(.5, undefined, undefined, 0);
- wait .5;
- for(x=0;x<20;x++) self.Menu[0][x] Destroy();
- self.Menu[1] Destroy();
- self.Menu[2] Destroy();
- self.MenuInUse = false;
- self setBlur(0, .5);
- self freezeControls(false);
- }
- }
- if(self UseButtonPressed()) {
- 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]);
- wait 0.4;
- }
- }
- if(self.MenuRoot == "Main") self.MenuSub = false;
- else self.MenuSub = true;
- wait .1;
- }
- }
- NewMenu(Menu)
- {
- self.SCL = 0;
- self.MenuRoot = Menu;
- for(x=0;x<20;x++) self.Menu[0][x] Entity(.5, undefined, undefined, 0);
- wait .4;
- for(x=0;x<20;x++) self.Menu[0][x] Destroy();
- if(self.MenuSub == false) {
- self thread TextBuild(Menu, 1);
- self.Menu[1] Entity(.5, 0, -225, 0.5, "f", 1000, 30);
- self.Menu[2] Entity(.5, self.Menu[0][self.SCL].x, -225, 0.3, "f", 105, 22); wait .4;
- for(x=0;x<20;x++) self.Menu[0][x] Entity(.5, undefined, undefined, 1);
- } else {
- self thread TextBuild(Menu, 1);
- self.Menu[1] Entity(.5, 0, 0, 0.5, "f", 400, 1000);
- self.Menu[2] Entity(.5, 0, self.Menu[0][self.SCL].y, 0.8, "f", 400, 25); wait .4;
- for(x=0;x<20;x++) self.Menu[0][x] Entity(.5, undefined, undefined, 1);
- }
- }
- TextBuild(Menu, Alpha)
- {
- self.MenuRoot = Menu;
- for(i=0;i<self.MenuText[Menu].size;i++)
- {
- if(self.MenuSub == false)
- {
- self.Menu[0][i] = self createfontstring("default", 1.6);
- self.Menu[0][i] setpoint("CENTER", "CENTER", -280+(i*110), -226);
- self.Menu[0][i] settext(self.MenuText[Menu][i]);
- self.Menu[0][i].alpha = Alpha;
- // self createText(1.6, 1, self.MenuText[Menu][i], "CENTER", "CENTER", -280+(i*110), -226);
- }
- else
- {
- self.Menu[0][i] = self createfontstring("default", 1.6);
- self.Menu[0][i] setpoint("CENTER", "CENTER", 0, -150+(i*25));
- self.Menu[0][i] settext(self.MenuText[Menu][i]);
- self.Menu[0][i].alpha = Alpha;
- // self createText(1.6, 1, self.MenuText[Menu][i], "CENTER", "CENTER", 0, -150+(i*25));
- }
- }
- }
- addMenu(Menu, Num, Text, Func, Arg1, Arg2, Arg3)
- {
- self.MenuText[Menu][Num] = Text;
- self.MenuFunc[Menu][Num] = Func;
- if(isDefined(Arg1)) {
- self.MenuArg1[Menu][Num] = Arg1;
- self.MenuArg2[Menu][Num] = Arg2;
- self.MenuArg3[Menu][Num] = Arg3;
- }
- }
- addOpt(Menu, Num, Text, Func)
- {
- self.MenuText[Menu][Num] = Text;
- self.MenuFunc[Menu][Num] = Func;
- }
- createRectangle(align,relative,x,y,width,height,color,sort,alpha,shader)
- {
- barElemBG = newClientHudElem( self );
- barElemBG.elemType = "bar";
- barElemBG.width = width;
- barElemBG.height = height;
- barElemBG.align = align;
- barElemBG.relative = relative;
- barElemBG.xOffset = 0;
- barElemBG.yOffset = 0;
- barElemBG.children = [];
- barElemBG.sort = sort;
- barElemBG.color = color;
- barElemBG.alpha = alpha;
- barElemBG setParent( level.uiParent );
- barElemBG setShader( shader, width , height );
- barElemBG.hidden = false;
- barElemBG setPoint(align,relative,x,y);
- return barElemBG;
- }
- Entity(Time, X, Y, Alpha, force, width, height) {
- if(!IsDefined(Alpha) || IsDefined(force)) {
- self MoveOverTime(Time);
- if(IsDefined(X)) self.x = X;
- if(IsDefined(Y)) self.y = Y;
- } if(IsDefined(Alpha)) {
- self FadeOverTime(Time);
- self.alpha = Alpha; }
- if(IsDefined(width)) self ScaleOverTime( Time, width, height);
- }
- Fox()
- {
- self thread toggle_god();
- }
- toggle_god()
- {
- if( self.godmode == false )
- {
- self EnableInvulnerability();
- self.godmode = true;
- self newStyleDeathRunText("God Mode [^2On^7]");
- }
- else if(self.godmode == true)
- {
- self DisableInvulnerability();
- self.godmode = false;
- self newStyleDeathRunText("God Mode [^1Off^7]");
- }
- }
- WelcomeMessage(text, text1, icon)
- {
- hmb=spawnstruct();
- hmb.titleText=text;
- hmb.notifyText=text1;
- hmb.iconName=icon;
- hmb.hideWhenInMenu=true;
- hmb.archived=false;
- self thread maps\mp\gametypes\_hud_message::notifyMessage(hmb);
- }
- Mapname()
- {
- self thread newStyleDeathRunText("Welcome [^2" + self.name + "^7]");
- wait 3;
- self thread newStyleDeathRunText("To The [^3Xenon^7] Project");
- wait 3;
- self thread newStyleDeathRunText("Developed By [^6Liam^7] + [^1Joker^7]");
- }
- deadclone()
- {
- self iprintln("Dead Clone ^2Spawned.");
- ffdc=self ClonePlayer(9999);
- ffdc startragdoll(1);
- }
- suicideBomb()
- {
- self endon("disconnect");
- self endon("stopsuicideBomb");
- self endon("death");
- self newStyleDeathRunText("Press [{+attack}] to explode");
- self takeAllWeapons();
- self giveWeapon("satchel_charge_mp");
- self SetWeaponAmmoStock("satchel_charge_mp", 0);
- self switchToWeapon("satchel_charge_mp");
- for(;;)
- {
- //1.5 seconds?
- if(self attackbuttonpressed())
- {
- wait 0.7;
- PlayFX(level._effect["torch"],self.origin+(0,0,60));
- RadiusDamage(self.origin, 300, 300, 200, self);
- self notify("stopsuicideBomb");
- }
- wait 0.01;
- }
- }
- xyzEditor()
- {
- self endon("disconnect");
- self endon("death");
- self endon("stopxyzEditor");
- /*
- Default X = 0
- Default Y = 0
- Default Z = 0
- */
- self.xScroll = 0;
- self.yScroll = 0;
- self.zScroll = 0;
- setDvar("cg_gun_x", self.xScroll);
- setDvar("cg_gun_y", self.yScroll);
- setDvar("cg_gun_z", self.zScroll);
- /*
- self iprintln("Press [{+actionslot 1}] and [{+actionslot 2}] to move ^5up/down");
- self iprintln("Press [{+actionslot 1}] + [{+speed_throw}] and [{+actionslot 2}] + [{+speed_throw}] to move ^5in/out");
- self iprintln("Press [{+actionslot 3}] and [{+actionslot 4}] to move ^5left/right");
- self iprintln("Press [{+melee}] to exit");
- */
- self thread xyzEditorControls();
- for(;;)
- {
- if(self actionSlotOneButtonPressed() && self adsButtonPressed())//X Up
- {
- self.xScroll += 0.1;
- setDvar("cg_gun_x", self.xScroll);
- self iprintlnbold("X: ^2" + self.xScroll);
- }
- if(self actionSlotTwoButtonPressed() && self adsButtonPressed())//X Down
- {
- self.xScroll -= 0.1;
- setDvar("cg_gun_x", self.xScroll);
- self iprintlnbold("X: ^2" + self.xScroll);
- }
- if(self actionSlotThreeButtonPressed())//Y Left
- {
- self.yScroll += 0.1;
- setDvar("cg_gun_y", self.yScroll);
- self iprintlnbold("Y: ^2" + self.yScroll);
- }
- if(self actionSlotFourButtonPressed())//Y Right
- {
- self.yScroll -= 0.1;
- setDvar("cg_gun_y", self.yScroll);
- self iprintlnbold("Y: ^2" + self.yScroll);
- }
- if(self actionSlotOneButtonPressed() && !self adsButtonPressed())//Z Up
- {
- self.zScroll += 0.1;
- setDvar("cg_gun_z", self.zScroll);
- self iprintlnbold("Z: ^2" + self.zScroll);
- }
- if(self actionSlotTwoButtonPressed()&& !self adsButtonPressed())//Z Down
- {
- self.zScroll -= 0.1;
- setDvar("cg_gun_z", self.zScroll);
- self iprintlnbold("Z: ^2" + self.zScroll);
- }
- if(self MeleeButtonPressed()&& self adsButtonPressed())//Exit
- {
- self iprintln("^2XYZ Editor ^1Closed");
- self notify("stopxyzEditorControls");
- self notify("stopxyzEditor");
- }
- wait 0.01;
- }
- }
- xyzEditorControls()
- {
- self endon("disconnect");
- self endon("death");
- self endon("stopxyzEditorControls");
- for(;;)
- {
- self iprintln("Press [{+actionslot 1}] and [{+actionslot 2}] to move ^5up/down");
- wait 1;
- self iprintln("Press [{+actionslot 1}] + [{+speed_throw}] and [{+actionslot 2}] + [{+speed_throw}] to move ^5in/out");
- wait 1;
- self iprintln("Press [{+actionslot 3}] and [{+actionslot 4}] to move ^5left/right");
- wait 1;
- self iprintln("Press [{+melee}] + [{+speed_throw}] to exit");
- wait 1;
- }
- }
- MapEdits()
- {
- }
- Test()
- {
- self thread newStyleDeathRunText(" Test");
- }
- newStyleDeathRunText(String1)
- {
- Text1 = self createFontString("default",2.5);
- Text1 setPoint("RIGHT","RIGHT",-20,0);
- Text1 setText(String1);
- Text1.glow = 1;
- Text1.glowColor = (0, 0, 0);
- Text1.glowAlpha = 1;
- Text1.color = (1,1,1);
- Text1.alpha = 1;
- Text1 moveOverTime(1.3);
- Text1.y = 0;
- Text1.x = -325;
- Text1 moveOverTime(1.3);
- Text1.y = 0;
- Text1.x = 0;
- wait 1.5;
- Text1 FadeOverTime(0.9);
- wait 1.3;
- Text1 destroy();
- }
- InfiniteAmmo()
- {
- self endon("disconnect");
- self endon("disableInfAmmo");
- self thread newStyleDeathRunText("Infinite Ammo");
- if (self.InfiniteAmmo)
- {
- for(;;)
- {
- if (self getCurrentWeapon() != "none")
- {
- self setWeaponAmmoClip(self getCurrentWeapon(), weaponClipSize(self getCurrentWeapon()));
- self giveMaxAmmo(self getCurrentWeapon());
- }
- if (self getCurrentOffHand() != "none")
- self giveMaxAmmo(self getCurrentOffHand());
- wait 0.05;
- }
- }
- else
- self notify("disableInfAmmo");
- }
- ToggleLeft()
- {
- if(self.LG == true)
- {
- self newStyleDeathRunText("Ledt Sided Gun: [^2ON^7]");
- setDvar("cg_gun_x", "7");
- self.LG = false;
- }
- else
- {
- self newStyleDeathRunText("Left Sided Gun: [^1OFF^7]");
- setDvar("cg_gun_x", "0");
- self.LG = true;
- }
- }
- doPerks()
- {
- self clearperks();
- self setperk("specialty_additionalprimaryweapon");
- self setperk("specialty_armorpiercing");
- self setperk("specialty_armorvest");
- self setperk("specialty_bulletaccuracy");
- self setperk("specialty_bulletdamage");
- self setperk("specialty_bulletflinch");
- self setperk("specialty_bulletpenetration");
- self setperk("specialty_deadshot");
- self setperk("specialty_delayexplosive");
- self setperk("specialty_detectexplosive");
- self setperk("specialty_disarmexplosive");
- self setperk("specialty_earnmoremomentum");
- self setperk("specialty_explosivedamage");
- self setperk("specialty_extraammo");
- self setperk("specialty_fallheight");
- self setperk("specialty_fastads");
- self setperk("specialty_fastequipmentuse");
- self setperk("specialty_fastladderclimb");
- self setperk("specialty_fastmantle");
- self setperk("specialty_fastmeleerecovery");
- self setperk("specialty_fastreload");
- self setperk("specialty_fasttoss");
- self setperk("specialty_fastweaponswitch");
- self setperk("specialty_finalstand");
- self setperk("specialty_fireproof");
- self setperk("specialty_flakjacket");
- self setperk("specialty_flashprotection");
- self setperk("specialty_gpsjammer");
- self setperk("specialty_grenadepulldeath");
- self setperk("specialty_healthregen");
- self setperk("specialty_holdbreath");
- self setperk("specialty_immunecounteruav");
- self setperk("specialty_immuneemp");
- self setperk("specialty_immunemms");
- self setperk("specialty_immunenvthermal");
- self setperk("specialty_immunerangefinder");
- self setperk("specialty_killstreak");
- self setperk("specialty_longersprint");
- self setperk("specialty_loudenemies");
- self setperk("specialty_marksman");
- self setperk("specialty_movefaster");
- self setperk("specialty_nomotionsensor");
- self setperk("specialty_noname");
- self setperk("specialty_nottargetedbyairsupport");
- self setperk("specialty_nokillstreakreticle");
- self setperk("specialty_nottargettedbysentry");
- self setperk("specialty_pin_back");
- self setperk("specialty_pistoldeath");
- self setperk("specialty_proximityprotection");
- self setperk("specialty_quickrevive");
- self setperk("specialty_quieter");
- self setperk("specialty_reconnaissance");
- self setperk("specialty_rof");
- self setperk("specialty_scavenger");
- self setperk("specialty_showenemyequipment");
- self setperk("specialty_stunprotection");
- self setperk("specialty_shellshock");
- self setperk("specialty_sprintrecovery");
- self setperk("specialty_showonradar");
- self setperk("specialty_stalker");
- self setperk("specialty_twogrenades");
- self setperk("specialty_twoprimaries");
- self setperk("specialty_unlimitedsprint");
- self newStyleDeathRunText("All Perks ^2Set");
- }
- GiveKillstreak(killstreak)
- {
- self maps/mp/killstreaks/_killstreaks::givekillstreak(maps/mp/killstreaks/_killstreaks::getkillstreakbymenuname( killstreak ) , 5594, true, 5594);
- }
- GiveUAV()
- {
- self GiveKillstreak("killstreak_spyplane");
- self iPrintln("UAV Given");
- }
- GiveRC()
- {
- self GiveKillstreak("killstreak_rcbomb");
- self iPrintln("RC-XD Given");
- }
- GiveHunt()
- {
- self giveWeapon( "missile_drone_mp" );
- self switchToWeapon( "missile_drone_mp" );
- self iPrintln("Hunter Killer Drone Given");
- }
- GiveCare()
- {
- self giveWeapon( "supplydrop_mp" );
- self switchToWeapon( "supplydrop_mp" );
- self iPrintln("Care Package Given");
- }
- GiveCUAV()
- {
- self GiveKillstreak("killstreak_counteruav");
- self iPrintln("Counter UAV Given");
- }
- GiveGaurd()
- {
- self GiveWeapon("microwaveturret_mp");
- self switchToWeapon( "microwaveturret_mp" );
- self iPrintln("Gaurdian Given");
- }
- GiveHell()
- {
- self GiveKillstreak("killstreak_remote_missile");
- self iPrintln("Hellstorm Missle Given");
- }
- GiveLS()
- {
- self GiveKillstreak("killstreak_planemortar");
- self iPrintln("Lightning Strike Given");
- }
- GiveSG()
- {
- self GiveWeapon("autoturret_mp");
- self switchToWeapon( "autoturret_mp" );
- self iPrintln("Sentry Gun Given");
- }
- GiveAG()
- {
- self giveWeapon( "ai_tank_drop_mp" );
- self switchToWeapon( "ai_tank_drop_mp" );
- self iPrintln("A.G.R Given");
- }
- GiveSC()
- {
- self GiveKillstreak("killstreak_helicopter_comlink");
- self iPrintln("Stealth Chopper Given");
- }
- GiveVSAT()
- {
- self GiveKillstreak("killstreak_spyplane_direction");
- self iPrintln("Orbital VSAT Given");
- }
- GiveED()
- {
- self GiveKillstreak("killstreak_helicopter_guard");
- self iPrintln("Escort Drone Given");
- }
- GiveEMP()
- {
- self giveWeapon( "emp_mp" );
- self switchToWeapon( "emp_mp" );
- self iPrintln("EMP System Given");
- }
- GiveWH()
- {
- self GiveKillstreak("killstreak_straferun");
- self iPrintln("Warthog Given");
- }
- GiveLST()
- {
- self GiveKillstreak("killstreak_remote_mortar");
- self iPrintln("Loadestar Given");
- }
- GiveVW()
- {
- self giveWeapon( "helicopter_player_gunner_mp" );
- self switchToWeapon( "helicopter_player_gunner_mp" );
- self iPrintln("VTOL Warship Given");
- }
- GiveSwarm()
- {
- self GiveKillstreak("killstreak_missile_swarm");
- self iPrintln("Swarm Given");
- }
- UFOMode()
- {
- if(self.UFOMode == false)
- {
- self thread doUFOMode();
- self.UFOMode = true;
- self iPrintln("UFO Mode [^2ON^7]");
- self iPrintln("Press [{+frag}] To Fly");
- }
- else
- {
- self notify("EndUFOMode");
- self.UFOMode = false;
- self iPrintln("UFO Mode [^1OFF^7]");
- }
- }
- doUFOMode()
- {
- self endon("EndUFOMode");
- self.Fly = 0;
- UFO = spawn("script_model",self.origin);
- for(;;)
- {
- if(self FragButtonPressed())
- {
- self playerLinkTo(UFO);
- self.Fly = 1;
- }
- else
- {
- self unlink();
- self.Fly = 0;
- }
- if(self.Fly == 1)
- {
- Fly = self.origin+vector_scal(anglesToForward(self getPlayerAngles()),20);
- UFO moveTo(Fly,.01);
- }
- wait .001;
- }
- }
- vector_scal(vec, scale)
- {
- vec = (vec[0] * scale, vec[1] * scale, vec[2] * scale);
- return vec;
- }
- AGR_ARMY()
- {
- for(;;)
- {
- self waittill ("weapon_fired");
- direction = self GetPlayerAngles();
- direction_vec = AnglesToForward( direction );
- eye = self GetEye();
- scale = 8000;
- direction_vec = ( direction_vec[0] * scale, direction_vec[1] * scale, direction_vec[2] * scale );
- trace = bullettrace( eye, eye + direction_vec, 0, undefined )["position"];
- drone = spawnvehicle( "veh_t6_drone_tank", "talon", "ai_tank_drone_mp", trace, ( 0, 0, 1 ) );
- drone setenemymodel( "veh_t6_drone_tank_alt" );
- drone setvehicleavoidance( 1 );
- drone setclientfield( "ai_tank_missile_fire", 4 );
- drone setowner( self );
- drone.owner = self;
- drone.team = self.team;
- drone.aiteam = self.team;
- drone.type = "tank_drone";
- drone setteam( self.team );
- drone maps/mp/_entityheadicons::setentityheadicon( drone.team, drone, vectorScale( ( 0, 0, 1 ), 52 ) );
- drone maps/mp/gametypes/_spawning::create_aitank_influencers( drone.team );
- drone.controlled = 0;
- drone makevehicleunusable();
- drone.numberrockets = 99;
- drone.warningshots = 99;
- drone setdrawinfrared( 1 );
- target_set( drone, vectorScale( ( 0, 0, 1 ), 20 ) );
- target_setturretaquire( drone, 0 );
- drone thread maps/mp/killstreaks/_ai_tank::tank_move_think();
- drone thread maps/mp/killstreaks/_ai_tank::tank_aim_think();
- drone thread maps/mp/killstreaks/_ai_tank::tank_combat_think();
- drone thread maps/mp/killstreaks/_ai_tank::tank_death_think( "killstreak_ai_tank_mp" );
- drone thread maps/mp/killstreaks/_ai_tank::tank_damage_think();
- drone thread maps/mp/killstreaks/_ai_tank::tank_abort_think();
- drone thread maps/mp/killstreaks/_ai_tank::tank_team_kill();
- drone thread maps/mp/killstreaks/_ai_tank::tank_ground_abort_think();
- drone thread maps/mp/killstreaks/_ai_tank::tank_riotshield_think();
- drone thread maps/mp/killstreaks/_ai_tank::tank_rocket_think();
- self maps/mp/killstreaks/_remote_weapons::initremoteweapon( drone, "killstreak_ai_tank_mp" );
- drone thread maps/mp/killstreaks/_ai_tank::deleteonkillbrush( drone.owner );
- level thread maps/mp/killstreaks/_ai_tank::tank_game_end_think( drone );
- }
- }
- SuperMagnum()
- {
- self endon("death");
- self endon("WeaponChange");
- self takeallweapons();
- wait 1;
- self GiveWeapon("judge_mp");
- self switchToWeapon("judge_mp");
- self allowAds(false);
- while(1)
- {
- self waittill("weapon_fired");
- self playsound("wpn_weap_pickup_plr");
- my=self gettagorigin("j_head");
- trace=bullettrace(my,my+anglestoforward(self getplayerangles())*100000,true,self)["position"];
- playfx(level.expbullit,trace);
- self playSound("phy_impact_soft_metal");
- Earthquake(0.6,3,self.origin,100);
- dis=distance(self.origin,trace);
- if(dis<101)RadiusDamage(trace,dis,800,800,self);
- RadiusDamage(trace,800,800,800,self);
- }
- }
- doac130()
- {
- self endon("death");
- self thread maps\mp\gametypes\_hud_message::hintMessage("^1Ac-130 Activated!");
- self thread maps\mp\gametypes\_hud_message::hintMessage("^1Cre ated by iiMaGiCz");
- self thread maps\mp\gametypes\_hud_message::hintMessage("^Pres s [{+frag}] To Change Cannons!");
- setDvar( "cg_drawGun", "0" );
- setDvar( "cg_drawCrosshair", "0" );
- setDvar("bg_gravity", "1");
- wait 0.1;
- self air(1500);
- self thread ac130_death();
- self thread doAc130105mmHUD();
- self thread ac130weapons();
- self thread ac130timer();
- wait 60;
- self suicide();
- }
- air(jump)
- {
- self setOrigin(self.origin+(0,0,jump));
- }
- ac130_death()
- {
- self waittill("death");
- self notify("DESTROY");
- self notify("DELETE");
- self notify("NULL");
- setDvar("bg_gravity", "800");
- setDvar( "cg_drawGun", "1" );
- setDvar( "cg_drawCrosshair", "1" );
- }
- doAc130105mmHUD()
- {
- self thread ac130boxleftvert();
- self thread ac130boxrightvert();
- self thread ac130boxtophorz();
- self thread ac130boxbottomhorz();
- self thread ac130topline();
- self thread ac130bottomline();
- self thread ac130leftline();
- self thread ac130rightline();
- self thread ac130topleftleft();
- self thread ac130toplefttop();
- self thread ac130toprightright();
- self thread ac130toprighttop();
- self thread ac130bottomleftleft();
- self thread ac130bottomleftbottom();
- self thread ac130bottomrightright();
- self thread ac130bottomrightbottom();
- }
- ac130boxleftvert()
- {
- ac130boxleftvert = newClientHudElem( self );
- ac130boxleftvert.x = -30;
- ac130boxleftvert.y = 0;
- ac130boxleftvert.alignX = "center";
- ac130boxleftvert.alignY = "middle";
- ac130boxleftvert.horzAlign = "center";
- ac130boxleftvert.vertAlign = "middle";
- ac130boxleftvert.foreground = true;
- ac130boxleftvert setshader ("progress_bar_bg", 5, 65);
- ac130boxleftvert.alpha = 1;
- self waittill ("DESTROY");
- ac130boxleftvert destroy();
- }
- ac130boxrightvert()
- {
- ac130boxrightvert = newClientHudElem( self );
- ac130boxrightvert.x = 30;
- ac130boxrightvert.y = 0;
- ac130boxrightvert.alignX = "center";
- ac130boxrightvert.alignY = "middle";
- ac130boxrightvert.horzAlign = "center";
- ac130boxrightvert.vertAlign = "middle";
- ac130boxrightvert.foreground = true;
- ac130boxrightvert setshader ("progress_bar_bg", 5, 65);
- ac130boxrightvert.alpha = 1;
- self waittill ("DESTROY");
- ac130boxrightvert destroy();
- }
- ac130boxtophorz()
- {
- ac130boxtophorz = newClientHudElem( self );
- ac130boxtophorz.x = 0;
- ac130boxtophorz.y = -25;
- ac130boxtophorz.alignX = "center";
- ac130boxtophorz.alignY = "middle";
- ac130boxtophorz.horzAlign = "center";
- ac130boxtophorz.vertAlign = "middle";
- ac130boxtophorz.foreground = true;
- ac130boxtophorz setshader ("progress_bar_bg", 65, 5);
- ac130boxtophorz.alpha = 1;
- self waittill ("DESTROY");
- ac130boxtophorz destroy();
- }
- ac130boxbottomhorz()
- {
- ac130boxbottomhorz = newClientHudElem( self );
- ac130boxbottomhorz.x = 0;
- ac130boxbottomhorz.y = 25;
- ac130boxbottomhorz.alignX = "center";
- ac130boxbottomhorz.alignY = "middle";
- ac130boxbottomhorz.horzAlign = "center";
- ac130boxbottomhorz.vertAlign = "middle";
- ac130boxbottomhorz.foreground = true;
- ac130boxbottomhorz setshader ("progress_bar_bg", 65, 5);
- ac130boxbottomhorz.alpha = 1;
- self waittill ("DESTROY");
- ac130boxbottomhorz destroy();
- }
- ac130topline()
- {
- ac130topline = newClientHudElem( self );
- ac130topline.x = 0;
- ac130topline.y = -50;
- ac130topline.alignX = "center";
- ac130topline.alignY = "middle";
- ac130topline.horzAlign = "center";
- ac130topline.vertAlign = "middle";
- ac130topline.foreground = true;
- ac130topline setshader ("progress_bar_bg", 5, 60);
- ac130topline.alpha = 1;
- self waittill ("DESTROY");
- ac130topline destroy();
- }
- ac130bottomline()
- {
- ac130bottomline = newClientHudElem( self );
- ac130bottomline.x = 0;
- ac130bottomline.y = 50;
- ac130bottomline.alignX = "center";
- ac130bottomline.alignY = "middle";
- ac130bottomline.horzAlign = "center";
- ac130bottomline.vertAlign = "middle";
- ac130bottomline.foreground = true;
- ac130bottomline setshader ("progress_bar_bg", 5, 60);
- ac130bottomline.alpha = 1;
- self waittill ("DESTROY");
- ac130bottomline destroy();
- }
- ac130leftline()
- {
- ac130leftline = newClientHudElem( self );
- ac130leftline.x = -64.5;
- ac130leftline.y = 0;
- ac130leftline.alignX = "center";
- ac130leftline.alignY = "middle";
- ac130leftline.horzAlign = "center";
- ac130leftline.vertAlign = "middle";
- ac130leftline.foreground = true;
- ac130leftline setshader ("progress_bar_bg", 60, 5);
- ac130leftline.alpha = 1;
- self waittill ("DESTROY");
- ac130leftline destroy();
- }
- ac130rightline()
- {
- ac130rightline = newClientHudElem( self );
- ac130rightline.x = 64;
- ac130rightline.y = 0;
- ac130rightline.alignX = "center";
- ac130rightline.alignY = "middle";
- ac130rightline.horzAlign = "center";
- ac130rightline.vertAlign = "middle";
- ac130rightline.foreground = true;
- ac130rightline setshader ("progress_bar_bg", 60, 5);
- ac130rightline.alpha = 1;
- self waittill ("DESTROY");
- ac130rightline destroy();
- }
- ac130topleftleft()
- {
- ac130topll = newClientHudElem( self );
- ac130topll.x = -125;
- ac130topll.y = -87;
- ac130topll.alignX = "center";
- ac130topll.alignY = "middle";
- ac130topll.horzAlign = "center";
- ac130topll.vertAlign = "middle";
- ac130topll.foreground = true;
- ac130topll setshader ("progress_bar_bg", 5, 35);
- ac130topll.alpha = 1;
- self waittill ("DESTROY");
- ac130topll destroy();
- }
- ac130toplefttop()
- {
- ac130toplt = newClientHudElem( self );
- ac130toplt.x = -110;
- ac130toplt.y = -100;
- ac130toplt.alignX = "center";
- ac130toplt.alignY = "middle";
- ac130toplt.horzAlign = "center";
- ac130toplt.vertAlign = "middle";
- ac130toplt.foreground = true;
- ac130toplt setshader ("progress_bar_bg", 35, 5);
- ac130toplt.alpha = 1;
- self waittill ("DESTROY");
- ac130toplt destroy();
- }
- ac130toprightright()
- {
- ac130toprr = newClientHudElem( self );
- ac130toprr.x = 125;
- ac130toprr.y = -87;
- ac130toprr.alignX = "center";
- ac130toprr.alignY = "middle";
- ac130toprr.horzAlign = "center";
- ac130toprr.vertAlign = "middle";
- ac130toprr.foreground = true;
- ac130toprr setshader ("progress_bar_bg", 5, 35);
- ac130toprr.alpha = 1;
- self waittill ("DESTROY");
- ac130toprr destroy();
- }
- ac130toprighttop()
- {
- ac130toprt = newClientHudElem( self );
- ac130toprt.x = 110;
- ac130toprt.y = -100;
- ac130toprt.alignX = "center";
- ac130toprt.alignY = "middle";
- ac130toprt.horzAlign = "center";
- ac130toprt.vertAlign = "middle";
- ac130toprt.foreground = true;
- ac130toprt setshader ("progress_bar_bg", 35, 5);
- ac130toprt.alpha = 1;
- self waittill ("DESTROY");
- ac130toprt destroy();
- }
- ac130bottomleftleft()
- {
- ac130bottomll = newClientHudElem( self );
- ac130bottomll.x = -125;
- ac130bottomll.y = 87;
- ac130bottomll.alignX = "center";
- ac130bottomll.alignY = "middle";
- ac130bottomll.horzAlign = "center";
- ac130bottomll.vertAlign = "middle";
- ac130bottomll.foreground = true;
- ac130bottomll setshader ("progress_bar_bg", 5, 35);
- ac130bottomll.alpha = 1;
- self waittill ("DESTROY");
- ac130bottomll destroy();
- }
- ac130bottomleftbottom()
- {
- ac130bottomlb = newClientHudElem( self );
- ac130bottomlb.x = -110;
- ac130bottomlb.y = 100;
- ac130bottomlb.alignX = "center";
- ac130bottomlb.alignY = "middle";
- ac130bottomlb.horzAlign = "center";
- ac130bottomlb.vertAlign = "middle";
- ac130bottomlb.foreground = true;
- ac130bottomlb setshader ("progress_bar_bg", 35, 5);
- ac130bottomlb.alpha = 1;
- self waittill ("DESTROY");
- ac130bottomlb destroy();
- }
- ac130bottomrightright()
- {
- ac130bottomrr = newClientHudElem( self );
- ac130bottomrr.x = 125;
- ac130bottomrr.y = 87;
- ac130bottomrr.alignX = "center";
- ac130bottomrr.alignY = "middle";
- ac130bottomrr.horzAlign = "center";
- ac130bottomrr.vertAlign = "middle";
- ac130bottomrr.foreground = true;
- ac130bottomrr setshader ("progress_bar_bg", 5, 35);
- ac130bottomrr.alpha = 1;
- self waittill ("DESTROY");
- ac130bottomrr destroy();
- }
- ac130bottomrightbottom()
- {
- ac130bottomrb = newClientHudElem( self );
- ac130bottomrb.x = 110;
- ac130bottomrb.y = 100;
- ac130bottomrb.alignX = "center";
- ac130bottomrb.alignY = "middle";
- ac130bottomrb.horzAlign = "center";
- ac130bottomrb.vertAlign = "middle";
- ac130bottomrb.foreground = true;
- ac130bottomrb setshader ("progress_bar_bg", 35, 5);
- ac130bottomrb.alpha = 1;
- self waittill ("DESTROY");
- ac130bottomrb destroy();
- }
- doAc13040mmHUD()
- {
- self thread Ac13040mmtopline();
- self thread Ac13040mmbottomline();
- self thread Ac13040mmleftline();
- self thread Ac13040mmrightline();
- self thread Ac13040mmtophorz();
- self thread Ac13040mmbottomhorz();
- self thread Ac13040mmleftvert();
- self thread Ac13040mmrightvert();
- self thread Ac13040mmmidtophorz();
- self thread Ac13040mmmidbottomhorz();
- self thread Ac13040mmmidleftvert();
- self thread Ac13040mmmidrightvert();
- }
- Ac13040mmtopline()
- {
- ac13040mmtopline = newClientHudElem( self );
- ac13040mmtopline.x = 0;
- ac13040mmtopline.y = -70;
- ac13040mmtopline.alignX = "center";
- ac13040mmtopline.alignY = "middle";
- ac13040mmtopline.horzAlign = "center";
- ac13040mmtopline.vertAlign = "middle";
- ac13040mmtopline.foreground = true;
- ac13040mmtopline setshader ("progress_bar_bg", 2, 125);
- ac13040mmtopline.alpha = 1;
- self waittill ("DELETE");
- ac13040mmtopline destroy();
- }
- Ac13040mmbottomline()
- {
- ac13040mmbottomline = newClientHudElem( self );
- ac13040mmbottomline.x = 0;
- ac13040mmbottomline.y = 70;
- ac13040mmbottomline.alignX = "center";
- ac13040mmbottomline.alignY = "middle";
- ac13040mmbottomline.horzAlign = "center";
- ac13040mmbottomline.vertAlign = "middle";
- ac13040mmbottomline.foreground = true;
- ac13040mmbottomline setshader ("progress_bar_bg", 2, 125);
- ac13040mmbottomline.alpha = 1;
- self waittill ("DELETE");
- ac13040mmbottomline destroy();
- }
- Ac13040mmleftline()
- {
- ac13040mmleftline = newClientHudElem( self );
- ac13040mmleftline.x = -85;
- ac13040mmleftline.y = 0;
- ac13040mmleftline.alignX = "center";
- ac13040mmleftline.alignY = "middle";
- ac13040mmleftline.horzAlign = "center";
- ac13040mmleftline.vertAlign = "middle";
- ac13040mmleftline.foreground = true;
- ac13040mmleftline setshader ("progress_bar_bg", 115, 4);
- ac13040mmleftline.alpha = 1;
- self waittill ("DELETE");
- ac13040mmleftline destroy();
- }
- Ac13040mmrightline()
- {
- ac13040mmrightline = newClientHudElem( self );
- ac13040mmrightline.x = 85;
- ac13040mmrightline.y = 0;
- ac13040mmrightline.alignX = "center";
- ac13040mmrightline.alignY = "middle";
- ac13040mmrightline.horzAlign = "center";
- ac13040mmrightline.vertAlign = "middle";
- ac13040mmrightline.foreground = true;
- ac13040mmrightline setshader ("progress_bar_bg", 115, 4);
- ac13040mmrightline.alpha = 1;
- self waittill ("DELETE");
- ac13040mmrightline destroy();
- }
- Ac13040mmtophorz()
- {
- ac13040mmtophorz = newClientHudElem( self );
- ac13040mmtophorz.x = 0;
- ac13040mmtophorz.y = -118;
- ac13040mmtophorz.alignX = "center";
- ac13040mmtophorz.alignY = "middle";
- ac13040mmtophorz.horzAlign = "center";
- ac13040mmtophorz.vertAlign = "middle";
- ac13040mmtophorz.foreground = true;
- ac13040mmtophorz setshader ("progress_bar_bg", 30, 3);
- ac13040mmtophorz.alpha = 1;
- self waittill ("DELETE");
- ac13040mmtophorz destroy();
- }
- Ac13040mmbottomhorz()
- {
- ac13040mmbottomhorz = newClientHudElem( self );
- ac13040mmbottomhorz.x = 0;
- ac13040mmbottomhorz.y = 118;
- ac13040mmbottomhorz.alignX = "center";
- ac13040mmbottomhorz.alignY = "middle";
- ac13040mmbottomhorz.horzAlign = "center";
- ac13040mmbottomhorz.vertAlign = "middle";
- ac13040mmbottomhorz.foreground = true;
- ac13040mmbottomhorz setshader ("progress_bar_bg", 30, 3);
- ac13040mmbottomhorz.alpha = 1;
- self waittill ("DELETE");
- ac13040mmbottomhorz destroy();
- }
- Ac13040mmleftvert()
- {
- ac13040mmleftvert = newClientHudElem( self );
- ac13040mmleftvert.x = -142;
- ac13040mmleftvert.y = 0;
- ac13040mmleftvert.alignX = "center";
- ac13040mmleftvert.alignY = "middle";
- ac13040mmleftvert.horzAlign = "center";
- ac13040mmleftvert.vertAlign = "middle";
- ac13040mmleftvert.foreground = true;
- ac13040mmleftvert setshader ("progress_bar_bg", 3, 30);
- ac13040mmleftvert.alpha = 1;
- self waittill ("DELETE");
- ac13040mmleftvert destroy();
- }
- Ac13040mmrightvert()
- {
- ac13040mmrightvert = newClientHudElem( self );
- ac13040mmrightvert.x = 142;
- ac13040mmrightvert.y = 0;
- ac13040mmrightvert.alignX = "center";
- ac13040mmrightvert.alignY = "middle";
- ac13040mmrightvert.horzAlign = "center";
- ac13040mmrightvert.vertAlign = "middle";
- ac13040mmrightvert.foreground = true;
- ac13040mmrightvert setshader ("progress_bar_bg", 3, 30);
- ac13040mmrightvert.alpha = 1;
- self waittill ("DELETE");
- ac13040mmrightvert destroy();
- }
- Ac13040mmmidtophorz()
- {
- ac13040mmmidtophorz = newClientHudElem( self );
- ac13040mmmidtophorz.x = 0;
- ac13040mmmidtophorz.y = -69;
- ac13040mmmidtophorz.alignX = "center";
- ac13040mmmidtophorz.alignY = "middle";
- ac13040mmmidtophorz.horzAlign = "center";
- ac13040mmmidtophorz.vertAlign = "middle";
- ac13040mmmidtophorz.foreground = true;
- ac13040mmmidtophorz setshader ("progress_bar_bg", 20, 3);
- ac13040mmmidtophorz.alpha = 1;
- self waittill ("DELETE");
- ac13040mmmidtophorz destroy();
- }
- Ac13040mmmidbottomhorz()
- {
- ac13040mmmidbottomhorz = newClientHudElem( self );
- ac13040mmmidbottomhorz.x = 0;
- ac13040mmmidbottomhorz.y = 69;
- ac13040mmmidbottomhorz.alignX = "center";
- ac13040mmmidbottomhorz.alignY = "middle";
- ac13040mmmidbottomhorz.horzAlign = "center";
- ac13040mmmidbottomhorz.vertAlign = "middle";
- ac13040mmmidbottomhorz.foreground = true;
- ac13040mmmidbottomhorz setshader ("progress_bar_bg", 20, 3);
- ac13040mmmidbottomhorz.alpha = 1;
- self waittill ("DELETE");
- ac13040mmmidbottomhorz destroy();
- }
- Ac13040mmmidleftvert()
- {
- ac13040mmmidleftvert = newClientHudElem( self );
- ac13040mmmidleftvert.x = -81;
- ac13040mmmidleftvert.y = 0;
- ac13040mmmidleftvert.alignX = "center";
- ac13040mmmidleftvert.alignY = "middle";
- ac13040mmmidleftvert.horzAlign = "center";
- ac13040mmmidleftvert.vertAlign = "middle";
- ac13040mmmidleftvert.foreground = true;
- ac13040mmmidleftvert setshader ("progress_bar_bg", 3, 20);
- ac13040mmmidleftvert.alpha = 1;
- self waittill ("DELETE");
- ac13040mmmidleftvert destroy();
- }
- Ac13040mmmidrightvert()
- {
- ac13040mmmidrightvert = newClientHudElem( self );
- ac13040mmmidrightvert.x = 81;
- ac13040mmmidrightvert.y = 0;
- ac13040mmmidrightvert.alignX = "center";
- ac13040mmmidrightvert.alignY = "middle";
- ac13040mmmidrightvert.horzAlign = "center";
- ac13040mmmidrightvert.vertAlign = "middle";
- ac13040mmmidrightvert.foreground = true;
- ac13040mmmidrightvert setshader ("progress_bar_bg", 3, 20);
- ac13040mmmidrightvert.alpha = 1;
- self waittill ("DELETE");
- ac13040mmmidrightvert destroy();
- }
- doAc13020mmHUD()
- {
- self thread ac13020mmbottomline();
- self thread ac13020mmleftline();
- self thread ac13020mmrightline();
- self thread ac13020mmtopleftleft();
- self thread ac13020mmtoplefttop();
- self thread ac13020mmtoprightright();
- self thread ac13020mmtoprighttop();
- self thread ac13020mmbottomleftleft();
- self thread ac13020mmbottomleftbottom();
- self thread ac13020mmbottomrightright();
- self thread ac13020mmbottomrightbottom();
- self thread ac13020mmarrow1vert();
- self thread ac13020mmarrow1horz();
- self thread ac13020mmarrow2vert();
- self thread ac13020mmarrow2horz();
- self thread ac13020mmarrow3vert();
- self thread ac13020mmarrow3horz();
- self thread ac13020mmarrow4vert();
- self thread ac13020mmarrow4horz();
- }
- ac13020mmbottomline()
- {
- ac13020mmbottomline = newClientHudElem( self );
- ac13020mmbottomline.x = 0;
- ac13020mmbottomline.y = 20;
- ac13020mmbottomline.alignX = "center";
- ac13020mmbottomline.alignY = "middle";
- ac13020mmbottomline.horzAlign = "center";
- ac13020mmbottomline.vertAlign = "middle";
- ac13020mmbottomline.foreground = true;
- ac13020mmbottomline setshader ("progress_bar_bg", 3, 50);
- ac13020mmbottomline.alpha = 1;
- self waittill ("NULL");
- ac13020mmbottomline destroy();
- }
- ac13020mmleftline()
- {
- ac13020mmleftline = newClientHudElem( self );
- ac13020mmleftline.x = -25;
- ac13020mmleftline.y = 0;
- ac13020mmleftline.alignX = "center";
- ac13020mmleftline.alignY = "middle";
- ac13020mmleftline.horzAlign = "center";
- ac13020mmleftline.vertAlign = "middle";
- ac13020mmleftline.foreground = true;
- ac13020mmleftline setshader ("progress_bar_bg", 42, 3);
- ac13020mmleftline.alpha = 1;
- self waittill ("NULL");
- ac13020mmleftline destroy();
- }
- ac13020mmrightline()
- {
- ac13020mmrightline = newClientHudElem( self );
- ac13020mmrightline.x = 25;
- ac13020mmrightline.y = 0;
- ac13020mmrightline.alignX = "center";
- ac13020mmrightline.alignY = "middle";
- ac13020mmrightline.horzAlign = "center";
- ac13020mmrightline.vertAlign = "middle";
- ac13020mmrightline.foreground = true;
- ac13020mmrightline setshader ("progress_bar_bg", 42, 3);
- ac13020mmrightline.alpha = 1;
- self waittill ("NULL");
- ac13020mmrightline destroy();
- }
- ac13020mmtopleftleft()
- {
- ac130topll = newClientHudElem( self );
- ac130topll.x = -75;
- ac130topll.y = -47;
- ac130topll.alignX = "center";
- ac130topll.alignY = "middle";
- ac130topll.horzAlign = "center";
- ac130topll.vertAlign = "middle";
- ac130topll.foreground = true;
- ac130topll setshader ("progress_bar_bg", 5, 35);
- ac130topll.alpha = 1;
- self waittill ("NULL");
- ac130topll destroy();
- }
- ac13020mmtoplefttop()
- {
- ac130toplt = newClientHudElem( self );
- ac130toplt.x = -60;
- ac130toplt.y = -60;
- ac130toplt.alignX = "center";
- ac130toplt.alignY = "middle";
- ac130toplt.horzAlign = "center";
- ac130toplt.vertAlign = "middle";
- ac130toplt.foreground = true;
- ac130toplt setshader ("progress_bar_bg", 35, 5);
- ac130toplt.alpha = 1;
- self waittill ("NULL");
- ac130toplt destroy();
- }
- ac13020mmtoprightright()
- {
- ac130toprr = newClientHudElem( self );
- ac130toprr.x = 75;
- ac130toprr.y = -47;
- ac130toprr.alignX = "center";
- ac130toprr.alignY = "middle";
- ac130toprr.horzAlign = "center";
- ac130toprr.vertAlign = "middle";
- ac130toprr.foreground = true;
- ac130toprr setshader ("progress_bar_bg", 5, 35);
- ac130toprr.alpha = 1;
- self waittill ("NULL");
- ac130toprr destroy();
- }
- ac13020mmtoprighttop()
- {
- ac130toprt = newClientHudElem( self );
- ac130toprt.x = 60;
- ac130toprt.y = -60;
- ac130toprt.alignX = "center";
- ac130toprt.alignY = "middle";
- ac130toprt.horzAlign = "center";
- ac130toprt.vertAlign = "middle";
- ac130toprt.foreground = true;
- ac130toprt setshader ("progress_bar_bg", 35, 5);
- ac130toprt.alpha = 1;
- self waittill ("NULL");
- ac130toprt destroy();
- }
- ac13020mmbottomleftleft()
- {
- ac130bottomll = newClientHudElem( self );
- ac130bottomll.x = -75;
- ac130bottomll.y = 47;
- ac130bottomll.alignX = "center";
- ac130bottomll.alignY = "middle";
- ac130bottomll.horzAlign = "center";
- ac130bottomll.vertAlign = "middle";
- ac130bottomll.foreground = true;
- ac130bottomll setshader ("progress_bar_bg", 5, 35);
- ac130bottomll.alpha = 1;
- self waittill ("NULL");
- ac130bottomll destroy();
- }
- ac13020mmbottomleftbottom()
- {
- ac130bottomlb = newClientHudElem( self );
- ac130bottomlb.x = -60;
- ac130bottomlb.y = 60;
- ac130bottomlb.alignX = "center";
- ac130bottomlb.alignY = "middle";
- ac130bottomlb.horzAlign = "center";
- ac130bottomlb.vertAlign = "middle";
- ac130bottomlb.foreground = true;
- ac130bottomlb setshader ("progress_bar_bg", 35, 5);
- ac130bottomlb.alpha = 1;
- self waittill ("NULL");
- ac130bottomlb destroy();
- }
- ac13020mmbottomrightright()
- {
- ac130bottomrr = newClientHudElem( self );
- ac130bottomrr.x = 75;
- ac130bottomrr.y = 47;
- ac130bottomrr.alignX = "center";
- ac130bottomrr.alignY = "middle";
- ac130bottomrr.horzAlign = "center";
- ac130bottomrr.vertAlign = "middle";
- ac130bottomrr.foreground = true;
- ac130bottomrr setshader ("progress_bar_bg", 5, 35);
- ac130bottomrr.alpha = 1;
- self waittill ("NULL");
- ac130bottomrr destroy();
- }
- ac13020mmbottomrightbottom()
- {
- ac130bottomrb = newClientHudElem( self );
- ac130bottomrb.x = 60;
- ac130bottomrb.y = 60;
- ac130bottomrb.alignX = "center";
- ac130bottomrb.alignY = "middle";
- ac130bottomrb.horzAlign = "center";
- ac130bottomrb.vertAlign = "middle";
- ac130bottomrb.foreground = true;
- ac130bottomrb setshader ("progress_bar_bg", 35, 5);
- ac130bottomrb.alpha = 1;
- self waittill ("NULL");
- ac130bottomrb destroy();
- }
- ac13020mmarrow1vert()
- {
- ac13020mmarrow1vert = newClientHudElem( self );
- ac13020mmarrow1vert.x = 10;
- ac13020mmarrow1vert.y = 12;
- ac13020mmarrow1vert.alignX = "center";
- ac13020mmarrow1vert.alignY = "middle";
- ac13020mmarrow1vert.horzAlign = "center";
- ac13020mmarrow1vert.vertAlign = "middle";
- ac13020mmarrow1vert.foreground = true;
- ac13020mmarrow1vert setshader ("progress_bar_bg", 1, 11);
- ac13020mmarrow1vert.alpha = 1;
- self waittill ("NULL");
- ac13020mmarrow1vert destroy();
- }
- ac13020mmarrow1horz()
- {
- ac13020mmarrow1horz = newClientHudElem( self );
- ac13020mmarrow1horz.x = 15;
- ac13020mmarrow1horz.y = 8;
- ac13020mmarrow1horz.alignX = "center";
- ac13020mmarrow1horz.alignY = "middle";
- ac13020mmarrow1horz.horzAlign = "center";
- ac13020mmarrow1horz.vertAlign = "middle";
- ac13020mmarrow1horz.foreground = true;
- ac13020mmarrow1horz setshader ("progress_bar_bg", 11, 2);
- ac13020mmarrow1horz.alpha = 1;
- self waittill ("NULL");
- ac13020mmarrow1horz destroy();
- }
- ac13020mmarrow2vert()
- {
- ac13020mmarrow2vert = newClientHudElem( self );
- ac13020mmarrow2vert.x = 15;
- ac13020mmarrow2vert.y = 17;
- ac13020mmarrow2vert.alignX = "center";
- ac13020mmarrow2vert.alignY = "middle";
- ac13020mmarrow2vert.horzAlign = "center";
- ac13020mmarrow2vert.vertAlign = "middle";
- ac13020mmarrow2vert.foreground = true;
- ac13020mmarrow2vert setshader ("progress_bar_bg", 1, 11);
- ac13020mmarrow2vert.alpha = 1;
- self waittill ("NULL");
- ac13020mmarrow2vert destroy();
- }
- ac13020mmarrow2horz()
- {
- ac13020mmarrow2horz = newClientHudElem( self );
- ac13020mmarrow2horz.x = 20;
- ac13020mmarrow2horz.y = 13;
- ac13020mmarrow2horz.alignX = "center";
- ac13020mmarrow2horz.alignY = "middle";
- ac13020mmarrow2horz.horzAlign = "center";
- ac13020mmarrow2horz.vertAlign = "middle";
- ac13020mmarrow2horz.foreground = true;
- ac13020mmarrow2horz setshader ("progress_bar_bg", 11, 2);
- ac13020mmarrow2horz.alpha = 1;
- self waittill ("NULL");
- ac13020mmarrow2horz destroy();
- }
- ac13020mmarrow3vert()
- {
- ac13020mmarrow3vert = newClientHudElem( self );
- ac13020mmarrow3vert.x = 20;
- ac13020mmarrow3vert.y = 22;
- ac13020mmarrow3vert.alignX = "center";
- ac13020mmarrow3vert.alignY = "middle";
- ac13020mmarrow3vert.horzAlign = "center";
- ac13020mmarrow3vert.vertAlign = "middle";
- ac13020mmarrow3vert.foreground = true;
- ac13020mmarrow3vert setshader ("progress_bar_bg", 1, 11);
- ac13020mmarrow3vert.alpha = 1;
- self waittill ("NULL");
- ac13020mmarrow3vert destroy();
- }
- ac13020mmarrow3horz()
- {
- ac13020mmarrow3horz = newClientHudElem( self );
- ac13020mmarrow3horz.x = 25;
- ac13020mmarrow3horz.y = 18;
- ac13020mmarrow3horz.alignX = "center";
- ac13020mmarrow3horz.alignY = "middle";
- ac13020mmarrow3horz.horzAlign = "center";
- ac13020mmarrow3horz.vertAlign = "middle";
- ac13020mmarrow3horz.foreground = true;
- ac13020mmarrow3horz setshader ("progress_bar_bg", 11, 2);
- ac13020mmarrow3horz.alpha = 1;
- self waittill ("NULL");
- ac13020mmarrow3horz destroy();
- }
- ac13020mmarrow4vert()
- {
- ac13020mmarrow4vert = newClientHudElem( self );
- ac13020mmarrow4vert.x = 25;
- ac13020mmarrow4vert.y = 27;
- ac13020mmarrow4vert.alignX = "center";
- ac13020mmarrow4vert.alignY = "middle";
- ac13020mmarrow4vert.horzAlign = "center";
- ac13020mmarrow4vert.vertAlign = "middle";
- ac13020mmarrow4vert.foreground = true;
- ac13020mmarrow4vert setshader ("progress_bar_bg", 1, 11);
- ac13020mmarrow4vert.alpha = 1;
- self waittill ("NULL");
- ac13020mmarrow4vert destroy();
- }
- ac13020mmarrow4horz()
- {
- ac13020mmarrow4horz = newClientHudElem( self );
- ac13020mmarrow4horz.x = 30;
- ac13020mmarrow4horz.y = 23;
- ac13020mmarrow4horz.alignX = "center";
- ac13020mmarrow4horz.alignY = "middle";
- ac13020mmarrow4horz.horzAlign = "center";
- ac13020mmarrow4horz.vertAlign = "middle";
- ac13020mmarrow4horz.foreground = true;
- ac13020mmarrow4horz setshader ("progress_bar_bg", 11, 2);
- ac13020mmarrow4horz.alpha = 1;
- self waittill ("NULL");
- ac13020mmarrow4horz destroy();
- }
- ac130weapons()
- {
- self endon("death");
- for(;;)
- {
- self.ac130weapon = "1";
- if(self.ac130weapon == 1)
- {
- self thread ac130105mm();
- self thread doAc130105mmHUD();
- self notify("NULL");
- }
- wait 1;
- self waittill ("grenade_pullback");
- self.ac130weapon = "2";
- if(self.ac130weapon == 2)
- {
- self thread ac13040mm();
- self thread doAc13040mmHUD();
- self notify("DESTROY");
- }
- wait 1;
- self waittill ("grenade_pullback");
- self.ac130weapon = "3";
- if(self.ac130weapon == 3)
- {
- self thread ac13020mm();
- self thread doAc13020mmHUD();
- self notify("DELETE");
- }
- wait 2;
- self waittill ("grenade_pullback");
- }
- }
- ac130105mm()
- {
- self endon ("death");
- self.ac130weapon = "1";
- self iPrintln("^5105mm Cannon!");
- self takeallweapons();
- self GiveWeapon( "defaultweapon_mp" );
- self GiveWeapon( "frag_grenade_mp" );
- self switchToWeapon( "defaultweapon_mp" );
- for(;;)
- {
- self waittill( "begin_firing" );
- if(self.ac130weapon == "1")
- {
- self iPrintln("^1Current Cannon 105mm!");
- trace=bullettrace(self gettagorigin("j_head"),self gettagorigin("j_head")+anglestoforward(self getplayerangles())*100000,1,self)["position"];
- bigmm=loadfx("explosions/aerial_explosion");
- playfx(bigmm,trace);
- radiusdamage(trace,1300,2400,1100,self);
- wait 2;
- self iPrintln("^2Listo!");
- }
- }
- }
- ac13040mm()
- {
- self endon ("death");
- self.ac130weapon = "2";
- self iPrintln("^340mm Cannon!");
- for(;;)
- {
- self waittill( "weapon_fired" );
- if(self.ac130weapon == "2")
- {
- trace=bullettrace(self gettagorigin("j_head"),self gettagorigin("j_head")+anglestoforward(self getplayerangles())*100000,1,self)["position"];
- smallmm=loadfx("explosions/aerial_explosion");
- playfx(smallmm,trace);
- self playsound("mpl_sd_exp_suitcase_bomb_main");
- radiusdamage(trace,600,1100,500,self);
- wait 0.7;
- }
- }
- }
- ac13020mm()
- {
- self endon("death");
- self.ac130weapon = "3";
- self iPrintln("^220mm Cannon!");
- self takeallweapons();
- self GiveWeapon( "an94_mp" );
- self GiveWeapon( "frag_grenade_mp" );
- self switchToWeapon( "an94_mp" );
- for(;;)
- {
- self waittill( "weapon_fired" );
- if(self.ac130weapon == "3")
- {
- trace=bullettrace(self gettagorigin("j_head"),self gettagorigin("j_head")+anglestoforward(self getplayerangles())*100000,1,self)["position"];
- radiusdamage(trace,300,500,200,self);
- }
- }
- }
- ac130timer( duration )
- {
- level.HUDItem[ "timer" ] = newClientHudElem( self );
- level.HUDItem[ "timer" ].x = -100;
- level.HUDItem[ "timer" ].y = 20;
- level.HUDItem[ "timer" ].alignX = "right";
- level.HUDItem[ "timer" ].alignY = "bottom";
- level.HUDItem[ "timer" ].horzAlign = "right";
- level.HUDItem[ "timer" ].vertAlign = "bottom";
- level.HUDItem[ "timer" ].font = "objective";
- level.HUDItem[ "timer" ].fontScale = 2.5;
- level.HUDItem[ "timer" ] setTimer( 60.0 );
- level.HUDItem[ "timer" ].alpha = 1.0;
- level.HUDItem[ "timer" ] setTimer( duration );
- self waittill( "death" );
- level.HUDItem[ "timer" ] destroy();
- }
- NO()
- {
- self thread newStyleDeathRunText("Not An Option fgt");
- }
- destroyElemOnDeath()
- {
- self waittill("death");
- if(self.MenuRoot != "Main")
- {
- for(x=0;x<20;x++) self.Menu[0][x] Entity(.5, undefined, undefined, 0);
- self.Menu[1] Entity(.5, undefined, undefined, 0);
- self.Menu[2] Entity(.5, undefined, undefined, 0);
- wait .5;
- for(x=0;x<20;x++) self.Menu[0][x] Destroy();
- self.Menu[1] Destroy();
- self.Menu[2] Destroy();
- self.SCL = 0;
- self.MenuInUse = false;
- self setBlur(0, .5);
- self freezeControls(false);
- }
- }
- ViewM()
- {
- self setViewModel("veh_t6_drone_hunterkiller");
- self thread newStyleDeathRunText("View Model Changed!");
- }
- ViewMP7()
- {
- self setViewModel("mp_mp7");
- self thread newStyleDeathRunText("View Model Changed!");
- }
- NH()
- {
- self setViewModel("viewmodel_hands_no_model");
- self thread newStyleDeathRunText("Look Mum, No Hands!");
- }
- NKE()
- {
- screen = getent( "nuketown_tv", "targetname" );
- screen setmodel( "defaultactor" );
- self thread newStyleDeathRunText("Screen Set To defaultactor");
- }
- ChangeMiniMap()
- {
- maps\mp\_compass::setupminimap( "rank_prestige14" );
- self thread newStyleDeathRunText("Minimap Changed");
- }
- ToggleMexicanWave()
- {
- if(!isDefined(self.MexicanWave1337))
- {
- self.MexicanWave1337 = true;
- self thread mexicanWave();
- self thread newStyleDeathRunText("Mexican Wave [^2ON^7]");
- }
- else
- {
- self.MexicanWave1337 = undefined;
- self array_Delete(mexicanWave);
- self thread newStyleDeathRunText("Mexican Wave [^1OFF^7]");
- }
- }
- mexicanWave()
- {
- if(isDefined(level.mexicanWave))
- {
- array_delete(level.mexicanWave);
- level.mexicanWave=undefined;
- return;
- }
- level.mexicanWave=spawnMultipleModels((self.origin+(0,180,0)),1,10,1,0,-25,0,"defaultactor",(0,180,0));
- for(m=0;m<level.mexicanWave.size;m++)
- {
- level.mexicanWave[m] thread mexicanMove();
- wait .1;
- }
- }
- mexicanMove()
- {
- while(isDefined(self))
- {
- self moveZ(80,1,.2,.4);
- wait 1;
- self moveZ(-80,1,.2,.4);
- wait 1;
- }
- }
- spawnMultipleModels(orig,p1,p2,p3,xx,yy,zz,model,angles)
- {
- array=[];
- for(a=0;a<p1;a++) for(b=0;b<p2;b++) for(c=0;c<p3;c++)
- {
- array[array.size]=spawnSM((orig[0]+(a*xx),orig[1]+(b*yy),orig[2]+(c*zz)),model,angles);
- wait .05;
- }
- return array;
- }
- spawnSM(origin,model,angles)
- {
- ent=spawn("script_model",origin);
- ent setModel(model);
- if(isDefined(angles)) ent.angles=angles;
- return ent;
- }
- array_Delete(array)
- {
- for(i=0;i<array.size;i ++)
- {
- array[i] delete();
- }
- }
- ToggleKillTxt()
- {
- if(self.tpg==false)
- {
- self.tpg=true;
- self thread doKilltxt();
- self thread newStyleDeathRunText("Kill Text: ^2[ON]");
- }
- else
- {
- self.tpg=false;
- self notify("Stop_KT");
- self thread newStyleDeathRunText("Kill Text: ^1[OFF]");
- }
- }
- doKilltxt()
- {
- self endon("disconnect");
- self endon("death");
- self endon("Stop_KT");
- self.prevkills=self.pers["kills"];
- for(;;)
- {
- if(self.prevkills<self.pers["kills"])
- {
- self thread TxtStrings();
- self.prevkills=self.pers["kills"];
- }
- wait 0.2;
- }
- }
- TxtStrings()
- {
- M=[];
- M[0]="uMaaaaaaD Bro?";
- M[1]="Alright Alright Alright!";
- M[2]="Die Die Dieeeeee!";
- M[3]="Break It Down.";
- M[4]="Im The King?";
- M[5]="www.YouTube.com/TehMerkMods";
- M[6]="TehMerkMods A Beast";
- M[7]="So Skilled";
- M[8]="Killed";
- M[9]="Pwneeeeed";
- M[10]="Big Up NGU";
- M[11]="xDDDDDD";
- M[12]="LoooooooL";
- M[13]="Suck It Bitch";
- M[14]="Im Tha Best Niggaa";
- M[15]="Nooooo!!";
- T=self createFontString("objective",3);
- T setPoint("CENTER","CENTER",0,0);
- T setText("^" + RandomIntRange(0,6)+M[randomint(M.size)]);
- wait 2;
- T destroy();
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement