Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include common_scripts\utility;
- #include maps\_utility;
- #include maps\_hud_util;
- #include maps\_music;
- #include maps\_busing;
- main_modmenu()
- {
- P = get_players();
- if(self.playername == P[0].playername)
- {
- self.verlvl = 3;
- self thread menu_begin();
- self iPrintln("HOST");
- if(self.inMenu) { self iPrintln("TRUE"); }else{ self iPrintln("false"); }
- }
- }
- HUDElems()
- {//250
- //Instruction Box
- self.Menu["instruct"]["text"] = self createText("objective", 1.3, "LEFT", "RIGHTBOTTOM", 0, 0, 1, 0, 0,
- "[{+attack}]/[{+speed_throw}] - Navigate ::\n"+
- "[{+usereload}] - Select ::\n"+
- "[{+melee}] - Go Back/Close");
- //Menu Specific
- self.Menu["bg"]["outline"] = self createRectangle("CENTER", "CENTER", 73, 500, 4, 505, (0,0,1), "white", 2, 0.7);
- self.Menu["bg"]["main"] = self createRectangle("CENTER", "CENTER", 610, 0, 350, 1000, (0,0,0), "white", 1, 0.6);
- self.Menu["sc"] = self createRectangle("CENTER", "TOP", 610, 0*30+50, 350, 25, (0,0,1), "white", 2, 0.7);
- }
- menu_begin()
- {
- self welcomeText("^1Hawk^7's Menu Base","^3CarbonModding.net");
- self endon( "menu_done" );
- self.inMenu = false;
- self.currentMenu="none";
- self HUDElems();
- self watchControls();
- }
- watchControls()
- {
- self endon("death");
- self endon("disconnect");
- while(1)
- {
- if(self adsButtonPressed() && self meleeButtonPressed() && self.inMenu == false)
- {
- if(self.currentMenu=="none" )
- {
- self freezeControls(true);
- self.Menu["bg"]["outline"] elemMoveY(1, 0);
- self.Menu["bg"]["main"] elemMoveX(1, 250);
- self.Menu["sc"] elemMoveX(1, 250);
- self iPrintln("Loaded Menu");
- wait 1;
- self thread iniMenuOpts();
- self.Menu["instruct"]["text"] elemFade(1, 1);
- self setClientDvar("r_blur", 6);
- self notify("done");
- self loadMenu("main");
- self.inMenu = true;
- wait 0.1;
- }
- }else if(self meleeButtonPressed() && self.inMenu == true)
- {
- if(!isDefined(self.Menu[self.currentMenu].parent))
- {
- self CloseMenu();
- }else{
- self loadMenu(self.Menu[self.currentMenu].parent);
- }
- }else if(self AttackButtonPressed() && self.inMenu == true)
- {
- self.curs += 1;
- if(self.curs>=self.Menu[self.currentMenu].opt.size)
- {
- self.curs = 0;
- wait 0.2;
- }
- self.Menu["sc"] elemMoveY(0.3, (self.display[self.curs].y));
- wait 0.1;
- }else if(self AdsButtonPressed() && self.inMenu == true)
- {
- self.curs -= 1;
- if(self.curs<0)
- {
- self.curs = self.Menu[self.currentMenu].opt.size-1;
- wait 0.2;
- }
- self.Menu["sc"] elemMoveY(0.3, (self.display[self.curs].y));
- wait 0.1;
- }else if(self useButtonPressed() && self.inMenu == true)
- {
- self thread [[self.Menu[self.currentMenu].func[self.curs]]](self.Menu[self.currentMenu].inp[self.curs]);
- }
- wait 0.15;
- }
- }
- CloseMenu()
- {
- self notify("update");
- self.Menu["bg"]["outline"] elemMoveY(1, 500);
- self.Menu["bg"]["main"] elemMoveX(1, 610);
- self.Menu["sc"] elemMoveX(1, 610);
- self.Menu["instruct"]["text"] elemFade(1, 0);
- self setClientDvar("r_blur", 0);
- self freezeControls(false);
- self.currentMenu = "none";
- wait 1;
- self.inMenu = false;
- self iPrintln("Closed Menu");
- }
- loadMenu(menu)
- {
- self notify("update");
- self.curs = 0;
- self.currentMenu = menu;
- self.Menu["sc"] elemMoveY(0.2, (self.curs*30+50));
- for(x=0; x<self.Menu[menu].opt.size; x++)
- {//createText(font, fontScale, align, relative, x, y, sort, alpha, glow, text)
- self.display[x] = self createText("default", 1.7, "LEFT", "TOP", 100, x*30+50, 200, 0, 0, "");
- self.display[x] elemFade(0.4, 1);
- self.display[x] setText(self.Menu[self.currentMenu].opt[x]);
- self thread Update(self.display[x]);
- }
- }
- Update( elem3, elem2, elem1 )
- {
- self waittill("update");
- elem3 destroy();
- elem2 destroy();
- elem1 destroy();
- }
- test()
- {
- self iPrintlnBold( "Menu: "+self.Menu[self.currentMenu].title );
- self iPrintlnBold( "Option: "+self.Menu[self.currentMenu].opt[self.curs] );
- }
- working()
- {
- self iPrintlnBold("^3Coming Soon!");
- }
- createText(font, fontScale, align, relative, x, y, sort, alpha, glow, text)
- {
- textElem = self createFontString(font, fontScale, self);
- textElem setText(text);
- textElem setPoint(align, relative, x, y);
- textElem.sort = sort;
- textElem.alpha = alpha;
- textElem.glowColor = glow;
- textElem.glowAlpha = 1;
- return textElem;
- }
- createRectangle(align,relative,x,y,width,height,color,shader,sort,alpha)
- {
- barElemBG = newClientHudElem( self );
- barElemBG.elemType = "bar";
- if ( !level.splitScreen )
- {
- barElemBG.x = -2;
- barElemBG.y = -2;
- }
- 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;
- }
- elemMoveY(time, input)
- {
- self moveOverTime(time);
- self.y = input;
- }
- elemMoveX(time, input)
- {
- self moveOverTime(time);
- self.x = input;
- }
- elemFade(time, alpha)
- {
- self fadeOverTime(time);
- self.alpha = alpha;
- }
- fontScaleFade(time, size)
- {
- self MoveOverTime( time );
- self.fontScale = size;
- }
- empty(){}
- addMenu(menu, title, parent)
- {
- if(!isDefined(self.Menu))
- self.Menu = [];
- self.Menu[menu] = spawnStruct();
- self.Menu[menu].title = title;
- self.Menu[menu].parent = parent;
- self.Menu[menu].opt = [];
- self.Menu[menu].func = [];
- self.Menu[menu].inp = [];
- }
- addOption(menu, opt, func, inp)
- {
- m = self.Menu[menu].opt.size;
- self.Menu[menu].opt[m] = opt;
- self.Menu[menu].func[m] = func;
- self.Menu[menu].inp[m] = inp;
- }
- iniMenuOpts()
- {
- self endon("menu_finish");
- self addMenu("main", "^4Vns ^3Nerdy ^2V1", undefined);
- self addOption("main", "Main Menu", ::loadMenu, "main" );
- self addOption("main", "Shaders", ::loadMenu, "shaders" );
- self addOption("main", "Models", ::loadMenu, "models" );
- self addOption("main", "Visions Menu", ::loadMenu, "visions" );
- self addOption("main", "Client Menu", ::loadMenu, "client" );
- self addOption("main", "Vip Menu", ::loadMenu, "vip" );
- self addOption("main", "Test", ::loadMenu, "test" );
- self addOption("main", "Account Menu", ::loadMenu, "account" );
- self addOption("main", "Admin Menu", ::loadMenu, "admin" );
- self addOption("main", "Player Menu", ::loadMenu, "player" );
- self addOption("main", "Spawnables", ::loadMenu, "spawn" );
- self addMenu("Main", "Main Menu", "main");
- self addOption("Godmode", "God Mode", ::toggle_god );
- self addOption("Noclip", "Noclip", ::toggle_noclip );
- self addOption("Third", "Third Person", ::toggle_third );
- self addOption("Ufo", "Ufo Mode", ::toggle_ufo );
- self addOption("Wallhack", "Wall Hack", ::wall_hack );
- self addMenu("shaders", "Shaders Menu", "main");
- self addOption("Bluefog", "Blue Fog", ::BlueF );
- self addOption("CyanFog", "Cyan Fog", ::CyanF );
- self addOption("DiscoFog", "Disco Fog", ::Disco_Fog );
- self addOption("Orangefog", "Orange Fog", ::OranF );
- self addOption("Purplefog", "Purple Fog", ::PurpF );
- self addOption("Yellowfog", "Yellow Fog", ::YelwF );
- self addOption ("redfog", "Red Fog", ::RedF );
- self addMenu("models", "Models Menu", "main");
- self addOption("sub", "Coming Soon!!!"; ::test );
- self addOption("sub", "Coming Soon!!!"; ::test );
- self addOption("sub", "Coming Soon!!!"; ::test );
- self addOption("sub", "Coming Soon!!!"; ::test );
- self addOption("sub", "Coming Soon!!!"; ::test );
- self addOption("sub", "Coming Soon!!!"; ::test );
- self addOption("sub", "Coming Soon!!!"; ::test );
- self addOption("sub", "Coming Soon!!!"; ::test );
- self addOption("sub", "Coming Soon!!!"; ::test );
- self addMenu ("visions", "Visions Menu", "main");
- self addOption("Flame", "Flame Vision"; ::flame_vis );
- self addOption("Night", "Night Vision"; ::night_vis );
- self addOption("Orange", "Orange Vision"; ::orange_vis );
- self addOption("Purple", "Purple Vision"; ::purple_vis );
- self addOption("RainBw", "Rainbow Vision"; ::rainbow_vis );
- self addOption("sub", "More Coming Soon"; ::test );
- self addOption("sub", "More Coming Soon"; ::test );
- self addOption("sub", "More Coming Soon"; ::test );
- self addOption("sub", "More Coming Soon"; ::test );
- self addMenu ("client", "Client Menu", "main") ;
- self addOption ("Drunkmode", "Drunk Mode", "Drunk" ) ;
- self addOption ("Earth", "Earthquake", "eq" ) ;
- self addOption ("Gore", "Gore Mode", "Gore" ) ;
- self addOption ("flash", "Flashing Charactor", "CharecterFlash" ) ;
- self addOption ("Jetpack", "JetPack", "toggle_jetboots" ) ;
- self addOption ("Paintball", "Paintball", "collectible_paint" ) ;
- self addOption ("Promod", "ProMod", "toggle_promod" ) ;
- self addOption ("Charractorcln", "Clone Charractor", "clone" ) ;
- self addMenu ("vip", "Vip Menu", "main") ;
- self addOption ("Ac130", "AC130 Mode", "AC130" ) ;
- self addOption ("Choppa", "Choppa Gun", "Chopperz" ) ;
- self addOption ("Drive", "Drivable Car", "Carz" ) ;
- self addOption ("Ac130", "Flame Head", "flame_head" ) ;
- self addOption ("Crossflash", "Flashing Crosshair ", "set_crosshair" ) ;
- self addOption ("Ghost", "Ghost Rider", "toggle_Halloween" ) ;
- self addOption ("Heli", "Pet Heli", "HeliCopter" ) ;
- self addOption ("Ice", "Toggle Iceskater", "IceSkater" ) ;
- self addOption ("Kami", "Kamikazeee", "toggle_kamak" ) ;
- self addOption ("Orbit", "Orbital Strike", "doLightning2" ) ;
- }
- self addMenu ("test", Test Nothing Right Now", "main") ;
- self addOption ("sub", "Test", "test" ) ;
- self addOption ("sub", "Test", "test" ) ;
- self addOption ("sub", "Test", "test" ) ;
- self addOption ("sub", "Test", "test" ) ;
- self addOption ("sub", "Test", "test" ) ;
- self addOption ("sub", "Test", "test" ) ;
- self addOption ("sub", "Test", "test" ) ;
- self addOption ("sub", "Test", "test" ) ;
- self addOption ("sub", "Test", "test" ) ;
- self addOption ("sub", "Test", "test" ) ;
- self addOption ("sub", "Test", "test" ) ;
- self addMenu ("account", "Account Menu", "main") ;
- self addOption ("deathcard", "Unlock All Deathcards", "collectible_get_unlock_message" ) ;
- self addOption ("Derankself", "Derank Yourself", "derank" ) ;
- self addOption ("scoremod", "Mod Score", "score_up" ) ;
- self addOption ("Leadmod", "Mod Leaderboards", "leaderboards" ) ;
- self addOption ("Pre", "Prestiges", "prestige" ) ;
- Self addoption ("Achiev", "Unlock Achievments", "DoAchievy" ) ;
- Self addoption ("Attatch", "Unlock attatchments", "doAttach" ) ;
- Self addoption ("Achiev", "Unlock Missions And Deathcards", "UnlockSP" ) ;
- self addMenu ("admin", "Admin Menu", "main") ;
- self addOption ("sub", "Test", "test" ) ;
- self addOption ("sub", "Test", "test" ) ;
- self addOption ("sub", "Test", "test" ) ;
- self addOption ("sub", "Test", "test" ) ;
- self addOption ("sub", "Test", "test" ) ;
- self addOption ("sub", "Test", "test" ) ;
- self addOption ("sub", "Test", "test" ) ;
- self addOption ("sub", "Test", "test" ) ;
- self addOption ("sub", "Test", "test" ) ;
- self addOption ("sub", "Test", "test" ) ;
- self addOption ("sub", "Test", "test" ) ;
- self addMenu ("player", "Player Menu", "main") ;
- self addOption ("sub", "Test", "test" ) ;
- self addOption ("sub", "Test", "test" ) ;
- self addOption ("sub", "Test", "test" ) ;
- self addOption ("sub", "Test", "test" ) ;
- self addOption ("sub", "Test", "test" ) ;
- self addOption ("sub", "Test", "test" ) ;
- self addOption ("sub", "Test", "test" ) ;
- self addOption ("sub", "Test", "test" ) ;
- self addOption ("sub", "Test", "test" ) ;
- self addOption ("sub", "Test", "test" ) ;
- self addOption ("sub", "Test", "test" ) ;
- self addMenu ("spawn", "Spawnables Menu", "main") ;
- self addOption ("sky", "Skybase", "_ModelMaker" ) ;
- self addOption ("Zomtore", "Zombie Store", "self_thread_store" ) ;
- self addOption ("Spwnpwr", "Spawn Powerups", "toggle_spawnpu" ) ;
- self addOption ("sub", "Test", "test" ) ;
- self addOption ("sub", "Test", "test" ) ;
- //FUNCTIONS BEGIN!
- //createText(font, fontScale, align, relative, x, y, sort, alpha, glow, text)
- welcomeText(text1, text2, text3, text4)
- {
- if(isDefined(self.welcome_msg))
- for(;;)
- {
- wait .05;
- if(!isDefined(self.welcome_msg))
- break;
- }
- self.welcome_msg = true;
- self setClientDvars("ammoCounterHide", 1, "miniscoreboardhide", 1);
- line1 = self createFontString("objective", 1.7, self);
- line1 setPoint("LEFT", "LEFTBOTTOM", 20, -72);
- line1.sort = 11;
- line1.alpha = 0;
- line1.glowColor = 1;
- line1.glowAlpha = 1;
- line1 setText(text1);
- line2 = self createFontString("objective", 1.3, self);
- line2 setPoint("LEFT", "LEFTBOTTOM", 20, -58);
- line2.sort = 11;
- line2.alpha = 0;
- line2.glowColor = 1;
- line2.glowAlpha = 1;
- line2 setText(text2);
- hudBG = self createRectangle("BOTTOM", "BOTTOM", 0, -40, 1000, 50, (0, 0, 0), "gradient", 10, .8);
- hudBG elemFade(1, 1);
- line1 elemFade(1, 1);
- line2 elemFade(1, 1);
- wait 4;
- line2 elemFade(.4, 0);
- line1 elemFade(.4, 0);
- if(isDefined(text3) && isDefined(text4))
- {
- wait 1;
- line1 setText(text3);
- line2 setText(text4);
- line1 elemFade(1, 1);
- line2 elemFade(1, 1);
- wait 4;
- line1 elemFade(.4, 0);
- line2 elemFade(.4, 0);
- }
- wait .5;
- hudBG elemFade(1, 0);
- wait 1;
- self setClientDvars("ammoCounterHide", 0, "miniscoreboardhide", 0);
- self.welcome_msg = undefined;
- line1 destroy();
- line2 destroy();
- hudBG destroy();
- }
- toggle_god()
- {
- if( self.godmode == false )
- {
- self EnableHealthShield( true );
- self EnableInvulnerability();
- self iPrintlnBold( "God Mode ^2On" );
- self.godmode = true;
- }
- else
- {
- self EnableHealthShield( false );
- self DisableInvulnerability();
- self iPrintlnBold( "God Mode ^1Off" );
- self.godmode = false;
- }
- }
- toggle_noclip()
- { if(!IsDefined(self.noclip)) self.noclip = false; if(self.noclip == false) { self.noclip = true; link = spawn("script_origin", self.origin); self playerlinkto(link);
- self iPrintlnBold( "Noclip: ^2On" );
- self.jailed = 1; while(self.noclip) { if(self FragButtonPressed()) { vec = anglestoforward(self getPlayerAngles()); end = (vec[0] * 25, vec[1] * 25, vec[2] * 25); link.origin = link.origin+end; } if(self MeleeButtonPressed()) { self.noclip = false;
- self iPrintlnBold( "Noclip: ^1Off" );
- self.jailed = 0;
- self thread client1_modmenu( 155, 65, 1.3, self ); } wait 0.05; } self unlink(); link delete(); }
- wait 0.05;
- }
- toggle_third()
- {
- if( self.third == false )
- {
- self setClientDvar( "cg_thirdPerson", "1" );self.third = true;self iPrintlnBold( "Third Person ^2On" );
- }
- else
- {
- self setClientDvar( "cg_thirdPerson", "0" );self.third = false;self iPrintlnBold( "Third Person ^1Off" );
- }
- }
- toggle_ufo()
- {
- if( self.sessionstate == "spectator" )
- {
- self.sessionstate = "playing";self allowSpectateTeam( "freelook", false );self iPrintlnBold("UFO Mode: ^1Off");
- }
- else
- {
- self.sessionstate = "spectator";self allowSpectateTeam( "freelook", true );self iPrintlnBold("UFO Mode: ^2On");
- }
- }
- wall_hack()
- {
- self endon("death");
- if(self.wallhackOn == false)
- {
- self iPrintln( "Wall Hack On" );
- self.wallhackOn = true;
- }
- else
- {
- self.wallhackOn = false;
- self iPrintln( "Wall Hack On" );
- }
- BlueF()
- {
- self notify( "Stop_Fog" );
- self SetExpFog( 256, 512, 0, 0, .8, 0 );
- self SetVolFog( 165, 835, 200, 75, 0, 0, .8, 0 );
- }
- CyanF()
- {
- self notify( "Stop_Fog" );
- self SetExpFog( 256, 512, 0, .8, .8, 0 );
- self SetVolFog( 165, 835, 200, 75, 0, .8, .8, 0 );
- }
- Disco_Fog()
- {
- self endon( "Stop_Fog" );
- for(;;)
- {
- self SetExpFog( 256, 512, 0, 0.8, 0.8, 0 );
- self SetVolFog( 165, 835, 200, 75, 0, 0.8, 0.8, 0 );
- wait .1;
- self SetExpFog( 256, 512, 0.8, 0.8, 0, 0 );
- self SetVolFog( 165, 835, 200, 75, 0.8, 0.8, 0, 0 );
- wait .1;
- self SetExpFog( 256, 512, 0.8, 0, 0.8, 0 );
- self SetVolFog( 165, 835, 200, 75, 0.8, 0, 0.8, 0 );
- wait .1;
- self SetExpFog( 256, 512, 0, 0, 0.8, 0 );
- self SetVolFog( 165, 835, 200, 75, 0, 0, 0.8, 0 );
- wait .1;
- self SetExpFog( 256, 512, 0, 0.8, 0, 0 );
- self SetVolFog( 165, 835, 200, 75, 0, 0.8, 0, 0 );
- wait .1;
- self SetExpFog( 256, 512, 0.8, 0, 0, 0 );
- self SetVolFog( 165, 835, 200, 75, 0.8, 0, 0, 0 );
- wait .1;
- self SetExpFog( 256, 512, 1, 0.5, 0, 0 );
- self SetVolFog( 165, 835, 200, 75, 1, 0.5, 0, 0 );
- wait .1;
- }
- }
- OranF()
- {
- self notify( "Stop_Fog" );
- self SetExpFog( 256, 512, 1, .5, 0, 0 );
- self SetVolFog( 165, 835, 200, 75, 1, .5, 0, 0 );
- }
- PurpF()
- {
- self notify( "Stop_Fog" );
- self SetExpFog( 256, 512, .8, 0, .8, 0 );
- self SetVolFog( 165, 835, 200, 75, .8, 0, .8, 0 );
- }
- flame_vis()
- {
- self SetClientDvar( "r_flamefx_enable", "1" );self SetClientDvar( "r_fullbright", "0" );self setclientdvar( "r_colorMap", "1" );self SetClientDvar( "r_revivefx_debug", "0" );self iPrintlnBold("Vision Set To ^6Flame Vision");
- }
- night_vis()
- {
- self VisionSetNaked( "default", .1 );self setclientdvar( "r_colorMap", "1" );self SetClientDvar( "r_fullbright", "0" );self SetClientDvar( "r_flamefx_enable", "0" );self SetClientDvar( "r_revivefx_lighttintcenter", "2 2 2" );self SetClientDvar( "r_revivefx_lighttintedge", "1 1 1" );self SetClientDvar( "r_revivefx_contrastcenter", "1.5" );self SetClientDvar( "r_revivefx_contrastedge", "2" );self SetClientDvar( "r_revivefx_darktintcenter", "1 1 0" );self SetClientDvar( "r_revivefx_darktintedge", "0 1 0" );self SetClientDvar( "r_revivefx_blurradiusedge", "3" );self SetClientDvar( "r_revivefx_debug", "1" );self iPrintlnBold("Vision Set To ^1Night Vision");
- }
- orange_vis()
- {
- self VisionSetNaked( "default", .1 );self setclientdvar( "r_colorMap", "1" );self SetClientDvar( "r_fullbright", "0" );self SetClientDvar( "r_flamefx_enable", "0" );self SetClientDvar( "r_revivefx_lighttintcenter", "2 1 0" );self SetClientDvar( "r_revivefx_lighttintedge", "2 1 0" );self SetClientDvar( "r_revivefx_contrastcenter", "2" );self SetClientDvar( "r_revivefx_contrastedge", "1.5" );self SetClientDvar( "r_revivefx_darktintcenter", "2 1 0" );self SetClientDvar( "r_revivefx_darktintedge", "2 1 0" );self SetClientDvar( "r_revivefx_blurradiusedge", "3" );self SetClientDvar( "r_revivefx_debug", "1" );self iprintlnbold("Vision Set To ^1Orange Vision");
- }
- purple_vis()
- {
- self VisionSetNaked( "default", .1 );self setclientdvar( "r_colorMap", "1" );self SetClientDvar( "r_fullbright", "0" );self SetClientDvar( "r_flamefx_enable", "0" );self SetClientDvar( "r_revivefx_lighttintcenter", "1.5 0 2" );self SetClientDvar( "r_revivefx_lighttintedge", "1.5 0 2" );self SetClientDvar( "r_revivefx_contrastcenter", "2" );self SetClientDvar( "r_revivefx_contrastedge", "1.5" );self SetClientDvar( "r_revivefx_darktintcenter", "1.5 0 2" );self SetClientDvar( "r_revivefx_darktintedge", "1.5 0 2" );self SetClientDvar( "r_revivefx_blurradiusedge", "3" );self SetClientDvar( "r_revivefx_debug", "1" );self iPrintlnBold("Vision Set To ^1Purple Vision");
- }
- Drunk()
- {
- self endon("disconnect");
- if (self.Drunk == false)
- {
- self thread Drunk5();
- self CloseMenu();
- self.Drunk = true;
- self iPrintln("Drunk Mode: ^2On");
- }
- else
- {
- self notify("Drunk_Mode");
- self.Drunk = false;
- self setPlayerAngles(self.angles + (0, 0, 0));
- self VisionSetNaked("default", 1.5);
- wait.3;
- self setPlayerAngles(self.angles + (0, 0, 0));
- self iPrintln("Drunk Mode: ^1Off");
- }
- }
- Drunk5()
- {
- self endon("disconnect");
- self endon("Drunk_Mode1");
- weap123 = self getCurrentWeapon();
- self GiveWeapon("zombie_perk_bottle_doubletap");
- self SwitchToWeapon("zombie_perk_bottle_doubletap");
- wait 2.8;
- self TakeWeapon("zombie_perk_bottle_doubletap");
- wait.001;
- self GiveWeapon("zombie_perk_bottle_revive");
- self SwitchToWeapon("zombie_perk_bottle_revive");
- wait 2.2;
- self TakeWeapon("zombie_perk_bottle_revive");
- wait.001;
- self GiveWeapon("zombie_perk_bottle_sleight");
- self SwitchToWeapon("zombie_perk_bottle_sleight");
- wait 2.2;
- self TakeWeapon("zombie_perk_bottle_sleight");
- self SwitchToWeapon(weap123);
- wait 1.4;
- self thread Drunk4();
- wait.2;
- self notify("Drunk_Mode1");
- }
- Drunk4()
- {
- self endon("disconnect");
- self endon("Drunk_Mode");
- self endon("death");
- self thread Drunk3();
- self thread stand();
- for (;;)
- {
- self thread Drunk1();
- wait.8;
- self notify("Drunk1End");
- self thread Drunk2();
- wait.8;
- self notify("Drunk2End");
- self thread Drunk2();
- wait.8;
- self notify("Drunk2End");
- self thread Drunk1();
- wait.8;
- self notify("Drunk1End");
- wait.000000000001;
- }
- }
- Drunk3()
- {
- self endon("disconnect");
- self endon("Drunk_Mode");
- self endon("death");
- for (;;)
- {
- self VisionSetNaked("cheat_contrast", 1.5);
- self SetBlur(9.3, 0.6);
- wait 1.1;
- self SetBlur(0, 0.6);
- wait 1.1;
- self SetBlur(9.3, 0.6);
- wait 1.1;
- self SetBlur(0, 0.6);
- wait 1.1;
- }
- }
- Drunk1()
- {
- self endon("disconnect");
- self endon("Drunk_Mode");
- self endon("Drunk1End");
- self endon("death");
- for (;;)
- {
- self.angle = self GetPlayerAngles();
- if (self.angle[1] < 179) self SetPlayerAngles(self.angle + (0, 0, 2));
- else self SetPlayerAngles(self.angle * (1, -1, 1));
- wait 0.00025;
- }
- }
- Drunk2()
- {
- self endon("disconnect");
- self endon("Drunk_Mode");
- self endon("Drunk2End");
- self endon("death");
- for (;;)
- {
- self.angle = self GetPlayerAngles();
- if (self.angle[1] < 179) self SetPlayerAngles(self.angle + (0, 0, -2));
- else self SetPlayerAngles(self.angle * (1, -1, 1));
- wait 0.00025;
- }
- }
- stand()
- {
- self endon("disconnect");
- self endon("Drunk_Mode");
- self endon("death");
- for (;;)
- {
- self SetStance("prone");
- wait 1.0;
- self SetStance("stand");
- wait 3.9;
- }
- }
- Drunk()
- {
- self endon("disconnect");
- if (self.Drunk == false)
- {
- self thread Drunk5();
- self CloseMenu();
- self.Drunk = true;
- self iPrintln("Drunk Mode: ^2On");
- }
- else
- {
- self notify("Drunk_Mode");
- self.Drunk = false;
- self setPlayerAngles(self.angles + (0, 0, 0));
- self VisionSetNaked("default", 1.5);
- wait.3;
- self setPlayerAngles(self.angles + (0, 0, 0));
- self iPrintln("Drunk Mode: ^1Off");
- }
- }
- Drunk5()
- {
- self endon("disconnect");
- self endon("Drunk_Mode1");
- weap123 = self getCurrentWeapon();
- self GiveWeapon("zombie_perk_bottle_doubletap");
- self SwitchToWeapon("zombie_perk_bottle_doubletap");
- wait 2.8;
- self TakeWeapon("zombie_perk_bottle_doubletap");
- wait.001;
- self GiveWeapon("zombie_perk_bottle_revive");
- self SwitchToWeapon("zombie_perk_bottle_revive");
- wait 2.2;
- self TakeWeapon("zombie_perk_bottle_revive");
- wait.001;
- self GiveWeapon("zombie_perk_bottle_sleight");
- self SwitchToWeapon("zombie_perk_bottle_sleight");
- wait 2.2;
- self TakeWeapon("zombie_perk_bottle_sleight");
- self SwitchToWeapon(weap123);
- wait 1.4;
- self thread Drunk4();
- wait.2;
- self notify("Drunk_Mode1");
- }
- Drunk4()
- {
- self endon("disconnect");
- self endon("Drunk_Mode");
- self endon("death");
- self thread Drunk3();
- self thread stand();
- for (;;)
- {
- self thread Drunk1();
- wait.8;
- self notify("Drunk1End");
- self thread Drunk2();
- wait.8;
- self notify("Drunk2End");
- self thread Drunk2();
- wait.8;
- self notify("Drunk2End");
- self thread Drunk1();
- wait.8;
- self notify("Drunk1End");
- wait.000000000001;
- }
- }
- Drunk3()
- {
- self endon("disconnect");
- self endon("Drunk_Mode");
- self endon("death");
- for (;;)
- {
- self VisionSetNaked("cheat_contrast", 1.5);
- self SetBlur(9.3, 0.6);
- wait 1.1;
- self SetBlur(0, 0.6);
- wait 1.1;
- self SetBlur(9.3, 0.6);
- wait 1.1;
- self SetBlur(0, 0.6);
- wait 1.1;
- }
- }
- Drunk1()
- {
- self endon("disconnect");
- self endon("Drunk_Mode");
- self endon("Drunk1End");
- self endon("death");
- for (;;)
- {
- self.angle = self GetPlayerAngles();
- if (self.angle[1] < 179) self SetPlayerAngles(self.angle + (0, 0, 2));
- else self SetPlayerAngles(self.angle * (1, -1, 1));
- wait 0.00025;
- }
- }
- Drunk2()
- {
- self endon("disconnect");
- self endon("Drunk_Mode");
- self endon("Drunk2End");
- self endon("death");
- for (;;)
- {
- self.angle = self GetPlayerAngles();
- if (self.angle[1] < 179) self SetPlayerAngles(self.angle + (0, 0, -2));
- else self SetPlayerAngles(self.angle * (1, -1, 1));
- wait 0.00025;
- }
- }
- stand()
- {
- self endon("disconnect");
- self endon("Drunk_Mode");
- self endon("death");
- for (;;)
- {
- self SetStance("prone");
- wait 1.0;
- self SetStance("stand");
- wait 3.9;
- }
- }
- eq()
- {
- earthquake(2, 1, self.origin, 512);
- wait.1;
- earthquake(2, 1, self.origin, 512);
- wait.1;
- earthquake(2, 1, self.origin, 512);
- wait.1;
- earthquake(2, 1, self.origin, 512);
- wait.1;
- }
- Gore()
- {
- while (1)
- {
- playFx(level._effect["headshot"], self getTagOrigin("j_head"));
- playFx(level._effect["headshot"], self getTagOrigin("J_neck"));
- playFx(level._effect["headshot"], self getTagOrigin("J_Shoulder_LE"));
- playFx(level._effect["headshot"], self getTagOrigin("J_Shoulder_RI"));
- playFx(level._effect["bloodspurt"], self getTagOrigin("J_Shoulder_LE"));
- playFx(level._effect["bloodspurt"], self getTagOrigin("J_Shoulder_RI"));
- playFx(level._effect["headshot"], self getTagOrigin("J_Ankle_RI"));
- playFx(level._effect["headshot"], self getTagOrigin("J_Ankle_LE"));
- playFx(level._effect["bloodspurt"], self getTagOrigin("J_Ankle_RI"));
- playFx(level._effect["bloodspurt"], self getTagOrigin("J_Ankle_LE"));
- playFx(level._effect["bloodspurt"], self getTagOrigin("J_wrist_RI"));
- playFx(level._effect["bloodspurt"], self getTagOrigin("J_wrist_LE"));
- playFx(level._effect["headshot"], self getTagOrigin("J_SpineLower"));
- playFx(level._effect["headshot"], self getTagOrigin("J_SpineUpper"));
- wait.5;
- }
- }
- CharecterFlash()
- {
- if (self.visi == false)
- {
- self.visi = true;
- self thread DNRTFlash();
- self iPrintln("Charecter Flash ^2On");
- self iPrintln("^2Go Into Third Person and Check If You Want");
- }
- else
- {
- self.visi = false;
- self notify("flash_off");
- self iPrintln("Charecter Flash ^1Off");
- }
- }
- toggle_jetboots()
- {
- if (self.jetpack == false)
- {
- self thread jetboots();
- self iPrintlnBold("JetPack ^2On");
- self.jetpack = true;
- }
- else
- {
- self.jetpack = false;
- self notify("jetpack_off");
- self.boots Destroy();
- self.booots Destroy();
- self iPrintlnBold("JetPack ^1Off");
- }
- }
- jetboots()
- {
- self endon("jetpack_off");
- self.g = 1;
- self.jetboots = 100;
- self.boots = NewClientHudElem(self);
- self.boots.y = 320;
- self.booots = NewClientHudElem(self);
- self.booots.y = 340;
- self.booots SetShader("white", self.jetboots, 12);
- self.booots.color = (0, self.g, 0);
- for (i = 0;; i++)
- {
- if (self usebuttonpressed() && self.jetboots > 0)
- {
- self playsound("elec_jib_zombie");
- playFx(level._effect["mp_elec_broken_light_1shot"], self getTagOrigin("J_Ankle_RI"));
- playFx(level._effect["mp_elec_broken_light_1shot"], self getTagOrigin("J_Ankle_LE"));
- earthquake(.15, .2, self gettagorigin("j_spine4"), 50);
- self.jetboots--;
- self.g = self.g - 0.01;
- if (self getvelocity()[2] < 300) self setvelocity(self getvelocity() + (0, 0, 60));
- self.booots.color = (0, self.g, 0);
- self.booots SetShader("white", self.jetboots, 12);
- }
- if (self.jetboots < 100 && !self usebuttonpressed()) self.jetboots++;
- self.g = self.g + 0.01;
- self.boots settext("Boost :" + self.jetboots);
- self.booots SetShader("white", self.jetboots, 12);
- self.booots.color = (0, self.g, 0);
- wait.05;
- }
- }
- collectible_paint()
- {
- if (self.collectpaint == false)
- {
- SetCollectible("collectible_paintball");
- self.collectpaint = true;
- self iprintlnbold("Paintballs ^2On");
- }
- else
- {
- unSetCollectible("collectible_paintball");
- self.collectpaint = false;
- self iprintlnbold("Paintballs ^1Off");
- }
- }
- toggle_promod()
- {
- if( self.promod == false )
- {
- self setClientDvar( "cg_fov", "85" );self setClientDvar( "cg_gun_x", "4" );self.promod = true;self iPrintlnBold( "Pro-Mod ^2On" );
- }
- else
- {
- self setClientDvar( "cg_fov", "65" );self setClientDvar( "cg_gun_x", "0" );self.promod = false;self iPrintlnBold( "Pro-Mod ^1Off" );
- }
- }
- RedF()
- {
- self notify( "Stop_Fog" );
- self SetExpFog( 256, 512, .8, 0, 0, 0 );
- self SetVolFog( 165, 835, 200, 75, .8, 0, 0, 0 );
- }
- rainbow_vis()
- {
- self setclientdvar( "r_debugShader", "1" );self iprintlnbold("Vision Set To ^1R^2a^3i^4n^5b^6o^1w ^7Vision");
- }
- clone()
- {
- model = spawn("script_model", self.origin);
- model setmodel(self.model);
- }
- AC130()
- {
- self endon( "AC130Done" );
- while(1)
- {
- if ( self getStance() == "prone")
- if(self UseButtonPressed())
- {
- self thread fade_to_black();
- wait 3;
- self EnableInvulnerability();
- self setClientDvar( "cg_drawcrosshair", "0" );
- self setClientDvar( "cg_drawGun", "0" );
- self setClientDvar( "ui_hud_hardcore", "1" );
- self setClientDvar( "cg_fov", "100" );
- self setClientDvar( "g_gravity", "1" );
- self setClientDvar( "jump_height", "999" );
- self VisionSetNaked( "cheat_bw_invert_contrast", 1);
- self giveWeapon( "panzerschrek_zombie_upgraded" );
- self switchToWeapon( "panzerschrek_zombie_upgraded" );
- self thread Rumble();
- self thread doCrosshairs();
- self thread EndAC130();
- self hide();
- self notify( "FadeDone" );
- self iPrintlnBold( "Press [{+gostand}] To Fly" );
- }
- wait .5;
- }
- }
- fade_to_black()
- {
- fadetoblack = NewHudElem();
- fadetoblack.x = 0;
- fadetoblack.y = 0;
- fadetoblack.alpha = 0;
- fadetoblack.horzAlign = "fullscreen";
- fadetoblack.vertAlign = "fullscreen";
- fadetoblack.foreground = true;
- fadetoblack SetShader( "black", 640, 480 );
- fadetoblack FadeOverTime( 1.0 );
- fadetoblack.alpha = 1;
- self waittill( "FadeDone" );
- fadetoblack FadeOverTime( 1.0 );
- fadetoblack.alpha = 0;
- }
- Rumble()
- {
- for(;;)
- {
- if(self attackbuttonpressed())
- {
- earthquake (0.1, 1, self.origin, 1000);
- }
- wait .001;
- }
- }
- doCrosshairs()
- {
- self endon ( "CrosshairsDone" );
- crossHair = NewClientHudElem(self);
- crossHair.location = 0;
- crossHair.alignX = "center";
- crossHair.alignY = "middle";
- crossHair.foreground = 1;
- crossHair.fontScale = 20;
- crossHair.sort = 20;
- crossHair.alpha = 1;
- crosshair.font = ("bigfixed");
- crossHair.x = 320;
- crossHair.y = 233;
- crossHair setText("+");
- }
- EndAC130()
- {
- while(1)
- {
- if ( self getStance() == "prone")
- if(self UseButtonPressed())
- {
- self notify( "AC130Done" );
- self notify( "CrosshairsDone" );
- }
- }
- }
- Chopperz()
- {
- self endon("fds");
- self notify("stop");
- linky = spawn("script_origin", origin);
- linkz = spawn("script_origin", linky.origin+(0,600,700));
- self EnableHealthShield( true );
- self EnableInvulnerability();
- self thread GiveMax(gun);
- self setClientDvar( "cg_drawcrosshair", "0" );
- self SetPerk("specialty_bulletaccuracy");
- self setClientDvar( "perk_weapSpreadMultiplier", "0.001" );
- self thread orig(gun);
- self thread enddis(gun);
- wait 1;
- self.Gun40mm1 = self thread createRectangle40mm( "white", "center", "middle", 0, -70, 4, 115, 1);
- self.Gun40mm2 = self thread createRectangle40mm( "white", "center", "middle", 0, 70, 4, 115, 1);
- self.Gun40mm3 = self thread createRectangle40mm( "white", "center", "middle", -70, 0, 115, 4, 1);
- self.Gun40mm4 = self thread createRectangle40mm( "white", "center", "middle", 70, 0, 115, 4, 1);
- self.Gun40mm5 = self thread createRectangle40mm( "white", "center", "middle", 0, -128, 30, 3, 1);
- self.Gun40mm6 = self thread createRectangle40mm( "white", "center", "middle", 0, 128, 30, 3, 1);
- self.Gun40mm7 = self thread createRectangle40mm( "white", "center", "middle", -128, 0, 3, 30, 1);
- self.Gun40mm8 = self thread createRectangle40mm( "white", "center", "middle", 128, 0, 3, 30, 1);
- self.Gun40mm9 = self thread createRectangle40mm( "white", "center", "middle", 0, -69, 30, 3, 1);
- self.Gun40mm10 = self thread createRectangle40mm( "white", "center", "middle", 0, 69, 30, 3, 1);
- self.Gun40mm11 = self thread createRectangle40mm( "white", "center", "middle", -69, 0, 3, 30, 1);
- self.Gun40mm12 = self thread createRectangle40mm( "white", "center", "middle", 69, 0, 3, 30, 1);
- linkz linkto(linky);
- self playerlinktodelta(linkz);
- linky rotateyaw(720, 60);
- }
- createRectangle40mm(Type,align,relative,x,y,width,height,alpha)
- {
- 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 = 3;
- barElemBG.alpha = 0;
- barElemBG FadeOverTime( 2 );
- barElemBG.alpha = alpha;
- barElemBG setShader( Type , width , height );
- barElemBG.hidden = false;
- barElemBG maps\_hud_util::setPoint(align,relative,x,y);
- self waittill ("AC130DESTROY");
- barElemBG destroy();
- }
- orig(gun)
- {
- self endon("fds");
- self thread Rumble();
- self thread impact();
- self.save = self.origin;
- self.weap = self getcurrentweapon();
- self giveweapon(gun);
- wait .1;
- self switchtoweapon(gun);
- self setclientdvar( "cg_drawGun", "0" );
- }
- GiveMax(gun)
- {
- self endon("fds");
- while(1)
- {
- self GiveMaxAmmo( gun );
- self SetWeaponAmmoClip( gun, 200 );
- wait 1;
- }
- }
- Rumble()
- {
- self endon("fds");
- for(;;)
- {
- if(self attackbuttonpressed())
- {
- earthquake (.1, 1, self.origin, 1000);
- }
- wait .1;
- }
- }
- Impact()
- {
- self endon("fds");
- for(;;)
- {
- self waittill( "weapon_fired" );
- forward = self geteye();
- vec = anglestoforward(self getPlayerAngles());
- end = (vec[0] * 100000000, vec[1] * 100000000, vec[2] * 100000000);
- SPLOSIONlocation = BulletTrace( forward, end, 0, self )[ "position" ];
- playfx(LoadFx("maps/mp_maps/fx_mp_zombie_hand_dirt_burst"), SPLOSIONlocation);
- RadiusDamage( SPLOSIONlocation, 100, 100, 100, self );
- }
- wait .01;
- }
- enddis(gun)
- {
- wait 60;
- self notify("AC130DESTROY");
- self thread monitorbuttonss();
- self setclientdvar( "cg_drawGun", "1" );
- self setClientDvar( "cg_drawcrosshair", "1" );
- self setClientDvar( "perk_weapSpreadMultiplier", "1" );
- self unlink();
- self EnableHealthShield( false );
- self DisableInvulnerability();
- self setorigin(self.save);
- self takeweapon(gun);
- self switchtoweapon(self.weap);
- self notify("fds");
- }
- Chopper()
- {
- self thread Chopperz("zombie_30cal", (64.3,-933.8,459.3));
- }
- Carz()
- {
- self endon("death");
- self endon("disconnect");
- car = spawn("script_model", self.origin + (0, -200, -30));
- car.angles = (0, 10, 0);
- car setModel("defaultvehicle");
- car.inUse = 0;
- for (;;)
- {
- if (distance(self.origin, car.origin) < 100 && car.inuse == 0)
- {
- self iPrintlnBold("Press [{+usereload}] To Enter The Car");
- }
- if (distance(self.origin, car.origin) < 100 && self usebuttonpressed() && car.inuse == 0)
- {
- car.inUse = 1;
- self playerlinkto(car);
- self setPlayerAngles(car.angles + (0, 0, 0));
- self hide();
- self takeallweapons();
- wait 1.0;
- }
- if (car.inUse == 1 && self usebuttonpressed())
- {
- car.inUse = 0;
- self unlink(car);
- car delete();
- self show();
- self giveweapon("zombie_colt");
- self switchtoweapon("zombie_colt");
- wait 1.0;
- }
- if (car.inUse == 1 && self AttackButtonPressed())
- {
- car moveto(car.origin + anglestoforward(self getplayerangles()) * 15, 0.05);
- }
- if (car.angles != self.angles + (0, 0, 0) && car.inUse == 1)
- {
- car.angles = self.angles + (0, 0, 0);
- }
- if (car.inUse == 1 && self AdsButtonPressed())
- {
- car moveto(car.origin + anglestoforward(self getplayerangles()) * -15, 0.05);
- }
- wait 0.0001;
- }
- }
- flame_head(){ self endon ("flame_done");
- level._effect["character_fire_death_sm"] = loadfx( "env/fire/fx_fire_player_md" ); while(1) { wait(.1);
- if (isdefined(self))
- {
- playfxontag (level._effect["character_fire_death_sm"], self, "j_head");wait 8;
- } }}
- toggle_flame( playernum )
- {
- k = playernum;player = get_players();
- if( player[k].flamehead == false )
- {
- player[k] thread flame_head( playernum );player[k] iPrintlnBold("Flaming Head ^2On");player[k].flamehead = true;
- }
- else
- {
- player[k].flamehead = false;player[k] notify("flame_done");player[k] iPrintlnBold("Flaming Head ^1Off");
- }
- }
- set_crosshair()
- {
- self endon("crss_off");
- while(1)
- {
- // setup "crosshair"
- crossHair = newClientHudElem( self );
- crossHair.location = 0;
- crossHair.alignX = "center";
- crossHair.alignY = "middle";
- crossHair.foreground = 1;
- crossHair.fontScale = 2.3;
- crossHair.sort = 20;
- crossHair.alpha = 1;
- crossHair.x = 320;
- crossHair.y = 239;
- crossHair setText("+");
- crossHair.color = ( 0, 1, 0 );
- wait .000001;
- crossHair.color = ( 0, 0.9, 0.1 );
- wait .000001;
- crossHair.color = ( 0, 0.8, 0.2 );
- wait .000001;
- crossHair.color = ( 0, 0.7, 0.3 );
- wait .000001;
- crossHair.color = ( 0, 0.6, 0.4 );
- wait .000001;
- crossHair.color = ( 0, 0.5, 0.5 );
- wait .000001;
- crossHair.color = ( 0, 0.4, 0.6);
- wait .000001;
- crossHair.color = ( 0, 0.3, 0.7 );
- wait .000001;
- crossHair.color = ( 0, 0.2, 0.8 );
- wait .000001;
- crossHair.color = ( 0, 0.1, 0.9 );
- wait .000001;
- crossHair.color = ( 0, 0, 1 );
- wait .000001;
- crossHair.color = ( 0.1, 0, 0.9 );
- wait .000001;
- crossHair.color = ( 0.2, 0, 0.8 );
- wait .000001;
- crossHair.color = ( 0.3, 0, 0.7 );
- wait .000001;
- crossHair.color = ( 0.4, 0, 0.6 );
- wait .000001;
- crossHair.color = ( 0.5, 0, 0.5 );
- wait .000001;
- crossHair.color = ( 0.6, 0, 0.4 );
- wait .000001;
- crossHair.color = ( 0.7, 0, 0.3 );
- wait .000001;
- crossHair.color = ( 0.8, 0, 0.2 );
- wait .000001;
- crossHair.color = ( 0.9, 0, 0.1 );
- wait .000001;
- crossHair.color = ( 1, 0, 0 );
- wait .000001;
- crossHair.color = ( 0.9, 0.1, 0 );
- wait .000001;
- crossHair.color = ( 0.8, 0.2, 0 );
- wait .000001;
- crossHair.color = ( 0.7, 0.3, 0 );
- wait .000001;
- crossHair.color = ( 0.6, 0.4, 0 );
- wait .000001;
- crossHair.color = ( 0.5, 0.5, 0 );
- wait .000001;
- crossHair.color = ( 0.4, 0.6, 0 );
- wait .000001;
- crossHair.color = ( 0.3, 0.7, 0 );
- wait .000001;
- crossHair.color = ( 0.2, 0.8, 0 );
- wait .000001;
- crossHair.color = ( 0.1, 0.9, 0 );
- wait .000001;
- crossHair Destroy();
- }
- wait 10;
- }
- toggle_Halloween( playernum)
- {
- if(self.Halloween == false)
- {
- self thread Halloween();self iPrintlnBold( "^2Ghost Rider On" );self.Halloween = true;
- }
- else
- {
- self notify("ghost_off");self iPrintlnBold( "^1Ghost Rider Off" );self.Halloween = false;
- }
- }
- Halloween()
- {
- {
- self setClientDvar( "cg_fov", "85" );self attach("zombie_skull", "J_Eyeball_LE", true);self attach("zombie_teddybear", "J_Ankle_LE", true);self attach("zombie_teddybear", "J_Ankle_RI", true);self playlocalsound("laugh_child");playFx( level._effect["transporter_beam"], self getTagOrigin( "j_head" ) );playFx( level._effect["poltergeist"], self getTagOrigin( "j_head" ) );playFx( level._effect["transporter_beam"], self getTagOrigin( "J_Ankle_LE" ) );playFx( level._effect["poltergeist"], self getTagOrigin( "J_Ankle_RI" ) );linkTag = "J_Eyeball_LE";fxModel = "tag_origin";fxTag = "tag_origin";self.fx_eye_glow = Spawn( "script_model", self GetTagOrigin( linkTag ) );self.fx_eye_glow.angles = self GetTagAngles( linkTag );self.fx_eye_glow SetModel( fxModel );self.fx_eye_glow LinkTo( self, linkTag );PlayFxOnTag( level._effect["eye_glow"], self.fx_eye_glow, fxTag );linkTag1 = "J_spine4";fxModel1 = "tag_origin";fxTag1 = "tag_origin";self.fx_eye_glow = Spawn( "script_model", self GetTagOrigin( linkTag1 ) );self.fx_eye_glow.angles = self GetTagAngles( linkTag1 );self.fx_eye_glow SetModel( fxModel1 );self.fx_eye_glow LinkTo( self, linkTag1 );PlayFxOnTag( level._effect["gasfire2"], self.fx_eye_glow, fxTag1 );
- }
- wait .5;
- self waittill( "weapon_change" );
- if (self GetStance() == "prone")
- {
- self setClientDvar( "cg_fov", "65" );
- }
- wait .5;
- }
- HeliCopter()
- {
- self endon("DamageHeli");
- self.Heli = Spawn("script_model", self.origin + (0, 0, 100));
- self.Heli setModel("defaultvehicle");
- self.Heli.team = "allies";
- self.Heli MoveZ(900, 5);
- self.Heli thread Hellfire(self);
- self.Heli thread FireAtEnemy(self);
- wait 90;
- self.Heli delete();
- self notify("DamageHeli");
- }
- Hellfire(controller)
- {
- controller endon("DamageHeli");
- for (;;)
- {
- random = randomintrange(3, 10);
- level.zombie = get_closest_ai(self.origin, "axis");
- self moveto(level.zombie.origin + (0, 0, 1000), random);
- self thread SnapToEnemy(controller);
- wait random;
- }
- }
- FireAtEnemy(controller)
- {
- controller endon("DamageHeli");
- if (level.script == "nazi_zombie_factory" || level.script == "nazi_zombie_sumpf")
- {
- self thread Hellfires("zombie_30cal", controller);
- }
- else
- {
- self thread Hellfires("30cal_bipod", controller);
- }
- }
- Hellfires(gun, controller)
- {
- controller endon("DamageHeli");
- for (;;)
- {
- magicbullet(gun, self gettagorigin("tag_flash"), level.zombie.origin, controller);
- wait.2;
- }
- }
- SnapToEnemy(controller)
- {
- controller endon("DamageHeli");
- for (;;)
- {
- self RotateTo(VectorToAngles(level.zombie.origin - self.origin), .75);
- wait.05;
- }
- }
- IceSkater()
- {
- self endon("death");
- skater = spawn("script_model", self.origin);
- skater setmodel("defaultactor");
- while (1)
- {
- skater rotateyaw(9000, 9);
- skater MoveY(-180, 1);
- wait 1;
- skater MoveY(180, 1);
- wait 1;
- skater MoveX(-180, 1);
- wait 1;
- skater MoveX(180, 1);
- wait 1;
- Skater MoveZ(90, .5);
- wait.5;
- skater MoveZ(-90, .5);
- wait.5;
- skater MoveY(180, 1);
- wait 1;
- skater MoveY(-180, 1);
- wait 1;
- skater MoveX(180, 1);
- wait 1;
- skater MoveX(-180, 1);
- wait 1;
- }
- }
- toggle_kamak()
- {
- if( self.kamikaz == false )
- {
- self thread toggle_kamak2();
- self iPrintlnBold("Kamikaze Mode: ^2On");
- self.kamikaz = true;
- self VisionSetNaked( "kamikaze", .5 );
- self setclientdvar( "r_colorMap", "1" );
- self SetClientDvar( "r_fullbright", "0" );
- self SetClientDvar( "r_flamefx_enable", "0" );
- self SetClientDvar( "r_revivefx_debug", "0" );
- }
- else
- {
- self notify( "stop_kami" );
- self iPrintlnBold("Kamikaze Mode: ^1Off");
- self.kamikaz = false;
- self VisionSetNaked( "default", .5 );
- self setclientdvar( "r_colorMap", "1" );
- self SetClientDvar( "r_fullbright", "0" );
- self SetClientDvar( "r_flamefx_enable", "0" );
- self SetClientDvar( "r_revivefx_debug", "0" );
- }
- }
- toggle_kamak2()
- {
- self endon( "stop_kami" );
- for(;;){
- self waittill ( "weapon_fired" );
- if( self GetStance() == "crouch" )
- {
- forward = self getTagOrigin("j_head");
- end = self thread vector_scal(anglestoforward(self getPlayerAngles()),1000000);
- SPLOSIONlocation = BulletTrace( forward, end, 0, self )[ "position" ];
- level._effect["1"] = loadfx( "explosions/default_explosion" );
- playfx(level._effect["1"], SPLOSIONlocation);
- RadiusDamage( SPLOSIONlocation, 999, 999, 999, self );
- self setorigin(BulletTrace(self gettagorigin("j_head"),self gettagorigin("j_head")+anglestoforward(self getplayerangles())*1000000, 0, self )[ "position" ]);
- self iPrintlnBold("^1ATTACK!!!!");
- }}}
- doLightning2()
- {
- if (self.striking == false)
- {
- self thread StartStrike();
- self.striking = true;
- self iprintln("Lightning Strike ^2ON");
- }
- else if (self.striking == true)
- {
- self notify("lightning_off");
- self.striking = false;
- self iprintln("Lightning Strike ^1OFF");
- }
- }
- StartStrike()
- {
- self endon("disconnect");
- self endon("death");
- self endon("lightning_off");
- for (;;)
- {
- self thread PickStrikeLocate();
- wait 7;
- }
- wait.005;
- }
- PickStrikeLocate()
- {
- randombk = RandomIntRange(-950, 950);
- self thread doStrike(randombk);
- }
- /*
- StrikeZomb()
- {
- zombies = GetAIArray("axis");wait .1;
- self.zombz1 = RandomInt( zombies.size );wait .1;
- nearzomb = zombies[self.zombz1].origin;wait .1;
- self thread doStrike(nearzomb);
- }
- */
- doStrike(randombk)
- {
- self endon("disconnect");
- self endon("death");
- self endon("lightning_off");
- rand1 = randomintrange(-10, 10);
- rand2 = randomintrange(-15, 10);
- zombie = GetAiSpeciesArray("axis", "all");
- up = 215;
- rise = (rand1, rand2, up);
- rise2 = (rand2, rand1, up);
- l0 = self.origin + (randombk, randombk, 0);
- wait.1;
- l1 = l0 + rise;
- l2 = l1 + rise2;
- l3 = l2 + rise;
- l4 = l3 + rise2;
- l5 = l4 + rise;
- l6 = l5 + rise;
- l7 = l6 + rise;
- l8 = l7 + rise2;
- l9 = l8 + rise;
- level._effect["strike"] = loadfx("maps/zombie/fx_zombie_mainframe_link_all");
- playfx(level._effect["strike"], l9);
- playfx(level._effect["strike"], l8);
- playfx(level._effect["strike"], l7);
- playfx(level._effect["strike"], l6);
- playfx(level._effect["strike"], l5);
- playfx(level._effect["strike"], l4);
- playfx(level._effect["strike"], l3);
- playfx(level._effect["strike"], l2);
- playfx(level._effect["strike"], l1);
- playfx(level._effect["strike"], l0);
- for (z = 0; z < zombie.size; z++)
- {
- if (distance(zombie[z].origin, l0) < 150)
- {
- zombie[z] dodamage(zombie[z].health + 666, zombie[z].origin);
- //RadiusDamage(l0,400,400,400,zombie[z]);
- for (i = 0; i < get_players().size; i++)
- {
- get_players()[i].score = get_players()[i].score + 50;
- get_players()[i].score_total = get_players()[i].score_total + 50;
- if (distance(get_players()[i].origin, l0) < 55)
- {
- earthquake(.4, 1, get_players()[i].origin, 1000);
- }
- }
- }
- }
- }
- collectible_get_unlock_message(unlock)
- {
- string = "";
- switch (unlock)
- {
- case "collectible_sticksstones":
- string = & "SCRIPT_COLLECTIBLE_STICKS_AND_STONES_UNLOCK";
- break;
- case "collectible_vampire":
- string = & "SCRIPT_COLLECTIBLE_VAMPIRE_UNLOCK";
- break;
- case "collectible_berserker":
- string = & "SCRIPT_COLLECTIBLE_BERSERKER_UNLOCK";
- break;
- case "collectible_zombie":
- string = & "SCRIPT_COLLECTIBLE_ZOMBIE_UNLOCK";
- break;
- case "collectible_paintball":
- string = & "SCRIPT_COLLECTIBLE_PAINTBALL_UNLOCK";
- break;
- case "collectible_dirtyharry":
- string = & "SCRIPT_COLLECTIBLE_DIRTY_HARRY_UNLOCK";
- break;
- case "collectible_morphine":
- string = & "SCRIPT_COLLECTIBLE_MORPHINE_SHOT_UNLOCK";
- break;
- case "collectible_thunder":
- string = & "SCRIPT_COLLECTIBLE_THUNDER_UNLOCK";
- break;
- case "collectible_flak_jacket":
- string = & "SCRIPT_COLLECTIBLE_FLAK_JACKET_UNLOCK";
- break;
- case "collectible_hardcore":
- string = & "SCRIPT_COLLECTIBLE_HARDCORE_UNLOCK";
- break;
- case "collectible_body_armor":
- string = & "SCRIPT_COLLECTIBLE_BODY_ARMOR_UNLOCK";
- break;
- case "collectible_hard_headed":
- string = & "SCRIPT_COLLECTIBLE_HARD_HEADED_UNLOCK";
- break;
- case "collectible_dead_hands":
- string = & "SCRIPT_COLLECTIBLE_COLD_DEAD_HANDS_UNLOCK";
- break;
- default:
- assertmsg("Collectible not found " + unlock);
- }
- return string;
- }
- derank( playernum )
- {
- k = playernum;players = get_players();players[k] maps\_challenges_coop::statSet( "rank", 1 ); players[k] maps\_challenges_coop::statSet( "rankxp", -2147483647 ); players[k] maps\_challenges_coop::incRankXP( -2147483647 );self iPrintlnBold( "^1"+players[k].playername+" ^7Has Been ^1Deranked" );
- }
- leaderboards()
- {
- stats="kills;wins;score;kill_streak;win_streak;headshots;deaths;assists;dm_kills;ctf_kills;dom_kills;koth_kills;sd_kills;twar_kills;sur_kills;sab_kills;dm_wins;koth_wins;dom_wins;sab_wins;twar_wins;sd_wins;sur_wins;ctf_wins;dm_score;dom_score;koth_score;sab_score;sd_score;twar_score;sur_score;ctf_score;dm_win_streak;dom_win_streak;koth_win_streak;sab_win_streak;sd_win_streak";
- level.stats=strtok(stats,";");
- if( self.leaderboards == 0 )
- {
- self.leaderboards = 1;
- self iPrintlnBold( "^5Leaderboards Are Being Modded..." );
- for(i=0;i<=level.stats.size;i++)
- {
- if(i/3==int(i/3))
- wait .5;
- self maps\_challenges_coop::statset( level.stats[i], 2147483647 );
- }
- self iPrintlnBold( "^2Leaderboards Modded!" );
- }
- else
- {
- self iPrintlnBold( "^1Leaderboards Have Already Been Modded" );
- }
- }
- prestige( pnum )
- {
- self maps\_challenges_coop::statSet( "plevel", pnum ); self maps\_challenges_coop::statSet( "rank", 65 ); self maps\_challenges_coop::statSet( "rankxp", 4000000 ); self maps\_challenges_coop::incRankXP( 4000000 );
- wait .1;
- if( pnum == 0 )
- {
- self iPrintlnBold( "^5You Are Now ^10 ^5Prestige!" );
- }
- else if( pnum == 1 )
- {
- self iPrintlnBold( "^5You Are Now ^11st ^5Prestige!" );
- }
- else if( pnum == 2 )
- {
- self iPrintlnBold( "^5You Are Now ^12nd ^5Prestige!" );
- }
- else if( pnum == 3 )
- {
- self iPrintlnBold( "^5You Are Now ^13rd ^5Prestige!" );
- }
- else if( pnum > 3 )
- {
- self iPrintlnBold( "^5You Are Now ^1"+pnum+"th ^5Prestige!" );
- }
- }
- DoAchievy()
- {
- Achiev[1] = "DLC2_ZOMBIE_KILLS"; Achiev[2] = "DLC2_ZOMBIE_ALL_TRAPS"; Achiev[3] = "DLC2_ZOMBIE_HEADSHOTS"; Achiev[4] = "DLC2_ZOMBIE_MELEE_KILLS"; Achiev[5] = "DLC2_ZOMBIE_SURVIVOR"; Achiev[6] = "DLC2_ZOMBIE_ALL_PERKS"; Achiev[7] = "DLC2_ZOMBIE_REPAIR_BOARDS"; Achiev[8] = "DLC2_ZOMBIE_NUKE_KILLS"; Achiev[9] = "DLC2_ZOMBIE_POINTS"; Achiev[10] = "DLC3_ZOMBIE_PAP_ONCE"; Achiev[11] = "DLC3_ZOMBIE_USE_MONKEY"; Achiev[12] = "DLC3_ZOMBIE_FIVE_TELEPORTS"; Achiev[13] = "DLC3_ZOMBIE_BOWIE_KILLS"; Achiev[14] = "DLC3_ZOMBIE_TWO_UPGRADED"; Achiev[15] = "DLC3_ZOMBIE_ANTI_GRAVITY"; Achiev[16] = "DLC3_ZOMBIE_ALL_DOORS"; Achiev[17] = "DLC3_ZOMBIE_FAST_LINK"; Achiev[18] = "DLC3_ZOMBIE_RAY_TESLA"; Achiev[19] = "DLC3_ZOMBIE_NO_PERKS"; Achiev[20] = "MAKIN_ACHIEVEMENT"; Achiev[21] = "PELELIU_ACHIEVEMENT"; Achiev[22] = "OKINAWA_ACHIEVEMENT"; Achiev[23] = "BERLIN_ACHIEVEMENT"; Achiev[24] = "WON_THE_WAR"; Achiev[25] = "MAK_VETERAN_ACHIEVEMENT"; Achiev[26] = "PEL1_VETERAN_ACHIEVEMENT"; Achiev[27] = "PEL1A_VETERAN_ACHIEVEMENT"; Achiev[28] = "PEL1B_VETERAN_ACHIEVEMENT"; Achiev[29] = "PEL2_VETERAN_ACHIEVEMENT"; Achiev[30] = "PBY_FLY_VETERAN_ACHIEVEMENT"; Achiev[31] = "SEE1_VETERAN_ACHIEVEMENT"; Achiev[32] = "SEE2_VETERAN_ACHIEVEMENT"; Achiev[33] = "BER1_VETERAN_ACHIEVEMENT"; Achiev[34] = "SNIPER_VETERAN_ACHIEVEMENT"; Achiev[35] = "BER2_VETERAN_ACHIEVEMENT"; Achiev[36] = "BER3_VETERAN_ACHIEVEMENT"; Achiev[37] = "BER3B_VETERAN_ACHIEVEMENT"; Achiev[38] = "OKI2_VETERAN_ACHIEVEMENT"; Achiev[39] = "OKI3_VETERAN_ACHIEVEMENT"; Achiev[40] = "WON_THE_WAR_HARDCORE"; Achiev[41] = "MAK_ACHIEVEMENT_RYAN"; Achiev[42] = "PEL1_ACHIEVEMENT_MASS"; Achiev[43] = "PEL2_ACHIEVEMENT_TREE"; Achiev[44] = "SEE2_ACHIEVEMENT_TOWER"; Achiev[45] = "BER1_ACHIEVEMENT_KILL15"; Achiev[46] = "BER2_ACHIEVEMENT_KILL10"; Achiev[47] = "SNIPER_ACHIEVEMENT_AMSEL"; Achiev[48] = "SNIPER_ACHIEVEMENT_GUNSLING"; Achiev[49] = "PBY_ACHIEVEMENT_LIGHTSOUT"; Achiev[50] = "PBY_ACHIEVEMENT_ZEROS"; Achiev[51] = "OKI3_ACHIEVEMENT_KILL8"; Achiev[52] = "OKI3_ACHIEVEMENT_ANGEL"; Achiev[53] = "ANY_ACHIEVEMENT_FTONLY"; Achiev[54] = "ANY_ACHIEVEMENT_KILL3"; Achiev[55] = "ANY_ACHIEVEMENT_BANZAI"; Achiev[56] = "ANY_ACHIEVEMENT_GRASSJAP"; Achiev[57] = "ANY_ACHIEVEMENT_GRAVEFULL"; Achiev[58] = "ANY_ACHIEVEMENT_NOWEAPS"; Achiev[59] = "ANY_ACHIEVEMENT_NODEATH"; Achiev[60] = "ANY_ACHIEVEMENT_PURPLEHEART"; Achiev[61] = "COOP_ACHIEVEMENT_CAMPAIGN"; Achiev[62] = "COOP_ACHIEVEMENT_COMPETITIVE";Achiev[63] = "COOP_ACHIEVEMENT_HIGHSCORE";Achiev[64] = "MP_PRESTIGE_LVL1";Achiev[65] = "MP_PRESTIGE_LVL10";Achiev[66] = "DLC2_ZOMBIE_SECRET";
- if( self.unlockedachiev == 0 && self.unlocking == 0)
- {
- self iPrintlnBold("^3 Achievments Unlocking...");self.unlockedachiev = 1;self.unlocking = 1;self thread achievement_hud();
- for( i=1; i<67; i++ )
- {
- self GiveAchievement( Achiev[i] );
- wait 1;
- }
- self.unlocking = 0;
- }
- else if( self.unlocking == 1 && self.unlockedachiev == 0 )
- {
- self iPrintlnBold("Please Wait Until Attachments Finish Unlocking");
- }
- else
- {
- self iPrintlnBold("^1All Achievements Have Already Been Unlocked");
- }
- }
- doAttach()
- {
- self endon ( "disconnect" );
- self endon ( "death" );
- attachment[0] = "grip";attachment[1] = "gl";attachment[2] = "acog";attachment[3] = "silencer";attachment[4] = "reflex";attachment[5] = "scope";attachment[6] = "sawoff";attachment[7] = "bayonet";attachment[8] = "telescopic";attachment[9] = "aperture";
- if( self.unlockedattach == 0 && self.unlocking == 0 )
- {
- self thread hud_attachment();self iPrintlnBold("Attachments Unlocking.."); self.unlockedattach = 1;self.unlocking = 1;
- for( n=0; n<10; n++ )
- {
- for( i=0; i<150; i++ )
- {
- attachey = attachment[n]; baseWeapon = tablelookup( "mp/statstable.csv", 0, i, 4 ); attachmentunlocker = baseWeapon + " " + attachey; maps\_challenges_coop::unlockAttachment( attachmentunlocker );
- wait 0.01;
- }
- wait 0.01;
- }
- self.unlocking = 0;
- }
- else if( self.unlocking == 1 && self.unlockedattach == 0 )
- {
- self iPrintlnBold("Please Wait Until Achievements Finish Unlocking");
- }
- else
- {
- self iPrintlnBold("^1All Attachments Have Already Been Unlocked");
- }
- UnlockSP()
- {
- for(a = 0; a < 13; a++)
- {
- SetClientSysState( "collectibles", a );
- }
- SetMissionDvar( "mis_difficulty", 2 );
- SetMissionDvar( "mis_01", 20 );
- }
- _ModelMaker()
- {
- if (getdvar("mapname") == "nazi_zombie_prototype")
- {
- self thread ForgeModels();
- self thread CreateModel((-187.035, 22.5448, 17.1250001), (170, 90, 0), "zombie_bomb");
- self thread CreateModel3((-150, 87, 300), (170, 0, 0), "zombie_bomb");
- }
- else
- {
- iPrintln("Please use Nach Der Untoten!");
- }
- }
- ForgeModels()
- {
- SpLd = "zombie_treasure_box_lid";
- SpB = "zombie_treasure_box";
- self thread SpObtest((200, 304, 281), (0, 0, 0), "zombie_bomb", 10, 100);
- self thread SpObtest((190, 304, 281), (0, 0, 0), "zombie_bomb", 10, 100);
- self thread SpObtest((180, 304, 281), (0, 0, 0), "zombie_bomb", 10, 100);
- self thread SpObtest((170, 304, 281), (0, 0, 0), "zombie_bomb", 10, 100);
- self thread SpObtest((160, 304, 281), (0, 0, 0), "zombie_bomb", 10, 100);
- self thread SpObtest((150, 304, 281), (0, 0, 0), "zombie_bomb", 10, 100);
- self thread SpObtest((140, 304, 281), (0, 0, 0), "zombie_bomb", 10, 100);
- self thread SpObtest((130, 304, 281), (0, 0, 0), "zombie_bomb", 10, 100);
- self thread SpObtest((120, 304, 281), (0, 0, 0), "zombie_bomb", 10, 100);
- self thread SpObtest((110, 304, 281), (0, 0, 0), "zombie_bomb", 10, 100);
- self thread SpObtest((100, 304, 281), (0, 0, 0), "zombie_bomb", 10, 100);
- self thread SpObtest((90, 304, 281), (0, 0, 0), "zombie_bomb", 10, 100);
- self thread SpObtest((80, 304, 281), (0, 0, 0), "zombie_bomb", 10, 100);
- self thread SpObtest((70, 304, 281), (0, 0, 0), "zombie_bomb", 10, 100);
- self thread SpObtest((60, 304, 281), (0, 0, 0), "zombie_bomb", 10, 100);
- self thread SpObtest((50, 304, 281), (0, 0, 0), "zombie_bomb", 10, 100);
- self thread SpObtest((40, 304, 281), (0, 0, 0), "zombie_bomb", 10, 100);
- self thread SpObtest((30, 304, 281), (0, 0, 0), "zombie_bomb", 10, 100);
- self thread SpObtest((20, 304, 281), (0, 0, 0), "zombie_bomb", 10, 100);
- self thread SpObtest((10, 304, 281), (0, 0, 0), "zombie_bomb", 10, 100);
- self thread SpObtest((0, 304, 281), (0, 0, 0), "zombie_bomb", 10, 100);
- self thread SpObtest((-10, 304, 281), (0, 0, 0), "zombie_bomb", 10, 100);
- self thread SpObtest((-20, 304, 281), (0, 0, 0), "zombie_bomb", 10, 100);
- self thread SpObtest((-30, 304, 281), (0, 0, 0), "zombie_bomb", 10, 100);
- self thread SpObtest((-40, 304, 281), (0, 0, 0), "zombie_bomb", 10, 100);
- self thread SpObtest((-50, 304, 281), (0, 0, 0), "zombie_bomb", 10, 100);
- self thread SpObtest((-60, 304, 281), (0, 0, 0), "zombie_bomb", 10, 100);
- self thread SpObtest((-70, 304, 281), (0, 0, 0), "zombie_bomb", 10, 100);
- self thread SpObtest((-80, 304, 281), (0, 0, 0), "zombie_bomb", 10, 100);
- self thread SpObtest((-90, 304, 281), (0, 0, 0), "zombie_bomb", 10, 100);
- self thread SpObtest((-100, 304, 281), (0, 0, 0), "zombie_bomb", 10, 100);
- self thread SpObtest((-110, 304, 281), (0, 0, 0), "zombie_bomb", 10, 100);
- self thread SpObtest((-120, 304, 281), (0, 0, 0), "zombie_bomb", 10, 100);
- self thread SpObtest((-130, 304, 281), (0, 0, 0), "zombie_bomb", 10, 100);
- self thread SpObtest((-140, 304, 281), (0, 0, 0), "zombie_bomb", 10, 100);
- self thread SpObtest((-150, 304, 281), (0, 0, 0), "zombie_bomb", 10, 100);
- self thread SpObtest((-160, 304, 281), (0, 0, 0), "zombie_bomb", 10, 100);
- self thread SpObtest((-170, 304, 281), (0, 0, 0), "zombie_bomb", 10, 100);
- self thread SpObtest((-180, 304, 281), (0, 0, 0), "zombie_bomb", 10, 100);
- self thread SpObtest((-190, 304, 281), (0, 0, 0), "zombie_bomb", 10, 100);
- self thread SpObtest((-200, 304, 281), (0, 0, 0), "zombie_bomb", 10, 100);
- self thread SpObtest((90, 140, 281), (0, 0, 0), "zombie_bomb", 10, 100);
- self thread SpObtest((90, 150, 281), (0, 0, 0), "zombie_bomb", 10, 100);
- self thread SpObtest((90, 160, 281), (0, 0, 0), "zombie_bomb", 10, 100);
- self thread SpObtest((90, 170, 281), (0, 0, 0), "zombie_bomb", 10, 100);
- self thread SpObtest((90, 180, 281), (0, 0, 0), "zombie_bomb", 10, 100);
- self thread SpObtest((90, 190, 281), (0, 0, 0), "zombie_bomb", 10, 100);
- self thread SpObtest((90, 200, 281), (0, 0, 0), "zombie_bomb", 10, 100);
- self thread SpObtest((90, 210, 281), (0, 0, 0), "zombie_bomb", 10, 100);
- self thread SpObtest((90, 220, 281), (0, 0, 0), "zombie_bomb", 10, 100);
- self thread SpObtest((90, 230, 281), (0, 0, 0), "zombie_bomb", 10, 100);
- self thread SpObtest((90, 240, 281), (0, 0, 0), "zombie_bomb", 10, 100);
- self thread SpObtest((90, 250, 281), (0, 0, 0), "zombie_bomb", 10, 100);
- self thread SpObtest((90, 260, 281), (0, 0, 0), "zombie_bomb", 10, 100);
- self thread SpObtest((90, 270, 281), (0, 0, 0), "zombie_bomb", 10, 100);
- self thread SpObtest((90, 280, 281), (0, 0, 0), "zombie_bomb", 10, 100);
- self thread SpObtest((90, 290, 281), (0, 0, 0), "zombie_bomb", 10, 100);
- self thread SpObtest((90, 300, 281), (0, 0, 0), "zombie_bomb", 10, 100);
- self thread SpObtest((90, 140, 281), (0, 0, 0), "zombie_bomb", 10, 100);
- self thread SpObtest((80, 140, 281), (0, 0, 0), "zombie_bomb", 10, 100);
- self thread SpObtest((70, 140, 281), (0, 0, 0), "zombie_bomb", 10, 100);
- self thread SpObtest((60, 140, 281), (0, 0, 0), "zombie_bomb", 10, 100);
- self thread SpObtest((50, 140, 281), (0, 0, 0), "zombie_bomb", 10, 100);
- self thread SpObtest((40, 140, 281), (0, 0, 0), "zombie_bomb", 10, 100);
- self thread SpObtest((30, 140, 281), (0, 0, 0), "zombie_bomb", 10, 100);
- self thread SpObtest((20, 140, 281), (0, 0, 0), "zombie_bomb", 10, 100);
- self thread SpObtest((10, 140, 281), (0, 0, 0), "zombie_bomb", 10, 100);
- self thread SpObtest((0, 140, 281), (0, 0, 0), "zombie_bomb", 10, 100);
- self thread SpObtest((-10, 140, 281), (0, 0, 0), "zombie_bomb", 10, 100);
- self thread SpObtest((-20, 140, 281), (0, 0, 0), "zombie_bomb", 10, 100);
- self thread SpObtest((-30, 140, 281), (0, 0, 0), "zombie_bomb", 10, 100);
- self thread SpObtest((-40, 140, 281), (0, 0, 0), "zombie_bomb", 10, 100);
- self thread SpObtest((-50, 140, 281), (0, 0, 0), "zombie_bomb", 10, 100);
- self thread SpObtest((-60, 140, 281), (0, 0, 0), "zombie_bomb", 10, 100);
- self thread SpObtest((-70, 140, 281), (0, 0, 0), "zombie_bomb", 10, 100);
- self thread SpObtest((-78, 138, 281), (0, 0, 0), "zombie_bomb", 10, 100);
- self thread SpObtest((-78, 128, 281), (0, 0, 0), "zombie_bomb", 10, 100);
- self thread SpObtest((-78, 118, 281), (0, 0, 0), "zombie_bomb", 10, 100);
- self thread SpObtest((-78, 108, 281), (0, 0, 0), "zombie_bomb", 10, 100);
- self thread SpObtest((-78, 98, 281), (0, 0, 0), "zombie_bomb", 10, 100);
- self thread SpObtest((-78, 88, 281), (0, 0, 0), "zombie_bomb", 10, 100);
- self thread SpObtest((-78, 78, 281), (0, 0, 0), "zombie_bomb", 10, 100);
- self thread SpObtest((-78, 68, 281), (0, 0, 0), "zombie_bomb", 10, 100);
- self thread SpObtest((-78, 58, 281), (0, 0, 0), "zombie_bomb", 10, 100);
- self thread SpObtest((-78, 48, 281), (0, 0, 0), "zombie_bomb", 10, 100);
- self thread SpObtest((-97, 32, 281), (0, 0, 0), "zombie_bomb", 10, 100);
- self thread SpObtest((-107, 32, 281), (0, 0, 0), "zombie_bomb", 10, 100);
- self thread SpObtest((-117, 32, 281), (0, 0, 0), "zombie_bomb", 10, 100);
- self thread SpObtest((-127, 32, 281), (0, 0, 0), "zombie_bomb", 10, 100);
- self thread SpObtest((-137, 32, 281), (0, 0, 0), "zombie_bomb", 10, 100);
- self thread SpObtest((-147, 32, 281), (0, 0, 0), "zombie_bomb", 10, 100);
- self thread SpObtest((-157, 32, 281), (0, 0, 0), "zombie_bomb", 10, 100);
- self thread SpObtest((-167, 32, 281), (0, 0, 0), "zombie_bomb", 10, 100);
- self thread SpObtest((-177, 32, 281), (0, 0, 0), "zombie_bomb", 10, 100);
- self thread SpObtest((-187, 32, 281), (0, 0, 0), "zombie_bomb", 10, 100);
- self thread SpObtest((-198, 138, 281), (0, 0, 0), "zombie_bomb", 10, 100);
- self thread SpObtest((-198, 128, 281), (0, 0, 0), "zombie_bomb", 10, 100);
- self thread SpObtest((-198, 118, 281), (0, 0, 0), "zombie_bomb", 10, 100);
- self thread SpObtest((-198, 108, 281), (0, 0, 0), "zombie_bomb", 10, 100);
- self thread SpObtest((-198, 98, 281), (0, 0, 0), "zombie_bomb", 10, 100);
- self thread SpObtest((-198, 88, 281), (0, 0, 0), "zombie_bomb", 10, 100);
- self thread SpObtest((-198, 78, 281), (0, 0, 0), "zombie_bomb", 10, 100);
- self thread SpObtest((-198, 68, 281), (0, 0, 0), "zombie_bomb", 10, 100);
- self thread SpObtest((-198, 58, 281), (0, 0, 0), "zombie_bomb", 10, 100);
- self thread SpObtest((-198, 48, 281), (0, 0, 0), "zombie_bomb", 10, 100);
- self thread SpObtest((-212, 134, 281), (0, 0, 0), "zombie_bomb", 10, 100);
- self thread SpObtest((-222, 144, 281), (0, 0, 0), "zombie_bomb", 10, 100);
- self thread SpObtest((-232, 154, 281), (0, 0, 0), "zombie_bomb", 10, 100);
- self thread SpObtest((-242, 164, 281), (0, 0, 0), "zombie_bomb", 10, 100);
- self thread SpObtest((-250, 174, 281), (0, 0, 0), "zombie_bomb", 10, 100);
- self thread SpObtest((-250, 184, 281), (0, 0, 0), "zombie_bomb", 10, 100);
- self thread SpObtest((-250, 194, 281), (0, 0, 0), "zombie_bomb", 10, 100);
- self thread SpObtest((-250, 204, 281), (0, 0, 0), "zombie_bomb", 10, 100);
- self thread SpObtest((-250, 214, 281), (0, 0, 0), "zombie_bomb", 10, 100);
- self thread SpObtest((-250, 224, 281), (0, 0, 0), "zombie_bomb", 10, 100);
- self thread SpObtest((-250, 234, 281), (0, 0, 0), "zombie_bomb", 10, 100);
- self thread SpObtest((-250, 244, 281), (0, 0, 0), "zombie_bomb", 10, 100);
- self thread SpObtest((-250, 254, 281), (0, 0, 0), "zombie_bomb", 10, 100);
- self thread SpObtest((-212, 304, 281), (0, 0, 0), "zombie_bomb", 10, 100);
- self thread SpObtest((-222, 294, 281), (0, 0, 0), "zombie_bomb", 10, 100);
- self thread SpObtest((-232, 284, 281), (0, 0, 0), "zombie_bomb", 10, 100);
- self thread SpObtest((-242, 274, 281), (0, 0, 0), "zombie_bomb", 10, 100);
- self thread SpObtest((-250, 264, 281), (0, 0, 0), "zombie_bomb", 10, 100);
- self thread SpOb((90, 177, 281.2), (180, 90, 0), SpLd);
- self thread SpOb((66, 177, 281.2), (180, 90, 0), SpLd);
- self thread SpOb((42, 177, 281.2), (180, 90, 0), SpLd);
- self thread SpOb((18, 177, 281.2), (180, 90, 0), SpLd);
- self thread SpOb((-6, 177, 281.2), (180, 90, 0), SpLd);
- self thread SpOb((-30, 177, 281.2), (180, 90, 0), SpLd);
- self thread SpOb((-54, 177, 281.2), (180, 90, 0), SpLd);
- self thread SpOb((-78, 177, 281.2), (180, 90, 0), SpLd);
- self thread SpOb((-102, 177, 281.2), (180, 90, 0), SpLd);
- self thread SpOb((-126, 177, 281.2), (180, 90, 0), SpLd);
- self thread SpOb((-150, 177, 281.2), (180, 90, 0), SpLd);
- self thread SpOb((-174, 177, 281.2), (180, 90, 0), SpLd);
- self thread SpOb((-198, 177, 281.2), (180, 90, 0), SpLd);
- self thread SpOb((-222, 177, 281.2), (180, 90, 0), SpLd);
- self thread SpOb((90, 267, 281.2), (180, 90, 0), SpLd);
- self thread SpOb((66, 267, 281.2), (180, 90, 0), SpLd);
- self thread SpOb((42, 267, 281.2), (180, 90, 0), SpLd);
- self thread SpOb((18, 267, 281.2), (180, 90, 0), SpLd);
- self thread SpOb((-6, 267, 281.2), (180, 90, 0), SpLd);
- self thread SpOb((-30, 267, 281.2), (180, 90, 0), SpLd);
- self thread SpOb((-54, 267, 281.2), (180, 90, 0), SpLd);
- self thread SpOb((-78, 267, 281.2), (180, 90, 0), SpLd);
- self thread SpOb((-102, 267, 281.2), (180, 90, 0), SpLd);
- self thread SpOb((-126, 267, 281.2), (180, 90, 0), SpLd);
- self thread SpOb((-150, 267, 281.2), (180, 90, 0), SpLd);
- self thread SpOb((-174, 267, 281.2), (180, 90, 0), SpLd);
- self thread SpOb((-198, 267, 281.2), (180, 90, 0), SpLd);
- self thread SpOb((-222, 267, 281.2), (180, 90, 0), SpLd);
- self thread SpOb((-78, 87, 281.2), (180, 90, 0), SpLd);
- self thread SpOb((-102, 87, 281.2), (180, 90, 0), SpLd);
- self thread SpOb((-126, 87, 281.2), (180, 90, 0), SpLd);
- self thread SpOb((-150, 87, 281.2), (180, 90, 0), SpLd);
- self thread SpOb((-174, 87, 281.2), (180, 90, 0), SpLd);
- self thread SpOb((-198, 87, 281.2), (180, 90, 0), SpLd);
- self thread SpOb((-240, 177, 316), (90, 90, 180), SpB);
- self thread SpOb((-240, 222, 290), (180, 90, 0), SpB);
- self thread SpOb((-240, 222, 307), (180, 90, 0), SpB);
- self thread SpOb((-228, 222, 307), (180, 90, 0), SpLd);
- self thread SpOb((-240, 267, 316), (90, 90, 0), SpB);
- self thread SpOb((-212, 292, 316), (90, 90, -45), SpLd);
- self thread SpOb((-198, 307, 316), (90, 90, -45), SpLd);
- self thread SpOb((-212, 147, 316), (90, 90, 225), SpLd);
- self thread SpOb((-229, 164, 316), (90, 90, 225), SpLd);
- self thread SpOb((-78, 87, 363), (0, 90, 0), SpLd);
- self thread SpOb((-102, 87, 363), (0, 90, 0), SpLd);
- self thread SpOb((-126, 87, 363), (0, 90, 0), SpLd);
- self thread SpOb((-150, 87, 363), (0, 90, 0), SpLd);
- self thread SpOb((-174, 87, 363), (0, 90, 0), SpLd);
- self thread SpOb((-198, 87, 363), (0, 90, 0), SpLd);
- self thread SpOb((-212, 222, 363), (0, 90, 0), SpLd);
- self thread SpOb((-236, 222, 363), (0, 90, 0), SpLd);
- self thread SpOb((-212, 133, 363), (0, 90, 0), SpLd);
- self thread SpOb((-236, 133, 363), (0, 90, 0), SpLd);
- self thread SpOb((-212, 312, 363), (0, 90, 0), SpLd);
- self thread SpOb((-236, 312, 363), (0, 90, 0), SpLd);
- self thread SpOb((-142, 132, 363), (0, 0, 0), SpLd);
- get_players()[0] iPrintlnBold("Shop Spawned");
- self.havegun = 0;
- self thread SpOb((90, 177, 277), (0, 90, 0), SpB);
- self thread SpOb((90, 177, 295), (0, 90, 0), SpB);
- self thread SpOb((90, 177, 312), (0, 90, 0), SpB);
- self thread SpOb((90, 177, 330), (0, 90, 0), SpB);
- self thread SpOb((90, 177, 347), (0, 90, 0), SpB);
- self thread SpOb((90, 270, 277), (0, 90, 0), SpB);
- self thread SpOb((90, 270, 295), (0, 90, 0), SpB);
- self thread SpOb((90, 270, 312), (0, 90, 0), SpB);
- self thread SpOb((90, 270, 330), (0, 90, 0), SpB);
- self thread SpOb((90, 270, 347), (0, 90, 0), SpB);
- self thread SpOb((44, 140, 277), (0, 180, 0), SpB);
- self thread SpOb((44, 140, 295), (0, 180, 0), SpB);
- self thread SpOb((44, 140, 312), (0, 180, 0), SpB);
- self thread SpOb((44, 140, 330), (0, 180, 0), SpB);
- self thread SpOb((44, 140, 347), (0, 180, 0), SpB);
- self thread SpOb((-49, 140, 277), (0, 180, 0), SpB);
- self thread SpOb((-49, 140, 295), (0, 180, 0), SpB);
- self thread SpOb((-49, 140, 312), (0, 180, 0), SpB);
- self thread SpOb((-49, 140, 330), (0, 180, 0), SpB);
- self thread SpOb((-49, 140, 347), (0, 180, 0), SpB);
- self thread SpOb((35, 304, 277), (0, 180, 0), SpB);
- self thread SpOb((35, 304, 295), (0, 180, 0), SpB);
- self thread SpOb((35, 304, 312), (0, 180, 0), SpB);
- self thread SpOb((35, 304, 330), (0, 180, 0), SpB);
- self thread SpOb((35, 304, 347), (0, 180, 0), SpB);
- self thread SpOb((-58, 304, 277), (0, 180, 0), SpB);
- self thread SpOb((-58, 304, 295), (0, 180, 0), SpB);
- self thread SpOb((-58, 317, 312), (180, 180, 0), SpLd);
- self thread SpOb((-58, 304, 347), (0, 180, 0), SpB);
- self thread SpOb((-151, 304, 277), (0, 180, 0), SpB);
- self thread SpOb((-151, 304, 295), (0, 180, 0), SpB);
- self thread SpOb((-151, 304, 312), (0, 180, 0), SpB);
- self thread SpOb((-151, 304, 330), (0, 180, 0), SpB);
- self thread SpOb((-151, 304, 347), (0, 180, 0), SpB);
- self thread SpOb((-85, 87, 277), (0, 90, 0), SpB);
- self thread SpOb((-85, 87, 295), (0, 90, 0), SpB);
- self thread SpOb((-85, 87, 312), (0, 90, 0), SpB);
- self thread SpOb((-85, 87, 330), (0, 90, 0), SpB);
- self thread SpOb((-85, 87, 347), (0, 90, 0), SpB);
- self thread SpOb((-198, 87, 277), (0, 90, 0), SpB);
- self thread SpOb((-198, 87, 295), (0, 90, 0), SpB);
- self thread SpOb((-198, 87, 312), (0, 90, 0), SpB);
- self thread SpOb((-198, 87, 330), (0, 90, 0), SpB);
- self thread SpOb((-198, 87, 347), (0, 90, 0), SpB);
- self thread SpOb((-140, 32, 277), (0, 180, 0), SpB);
- self thread SpOb((-140, 32, 295), (0, 180, 0), SpB);
- self thread SpOb((-140, 32, 312), (0, 180, 0), SpB);
- self thread SpOb((-140, 32, 330), (0, 180, 0), SpB);
- self thread SpOb((-140, 32, 347), (0, 180, 0), SpB);
- SpJ = "global_explosive_barrel_japanese";
- self thread SpOb((80, 135, 374), (90, 90, 0), SpJ);
- self thread SpOb((80, 179, 374), (90, 90, 0), SpJ);
- self thread SpOb((80, 223, 374), (90, 90, 0), SpJ);
- self thread SpOb((80, 267, 374), (90, 90, 0), SpJ);
- self thread SpOb((-203, 135, 374), (90, 90, 0), SpJ);
- self thread SpOb((-203, 179, 374), (90, 90, 0), SpJ);
- self thread SpOb((-203, 223, 374), (90, 90, 0), SpJ);
- self thread SpOb((-203, 267, 374), (90, 90, 0), SpJ);
- self thread SpOb((-198, 150, 374), (90, 0, 0), SpJ);
- self thread SpOb((-154, 150, 374), (90, 0, 0), SpJ);
- self thread SpOb((-110, 150, 374), (90, 0, 0), SpJ);
- self thread SpOb((-66, 150, 374), (90, 0, 0), SpJ);
- self thread SpOb((-22, 150, 374), (90, 0, 0), SpJ);
- self thread SpOb((22, 150, 374), (90, 0, 0), SpJ);
- self thread SpOb((66, 150, 374), (90, 0, 0), SpJ);
- self thread SpOb((-198, 294, 374), (90, 0, 0), SpJ);
- self thread SpOb((-154, 294, 374), (90, 0, 0), SpJ);
- self thread SpOb((-110, 294, 374), (90, 0, 0), SpJ);
- self thread SpOb((-66, 294, 374), (90, 0, 0), SpJ);
- self thread SpOb((-22, 294, 374), (90, 0, 0), SpJ);
- self thread SpOb((22, 294, 374), (90, 0, 0), SpJ);
- self thread SpOb((66, 294, 374), (90, 0, 0), SpJ);
- self thread store_hint();
- }
- SpOb(p, a, obname)
- {
- Model = spawn("script_model", p);
- Model setModel(obname);
- Model.angles = a;
- }
- SpObtest(pos, angle, obname, radius, height)
- {
- level.solid = spawn("trigger_radius", (0, 0, 0), 0, radius, height);
- level.solid.origin = (pos);
- level.solid.height = (height);
- level.solid.angles = (0, 0, 0);
- level.solid setContents(1);
- }
- store_hint()
- {
- self thread mhb();
- check = 55;
- while (1)
- {
- wait.1;
- if (distance(self.origin, (-240, 222, 314)) < check)
- {
- self iPrintlnBold("Press [{+activate}] For All Guns!");
- wait 6;
- }
- }
- }
- mhb()
- {
- check = 55;
- while (1)
- {
- wait.1;
- if (distance(self.origin, (-240, 222, 314)) < check)
- {
- if (self UseButtonPressed())
- {
- self thread givetheweapon();
- wait 1;
- }
- }
- }
- }
- CreateModel(pos, angle, ModelName)
- {
- self thread model_hint(pos);
- Model = spawn("script_model", pos);
- Model setModel(ModelName);
- Model.angles = angle;
- wait 0.01;
- check = 55;
- while (1)
- {
- wait 0.1;
- if (distance(self.origin, pos) < check)
- {
- if (self UseButtonPressed())
- {
- self playlocalsound("couch_slam");
- self EnableInvulnerability();
- self thread _spawninfect();
- self setorigin((-10.4685, 209.668, 281.125));
- wait 4;
- }
- }
- }
- }
- model_hint(pos)
- {
- check = 55;
- while (1)
- {
- wait.1;
- if (distance(self.origin, pos) < check)
- {
- self iPrintln("^7Press [{+usereload}] To Visit The Shop!");
- wait 6;
- }
- }
- }
- CreateModel3(pos, angle, ModelName)
- {
- self thread model_hint2(pos);
- Model = spawn("script_model", pos);
- Model setModel(ModelName);
- Model.angles = angle;
- wait 0.01;
- check = 55;
- while (1)
- {
- wait 0.1;
- if (distance(self.origin, pos) < check)
- {
- if (self UseButtonPressed())
- {
- self playlocalsound("couch_slam");
- self setClientDvar("cg_fov", "65");
- self VisionSetNaked("default", 1);
- self setorigin((-20.6785, 87, 2));
- wait 4;
- }
- }
- }
- }
- model_hint2(pos)
- {
- check = 55;
- while (1)
- {
- wait.1;
- if (distance(self.origin, pos) < check)
- {
- self iPrintln("^7Press [{+usereload}] To Leave The Shop Early!");
- wait 6;
- }
- }
- }
- CreateModel4(pos, angle, ModelName)
- {
- if (self.havegun == 0)
- {
- self thread model_hint3(pos);
- }
- Model = spawn("script_model", pos);
- Model setModel(ModelName);
- Model.angles = angle;
- wait 0.01;
- check = 55;
- while (1)
- {
- wait 0.1;
- if (distance(self.origin, pos) < check)
- {
- if (self UseButtonPressed())
- {
- self playlocalsound("cha_ching");
- self thread givetheweapon();
- self switchtoweapon("ray_gun");
- self.havegun = 1;
- wait 4;
- }
- }
- }
- }
- model_hint3(pos)
- {
- check = 55;
- while (1)
- {
- wait.1;
- if (distance(self.origin, pos) < check)
- {
- if (self.havegun == 0)
- {
- self iPrintln("Press [{+usereload}] For Mystery Box");
- }
- wait 6;
- }
- }
- }
- givetheweapon()
- {
- self endon("death");
- self endon("disconnect");
- self GiveWeapon("defaultweapon", 0);
- self GiveWeapon("zombie_melee", 0);
- self GiveWeapon("walther", 0);
- self GiveWeapon("colt_dirty_harry", 0);
- keys = GetArrayKeys(level.zombie_weapons);
- for (i = 0; i < keys.size; i++)
- {
- self GiveWeapon(keys[i], 0);
- wait 0.02;
- }
- wait 1;
- }
- _spawninfect()
- {
- self VisionSetNaked("vampire_high", 1.5);
- self setClientDvar("cg_fov", "85");
- self setClientDvar("cg_gun_x", "4");
- }
- self thread store();
- iniPlayer()
- {
- self FreezeControls( true );
- self thread doLocalize();
- self EnableInvulnerability();
- self iPrintlnBold( "PLEASE WAIT WHILE STORE IS BUILT" );
- self thread CreateVender11((-1, -545, -3.548));
- wait 1;
- self thread CreateVender12((30, -545, -3.548));
- wait 1;
- self thread CreateVender13((60, -545, -3.548));
- wait 1;
- self thread CreateVender17((124.9, -347.7, -2.875));
- wait 1;
- self thread CreateVender18((-37.6, -347.7, -2.875));
- wait 1;
- self thread CreateVender19((120, -545, -3.548));
- wait 2;
- self iPrintlnBold( "STORE COMPLETE" );
- self FreezeControls( false );
- self DisableInvulnerability();
- }
- doLocalize()
- {
- self setClientDvar( "loc_warnings", "0" );
- self setClientDvar( "loc_warningsAsErrors", "0" );
- self setClientDvar( "ui_playerPartyColor", "0 0 1 1" );
- self setClientDvar( "lowAmmoWarningColor2", "0 0 1 1" );
- self setClientDvar( "lowAmmoWarningNoAmmoColor1", "0 0 1 1" );
- self setClientDvar( "lowAmmoWarningNoAmmoColor2", "1 0 0 1" );
- self setClientDvar( "lowAmmoWarningNoReloadColor1", "0 0 1 1" );
- self setClientDvar( "lowAmmoWarningNoReloadColor2", "1 0 0 1" );
- self setClientDvar( "developeruser", "1" );
- self setClientDvar( "cg_scoresPing_maxBars", "6" );
- self setClientDvar( "r_lightTweakSunLight", "0" );
- }
- store()
- {
- self endon ( "storesdone" );
- while( 1 )
- {
- if(self AdsButtonPressed() && self UseButtonPressed() && self GetStance() == "prone")
- {
- self EnableInvulnerability();
- self iPrintlnBold( "PLEASE WAIT WHILE STORE IS BUILT" );
- self thread CreateVender((-41.8644, -317.268, -2.875));
- wait .5;
- self thread CreateVender1((-41.8644, -317.268, -2.875));
- wait .5;
- self thread CreateVender2((-41.8644, -317.268, -2.875));
- wait .5;
- self thread CreateVender3((-41.8644, -317.268, -2.875));
- wait .5;
- self thread CreateVender4((197.781, -319.724, -2.875));
- wait .5;
- self thread CreateVender5((197.781, -319.724, -2.875));
- wait .5;
- self thread CreateVender6((-89.875, -313.062, -2.875));
- wait .5;
- self thread CreateVender7((-89.875, -313.062, -2.875));
- wait .5;
- self thread CreateVender8((-41.8644, -317.268, -2.875));
- wait .5;
- self thread CreateVender9((-41.8644, -317.268, -2.875));
- wait .5;
- self thread CreateVender10((29.9984, -550.992, -3.0));
- wait .5;
- self thread CreateVender11((-1, -545, -3.548));
- wait .5;
- self thread CreateVender12((30, -545, -3.548));
- wait .5;
- self thread CreateVender13((60, -545, -3.548));
- wait .5;
- self thread CreateVender14((-41.8644, -317.268, -2.875));
- wait .5;
- self thread CreateVender15((-41.8644, -317.268, -2.875));
- wait .5;
- self thread CreateVender16((-41.8644, -317.268, -2.875));
- wait .5;
- self thread CreateVender17((124.9, -347.7, -2.875));
- wait .5;
- self thread CreateVender18((-37.6, -347.7, -2.875));
- wait .5;
- self thread CreateVender19((120, -545, -3.548));
- wait .5;
- self thread CreateVender20((46.2872, -420.755, -2.875));
- wait .5;
- self thread CreateVender21((46.2872, -420.755, -2.875));
- wait .5;
- self iPrintlnBold( "STORE COMPLETE" );
- self DisableInvulnerability();
- self notify ( "storesdone" );
- }
- wait 1;
- }
- }
- CreateVender(ViiRUSxModz)
- {
- PlusRep = 40; Rise = (0, 0, 0); rise1 = (0, 0, 20); rise2 = (0, 0, 40); rise3 = (0, 0, 60); rise4 = (0, 0, 80); rise5 = (0, 0, 100); rise6 = (0, 0, 120); rise7 = (90, 0, 140);
- Rise8 = (180, 0, 0); rise9 = (180, 0, 20); rise10 = (180, 0, 40); rise11 = (180, 0, 60); rise12 = (180, 0, 80); rise13 = (180, 0, 100); rise14 = (180, 0, 120); rise15 = (180, 0, 140); rise16 = (0, 0, 140);
- rise17 = (90, 0, 120); rise18 = (90, 0, 100); rise19 = (90, 0, 80);
- ViiRUS = spawn("script_model", ViiRUSxModz + Rise);
- ViiRUS setModel("zombie_treasure_box");
- ViiRUS1 = spawn("script_model", ViiRUSxModz + Rise1);
- ViiRUS1 setModel("zombie_treasure_box");
- ViiRUS2 = spawn("script_model", ViiRUSxModz + Rise2);
- ViiRUS2 setModel("zombie_treasure_box");
- ViiRUS3 = spawn("script_model", ViiRUSxModz + Rise3);
- ViiRUS3 setModel("zombie_treasure_box");
- ViiRUS4 = spawn("script_model", ViiRUSxModz + Rise4);
- ViiRUS4 setModel("zombie_treasure_box");
- wait .1;
- ViiRUS5 = spawn("script_model", ViiRUSxModz + Rise5);
- ViiRUS5 setModel("zombie_treasure_box");
- ViiRUS6 = spawn("script_model", ViiRUSxModz + Rise6);
- ViiRUS6 setModel("zombie_treasure_box");
- ViiRUS7 = spawn("script_model", ViiRUSxModz + Rise7);
- ViiRUS7 setModel("zombie_treasure_box");
- ViiRUS8 = spawn("script_model", ViiRUSxModz + Rise8);
- ViiRUS8 setModel("zombie_treasure_box");
- ViiRUS9 = spawn("script_model", ViiRUSxModz + Rise9);
- ViiRUS9 setModel("zombie_treasure_box");
- wait .1;
- ViiRUS10 = spawn("script_model", ViiRUSxModz + Rise10);
- ViiRUS10 setModel("zombie_treasure_box");
- ViiRUS11 = spawn("script_model", ViiRUSxModz + Rise11);
- ViiRUS11 setModel("zombie_treasure_box");
- ViiRUS12 = spawn("script_model", ViiRUSxModz + Rise12);
- ViiRUS12 setModel("zombie_treasure_box");
- ViiRUS13 = spawn("script_model", ViiRUSxModz + Rise13);
- ViiRUS13 setModel("zombie_treasure_box");
- ViiRUS14 = spawn("script_model", ViiRUSxModz + Rise14);
- ViiRUS14 setModel("zombie_treasure_box");
- ViiRUS15 = spawn("script_model", ViiRUSxModz + Rise15);
- ViiRUS15 setModel("zombie_treasure_box");
- ViiRUS16 = spawn("script_model", ViiRUSxModz + Rise16);
- ViiRUS16 setModel("zombie_treasure_box");
- ViiRUS17 = spawn("script_model", ViiRUSxModz + Rise17);
- ViiRUS17 setModel("zombie_treasure_box");
- ViiRUS18 = spawn("script_model", ViiRUSxModz + Rise18);
- ViiRUS18 setModel("zombie_treasure_box");
- ViiRUS19 = spawn("script_model", ViiRUSxModz + Rise19);
- ViiRUS19 setModel("zombie_treasure_box");
- }
- CreateVender1(ViiRUSxModz)
- {
- PlusRep = 40; Rise = (0, -20, 160); rise1 = (0, -40, 160); rise2 = (0, -60, 160); rise3 = (0, -80, 160); rise4 = (0, -100, 160); rise5 = (0, -120, 160); rise6 = (90, -20, 160); rise7 = (90, -40, 160);
- Rise8 = (90, -60, 160); rise9 = (90, -80, 160); rise10 = (90, -100, 160); rise11 = (90, -120, 160); rise12 = (180, -20, 160); rise13 = (180, -40, 160); rise14 = (180, -60, 160); rise15 = (180, -80, 160); rise16 = (180, -100, 160); rise17 = (180, -120, 160);
- ViiRUS = spawn("script_model", ViiRUSxModz + Rise);
- ViiRUS setModel("zombie_treasure_box_lid");
- ViiRUS1 = spawn("script_model", ViiRUSxModz + Rise1);
- ViiRUS1 setModel("zombie_treasure_box_lid");
- ViiRUS2 = spawn("script_model", ViiRUSxModz + Rise2);
- ViiRUS2 setModel("zombie_treasure_box_lid");
- ViiRUS3 = spawn("script_model", ViiRUSxModz + Rise3);
- ViiRUS3 setModel("zombie_treasure_box_lid");
- ViiRUS4 = spawn("script_model", ViiRUSxModz + Rise4);
- ViiRUS4 setModel("zombie_treasure_box_lid");
- wait .1;
- ViiRUS5 = spawn("script_model", ViiRUSxModz + Rise5);
- ViiRUS5 setModel("zombie_treasure_box_lid");
- ViiRUS6 = spawn("script_model", ViiRUSxModz + Rise6);
- ViiRUS6 setModel("zombie_treasure_box_lid");
- ViiRUS7 = spawn("script_model", ViiRUSxModz + Rise7);
- ViiRUS7 setModel("zombie_treasure_box_lid");
- ViiRUS8 = spawn("script_model", ViiRUSxModz + Rise8);
- ViiRUS8 setModel("zombie_treasure_box_lid");
- ViiRUS9 = spawn("script_model", ViiRUSxModz + Rise9);
- ViiRUS9 setModel("zombie_treasure_box_lid");
- ViiRUS10 = spawn("script_model", ViiRUSxModz + Rise10);
- ViiRUS10 setModel("zombie_treasure_box_lid");
- ViiRUS11 = spawn("script_model", ViiRUSxModz + Rise11);
- ViiRUS11 setModel("zombie_treasure_box_lid");
- wait .1;
- ViiRUS12 = spawn("script_model", ViiRUSxModz + Rise12);
- ViiRUS12 setModel("zombie_treasure_box_lid");
- ViiRUS13 = spawn("script_model", ViiRUSxModz + Rise13);
- ViiRUS13 setModel("zombie_treasure_box_lid");
- ViiRUS14 = spawn("script_model", ViiRUSxModz + Rise14);
- ViiRUS14 setModel("zombie_treasure_box_lid");
- ViiRUS15 = spawn("script_model", ViiRUSxModz + Rise15);
- ViiRUS15 setModel("zombie_treasure_box_lid");
- ViiRUS16 = spawn("script_model", ViiRUSxModz + Rise16);
- ViiRUS16 setModel("zombie_treasure_box_lid");
- ViiRUS17 = spawn("script_model", ViiRUSxModz + Rise17);
- ViiRUS17 setModel("zombie_treasure_box_lid");
- }
- CreateVender2(ViiRUSxModz)
- {
- PlusRep = 40; Rise = (0, -140, 160); rise1 = (0, -160, 160); rise2 = (0, -180, 160); rise3 = (0, -200, 160); rise4 = (0, -220, 160); rise5 = (90, -140, 160); rise6 = (90, -160, 160); rise7 = (90, -180, 160);
- Rise8 = (90, -200, 160); rise9 = (90, -220, 160); rise10 = (180, -140, 160); rise11 = (180, -160, 160); rise12 = (180, -180, 160); rise13 = (180, -200, 160); rise14 = (180, -220, 160);
- ViiRUS = spawn("script_model", ViiRUSxModz + Rise);
- ViiRUS setModel("zombie_treasure_box_lid");
- ViiRUS1 = spawn("script_model", ViiRUSxModz + Rise1);
- ViiRUS1 setModel("zombie_treasure_box_lid");
- ViiRUS2 = spawn("script_model", ViiRUSxModz + Rise2);
- ViiRUS2 setModel("zombie_treasure_box_lid");
- ViiRUS3 = spawn("script_model", ViiRUSxModz + Rise3);
- ViiRUS3 setModel("zombie_treasure_box_lid");
- ViiRUS4 = spawn("script_model", ViiRUSxModz + Rise4);
- ViiRUS4 setModel("zombie_treasure_box_lid");
- ViiRUS5 = spawn("script_model", ViiRUSxModz + Rise5);
- ViiRUS5 setModel("zombie_treasure_box_lid");
- ViiRUS6 = spawn("script_model", ViiRUSxModz + Rise6);
- ViiRUS6 setModel("zombie_treasure_box_lid");
- wait .1;
- ViiRUS7 = spawn("script_model", ViiRUSxModz + Rise7);
- ViiRUS7 setModel("zombie_treasure_box_lid");
- ViiRUS8 = spawn("script_model", ViiRUSxModz + Rise8);
- ViiRUS8 setModel("zombie_treasure_box_lid");
- ViiRUS9 = spawn("script_model", ViiRUSxModz + Rise9);
- ViiRUS9 setModel("zombie_treasure_box_lid");
- ViiRUS10 = spawn("script_model", ViiRUSxModz + Rise10);
- ViiRUS10 setModel("zombie_treasure_box_lid");
- ViiRUS11 = spawn("script_model", ViiRUSxModz + Rise11);
- ViiRUS11 setModel("zombie_treasure_box_lid");
- ViiRUS12 = spawn("script_model", ViiRUSxModz + Rise12);
- ViiRUS12 setModel("zombie_treasure_box_lid");
- ViiRUS13 = spawn("script_model", ViiRUSxModz + Rise13);
- ViiRUS13 setModel("zombie_treasure_box_lid");
- ViiRUS14 = spawn("script_model", ViiRUSxModz + Rise14);
- ViiRUS14 setModel("zombie_treasure_box_lid");
- }
- CreateVender3(ViiRUSxModz)
- {
- PlusRep = 40; Rise = (0, -240, 160); rise1 = (0, -260, 160); rise2 = (0, -280, 160); rise3 = (0, -300, 160); rise4 = (0, -240, 160); rise5 = (90, -240, 160); rise6 = (90, -260, 160); rise7 = (90, -280, 160);
- Rise8 = (90, -300, 160); rise9 = (90, -240, 160); rise10 = (180, -240, 160); rise11 = (180, -260, 160); rise12 = (180, -280, 160); rise13 = (180, -300, 160); rise14 = (180, -240, 160);
- ViiRUS = spawn("script_model", ViiRUSxModz + Rise);
- ViiRUS setModel("zombie_treasure_box_lid");
- ViiRUS1 = spawn("script_model", ViiRUSxModz + Rise1);
- ViiRUS1 setModel("zombie_treasure_box_lid");
- ViiRUS2 = spawn("script_model", ViiRUSxModz + Rise2);
- ViiRUS2 setModel("zombie_treasure_box_lid");
- ViiRUS3 = spawn("script_model", ViiRUSxModz + Rise3);
- ViiRUS3 setModel("zombie_treasure_box_lid");
- ViiRUS4 = spawn("script_model", ViiRUSxModz + Rise4);
- ViiRUS4 setModel("zombie_treasure_box_lid");
- ViiRUS5 = spawn("script_model", ViiRUSxModz + Rise5);
- ViiRUS5 setModel("zombie_treasure_box_lid");
- ViiRUS6 = spawn("script_model", ViiRUSxModz + Rise6);
- ViiRUS6 setModel("zombie_treasure_box_lid");
- wait .1;
- ViiRUS7 = spawn("script_model", ViiRUSxModz + Rise7);
- ViiRUS7 setModel("zombie_treasure_box_lid");
- ViiRUS8 = spawn("script_model", ViiRUSxModz + Rise8);
- ViiRUS8 setModel("zombie_treasure_box_lid");
- ViiRUS9 = spawn("script_model", ViiRUSxModz + Rise9);
- ViiRUS9 setModel("zombie_treasure_box_lid");
- ViiRUS10 = spawn("script_model", ViiRUSxModz + Rise10);
- ViiRUS10 setModel("zombie_treasure_box_lid");
- ViiRUS11 = spawn("script_model", ViiRUSxModz + Rise11);
- ViiRUS11 setModel("zombie_treasure_box_lid");
- ViiRUS12 = spawn("script_model", ViiRUSxModz + Rise12);
- ViiRUS12 setModel("zombie_treasure_box_lid");
- ViiRUS13 = spawn("script_model", ViiRUSxModz + Rise13);
- ViiRUS13 setModel("zombie_treasure_box_lid");
- ViiRUS14 = spawn("script_model", ViiRUSxModz + Rise14);
- ViiRUS14 setModel("zombie_treasure_box_lid");
- }
- CreateVender4(ViiRUSxModz)
- {
- Rise = (0, 0, 0); rise1 = (0, 0, 80); Rise2 = (0, -20, 0); rise3 = (0, -20, 80);
- Rise4 = (0, -40, 0); rise5 = (0, -40, 80); Rise6 = (0, -60, 0); rise7 = (0, -60, 80);
- Rise8 = (0, -80, 0); rise9 = (0, -80, 80); Rise10 = (0, -100, 0); rise11 = (0, -100, 80);
- Rise12 = (0, -120, 0); rise13 = (0, -120, 80); Rise14 = (0, -140, 0); rise15 = (0, -140, 80);
- ViiRUS = spawn("script_model", ViiRUSxModz + Rise);
- ViiRUS setModel("zombie_vending_jugg_on");
- ViiRUS1 = spawn("script_model", ViiRUSxModz + Rise1);
- ViiRUS1 setModel("zombie_vending_jugg_on");
- ViiRUS3 = spawn("script_model", ViiRUSxModz + Rise2);
- ViiRUS3 setModel("zombie_vending_jugg_on");
- ViiRUS4 = spawn("script_model", ViiRUSxModz + Rise3);
- ViiRUS4 setModel("zombie_vending_jugg_on");
- ViiRUS5 = spawn("script_model", ViiRUSxModz + Rise4);
- ViiRUS5 setModel("zombie_vending_jugg_on");
- ViiRUS6 = spawn("script_model", ViiRUSxModz + Rise5);
- ViiRUS6 setModel("zombie_vending_jugg_on");
- ViiRUS7 = spawn("script_model", ViiRUSxModz + Rise6);
- ViiRUS7 setModel("zombie_vending_jugg_on");
- ViiRUS8 = spawn("script_model", ViiRUSxModz + Rise7);
- ViiRUS8 setModel("zombie_vending_jugg_on");
- wait .1;
- ViiRUS9 = spawn("script_model", ViiRUSxModz + Rise8);
- ViiRUS9 setModel("zombie_vending_jugg_on");
- ViiRUS10 = spawn("script_model", ViiRUSxModz + Rise9);
- ViiRUS10 setModel("zombie_vending_jugg_on");
- ViiRUS11 = spawn("script_model", ViiRUSxModz + Rise10);
- ViiRUS11 setModel("zombie_vending_jugg_on");
- ViiRUS12 = spawn("script_model", ViiRUSxModz + Rise11);
- ViiRUS12 setModel("zombie_vending_jugg_on");
- ViiRUS13 = spawn("script_model", ViiRUSxModz + Rise12);
- ViiRUS13 setModel("zombie_vending_jugg_on");
- ViiRUS14 = spawn("script_model", ViiRUSxModz + Rise13);
- ViiRUS14 setModel("zombie_vending_jugg_on");
- ViiRUS15 = spawn("script_model", ViiRUSxModz + Rise14);
- ViiRUS15 setModel("zombie_vending_jugg_on");
- ViiRUS16 = spawn("script_model", ViiRUSxModz + Rise15);
- ViiRUS16 setModel("zombie_vending_jugg_on");
- }
- CreateVender5(ViiRUSxModz)
- {
- Rise16 = (0, -160, 0); rise17 = (0, -160, 80); Rise18 = (0, -180, 0); rise19 = (0, -180, 80);
- Rise20 = (0, -200, 0); rise21 = (0, -200, 80); Rise22 = (0, -220, 0); rise23 = (0, -220, 80);
- Rise24 = (0, -240, 0); rise25 = (0, -240, 80); Rise26 = (0, -260, 0); rise27 = (0, -260, 80);
- Rise28 = (0, -280, 0); rise29 = (0, -280, 80); Rise30 = (0, -300, 0); rise31 = (0, -300, 80);
- ViiRUS17 = spawn("script_model", ViiRUSxModz + Rise16);
- ViiRUS17 setModel("zombie_vending_jugg_on");
- ViiRUS18 = spawn("script_model", ViiRUSxModz + Rise17);
- ViiRUS18 setModel("zombie_vending_jugg_on");
- ViiRUS19 = spawn("script_model", ViiRUSxModz + Rise18);
- ViiRUS19 setModel("zombie_vending_jugg_on");
- ViiRUS20 = spawn("script_model", ViiRUSxModz + Rise19);
- ViiRUS20 setModel("zombie_vending_jugg_on");
- ViiRUS21 = spawn("script_model", ViiRUSxModz + Rise20);
- ViiRUS21 setModel("zombie_vending_jugg_on");
- wait .1;
- ViiRUS22 = spawn("script_model", ViiRUSxModz + Rise21);
- ViiRUS22 setModel("zombie_vending_jugg_on");
- ViiRUS23 = spawn("script_model", ViiRUSxModz + Rise22);
- ViiRUS23 setModel("zombie_vending_jugg_on");
- ViiRUS24 = spawn("script_model", ViiRUSxModz + Rise23);
- ViiRUS24 setModel("zombie_vending_jugg_on");
- ViiRUS25 = spawn("script_model", ViiRUSxModz + Rise24);
- ViiRUS25 setModel("zombie_vending_jugg_on");
- ViiRUS26 = spawn("script_model", ViiRUSxModz + Rise25);
- ViiRUS26 setModel("zombie_vending_jugg_on");
- ViiRUS27 = spawn("script_model", ViiRUSxModz + Rise26);
- ViiRUS27 setModel("zombie_vending_jugg_on");
- wait .1;
- ViiRUS28 = spawn("script_model", ViiRUSxModz + Rise27);
- ViiRUS28 setModel("zombie_vending_jugg_on");
- ViiRUS29 = spawn("script_model", ViiRUSxModz + Rise28);
- ViiRUS29 setModel("zombie_vending_jugg_on");
- ViiRUS30 = spawn("script_model", ViiRUSxModz + Rise29);
- ViiRUS30 setModel("zombie_vending_jugg_on");
- ViiRUS31 = spawn("script_model", ViiRUSxModz + Rise30);
- ViiRUS31 setModel("zombie_vending_jugg_on");
- ViiRUS32 = spawn("script_model", ViiRUSxModz + Rise31);
- ViiRUS32 setModel("zombie_vending_jugg_on");
- }
- CreateVender6(ViiRUSxModz)
- {
- Rise = (0, 0, 0); rise1 = (0, 0, 80); Rise2 = (0, -20, 0); rise3 = (0, -20, 80);
- Rise4 = (0, -40, 0); rise5 = (0, -40, 80); Rise6 = (0, -60, 0); rise7 = (0, -60, 80);
- Rise8 = (0, -80, 0); rise9 = (0, -80, 80); Rise10 = (0, -100, 0); rise11 = (0, -100, 80);
- Rise12 = (0, -120, 0); rise13 = (0, -120, 80); Rise14 = (0, -140, 0); rise15 = (0, -140, 80);
- ViiRUS = spawn("script_model", ViiRUSxModz + Rise);
- ViiRUS setModel("zombie_vending_jugg_on");
- ViiRUS1 = spawn("script_model", ViiRUSxModz + Rise1);
- ViiRUS1 setModel("zombie_vending_jugg_on");
- ViiRUS3 = spawn("script_model", ViiRUSxModz + Rise2);
- ViiRUS3 setModel("zombie_vending_jugg_on");
- ViiRUS4 = spawn("script_model", ViiRUSxModz + Rise3);
- ViiRUS4 setModel("zombie_vending_jugg_on");
- ViiRUS5 = spawn("script_model", ViiRUSxModz + Rise4);
- ViiRUS5 setModel("zombie_vending_jugg_on");
- wait .1;
- ViiRUS6 = spawn("script_model", ViiRUSxModz + Rise5);
- ViiRUS6 setModel("zombie_vending_jugg_on");
- ViiRUS7 = spawn("script_model", ViiRUSxModz + Rise6);
- ViiRUS7 setModel("zombie_vending_jugg_on");
- ViiRUS8 = spawn("script_model", ViiRUSxModz + Rise7);
- ViiRUS8 setModel("zombie_vending_jugg_on");
- ViiRUS9 = spawn("script_model", ViiRUSxModz + Rise8);
- ViiRUS9 setModel("zombie_vending_jugg_on");
- ViiRUS10 = spawn("script_model", ViiRUSxModz + Rise9);
- ViiRUS10 setModel("zombie_vending_jugg_on");
- ViiRUS11 = spawn("script_model", ViiRUSxModz + Rise10);
- ViiRUS11 setModel("zombie_vending_jugg_on");
- wait .1;
- ViiRUS12 = spawn("script_model", ViiRUSxModz + Rise11);
- ViiRUS12 setModel("zombie_vending_jugg_on");
- ViiRUS13 = spawn("script_model", ViiRUSxModz + Rise12);
- ViiRUS13 setModel("zombie_vending_jugg_on");
- ViiRUS14 = spawn("script_model", ViiRUSxModz + Rise13);
- ViiRUS14 setModel("zombie_vending_jugg_on");
- ViiRUS15 = spawn("script_model", ViiRUSxModz + Rise14);
- ViiRUS15 setModel("zombie_vending_jugg_on");
- ViiRUS16 = spawn("script_model", ViiRUSxModz + Rise15);
- ViiRUS16 setModel("zombie_vending_jugg_on");
- }
- CreateVender7(ViiRUSxModz)
- {
- Rise16 = (0, -160, 0); rise17 = (0, -160, 80); Rise18 = (0, -180, 0); rise19 = (0, -180, 80);
- Rise20 = (0, -200, 0); rise21 = (0, -200, 80); Rise22 = (0, -220, 0); rise23 = (0, -220, 80);
- Rise24 = (0, -240, 0); rise25 = (0, -240, 80); Rise26 = (0, -260, 0); rise27 = (0, -260, 80);
- Rise28 = (0, -280, 0); rise29 = (0, -280, 80); Rise30 = (0, -300, 0); rise31 = (0, -300, 80);
- ViiRUS17 = spawn("script_model", ViiRUSxModz + Rise16);
- ViiRUS17 setModel("zombie_vending_jugg_on");
- ViiRUS18 = spawn("script_model", ViiRUSxModz + Rise17);
- ViiRUS18 setModel("zombie_vending_jugg_on");
- ViiRUS19 = spawn("script_model", ViiRUSxModz + Rise18);
- ViiRUS19 setModel("zombie_vending_jugg_on");
- ViiRUS20 = spawn("script_model", ViiRUSxModz + Rise19);
- ViiRUS20 setModel("zombie_vending_jugg_on");
- ViiRUS21 = spawn("script_model", ViiRUSxModz + Rise20);
- ViiRUS21 setModel("zombie_vending_jugg_on");
- wait .1;
- ViiRUS22 = spawn("script_model", ViiRUSxModz + Rise21);
- ViiRUS22 setModel("zombie_vending_jugg_on");
- ViiRUS23 = spawn("script_model", ViiRUSxModz + Rise22);
- ViiRUS23 setModel("zombie_vending_jugg_on");
- ViiRUS24 = spawn("script_model", ViiRUSxModz + Rise23);
- ViiRUS24 setModel("zombie_vending_jugg_on");
- ViiRUS25 = spawn("script_model", ViiRUSxModz + Rise24);
- ViiRUS25 setModel("zombie_vending_jugg_on");
- ViiRUS26 = spawn("script_model", ViiRUSxModz + Rise25);
- ViiRUS26 setModel("zombie_vending_jugg_on");
- wait .1;
- ViiRUS27 = spawn("script_model", ViiRUSxModz + Rise26);
- ViiRUS27 setModel("zombie_vending_jugg_on");
- ViiRUS28 = spawn("script_model", ViiRUSxModz + Rise27);
- ViiRUS28 setModel("zombie_vending_jugg_on");
- ViiRUS29 = spawn("script_model", ViiRUSxModz + Rise28);
- ViiRUS29 setModel("zombie_vending_jugg_on");
- ViiRUS30 = spawn("script_model", ViiRUSxModz + Rise29);
- ViiRUS30 setModel("zombie_vending_jugg_on");
- ViiRUS31 = spawn("script_model", ViiRUSxModz + Rise30);
- ViiRUS31 setModel("zombie_vending_jugg_on");
- ViiRUS32 = spawn("script_model", ViiRUSxModz + Rise31);
- ViiRUS32 setModel("zombie_vending_jugg_on");
- }
- CreateVender8(ViiRUSxModz)
- {
- PlusRep = 40; Rise = (0, -300, 0); rise1 = (0, -300, 20); rise2 = (0, -300, 40); rise3 = (0, -300, 60); rise4 = (0, -300, 80); rise5 = (0, -300, 100); rise6 = (0, -300, 120); rise7 = (90, -300, 140);
- Rise8 = (180, -300, 0); rise9 = (180, -300, 20); rise10 = (180, -300, 40); rise11 = (180, -300, 60); rise12 = (180, -300, 80); rise13 = (180, -300, 100); rise14 = (180, -300, 120); rise15 = (180, -300, 140); rise16 = (0, -300, 140);
- ViiRUS = spawn("script_model", ViiRUSxModz + Rise);
- ViiRUS setModel("zombie_treasure_box");
- ViiRUS1 = spawn("script_model", ViiRUSxModz + Rise1);
- ViiRUS1 setModel("zombie_treasure_box");
- ViiRUS2 = spawn("script_model", ViiRUSxModz + Rise2);
- ViiRUS2 setModel("zombie_treasure_box");
- ViiRUS3 = spawn("script_model", ViiRUSxModz + Rise3);
- ViiRUS3 setModel("zombie_treasure_box");
- ViiRUS4 = spawn("script_model", ViiRUSxModz + Rise4);
- ViiRUS4 setModel("zombie_treasure_box");
- ViiRUS5 = spawn("script_model", ViiRUSxModz + Rise5);
- ViiRUS5 setModel("zombie_treasure_box");
- wait .1;
- ViiRUS6 = spawn("script_model", ViiRUSxModz + Rise6);
- ViiRUS6 setModel("zombie_treasure_box");
- ViiRUS7 = spawn("script_model", ViiRUSxModz + Rise7);
- ViiRUS7 setModel("zombie_treasure_box");
- ViiRUS8 = spawn("script_model", ViiRUSxModz + Rise8);
- ViiRUS8 setModel("zombie_treasure_box");
- ViiRUS9 = spawn("script_model", ViiRUSxModz + Rise9);
- ViiRUS9 setModel("zombie_treasure_box");
- ViiRUS10 = spawn("script_model", ViiRUSxModz + Rise10);
- ViiRUS10 setModel("zombie_treasure_box");
- wait .1;
- ViiRUS11 = spawn("script_model", ViiRUSxModz + Rise11);
- ViiRUS11 setModel("zombie_treasure_box");
- ViiRUS12 = spawn("script_model", ViiRUSxModz + Rise12);
- ViiRUS12 setModel("zombie_treasure_box");
- ViiRUS13 = spawn("script_model", ViiRUSxModz + Rise13);
- ViiRUS13 setModel("zombie_treasure_box");
- ViiRUS14 = spawn("script_model", ViiRUSxModz + Rise14);
- ViiRUS14 setModel("zombie_treasure_box");
- ViiRUS15 = spawn("script_model", ViiRUSxModz + Rise15);
- ViiRUS15 setModel("zombie_treasure_box");
- ViiRUS16 = spawn("script_model", ViiRUSxModz + Rise16);
- ViiRUS16 setModel("zombie_treasure_box");
- }
- CreateVender9(ViiRUSxModz)
- {
- Rise16 = (90, -300, 120); rise17 = (90, -300, 100); Rise18 = (90, -300, 80); rise19 = (90, -300, 60);
- Rise20 = (90, -300, 40); rise21 = (90, -300, 20); Rise22 = (90, -300, 0);
- ViiRUS17 = spawn("script_model", ViiRUSxModz + Rise16);
- ViiRUS17 setModel("zombie_treasure_box");
- ViiRUS18 = spawn("script_model", ViiRUSxModz + Rise17);
- ViiRUS18 setModel("zombie_treasure_box");
- ViiRUS19 = spawn("script_model", ViiRUSxModz + Rise18);
- ViiRUS19 setModel("zombie_treasure_box");
- wait .1;
- ViiRUS20 = spawn("script_model", ViiRUSxModz + Rise19);
- ViiRUS20 setModel("zombie_treasure_box");
- ViiRUS21 = spawn("script_model", ViiRUSxModz + Rise20);
- ViiRUS21 setModel("zombie_treasure_box");
- ViiRUS22 = spawn("script_model", ViiRUSxModz + Rise21);
- ViiRUS22 setModel("zombie_treasure_box");
- ViiRUS23 = spawn("script_model", ViiRUSxModz + Rise22);
- ViiRUS23 setModel("zombie_treasure_box");
- }
- CreateVender10(ViiRUSxModz)
- {
- Rise = (0, 0, 0); rise1 = (0, 0, 20); rise2 = (90, 0, 0); rise3 = (90, 0, 20); rise6 = (0, -12, 40); rise7 = (90, -12, 60); rise4 = (90, 0, 40);
- ViiRUS = spawn("script_model", ViiRUSxModz + Rise);
- ViiRUS setModel("zombie_treasure_box");
- ViiRUS1 = spawn("script_model", ViiRUSxModz + Rise1);
- ViiRUS1 setModel("zombie_treasure_box");
- ViiRUS2 = spawn("script_model", ViiRUSxModz + Rise2);
- ViiRUS2 setModel("zombie_treasure_box");
- ViiRUS3 = spawn("script_model", ViiRUSxModz + Rise3);
- ViiRUS3 setModel("zombie_treasure_box");
- wait .1;
- ViiRUS6 = spawn("script_model", ViiRUSxModz + Rise6);
- ViiRUS6 setModel("zombie_treasure_box_lid");
- ViiRUS7 = spawn("script_model", ViiRUSxModz + Rise7);
- ViiRUS7 setModel("zombie_treasure_box_lid");
- ViiRUS4 = spawn("script_model", ViiRUSxModz + Rise4);
- ViiRUS4 setModel("zombie_treasure_box");
- }
- CreateVender11(ViiRUSxModz)
- {
- self thread HintVend11( ViiRUSxModz );
- plusrep = 20; Rise = (0, 0, 50); cost = 15000;
- ViiRUS = spawn("script_model", ViiRUSxModz + Rise);
- ViiRUS setModel("zombie_ammocan");
- level._effect["Jesus"] = loadfx( "misc/fx_zombie_powerup_on" ); wait 1;
- playfx(level._effect["Jesus"], ViiRUS.origin);
- for(;;)
- {
- wait 0.1;
- if( distance( self.origin, ViiRUSxModz ) < PlusRep )
- {
- if(self UseButtonPressed() && self.score >= cost ){
- wait .1;
- self playsound( "cha_ching" );
- self.zombie_cost = 15000;
- self.score -= 15000;
- self GiveWeapon("zombie_ppsh_upgraded");
- self GiveWeapon("tesla_gun_upgraded");
- self GiveWeapon("ray_gun_upgraded");
- wait 30;
- }
- }
- }
- }
- HintVend11( ViiRUSxModz )
- {
- PlusRep = 20;
- while( 1 )
- {
- wait .1;
- if( distance( self.origin, ViiRUSxModz ) < PlusRep )
- {
- self iPrintlnBold( "HOLD [{+usereload}] TO PURCHASE UPGRADED RAY GUN, WUNDERWAFFE, AND PPSH 15,000 PTS." );
- wait 3;
- }
- }
- }
- CreateVender12(ViiRUSxModz)
- {
- self thread HintVend12( ViiRUSxModz );
- plusrep = 20; Rise = (0, 0, 50); cost = 10000;
- ViiRUS = spawn("script_model", ViiRUSxModz + Rise);
- ViiRUS setModel("zombie_ammocan");
- level._effect["Jesus"] = loadfx( "misc/fx_zombie_powerup_on" ); wait 1;
- playfx(level._effect["Jesus"], ViiRUS.origin);
- for(;;)
- {
- wait 0.1;
- if( distance( self.origin, ViiRUSxModz ) < PlusRep )
- {
- if(self UseButtonPressed() && self.score >= cost ){
- wait .1;
- self playsound( "cha_ching" );
- self.zombie_cost = 10000;
- self.score -= 10000;
- self GiveWeapon("zombie_mg42_upgraded");
- self GiveWeapon("zombie_thompson_upgraded");
- wait 30;
- }
- }
- }
- }
- HintVend12( ViiRUSxModz )
- {
- PlusRep = 20;
- while( 1 )
- {
- wait .1;
- if( distance( self.origin, ViiRUSxModz ) < PlusRep )
- {
- self iPrintlnBold( "HOLD [{+usereload}] TO PURCHASE UPGRADED MG42 AND THOMPSON 10,000 PTS." );
- wait 3;
- }
- }
- }
- CreateVender13(ViiRUSxModz)
- {
- self thread HintVend13( ViiRUSxModz );
- plusrep = 20; Rise = (0, 0, 50); cost = 5000;
- ViiRUS = spawn("script_model", ViiRUSxModz + Rise);
- ViiRUS setModel("zombie_ammocan");
- level._effect["Jesus"] = loadfx( "misc/fx_zombie_powerup_on" ); wait 1;
- playfx(level._effect["Jesus"], ViiRUS.origin);
- for(;;)
- {
- wait 0.1;
- if( distance( self.origin, ViiRUSxModz ) < PlusRep )
- {
- if(self UseButtonPressed() && self.score >= cost ){
- wait .1;
- self playsound( "cha_ching" );
- self.zombie_cost = 5000;
- self.score -= 5000;
- self GiveWeapon("zombie_mg42");
- self GiveWeapon("zombie_ppsh");
- wait 30;
- }
- }
- }
- }
- HintVend13( ViiRUSxModz )
- {
- PlusRep = 20;
- while( 1 )
- {
- wait .1;
- if( distance( self.origin, ViiRUSxModz ) < PlusRep )
- {
- self iPrintlnBold( "HOLD [{+usereload}] TO PURCHASE MG42 AND PPSH 5,000 PTS." );
- wait 3;
- }
- }
- }
- CreateVender14(ViiRUSxModz)
- {
- PlusRep = 40; Rise = (0, -20, 160); rise1 = (0, -40, 160); rise2 = (0, -60, 160); rise3 = (0, -80, 160); rise4 = (0, -100, 160); rise5 = (0, -120, 160); rise6 = (90, -20, 160); rise7 = (90, -40, 160);
- Rise8 = (90, -60, 160); rise9 = (90, -80, 160); rise10 = (90, -100, 160); rise11 = (90, -120, 160); rise12 = (180, -20, 160); rise13 = (180, -40, 160); rise14 = (180, -60, 160); rise15 = (180, -80, 160); rise16 = (180, -100, 160); rise17 = (180, -120, 160);
- ViiRUS = spawn("script_model", ViiRUSxModz + Rise);
- ViiRUS setModel("zombie_zapper_cagelight_green");
- ViiRUS1 = spawn("script_model", ViiRUSxModz + Rise1);
- ViiRUS1 setModel("zombie_zapper_cagelight_green");
- ViiRUS2 = spawn("script_model", ViiRUSxModz + Rise2);
- ViiRUS2 setModel("zombie_zapper_cagelight_green");
- ViiRUS3 = spawn("script_model", ViiRUSxModz + Rise3);
- ViiRUS3 setModel("zombie_zapper_cagelight_green");
- ViiRUS4 = spawn("script_model", ViiRUSxModz + Rise4);
- ViiRUS4 setModel("zombie_zapper_cagelight_green");
- wait .1;
- ViiRUS5 = spawn("script_model", ViiRUSxModz + Rise5);
- ViiRUS5 setModel("zombie_zapper_cagelight_green");
- ViiRUS6 = spawn("script_model", ViiRUSxModz + Rise6);
- ViiRUS6 setModel("zombie_zapper_cagelight_green");
- ViiRUS7 = spawn("script_model", ViiRUSxModz + Rise7);
- ViiRUS7 setModel("zombie_zapper_cagelight_green");
- ViiRUS8 = spawn("script_model", ViiRUSxModz + Rise8);
- ViiRUS8 setModel("zombie_zapper_cagelight_green");
- ViiRUS9 = spawn("script_model", ViiRUSxModz + Rise9);
- ViiRUS9 setModel("zombie_zapper_cagelight_green");
- ViiRUS10 = spawn("script_model", ViiRUSxModz + Rise10);
- ViiRUS10 setModel("zombie_zapper_cagelight_green");
- ViiRUS11 = spawn("script_model", ViiRUSxModz + Rise11);
- ViiRUS11 setModel("zombie_zapper_cagelight_green");
- wait .1;
- ViiRUS12 = spawn("script_model", ViiRUSxModz + Rise12);
- ViiRUS12 setModel("zombie_zapper_cagelight_green");
- ViiRUS13 = spawn("script_model", ViiRUSxModz + Rise13);
- ViiRUS13 setModel("zombie_zapper_cagelight_green");
- ViiRUS14 = spawn("script_model", ViiRUSxModz + Rise14);
- ViiRUS14 setModel("zombie_zapper_cagelight_green");
- ViiRUS15 = spawn("script_model", ViiRUSxModz + Rise15);
- ViiRUS15 setModel("zombie_zapper_cagelight_green");
- ViiRUS16 = spawn("script_model", ViiRUSxModz + Rise16);
- ViiRUS16 setModel("zombie_zapper_cagelight_green");
- ViiRUS17 = spawn("script_model", ViiRUSxModz + Rise17);
- ViiRUS17 setModel("zombie_zapper_cagelight_green");
- }
- CreateVender15(ViiRUSxModz)
- {
- PlusRep = 40; Rise = (0, -140, 160); rise1 = (0, -160, 160); rise2 = (0, -180, 160); rise3 = (0, -200, 160); rise4 = (0, -220, 160); rise5 = (90, -140, 160); rise6 = (90, -160, 160); rise7 = (90, -180, 160);
- Rise8 = (90, -200, 160); rise9 = (90, -220, 160); rise10 = (180, -140, 160); rise11 = (180, -160, 160); rise12 = (180, -180, 160); rise13 = (180, -200, 160); rise14 = (180, -220, 160);
- ViiRUS = spawn("script_model", ViiRUSxModz + Rise);
- ViiRUS setModel("zombie_zapper_cagelight_green");
- ViiRUS1 = spawn("script_model", ViiRUSxModz + Rise1);
- ViiRUS1 setModel("zombie_zapper_cagelight_green");
- ViiRUS2 = spawn("script_model", ViiRUSxModz + Rise2);
- ViiRUS2 setModel("zombie_zapper_cagelight_green");
- ViiRUS3 = spawn("script_model", ViiRUSxModz + Rise3);
- ViiRUS3 setModel("zombie_zapper_cagelight_green");
- ViiRUS4 = spawn("script_model", ViiRUSxModz + Rise4);
- ViiRUS4 setModel("zombie_zapper_cagelight_green");
- ViiRUS5 = spawn("script_model", ViiRUSxModz + Rise5);
- ViiRUS5 setModel("zombie_zapper_cagelight_green");
- ViiRUS6 = spawn("script_model", ViiRUSxModz + Rise6);
- ViiRUS6 setModel("zombie_zapper_cagelight_green");
- wait .1;
- ViiRUS7 = spawn("script_model", ViiRUSxModz + Rise7);
- ViiRUS7 setModel("zombie_zapper_cagelight_green");
- ViiRUS8 = spawn("script_model", ViiRUSxModz + Rise8);
- ViiRUS8 setModel("zombie_zapper_cagelight_green");
- ViiRUS9 = spawn("script_model", ViiRUSxModz + Rise9);
- ViiRUS9 setModel("zombie_zapper_cagelight_green");
- ViiRUS10 = spawn("script_model", ViiRUSxModz + Rise10);
- ViiRUS10 setModel("zombie_zapper_cagelight_green");
- ViiRUS11 = spawn("script_model", ViiRUSxModz + Rise11);
- ViiRUS11 setModel("zombie_zapper_cagelight_green");
- ViiRUS12 = spawn("script_model", ViiRUSxModz + Rise12);
- ViiRUS12 setModel("zombie_zapper_cagelight_green");
- ViiRUS13 = spawn("script_model", ViiRUSxModz + Rise13);
- ViiRUS13 setModel("zombie_zapper_cagelight_green");
- ViiRUS14 = spawn("script_model", ViiRUSxModz + Rise14);
- ViiRUS14 setModel("zombie_zapper_cagelight_green");
- }
- CreateVender16(ViiRUSxModz)
- {
- PlusRep = 40; Rise = (0, -240, 160); rise1 = (0, -260, 160); rise2 = (0, -280, 160); rise3 = (0, -300, 160); rise4 = (0, -240, 160); rise5 = (90, -240, 160); rise6 = (90, -260, 160); rise7 = (90, -280, 160);
- Rise8 = (90, -300, 160); rise9 = (90, -240, 160); rise10 = (180, -240, 160); rise11 = (180, -260, 160); rise12 = (180, -280, 160); rise13 = (180, -300, 160); rise14 = (180, -240, 160);
- ViiRUS = spawn("script_model", ViiRUSxModz + Rise);
- ViiRUS setModel("zombie_zapper_cagelight_green");
- ViiRUS1 = spawn("script_model", ViiRUSxModz + Rise1);
- ViiRUS1 setModel("zombie_zapper_cagelight_green");
- ViiRUS2 = spawn("script_model", ViiRUSxModz + Rise2);
- ViiRUS2 setModel("zombie_zapper_cagelight_green");
- ViiRUS3 = spawn("script_model", ViiRUSxModz + Rise3);
- ViiRUS3 setModel("zombie_zapper_cagelight_green");
- ViiRUS4 = spawn("script_model", ViiRUSxModz + Rise4);
- ViiRUS4 setModel("zombie_zapper_cagelight_green");
- ViiRUS5 = spawn("script_model", ViiRUSxModz + Rise5);
- ViiRUS5 setModel("zombie_zapper_cagelight_green");
- ViiRUS6 = spawn("script_model", ViiRUSxModz + Rise6);
- ViiRUS6 setModel("zombie_zapper_cagelight_green");
- wait .1;
- ViiRUS7 = spawn("script_model", ViiRUSxModz + Rise7);
- ViiRUS7 setModel("zombie_zapper_cagelight_green");
- ViiRUS8 = spawn("script_model", ViiRUSxModz + Rise8);
- ViiRUS8 setModel("zombie_zapper_cagelight_green");
- ViiRUS9 = spawn("script_model", ViiRUSxModz + Rise9);
- ViiRUS9 setModel("zombie_zapper_cagelight_green");
- ViiRUS10 = spawn("script_model", ViiRUSxModz + Rise10);
- ViiRUS10 setModel("zombie_zapper_cagelight_green");
- ViiRUS11 = spawn("script_model", ViiRUSxModz + Rise11);
- ViiRUS11 setModel("zombie_zapper_cagelight_green");
- ViiRUS12 = spawn("script_model", ViiRUSxModz + Rise12);
- ViiRUS12 setModel("zombie_zapper_cagelight_green");
- ViiRUS13 = spawn("script_model", ViiRUSxModz + Rise13);
- ViiRUS13 setModel("zombie_zapper_cagelight_green");
- ViiRUS14 = spawn("script_model", ViiRUSxModz + Rise14);
- ViiRUS14 setModel("zombie_zapper_cagelight_green");
- }
- CreateVender17(ViiRUSxModz)
- {
- self endon ( "disconnect" );
- self endon ( "death" );
- self thread HintVend17( ViiRUSxModz );
- PlusRep = 40; Rise = (0, 0, 0); cost =100;
- ViiRUS = spawn("script_model", ViiRUSxModz + Rise);
- ViiRUS setModel("zombie_vending_jugg_on");
- level._effect["Jesus"] = loadfx( "misc/fx_zombie_powerup_on" ); wait 1;
- level._effect["Jesus7s"] = loadfx ("misc/fx_ui_airstrike_smk_yellow");
- level._effect["Jesus7s1"] = loadfx("misc/fx_black_box");
- playfx(level._effect["Jesus7s1"], ViiRUS.origin); wait 1;
- playfx(level._effect["Jesus7s"], ViiRUS.origin); wait 1;
- playfx(level._effect["Jesus"], ViiRUS.origin);
- for(;;)
- {
- wait 0.1;
- if( distance( self.origin, ViiRUSxModz ) < PlusRep )
- {
- if(self UseButtonPressed() && self.score >= cost ){
- self setblur( 4, 0.1 );
- wait .5;
- self.zombie_cost = 1000;
- self.score -= 1000;
- wait 5;
- }
- }
- }
- }
- zombie_devgui_give_perk( perk )
- {
- vending_triggers = GetEntArray( "zombie_vending", "targetname" );
- if ( vending_triggers.size < 1 )
- {
- iPrintlnBold( "Map does not contain any perks machines" );
- return;
- }
- for ( i = 0; i < vending_triggers.size; i++ )
- {
- if ( vending_triggers[i].script_noteworthy == perk )
- {
- vending_triggers[i] notify( "trigger", self );
- return;
- }
- }
- iPrintlnBold( "Map does not contain perks machine with perk: " + perk );
- }
- HintVend17( ViiRUSxModz )
- {
- PlusRep = 40;
- while( 1 )
- {
- wait .1;
- if( distance( self.origin, ViiRUSxModz ) < PlusRep )
- {
- self iPrintlnBold( "HOLD [{+usereload}] TO PURCHASE JUGGS 1,000 PTS." );
- wait 3;
- }
- }
- }
- CreateVender18(ViiRUSxModz)
- {
- self endon ( "disconnect" );
- self endon ( "death" );
- self thread HintVend18( ViiRUSxModz );
- PlusRep = 40; Rise = (0, 0, 40); quake = 125; nuke = 2000; munk = 200; cost = 20;
- ViiRUS = spawn("script_model", ViiRUSxModz + Rise);
- ViiRUS setModel("zombie_skull");
- level._effect["Jesus"] = loadfx( "misc/fx_zombie_powerup_on" ); wait 1;
- level._effect["Jesus7s1"] = loadfx("misc/fx_zombie_electric_trap");
- level._effect["Jesus7s2"] = loadfx("maps/zombie/fx_zombie_wire_spark");
- level._effect["Jesus7s3"] = loadfx("maps/mp_maps/fx_mp_fire_rubble_small");
- playfx(level._effect["Jesus7s3"], ViiRUS.origin); wait 1;
- playfx(level._effect["Jesus7s2"], ViiRUS.origin); wait 1;
- playfx(level._effect["Jesus7s1"], ViiRUS.origin); wait 1;
- playfx(level._effect["Jesus"], ViiRUS.origin);
- for(;;)
- {
- wait 0.1;
- if( distance( self.origin, ViiRUSxModz ) < PlusRep )
- {
- if(self UseButtonPressed() && self.score >= cost ){
- level.zombie_vars["zombie_insta_kill"] = 1;
- self.score -= 2000;
- self iPrintlnBold( "^260 SECOND INSTAKILL ACTIVATED" );
- self playsound( "cha_ching" );
- self thread start_timer();
- self thread insta();
- wait 60;
- self playsound( "packa_weap_ready" );
- level.zombie_vars["zombie_insta_kill"] = 0;
- }
- }
- }
- }
- HintVend18( ViiRUSxModz )
- {
- PlusRep = 40;
- while( 1 )
- {
- wait .1;
- if( distance( self.origin, ViiRUSxModz ) < PlusRep )
- {
- self iPrintlnBold( "[{+usereload}] ^22000 ^0Points for ^160 SECOND INSTAKILL [{+usereload}]" );
- wait 3;
- }
- }
- }
- insta()
- {
- self endon ( "noinsta" );
- self endon ( "death" );
- self endon ( "disconnect" );
- shader_inst = "specialty_instakill_zombies";
- hud9 = newHudElem();
- hud9.foreground = true;
- hud9.sort = 1;
- hud9.hidewheninmenu = false;
- hud9.alignX = "left";
- hud9.alignY = "top";
- hud9.horzAlign = "left";
- hud9.vertAlign = "top";
- hud9.x = 105;
- hud9.y = 45;
- hud9.alpha = 1;
- hud9.fontscale = 1.25;
- hud9.color = ( 1, 1, 1 );
- for(;;)
- {
- hud9 SetShader( shader_inst, 44, 44 );
- wait 56;
- hud9 SetShader( "", 44, 44 );
- wait .5;
- hud9 SetShader( shader_inst, 44, 44 );
- wait .5;
- hud9 SetShader( "", 44, 44 );
- wait .5;
- hud9 SetShader( shader_inst, 44, 44 );
- wait .5;
- hud9 SetShader( "", 44, 44 );
- wait .5;
- hud9 SetShader( shader_inst, 44, 44 );
- wait .5;
- hud9 SetShader( "", 44, 44 );
- wait .5;
- hud9 SetShader( shader_inst, 44, 44 );
- wait .5;
- hud9 SetShader( "", 44, 44 );
- wait .5;
- hud9 SetShader( shader_inst, 44, 44 );
- wait .5;
- hud9 SetShader( "", 44, 44 );
- wait .1;
- self notify ( "noinsta" );
- }
- }
- start_timer( time, stop_notify )
- {
- self notify ("stop_prev_timer");
- self endon ("stop_prev_timer");
- if( !isDefined( self.stopwatch_elem ) )
- {
- self.stopwatch_elem = newHudElem();
- self.stopwatch_elem.horzAlign = "left";
- self.stopwatch_elem.vertAlign = "top";
- self.stopwatch_elem.alignX = "left";
- self.stopwatch_elem.alignY = "top";
- self.stopwatch_elem.x = 10;
- self.stopwatch_elem.y = 20;
- self.stopwatch_elem.alpha = 0;
- self.stopwatch_elem.sort = 2;
- self.stopwatch_elem_glass = newHudElem();
- self.stopwatch_elem_glass.horzAlign = "left";
- self.stopwatch_elem_glass.vertAlign = "top";
- self.stopwatch_elem_glass.alignX = "left";
- self.stopwatch_elem_glass.alignY = "top";
- self.stopwatch_elem_glass.x = 10;
- self.stopwatch_elem_glass.y = 20;
- self.stopwatch_elem_glass.alpha = 0;
- self.stopwatch_elem_glass.sort = 3;
- self.stopwatch_elem_glass setShader( "zombie_stopwatch_glass", level.stopwatch_length_width, level.stopwatch_length_width );
- }
- if( isDefined( stop_notify ) )
- {
- self thread wait_for_stop_notify( stop_notify );
- }
- if( time > 60 )
- {
- time = 60;
- }
- self.stopwatch_elem setClock( time, 60, "zombie_stopwatch", level.stopwatch_length_width, level.stopwatch_length_width );
- self.stopwatch_elem.alpha = 1;
- self.stopwatch_elem_glass.alpha = 1;
- wait( time );
- self notify( "countdown_finished" );
- wait( 1 );
- self.stopwatch_elem.alpha = 0;
- self.stopwatch_elem_glass.alpha = 0;
- }
- wait_for_stop_notify( stop_notify )
- {
- self endon ("stop_prev_timer");
- self endon( "countdown_finished" );
- self waittill( stop_notify );
- self.stopwatch_elem.alpha = 0;
- self.stopwatch_elem_glass.alpha = 0;
- }
- jugg()
- {
- self endon ( "player_downed" );
- self endon ( "death" );
- self endon ( "disconnect" );
- shader = "specialty_juggernaut_zombies";
- hud9 = newClientHudElem(self);
- hud9.foreground = true;
- hud9.sort = 1;
- hud9.hidewheninmenu = false;
- hud9.alignX = "left";
- hud9.alignY = "top";
- hud9.horzAlign = "left";
- hud9.vertAlign = "top";
- hud9.x = 20;
- hud9.y = 300;
- hud9.alpha = 1;
- hud9.fontscale = 1.25;
- hud9.color = ( 1, 1, 1 );
- for(;;)
- {
- hud9 SetShader( shader, 44, 44 );
- }
- }
- CreateVender19(ViiRUSxModz)
- {
- self endon ( "disconnect" );
- self endon ( "death" );
- self thread HintVend19( ViiRUSxModz );
- PlusRep = 20; Rise = (0, 0, 70); nuke = 2000; cost = 30000;
- ViiRUS = spawn("script_model", ViiRUSxModz + Rise);
- ViiRUS setModel("zombie_ammocan");
- level._effect["Jesus"] = loadfx( "misc/fx_zombie_powerup_on" ); wait 1;
- level._effect["Jesus7s1"] = loadfx("misc/fx_zombie_electric_trap");
- level._effect["Jesus7s2"] = loadfx("maps/zombie/fx_zombie_wire_spark");
- level._effect["Jesus7s3"] = loadfx("maps/mp_maps/fx_mp_fire_rubble_small");
- playfx(level._effect["Jesus7s3"], ViiRUS.origin); wait 1;
- playfx(level._effect["Jesus7s2"], ViiRUS.origin); wait 1;
- playfx(level._effect["Jesus7s1"], ViiRUS.origin); wait 1;
- playfx(level._effect["Jesus"], ViiRUS.origin);
- for(;;)
- {
- wait .1;
- if( distance( self.origin, ViiRUSxModz ) < PlusRep )
- {
- if(self UseButtonPressed() && self.score >= cost ){
- self.zombie_cost = 30000;
- self.score -= 30000;
- self.score_total -=30000;
- self thread GiveAll();
- self playsound("cha_ching");
- wait .3;
- self playsound("laugh_child");
- wait 30;
- }
- }
- }
- }
- HintVend19( ViiRUSxModz )
- {
- PlusRep = 20;
- while( 1 )
- {
- wait .1;
- if( distance( self.origin, ViiRUSxModz ) < PlusRep )
- {
- self iPrintlnBold( "HOLD [{+usereload}] TO PURCHASE ^1ALL GUNS ^730,000 PTS." );
- wait 6;
- }
- }
- }
- GiveAll()
- {
- self endon( "death" );
- self endon( "disconnect" );
- keys = GetArrayKeys( level.zombie_weapons );
- for( i = 0; i < keys.size; i++ )
- {
- self GiveWeapon( keys[i], 0 );
- wait 0.02;
- }
- }
- Score()
- {
- self endon ( "disconnect" );
- self endon ( "death" );
- while(1)
- {
- if( level.round_number >= 1 )
- {
- self.score += 19500;
- self.score_total +=19500;
- wait 1;
- return;
- }
- }
- }
- CreateVender20(ViiRUSxModz)
- {
- self thread HintVend20( ViiRUSxModz );
- openRoll = 180;
- openTime = 0.1;
- plusrep = 40; Rise = (-60, 110, 0); rise1 = (-90, 110, 0); rise2 = (-120, 110, 0); rise3 = (-150, 110, 0); rise4 = (0, 0, 0); munk = 300;
- ViiRUS = spawn("script_model", ViiRUSxModz + Rise);
- ViiRUS setModel("zombie_vending_jugg_on");
- ViiRUS setcontents(1);
- ViiRUS1 = spawn("script_model", ViiRUSxModz + Rise1);
- ViiRUS1 setModel("zombie_vending_jugg_on");
- ViiRUS1 setcontents(1);
- ViiRUS2 = spawn("script_model", ViiRUSxModz + Rise2);
- ViiRUS2 setModel("zombie_vending_jugg_on");
- ViiRUS2 setcontents(1);
- ViiRUS3 = spawn("script_model", ViiRUSxModz + Rise3);
- ViiRUS3 setModel("zombie_vending_jugg_on");
- ViiRUS3 setcontents(1);
- ViiRUS4 = spawn("script_model", ViiRUSxModz + Rise4);
- ViiRUS4 setModel("zombie_zapper_cagelight_red");
- ViiRUs4 RotateRoll( 180, openTime, ( openTime * 0.1 ) );
- for(;;)
- {
- wait .1;
- if( distance( self.origin, ViiRUSxModz ) < PlusRep)
- {
- if(self UseButtonPressed()){
- ViiRUS moveto (ViiRUS.origin + (105,0,0),2);
- ViiRUS1 moveto (ViiRUS1.origin + (105,0,0),2);
- ViiRUS2 moveto (ViiRUS2.origin + (105,0,0),2);
- ViiRUS3 moveto (ViiRUS3.origin + (105,0,0),2);
- ViiRUS4 setModel("zombie_zapper_cagelight_green");
- self playsound("door_slide_open");
- wait 3;
- }
- else if( distance( self.origin, ViiRUSxModz ) < PlusRep)
- {
- if(self MeleeButtonPressed()){
- ViiRUS moveto (ViiRUS.origin + (-105,0,0),2);
- ViiRUS1 moveto (ViiRUS1.origin + (-105,0,0),2);
- ViiRUS2 moveto (ViiRUS2.origin + (-105,0,0),2);
- ViiRUS3 moveto (ViiRUS3.origin + (-105,0,0),2);
- ViiRUS4 setModel("zombie_zapper_cagelight_red");
- self playsound("door_slide_open");
- wait 3;
- }
- wait .1;
- }
- }
- }
- }
- HintVend20( ViiRUSxModz )
- {
- PlusRep = 20;
- while( 1 )
- {
- wait .1;
- if( distance( self.origin, ViiRUSxModz ) < PlusRep )
- {
- self iPrintlnBold( "HOLD [{+usereload}] TO OPEN OR CLOSE DOOR" );
- wait 6;
- }
- }
- }
- CreateVender21(ViiRUSxModz)
- {
- self endon ( "disconnect" );
- while( 1 )
- {
- munk = 200;
- zombies = GetAiSpeciesArray( "axis", "all" );
- for (i = 0; i < zombies.size; i++)
- if( distance( zombies[i].origin, ViiRUSxModz ) < munk )
- zombies[i] dodamage(zombies[i].health + 666, zombies[i].origin);
- wait .1;
- }
- }
- zombieskull()
- {
- self endon ( "disconnect" );
- self endon ( "death" );
- while(1)
- {
- zombies = getaiarray("axis");
- for ( i = 0; i < zombies.size; i++ )
- zombies[i] attach("zombie_skull", "J_Eyeball_LE", true);
- wait .1;
- zombies[i] attach("zombie_bomb", "J_Eyeball_LE", true);
- wait .1;
- zombies[i] attach("zombie_carpenter", "J_Eyeball_LE", true);
- wait .1;
- zombies[i] attach("zombie_ammocan", "J_Eyeball_LE", true);
- wait .1;
- zombies[i] attach("defaultvehicle", "J_Eyeball_LE", true);
- wait .1;
- zombies[i] attach("zombie_treasure_box", "J_Eyeball_LE", true);
- wait .1;
- zombies[i] attach("zombie_monkey_bomb", "J_Eyeball_LE", true);
- wait .1;
- }
- }
- toggle_spawnpu()
- {
- if(self.spawnpu == false)
- {
- self thread spawnpu();self.spawnpu = true;self iPrintlnBold( "^2Spawn PowerUp's On" );
- }
- else
- {
- self notify("spawnpuDone");self.spawnpu = false;self iPrintlnBold( "^1Spawn PowerUp's Off" );
- }
- }
- spawnpu()
- {
- self endon ( "disconnect" );self endon ( "spawnpuDone" );
- for(;;)
- {
- self waittill( "weapon_change" );player = get_players()[0]; direction = player GetPlayerAngles();direction_vec = AnglesToForward( direction );eye = player 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 );level.zombie_devgui_power = 1;level.zombie_vars["zombie_drop_item"] = 1;level.powerup_drop_count = 0;level thread maps\_zombiemode_powerups::powerup_drop( trace["position"] );
- }
- wait 2;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement