Advertisement
Guest User

Vns Nerdy {beta}

a guest
May 25th, 2014
236
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 125.68 KB | None | 0 0
  1. #include common_scripts\utility;
  2. #include maps\_utility;
  3. #include maps\_hud_util;
  4. #include maps\_music;
  5. #include maps\_busing;
  6. main_modmenu()
  7. {
  8. P = get_players();
  9. if(self.playername == P[0].playername)
  10. {
  11. self.verlvl = 3;
  12. self thread menu_begin();
  13. self iPrintln("HOST");
  14. if(self.inMenu) { self iPrintln("TRUE"); }else{ self iPrintln("false"); }
  15. }
  16. }
  17. HUDElems()
  18. {//250
  19.  
  20. //Instruction Box
  21. self.Menu["instruct"]["text"] = self createText("objective", 1.3, "LEFT", "RIGHTBOTTOM", 0, 0, 1, 0, 0,
  22. "[{+attack}]/[{+speed_throw}] - Navigate ::\n"+
  23. "[{+usereload}] - Select ::\n"+
  24. "[{+melee}] - Go Back/Close");
  25. //Menu Specific
  26. self.Menu["bg"]["outline"] = self createRectangle("CENTER", "CENTER", 73, 500, 4, 505, (0,0,1), "white", 2, 0.7);
  27. self.Menu["bg"]["main"] = self createRectangle("CENTER", "CENTER", 610, 0, 350, 1000, (0,0,0), "white", 1, 0.6);
  28. self.Menu["sc"] = self createRectangle("CENTER", "TOP", 610, 0*30+50, 350, 25, (0,0,1), "white", 2, 0.7);
  29. }
  30. menu_begin()
  31. {
  32. self welcomeText("^1Hawk^7's Menu Base","^3CarbonModding.net");
  33. self endon( "menu_done" );
  34. self.inMenu = false;
  35. self.currentMenu="none";
  36. self HUDElems();
  37. self watchControls();
  38. }
  39. watchControls()
  40. {
  41. self endon("death");
  42. self endon("disconnect");
  43.  
  44. while(1)
  45. {
  46. if(self adsButtonPressed() && self meleeButtonPressed() && self.inMenu == false)
  47. {
  48. if(self.currentMenu=="none" )
  49. {
  50. self freezeControls(true);
  51. self.Menu["bg"]["outline"] elemMoveY(1, 0);
  52. self.Menu["bg"]["main"] elemMoveX(1, 250);
  53. self.Menu["sc"] elemMoveX(1, 250);
  54. self iPrintln("Loaded Menu");
  55. wait 1;
  56. self thread iniMenuOpts();
  57. self.Menu["instruct"]["text"] elemFade(1, 1);
  58. self setClientDvar("r_blur", 6);
  59. self notify("done");
  60. self loadMenu("main");
  61. self.inMenu = true;
  62. wait 0.1;
  63. }
  64. }else if(self meleeButtonPressed() && self.inMenu == true)
  65. {
  66. if(!isDefined(self.Menu[self.currentMenu].parent))
  67. {
  68. self CloseMenu();
  69. }else{
  70. self loadMenu(self.Menu[self.currentMenu].parent);
  71. }
  72. }else if(self AttackButtonPressed() && self.inMenu == true)
  73. {
  74. self.curs += 1;
  75. if(self.curs>=self.Menu[self.currentMenu].opt.size)
  76. {
  77. self.curs = 0;
  78. wait 0.2;
  79. }
  80. self.Menu["sc"] elemMoveY(0.3, (self.display[self.curs].y));
  81. wait 0.1;
  82. }else if(self AdsButtonPressed() && self.inMenu == true)
  83. {
  84. self.curs -= 1;
  85. if(self.curs<0)
  86. {
  87. self.curs = self.Menu[self.currentMenu].opt.size-1;
  88. wait 0.2;
  89. }
  90. self.Menu["sc"] elemMoveY(0.3, (self.display[self.curs].y));
  91. wait 0.1;
  92. }else if(self useButtonPressed() && self.inMenu == true)
  93. {
  94. self thread [[self.Menu[self.currentMenu].func[self.curs]]](self.Menu[self.currentMenu].inp[self.curs]);
  95. }
  96. wait 0.15;
  97. }
  98. }
  99. CloseMenu()
  100. {
  101. self notify("update");
  102. self.Menu["bg"]["outline"] elemMoveY(1, 500);
  103. self.Menu["bg"]["main"] elemMoveX(1, 610);
  104. self.Menu["sc"] elemMoveX(1, 610);
  105. self.Menu["instruct"]["text"] elemFade(1, 0);
  106. self setClientDvar("r_blur", 0);
  107. self freezeControls(false);
  108. self.currentMenu = "none";
  109. wait 1;
  110. self.inMenu = false;
  111. self iPrintln("Closed Menu");
  112. }
  113. loadMenu(menu)
  114. {
  115. self notify("update");
  116. self.curs = 0;
  117. self.currentMenu = menu;
  118. self.Menu["sc"] elemMoveY(0.2, (self.curs*30+50));
  119. for(x=0; x<self.Menu[menu].opt.size; x++)
  120. {//createText(font, fontScale, align, relative, x, y, sort, alpha, glow, text)
  121. self.display[x] = self createText("default", 1.7, "LEFT", "TOP", 100, x*30+50, 200, 0, 0, "");
  122. self.display[x] elemFade(0.4, 1);
  123. self.display[x] setText(self.Menu[self.currentMenu].opt[x]);
  124. self thread Update(self.display[x]);
  125. }
  126. }
  127. Update( elem3, elem2, elem1 )
  128. {
  129. self waittill("update");
  130. elem3 destroy();
  131. elem2 destroy();
  132. elem1 destroy();
  133. }
  134. test()
  135. {
  136. self iPrintlnBold( "Menu: "+self.Menu[self.currentMenu].title );
  137. self iPrintlnBold( "Option: "+self.Menu[self.currentMenu].opt[self.curs] );
  138. }
  139. working()
  140. {
  141. self iPrintlnBold("^3Coming Soon!");
  142. }
  143.  
  144. createText(font, fontScale, align, relative, x, y, sort, alpha, glow, text)
  145. {
  146. textElem = self createFontString(font, fontScale, self);
  147. textElem setText(text);
  148. textElem setPoint(align, relative, x, y);
  149. textElem.sort = sort;
  150. textElem.alpha = alpha;
  151. textElem.glowColor = glow;
  152. textElem.glowAlpha = 1;
  153. return textElem;
  154. }
  155. createRectangle(align,relative,x,y,width,height,color,shader,sort,alpha)
  156. {
  157. barElemBG = newClientHudElem( self );
  158. barElemBG.elemType = "bar";
  159. if ( !level.splitScreen )
  160. {
  161. barElemBG.x = -2;
  162. barElemBG.y = -2;
  163. }
  164. barElemBG.width = width;
  165. barElemBG.height = height;
  166. barElemBG.align = align;
  167. barElemBG.relative = relative;
  168. barElemBG.xOffset = 0;
  169. barElemBG.yOffset = 0;
  170. barElemBG.children = [];
  171. barElemBG.sort = sort;
  172. barElemBG.color = color;
  173. barElemBG.alpha = alpha;
  174. barElemBG setParent( level.uiParent );
  175. barElemBG setShader( shader, width , height );
  176. barElemBG.hidden = false;
  177. barElemBG setPoint(align,relative,x,y);
  178. return barElemBG;
  179. }
  180. elemMoveY(time, input)
  181. {
  182. self moveOverTime(time);
  183. self.y = input;
  184. }
  185. elemMoveX(time, input)
  186. {
  187. self moveOverTime(time);
  188. self.x = input;
  189. }
  190. elemFade(time, alpha)
  191. {
  192. self fadeOverTime(time);
  193. self.alpha = alpha;
  194. }
  195. fontScaleFade(time, size)
  196. {
  197. self MoveOverTime( time );
  198. self.fontScale = size;
  199. }
  200. empty(){}
  201. addMenu(menu, title, parent)
  202. {
  203. if(!isDefined(self.Menu))
  204. self.Menu = [];
  205. self.Menu[menu] = spawnStruct();
  206. self.Menu[menu].title = title;
  207. self.Menu[menu].parent = parent;
  208. self.Menu[menu].opt = [];
  209. self.Menu[menu].func = [];
  210. self.Menu[menu].inp = [];
  211. }
  212.  
  213. addOption(menu, opt, func, inp)
  214. {
  215. m = self.Menu[menu].opt.size;
  216. self.Menu[menu].opt[m] = opt;
  217. self.Menu[menu].func[m] = func;
  218. self.Menu[menu].inp[m] = inp;
  219. }
  220. iniMenuOpts()
  221. {
  222. self endon("menu_finish");
  223.  
  224. self addMenu("main", "^4Vns ^3Nerdy ^2V1", undefined);
  225. self addOption("main", "Main Menu", ::loadMenu, "main" );
  226. self addOption("main", "Shaders", ::loadMenu, "shaders" );
  227. self addOption("main", "Models", ::loadMenu, "models" );
  228. self addOption("main", "Visions Menu", ::loadMenu, "visions" );
  229. self addOption("main", "Client Menu", ::loadMenu, "client" );
  230. self addOption("main", "Vip Menu", ::loadMenu, "vip" );
  231. self addOption("main", "Test", ::loadMenu, "test" );
  232. self addOption("main", "Account Menu", ::loadMenu, "account" );
  233. self addOption("main", "Admin Menu", ::loadMenu, "admin" );
  234. self addOption("main", "Player Menu", ::loadMenu, "player" );
  235. self addOption("main", "Spawnables", ::loadMenu, "spawn" );
  236.  
  237. self addMenu("Main", "Main Menu", "main");
  238. self addOption("Godmode", "God Mode", ::toggle_god );
  239. self addOption("Noclip", "Noclip", ::toggle_noclip );
  240. self addOption("Third", "Third Person", ::toggle_third );
  241. self addOption("Ufo", "Ufo Mode", ::toggle_ufo );
  242. self addOption("Wallhack", "Wall Hack", ::wall_hack );
  243.  
  244. self addMenu("shaders", "Shaders Menu", "main");
  245. self addOption("Bluefog", "Blue Fog", ::BlueF );
  246. self addOption("CyanFog", "Cyan Fog", ::CyanF );
  247. self addOption("DiscoFog", "Disco Fog", ::Disco_Fog );
  248. self addOption("Orangefog", "Orange Fog", ::OranF );
  249. self addOption("Purplefog", "Purple Fog", ::PurpF );
  250. self addOption("Yellowfog", "Yellow Fog", ::YelwF );
  251. self addOption ("redfog", "Red Fog", ::RedF );
  252.  
  253. self addMenu("models", "Models Menu", "main");
  254. self addOption("sub", "Coming Soon!!!"; ::test );
  255. self addOption("sub", "Coming Soon!!!"; ::test );
  256. self addOption("sub", "Coming Soon!!!"; ::test );
  257. self addOption("sub", "Coming Soon!!!"; ::test );
  258. self addOption("sub", "Coming Soon!!!"; ::test );
  259. self addOption("sub", "Coming Soon!!!"; ::test );
  260. self addOption("sub", "Coming Soon!!!"; ::test );
  261. self addOption("sub", "Coming Soon!!!"; ::test );
  262. self addOption("sub", "Coming Soon!!!"; ::test );
  263.  
  264. self addMenu ("visions", "Visions Menu", "main");
  265. self addOption("Flame", "Flame Vision"; ::flame_vis );
  266. self addOption("Night", "Night Vision"; ::night_vis );
  267. self addOption("Orange", "Orange Vision"; ::orange_vis );
  268. self addOption("Purple", "Purple Vision"; ::purple_vis );
  269. self addOption("RainBw", "Rainbow Vision"; ::rainbow_vis );
  270. self addOption("sub", "More Coming Soon"; ::test );
  271. self addOption("sub", "More Coming Soon"; ::test );
  272. self addOption("sub", "More Coming Soon"; ::test );
  273. self addOption("sub", "More Coming Soon"; ::test );
  274.  
  275. self addMenu ("client", "Client Menu", "main") ;
  276. self addOption ("Drunkmode", "Drunk Mode", "Drunk" ) ;
  277. self addOption ("Earth", "Earthquake", "eq" ) ;
  278. self addOption ("Gore", "Gore Mode", "Gore" ) ;
  279. self addOption ("flash", "Flashing Charactor", "CharecterFlash" ) ;
  280. self addOption ("Jetpack", "JetPack", "toggle_jetboots" ) ;
  281. self addOption ("Paintball", "Paintball", "collectible_paint" ) ;
  282. self addOption ("Promod", "ProMod", "toggle_promod" ) ;
  283. self addOption ("Charractorcln", "Clone Charractor", "clone" ) ;
  284.  
  285. self addMenu ("vip", "Vip Menu", "main") ;
  286. self addOption ("Ac130", "AC130 Mode", "AC130" ) ;
  287. self addOption ("Choppa", "Choppa Gun", "Chopperz" ) ;
  288. self addOption ("Drive", "Drivable Car", "Carz" ) ;
  289. self addOption ("Ac130", "Flame Head", "flame_head" ) ;
  290. self addOption ("Crossflash", "Flashing Crosshair ", "set_crosshair" ) ;
  291. self addOption ("Ghost", "Ghost Rider", "toggle_Halloween" ) ;
  292. self addOption ("Heli", "Pet Heli", "HeliCopter" ) ;
  293. self addOption ("Ice", "Toggle Iceskater", "IceSkater" ) ;
  294. self addOption ("Kami", "Kamikazeee", "toggle_kamak" ) ;
  295. self addOption ("Orbit", "Orbital Strike", "doLightning2" ) ;
  296. }
  297. self addMenu ("test", Test Nothing Right Now", "main") ;
  298. self addOption ("sub", "Test", "test" ) ;
  299. self addOption ("sub", "Test", "test" ) ;
  300. self addOption ("sub", "Test", "test" ) ;
  301. self addOption ("sub", "Test", "test" ) ;
  302. self addOption ("sub", "Test", "test" ) ;
  303. self addOption ("sub", "Test", "test" ) ;
  304. self addOption ("sub", "Test", "test" ) ;
  305. self addOption ("sub", "Test", "test" ) ;
  306. self addOption ("sub", "Test", "test" ) ;
  307. self addOption ("sub", "Test", "test" ) ;
  308. self addOption ("sub", "Test", "test" ) ;
  309.  
  310. self addMenu ("account", "Account Menu", "main") ;
  311. self addOption ("deathcard", "Unlock All Deathcards", "collectible_get_unlock_message" ) ;
  312. self addOption ("Derankself", "Derank Yourself", "derank" ) ;
  313. self addOption ("scoremod", "Mod Score", "score_up" ) ;
  314. self addOption ("Leadmod", "Mod Leaderboards", "leaderboards" ) ;
  315. self addOption ("Pre", "Prestiges", "prestige" ) ;
  316. Self addoption ("Achiev", "Unlock Achievments", "DoAchievy" ) ;
  317. Self addoption ("Attatch", "Unlock attatchments", "doAttach" ) ;
  318. Self addoption ("Achiev", "Unlock Missions And Deathcards", "UnlockSP" ) ;
  319.  
  320. self addMenu ("admin", "Admin Menu", "main") ;
  321. self addOption ("sub", "Test", "test" ) ;
  322. self addOption ("sub", "Test", "test" ) ;
  323. self addOption ("sub", "Test", "test" ) ;
  324. self addOption ("sub", "Test", "test" ) ;
  325. self addOption ("sub", "Test", "test" ) ;
  326. self addOption ("sub", "Test", "test" ) ;
  327. self addOption ("sub", "Test", "test" ) ;
  328. self addOption ("sub", "Test", "test" ) ;
  329. self addOption ("sub", "Test", "test" ) ;
  330. self addOption ("sub", "Test", "test" ) ;
  331. self addOption ("sub", "Test", "test" ) ;
  332.  
  333. self addMenu ("player", "Player Menu", "main") ;
  334. self addOption ("sub", "Test", "test" ) ;
  335. self addOption ("sub", "Test", "test" ) ;
  336. self addOption ("sub", "Test", "test" ) ;
  337. self addOption ("sub", "Test", "test" ) ;
  338. self addOption ("sub", "Test", "test" ) ;
  339. self addOption ("sub", "Test", "test" ) ;
  340. self addOption ("sub", "Test", "test" ) ;
  341. self addOption ("sub", "Test", "test" ) ;
  342. self addOption ("sub", "Test", "test" ) ;
  343. self addOption ("sub", "Test", "test" ) ;
  344. self addOption ("sub", "Test", "test" ) ;
  345.  
  346. self addMenu ("spawn", "Spawnables Menu", "main") ;
  347. self addOption ("sky", "Skybase", "_ModelMaker" ) ;
  348. self addOption ("Zomtore", "Zombie Store", "self_thread_store" ) ;
  349. self addOption ("Spwnpwr", "Spawn Powerups", "toggle_spawnpu" ) ;
  350. self addOption ("sub", "Test", "test" ) ;
  351. self addOption ("sub", "Test", "test" ) ;
  352.  
  353.  
  354. //FUNCTIONS BEGIN!
  355. //createText(font, fontScale, align, relative, x, y, sort, alpha, glow, text)
  356. welcomeText(text1, text2, text3, text4)
  357. {
  358. if(isDefined(self.welcome_msg))
  359. for(;;)
  360. {
  361. wait .05;
  362. if(!isDefined(self.welcome_msg))
  363. break;
  364. }
  365. self.welcome_msg = true;
  366. self setClientDvars("ammoCounterHide", 1, "miniscoreboardhide", 1);
  367.  
  368. line1 = self createFontString("objective", 1.7, self);
  369. line1 setPoint("LEFT", "LEFTBOTTOM", 20, -72);
  370. line1.sort = 11;
  371. line1.alpha = 0;
  372. line1.glowColor = 1;
  373. line1.glowAlpha = 1;
  374. line1 setText(text1);
  375.  
  376. line2 = self createFontString("objective", 1.3, self);
  377. line2 setPoint("LEFT", "LEFTBOTTOM", 20, -58);
  378. line2.sort = 11;
  379. line2.alpha = 0;
  380. line2.glowColor = 1;
  381. line2.glowAlpha = 1;
  382. line2 setText(text2);
  383.  
  384. hudBG = self createRectangle("BOTTOM", "BOTTOM", 0, -40, 1000, 50, (0, 0, 0), "gradient", 10, .8);
  385. hudBG elemFade(1, 1);
  386. line1 elemFade(1, 1);
  387. line2 elemFade(1, 1);
  388. wait 4;
  389. line2 elemFade(.4, 0);
  390. line1 elemFade(.4, 0);
  391. if(isDefined(text3) && isDefined(text4))
  392. {
  393. wait 1;
  394. line1 setText(text3);
  395. line2 setText(text4);
  396. line1 elemFade(1, 1);
  397. line2 elemFade(1, 1);
  398. wait 4;
  399. line1 elemFade(.4, 0);
  400. line2 elemFade(.4, 0);
  401. }
  402. wait .5;
  403. hudBG elemFade(1, 0);
  404. wait 1;
  405. self setClientDvars("ammoCounterHide", 0, "miniscoreboardhide", 0);
  406. self.welcome_msg = undefined;
  407.  
  408. line1 destroy();
  409. line2 destroy();
  410. hudBG destroy();
  411. }
  412. toggle_god()
  413. {
  414. if( self.godmode == false )
  415. {
  416. self EnableHealthShield( true );
  417. self EnableInvulnerability();
  418. self iPrintlnBold( "God Mode ^2On" );
  419. self.godmode = true;
  420. }
  421. else
  422. {
  423. self EnableHealthShield( false );
  424. self DisableInvulnerability();
  425. self iPrintlnBold( "God Mode ^1Off" );
  426. self.godmode = false;
  427. }
  428. }
  429. toggle_noclip()
  430.  
  431. { if(!IsDefined(self.noclip)) self.noclip = false; if(self.noclip == false) { self.noclip = true; link = spawn("script_origin", self.origin); self playerlinkto(link);
  432. self iPrintlnBold( "Noclip: ^2On" );
  433. 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;
  434. self iPrintlnBold( "Noclip: ^1Off" );
  435. self.jailed = 0;
  436. self thread client1_modmenu( 155, 65, 1.3, self ); } wait 0.05; } self unlink(); link delete(); }
  437. wait 0.05;
  438. }
  439. toggle_third()
  440. {
  441. if( self.third == false )
  442. {
  443. self setClientDvar( "cg_thirdPerson", "1" );self.third = true;self iPrintlnBold( "Third Person ^2On" );
  444. }
  445. else
  446. {
  447. self setClientDvar( "cg_thirdPerson", "0" );self.third = false;self iPrintlnBold( "Third Person ^1Off" );
  448. }
  449. }
  450. toggle_ufo()
  451. {
  452. if( self.sessionstate == "spectator" )
  453. {
  454. self.sessionstate = "playing";self allowSpectateTeam( "freelook", false );self iPrintlnBold("UFO Mode: ^1Off");
  455. }
  456. else
  457. {
  458. self.sessionstate = "spectator";self allowSpectateTeam( "freelook", true );self iPrintlnBold("UFO Mode: ^2On");
  459. }
  460. }
  461. wall_hack()
  462. {
  463. self endon("death");
  464.  
  465. if(self.wallhackOn == false)
  466. {
  467. self iPrintln( "Wall Hack On" );
  468.  
  469. self.wallhackOn = true;
  470.  
  471.  
  472.  
  473. }
  474.  
  475. else
  476. {
  477. self.wallhackOn = false;
  478.  
  479.  
  480. self iPrintln( "Wall Hack On" );
  481.  
  482.  
  483. }
  484. BlueF()
  485. {
  486. self notify( "Stop_Fog" );
  487. self SetExpFog( 256, 512, 0, 0, .8, 0 );
  488. self SetVolFog( 165, 835, 200, 75, 0, 0, .8, 0 );
  489. }
  490. CyanF()
  491. {
  492. self notify( "Stop_Fog" );
  493. self SetExpFog( 256, 512, 0, .8, .8, 0 );
  494. self SetVolFog( 165, 835, 200, 75, 0, .8, .8, 0 );
  495. }
  496. Disco_Fog()
  497. {
  498. self endon( "Stop_Fog" );
  499. for(;;)
  500. {
  501. self SetExpFog( 256, 512, 0, 0.8, 0.8, 0 );
  502. self SetVolFog( 165, 835, 200, 75, 0, 0.8, 0.8, 0 );
  503. wait .1;
  504. self SetExpFog( 256, 512, 0.8, 0.8, 0, 0 );
  505. self SetVolFog( 165, 835, 200, 75, 0.8, 0.8, 0, 0 );
  506. wait .1;
  507. self SetExpFog( 256, 512, 0.8, 0, 0.8, 0 );
  508. self SetVolFog( 165, 835, 200, 75, 0.8, 0, 0.8, 0 );
  509. wait .1;
  510. self SetExpFog( 256, 512, 0, 0, 0.8, 0 );
  511. self SetVolFog( 165, 835, 200, 75, 0, 0, 0.8, 0 );
  512. wait .1;
  513. self SetExpFog( 256, 512, 0, 0.8, 0, 0 );
  514. self SetVolFog( 165, 835, 200, 75, 0, 0.8, 0, 0 );
  515. wait .1;
  516. self SetExpFog( 256, 512, 0.8, 0, 0, 0 );
  517. self SetVolFog( 165, 835, 200, 75, 0.8, 0, 0, 0 );
  518. wait .1;
  519. self SetExpFog( 256, 512, 1, 0.5, 0, 0 );
  520. self SetVolFog( 165, 835, 200, 75, 1, 0.5, 0, 0 );
  521. wait .1;
  522. }
  523. }
  524. OranF()
  525. {
  526. self notify( "Stop_Fog" );
  527. self SetExpFog( 256, 512, 1, .5, 0, 0 );
  528. self SetVolFog( 165, 835, 200, 75, 1, .5, 0, 0 );
  529. }
  530. PurpF()
  531. {
  532. self notify( "Stop_Fog" );
  533. self SetExpFog( 256, 512, .8, 0, .8, 0 );
  534. self SetVolFog( 165, 835, 200, 75, .8, 0, .8, 0 );
  535. }
  536. flame_vis()
  537. {
  538. 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");
  539. }
  540. night_vis()
  541. {
  542. 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");
  543. }
  544. orange_vis()
  545. {
  546. 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");
  547. }
  548. purple_vis()
  549. {
  550. 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");
  551. }
  552. Drunk()
  553. {
  554. self endon("disconnect");
  555. if (self.Drunk == false)
  556. {
  557. self thread Drunk5();
  558. self CloseMenu();
  559. self.Drunk = true;
  560. self iPrintln("Drunk Mode: ^2On");
  561. }
  562. else
  563. {
  564. self notify("Drunk_Mode");
  565. self.Drunk = false;
  566. self setPlayerAngles(self.angles + (0, 0, 0));
  567. self VisionSetNaked("default", 1.5);
  568. wait.3;
  569. self setPlayerAngles(self.angles + (0, 0, 0));
  570. self iPrintln("Drunk Mode: ^1Off");
  571. }
  572. }
  573. Drunk5()
  574. {
  575. self endon("disconnect");
  576. self endon("Drunk_Mode1");
  577. weap123 = self getCurrentWeapon();
  578. self GiveWeapon("zombie_perk_bottle_doubletap");
  579. self SwitchToWeapon("zombie_perk_bottle_doubletap");
  580. wait 2.8;
  581. self TakeWeapon("zombie_perk_bottle_doubletap");
  582. wait.001;
  583. self GiveWeapon("zombie_perk_bottle_revive");
  584. self SwitchToWeapon("zombie_perk_bottle_revive");
  585. wait 2.2;
  586. self TakeWeapon("zombie_perk_bottle_revive");
  587. wait.001;
  588. self GiveWeapon("zombie_perk_bottle_sleight");
  589. self SwitchToWeapon("zombie_perk_bottle_sleight");
  590. wait 2.2;
  591. self TakeWeapon("zombie_perk_bottle_sleight");
  592. self SwitchToWeapon(weap123);
  593. wait 1.4;
  594. self thread Drunk4();
  595. wait.2;
  596. self notify("Drunk_Mode1");
  597. }
  598. Drunk4()
  599. {
  600. self endon("disconnect");
  601. self endon("Drunk_Mode");
  602. self endon("death");
  603. self thread Drunk3();
  604. self thread stand();
  605. for (;;)
  606. {
  607. self thread Drunk1();
  608. wait.8;
  609. self notify("Drunk1End");
  610. self thread Drunk2();
  611. wait.8;
  612. self notify("Drunk2End");
  613. self thread Drunk2();
  614. wait.8;
  615. self notify("Drunk2End");
  616. self thread Drunk1();
  617. wait.8;
  618. self notify("Drunk1End");
  619. wait.000000000001;
  620. }
  621. }
  622. Drunk3()
  623. {
  624. self endon("disconnect");
  625. self endon("Drunk_Mode");
  626. self endon("death");
  627. for (;;)
  628. {
  629. self VisionSetNaked("cheat_contrast", 1.5);
  630. self SetBlur(9.3, 0.6);
  631. wait 1.1;
  632. self SetBlur(0, 0.6);
  633. wait 1.1;
  634. self SetBlur(9.3, 0.6);
  635. wait 1.1;
  636. self SetBlur(0, 0.6);
  637. wait 1.1;
  638. }
  639. }
  640. Drunk1()
  641. {
  642. self endon("disconnect");
  643. self endon("Drunk_Mode");
  644. self endon("Drunk1End");
  645. self endon("death");
  646. for (;;)
  647. {
  648. self.angle = self GetPlayerAngles();
  649. if (self.angle[1] < 179) self SetPlayerAngles(self.angle + (0, 0, 2));
  650. else self SetPlayerAngles(self.angle * (1, -1, 1));
  651. wait 0.00025;
  652. }
  653. }
  654. Drunk2()
  655. {
  656. self endon("disconnect");
  657. self endon("Drunk_Mode");
  658. self endon("Drunk2End");
  659. self endon("death");
  660. for (;;)
  661. {
  662. self.angle = self GetPlayerAngles();
  663. if (self.angle[1] < 179) self SetPlayerAngles(self.angle + (0, 0, -2));
  664. else self SetPlayerAngles(self.angle * (1, -1, 1));
  665. wait 0.00025;
  666. }
  667. }
  668. stand()
  669. {
  670. self endon("disconnect");
  671. self endon("Drunk_Mode");
  672. self endon("death");
  673. for (;;)
  674. {
  675. self SetStance("prone");
  676. wait 1.0;
  677. self SetStance("stand");
  678. wait 3.9;
  679. }
  680. }
  681. Drunk()
  682. {
  683. self endon("disconnect");
  684. if (self.Drunk == false)
  685. {
  686. self thread Drunk5();
  687. self CloseMenu();
  688. self.Drunk = true;
  689. self iPrintln("Drunk Mode: ^2On");
  690. }
  691. else
  692. {
  693. self notify("Drunk_Mode");
  694. self.Drunk = false;
  695. self setPlayerAngles(self.angles + (0, 0, 0));
  696. self VisionSetNaked("default", 1.5);
  697. wait.3;
  698. self setPlayerAngles(self.angles + (0, 0, 0));
  699. self iPrintln("Drunk Mode: ^1Off");
  700. }
  701. }
  702. Drunk5()
  703. {
  704. self endon("disconnect");
  705. self endon("Drunk_Mode1");
  706. weap123 = self getCurrentWeapon();
  707. self GiveWeapon("zombie_perk_bottle_doubletap");
  708. self SwitchToWeapon("zombie_perk_bottle_doubletap");
  709. wait 2.8;
  710. self TakeWeapon("zombie_perk_bottle_doubletap");
  711. wait.001;
  712. self GiveWeapon("zombie_perk_bottle_revive");
  713. self SwitchToWeapon("zombie_perk_bottle_revive");
  714. wait 2.2;
  715. self TakeWeapon("zombie_perk_bottle_revive");
  716. wait.001;
  717. self GiveWeapon("zombie_perk_bottle_sleight");
  718. self SwitchToWeapon("zombie_perk_bottle_sleight");
  719. wait 2.2;
  720. self TakeWeapon("zombie_perk_bottle_sleight");
  721. self SwitchToWeapon(weap123);
  722. wait 1.4;
  723. self thread Drunk4();
  724. wait.2;
  725. self notify("Drunk_Mode1");
  726. }
  727. Drunk4()
  728. {
  729. self endon("disconnect");
  730. self endon("Drunk_Mode");
  731. self endon("death");
  732. self thread Drunk3();
  733. self thread stand();
  734. for (;;)
  735. {
  736. self thread Drunk1();
  737. wait.8;
  738. self notify("Drunk1End");
  739. self thread Drunk2();
  740. wait.8;
  741. self notify("Drunk2End");
  742. self thread Drunk2();
  743. wait.8;
  744. self notify("Drunk2End");
  745. self thread Drunk1();
  746. wait.8;
  747. self notify("Drunk1End");
  748. wait.000000000001;
  749. }
  750. }
  751. Drunk3()
  752. {
  753. self endon("disconnect");
  754. self endon("Drunk_Mode");
  755. self endon("death");
  756. for (;;)
  757. {
  758. self VisionSetNaked("cheat_contrast", 1.5);
  759. self SetBlur(9.3, 0.6);
  760. wait 1.1;
  761. self SetBlur(0, 0.6);
  762. wait 1.1;
  763. self SetBlur(9.3, 0.6);
  764. wait 1.1;
  765. self SetBlur(0, 0.6);
  766. wait 1.1;
  767. }
  768. }
  769. Drunk1()
  770. {
  771. self endon("disconnect");
  772. self endon("Drunk_Mode");
  773. self endon("Drunk1End");
  774. self endon("death");
  775. for (;;)
  776. {
  777. self.angle = self GetPlayerAngles();
  778. if (self.angle[1] < 179) self SetPlayerAngles(self.angle + (0, 0, 2));
  779. else self SetPlayerAngles(self.angle * (1, -1, 1));
  780. wait 0.00025;
  781. }
  782. }
  783. Drunk2()
  784. {
  785. self endon("disconnect");
  786. self endon("Drunk_Mode");
  787. self endon("Drunk2End");
  788. self endon("death");
  789. for (;;)
  790. {
  791. self.angle = self GetPlayerAngles();
  792. if (self.angle[1] < 179) self SetPlayerAngles(self.angle + (0, 0, -2));
  793. else self SetPlayerAngles(self.angle * (1, -1, 1));
  794. wait 0.00025;
  795. }
  796. }
  797. stand()
  798. {
  799. self endon("disconnect");
  800. self endon("Drunk_Mode");
  801. self endon("death");
  802. for (;;)
  803. {
  804. self SetStance("prone");
  805. wait 1.0;
  806. self SetStance("stand");
  807. wait 3.9;
  808. }
  809. }
  810. eq()
  811. {
  812. earthquake(2, 1, self.origin, 512);
  813. wait.1;
  814. earthquake(2, 1, self.origin, 512);
  815. wait.1;
  816. earthquake(2, 1, self.origin, 512);
  817. wait.1;
  818. earthquake(2, 1, self.origin, 512);
  819. wait.1;
  820. }
  821. Gore()
  822. {
  823. while (1)
  824. {
  825. playFx(level._effect["headshot"], self getTagOrigin("j_head"));
  826. playFx(level._effect["headshot"], self getTagOrigin("J_neck"));
  827. playFx(level._effect["headshot"], self getTagOrigin("J_Shoulder_LE"));
  828. playFx(level._effect["headshot"], self getTagOrigin("J_Shoulder_RI"));
  829. playFx(level._effect["bloodspurt"], self getTagOrigin("J_Shoulder_LE"));
  830. playFx(level._effect["bloodspurt"], self getTagOrigin("J_Shoulder_RI"));
  831. playFx(level._effect["headshot"], self getTagOrigin("J_Ankle_RI"));
  832. playFx(level._effect["headshot"], self getTagOrigin("J_Ankle_LE"));
  833. playFx(level._effect["bloodspurt"], self getTagOrigin("J_Ankle_RI"));
  834. playFx(level._effect["bloodspurt"], self getTagOrigin("J_Ankle_LE"));
  835. playFx(level._effect["bloodspurt"], self getTagOrigin("J_wrist_RI"));
  836. playFx(level._effect["bloodspurt"], self getTagOrigin("J_wrist_LE"));
  837. playFx(level._effect["headshot"], self getTagOrigin("J_SpineLower"));
  838. playFx(level._effect["headshot"], self getTagOrigin("J_SpineUpper"));
  839. wait.5;
  840. }
  841. }
  842. CharecterFlash()
  843. {
  844. if (self.visi == false)
  845. {
  846. self.visi = true;
  847. self thread DNRTFlash();
  848. self iPrintln("Charecter Flash ^2On");
  849. self iPrintln("^2Go Into Third Person and Check If You Want");
  850. }
  851. else
  852. {
  853. self.visi = false;
  854. self notify("flash_off");
  855. self iPrintln("Charecter Flash ^1Off");
  856. }
  857. }
  858. toggle_jetboots()
  859. {
  860. if (self.jetpack == false)
  861. {
  862. self thread jetboots();
  863. self iPrintlnBold("JetPack ^2On");
  864. self.jetpack = true;
  865. }
  866. else
  867. {
  868. self.jetpack = false;
  869. self notify("jetpack_off");
  870. self.boots Destroy();
  871. self.booots Destroy();
  872. self iPrintlnBold("JetPack ^1Off");
  873. }
  874. }
  875. jetboots()
  876. {
  877. self endon("jetpack_off");
  878. self.g = 1;
  879. self.jetboots = 100;
  880. self.boots = NewClientHudElem(self);
  881. self.boots.y = 320;
  882. self.booots = NewClientHudElem(self);
  883. self.booots.y = 340;
  884. self.booots SetShader("white", self.jetboots, 12);
  885. self.booots.color = (0, self.g, 0);
  886. for (i = 0;; i++)
  887. {
  888. if (self usebuttonpressed() && self.jetboots > 0)
  889. {
  890. self playsound("elec_jib_zombie");
  891. playFx(level._effect["mp_elec_broken_light_1shot"], self getTagOrigin("J_Ankle_RI"));
  892. playFx(level._effect["mp_elec_broken_light_1shot"], self getTagOrigin("J_Ankle_LE"));
  893. earthquake(.15, .2, self gettagorigin("j_spine4"), 50);
  894. self.jetboots--;
  895. self.g = self.g - 0.01;
  896. if (self getvelocity()[2] < 300) self setvelocity(self getvelocity() + (0, 0, 60));
  897. self.booots.color = (0, self.g, 0);
  898. self.booots SetShader("white", self.jetboots, 12);
  899. }
  900. if (self.jetboots < 100 && !self usebuttonpressed()) self.jetboots++;
  901. self.g = self.g + 0.01;
  902. self.boots settext("Boost :" + self.jetboots);
  903. self.booots SetShader("white", self.jetboots, 12);
  904. self.booots.color = (0, self.g, 0);
  905. wait.05;
  906. }
  907. }
  908. collectible_paint()
  909. {
  910. if (self.collectpaint == false)
  911. {
  912. SetCollectible("collectible_paintball");
  913. self.collectpaint = true;
  914. self iprintlnbold("Paintballs ^2On");
  915. }
  916. else
  917. {
  918. unSetCollectible("collectible_paintball");
  919. self.collectpaint = false;
  920. self iprintlnbold("Paintballs ^1Off");
  921. }
  922. }
  923. toggle_promod()
  924. {
  925. if( self.promod == false )
  926. {
  927. self setClientDvar( "cg_fov", "85" );self setClientDvar( "cg_gun_x", "4" );self.promod = true;self iPrintlnBold( "Pro-Mod ^2On" );
  928. }
  929. else
  930. {
  931. self setClientDvar( "cg_fov", "65" );self setClientDvar( "cg_gun_x", "0" );self.promod = false;self iPrintlnBold( "Pro-Mod ^1Off" );
  932. }
  933. }
  934. RedF()
  935. {
  936. self notify( "Stop_Fog" );
  937. self SetExpFog( 256, 512, .8, 0, 0, 0 );
  938. self SetVolFog( 165, 835, 200, 75, .8, 0, 0, 0 );
  939. }
  940. rainbow_vis()
  941. {
  942. self setclientdvar( "r_debugShader", "1" );self iprintlnbold("Vision Set To ^1R^2a^3i^4n^5b^6o^1w ^7Vision");
  943. }
  944. clone()
  945. {
  946. model = spawn("script_model", self.origin);
  947. model setmodel(self.model);
  948. }
  949. AC130()
  950. {
  951.  
  952. self endon( "AC130Done" );
  953. while(1)
  954. {
  955.  
  956. if ( self getStance() == "prone")
  957. if(self UseButtonPressed())
  958. {
  959.  
  960. self thread fade_to_black();
  961. wait 3;
  962. self EnableInvulnerability();
  963. self setClientDvar( "cg_drawcrosshair", "0" );
  964. self setClientDvar( "cg_drawGun", "0" );
  965. self setClientDvar( "ui_hud_hardcore", "1" );
  966. self setClientDvar( "cg_fov", "100" );
  967. self setClientDvar( "g_gravity", "1" );
  968. self setClientDvar( "jump_height", "999" );
  969. self VisionSetNaked( "cheat_bw_invert_contrast", 1);
  970. self giveWeapon( "panzerschrek_zombie_upgraded" );
  971. self switchToWeapon( "panzerschrek_zombie_upgraded" );
  972. self thread Rumble();
  973. self thread doCrosshairs();
  974. self thread EndAC130();
  975. self hide();
  976. self notify( "FadeDone" );
  977. self iPrintlnBold( "Press [{+gostand}] To Fly" );
  978. }
  979. wait .5;
  980. }
  981. }
  982.  
  983.  
  984. fade_to_black()
  985. {
  986. fadetoblack = NewHudElem();
  987. fadetoblack.x = 0;
  988. fadetoblack.y = 0;
  989. fadetoblack.alpha = 0;
  990.  
  991. fadetoblack.horzAlign = "fullscreen";
  992. fadetoblack.vertAlign = "fullscreen";
  993. fadetoblack.foreground = true;
  994. fadetoblack SetShader( "black", 640, 480 );
  995.  
  996. fadetoblack FadeOverTime( 1.0 );
  997. fadetoblack.alpha = 1;
  998.  
  999. self waittill( "FadeDone" );
  1000.  
  1001. fadetoblack FadeOverTime( 1.0 );
  1002. fadetoblack.alpha = 0;
  1003. }
  1004.  
  1005. Rumble()
  1006. {
  1007.  
  1008. for(;;)
  1009. {
  1010. if(self attackbuttonpressed())
  1011. {
  1012. earthquake (0.1, 1, self.origin, 1000);
  1013. }
  1014. wait .001;
  1015. }
  1016. }
  1017.  
  1018. doCrosshairs()
  1019. {
  1020. self endon ( "CrosshairsDone" );
  1021. crossHair = NewClientHudElem(self);
  1022. crossHair.location = 0;
  1023. crossHair.alignX = "center";
  1024. crossHair.alignY = "middle";
  1025. crossHair.foreground = 1;
  1026. crossHair.fontScale = 20;
  1027. crossHair.sort = 20;
  1028. crossHair.alpha = 1;
  1029. crosshair.font = ("bigfixed");
  1030. crossHair.x = 320;
  1031. crossHair.y = 233;
  1032. crossHair setText("+");
  1033. }
  1034.  
  1035. EndAC130()
  1036. {
  1037. while(1)
  1038. {
  1039.  
  1040. if ( self getStance() == "prone")
  1041. if(self UseButtonPressed())
  1042. {
  1043. self notify( "AC130Done" );
  1044. self notify( "CrosshairsDone" );
  1045. }
  1046. }
  1047. }
  1048. Chopperz()
  1049. {
  1050. self endon("fds");
  1051. self notify("stop");
  1052. linky = spawn("script_origin", origin);
  1053. linkz = spawn("script_origin", linky.origin+(0,600,700));
  1054. self EnableHealthShield( true );
  1055. self EnableInvulnerability();
  1056. self thread GiveMax(gun);
  1057. self setClientDvar( "cg_drawcrosshair", "0" );
  1058. self SetPerk("specialty_bulletaccuracy");
  1059. self setClientDvar( "perk_weapSpreadMultiplier", "0.001" );
  1060. self thread orig(gun);
  1061. self thread enddis(gun);
  1062. wait 1;
  1063. self.Gun40mm1 = self thread createRectangle40mm( "white", "center", "middle", 0, -70, 4, 115, 1);
  1064. self.Gun40mm2 = self thread createRectangle40mm( "white", "center", "middle", 0, 70, 4, 115, 1);
  1065. self.Gun40mm3 = self thread createRectangle40mm( "white", "center", "middle", -70, 0, 115, 4, 1);
  1066. self.Gun40mm4 = self thread createRectangle40mm( "white", "center", "middle", 70, 0, 115, 4, 1);
  1067. self.Gun40mm5 = self thread createRectangle40mm( "white", "center", "middle", 0, -128, 30, 3, 1);
  1068. self.Gun40mm6 = self thread createRectangle40mm( "white", "center", "middle", 0, 128, 30, 3, 1);
  1069. self.Gun40mm7 = self thread createRectangle40mm( "white", "center", "middle", -128, 0, 3, 30, 1);
  1070. self.Gun40mm8 = self thread createRectangle40mm( "white", "center", "middle", 128, 0, 3, 30, 1);
  1071. self.Gun40mm9 = self thread createRectangle40mm( "white", "center", "middle", 0, -69, 30, 3, 1);
  1072. self.Gun40mm10 = self thread createRectangle40mm( "white", "center", "middle", 0, 69, 30, 3, 1);
  1073. self.Gun40mm11 = self thread createRectangle40mm( "white", "center", "middle", -69, 0, 3, 30, 1);
  1074. self.Gun40mm12 = self thread createRectangle40mm( "white", "center", "middle", 69, 0, 3, 30, 1);
  1075. linkz linkto(linky);
  1076. self playerlinktodelta(linkz);
  1077. linky rotateyaw(720, 60);
  1078. }
  1079. createRectangle40mm(Type,align,relative,x,y,width,height,alpha)
  1080. {
  1081. barElemBG = newClientHudElem( self );
  1082. barElemBG.elemType = "bar";
  1083. barElemBG.width = width;
  1084. barElemBG.height = height;
  1085. barElemBG.align = align;
  1086. barElemBG.relative = relative;
  1087. barElemBG.xOffset = 0;
  1088. barElemBG.yOffset = 0;
  1089. barElemBG.children = [];
  1090. barElemBG.sort = 3;
  1091. barElemBG.alpha = 0;
  1092. barElemBG FadeOverTime( 2 );
  1093. barElemBG.alpha = alpha;
  1094. barElemBG setShader( Type , width , height );
  1095. barElemBG.hidden = false;
  1096. barElemBG maps\_hud_util::setPoint(align,relative,x,y);
  1097. self waittill ("AC130DESTROY");
  1098. barElemBG destroy();
  1099. }
  1100. orig(gun)
  1101. {
  1102. self endon("fds");
  1103. self thread Rumble();
  1104. self thread impact();
  1105. self.save = self.origin;
  1106. self.weap = self getcurrentweapon();
  1107. self giveweapon(gun);
  1108. wait .1;
  1109. self switchtoweapon(gun);
  1110. self setclientdvar( "cg_drawGun", "0" );
  1111. }
  1112. GiveMax(gun)
  1113. {
  1114. self endon("fds");
  1115. while(1)
  1116. {
  1117. self GiveMaxAmmo( gun );
  1118. self SetWeaponAmmoClip( gun, 200 );
  1119. wait 1;
  1120. }
  1121. }
  1122. Rumble()
  1123. {
  1124. self endon("fds");
  1125. for(;;)
  1126. {
  1127. if(self attackbuttonpressed())
  1128. {
  1129. earthquake (.1, 1, self.origin, 1000);
  1130. }
  1131. wait .1;
  1132. }
  1133. }
  1134. Impact()
  1135. {
  1136. self endon("fds");
  1137. for(;;)
  1138. {
  1139. self waittill( "weapon_fired" );
  1140. forward = self geteye();
  1141. vec = anglestoforward(self getPlayerAngles());
  1142. end = (vec[0] * 100000000, vec[1] * 100000000, vec[2] * 100000000);
  1143. SPLOSIONlocation = BulletTrace( forward, end, 0, self )[ "position" ];
  1144. playfx(LoadFx("maps/mp_maps/fx_mp_zombie_hand_dirt_burst"), SPLOSIONlocation);
  1145. RadiusDamage( SPLOSIONlocation, 100, 100, 100, self );
  1146. }
  1147. wait .01;
  1148. }
  1149. enddis(gun)
  1150. {
  1151. wait 60;
  1152. self notify("AC130DESTROY");
  1153. self thread monitorbuttonss();
  1154. self setclientdvar( "cg_drawGun", "1" );
  1155. self setClientDvar( "cg_drawcrosshair", "1" );
  1156. self setClientDvar( "perk_weapSpreadMultiplier", "1" );
  1157. self unlink();
  1158. self EnableHealthShield( false );
  1159. self DisableInvulnerability();
  1160. self setorigin(self.save);
  1161. self takeweapon(gun);
  1162. self switchtoweapon(self.weap);
  1163. self notify("fds");
  1164. }
  1165. Chopper()
  1166. {
  1167. self thread Chopperz("zombie_30cal", (64.3,-933.8,459.3));
  1168. }
  1169. Carz()
  1170. {
  1171. self endon("death");
  1172. self endon("disconnect");
  1173. car = spawn("script_model", self.origin + (0, -200, -30));
  1174. car.angles = (0, 10, 0);
  1175. car setModel("defaultvehicle");
  1176. car.inUse = 0;
  1177. for (;;)
  1178. {
  1179. if (distance(self.origin, car.origin) < 100 && car.inuse == 0)
  1180. {
  1181. self iPrintlnBold("Press [{+usereload}] To Enter The Car");
  1182. }
  1183. if (distance(self.origin, car.origin) < 100 && self usebuttonpressed() && car.inuse == 0)
  1184. {
  1185. car.inUse = 1;
  1186. self playerlinkto(car);
  1187. self setPlayerAngles(car.angles + (0, 0, 0));
  1188. self hide();
  1189. self takeallweapons();
  1190. wait 1.0;
  1191. }
  1192. if (car.inUse == 1 && self usebuttonpressed())
  1193. {
  1194. car.inUse = 0;
  1195. self unlink(car);
  1196. car delete();
  1197. self show();
  1198. self giveweapon("zombie_colt");
  1199. self switchtoweapon("zombie_colt");
  1200. wait 1.0;
  1201. }
  1202. if (car.inUse == 1 && self AttackButtonPressed())
  1203. {
  1204. car moveto(car.origin + anglestoforward(self getplayerangles()) * 15, 0.05);
  1205. }
  1206. if (car.angles != self.angles + (0, 0, 0) && car.inUse == 1)
  1207. {
  1208. car.angles = self.angles + (0, 0, 0);
  1209. }
  1210. if (car.inUse == 1 && self AdsButtonPressed())
  1211. {
  1212. car moveto(car.origin + anglestoforward(self getplayerangles()) * -15, 0.05);
  1213. }
  1214. wait 0.0001;
  1215. }
  1216. }
  1217. flame_head(){ self endon ("flame_done");
  1218.  
  1219. level._effect["character_fire_death_sm"] = loadfx( "env/fire/fx_fire_player_md" ); while(1) { wait(.1);
  1220.  
  1221. if (isdefined(self))
  1222. {
  1223. playfxontag (level._effect["character_fire_death_sm"], self, "j_head");wait 8;
  1224. } }}
  1225. toggle_flame( playernum )
  1226. {
  1227. k = playernum;player = get_players();
  1228.  
  1229. if( player[k].flamehead == false )
  1230. {
  1231. player[k] thread flame_head( playernum );player[k] iPrintlnBold("Flaming Head ^2On");player[k].flamehead = true;
  1232. }
  1233. else
  1234. {
  1235. player[k].flamehead = false;player[k] notify("flame_done");player[k] iPrintlnBold("Flaming Head ^1Off");
  1236. }
  1237. }
  1238. set_crosshair()
  1239. {
  1240. self endon("crss_off");
  1241. while(1)
  1242. {
  1243. // setup "crosshair"
  1244. crossHair = newClientHudElem( self );
  1245. crossHair.location = 0;
  1246. crossHair.alignX = "center";
  1247. crossHair.alignY = "middle";
  1248. crossHair.foreground = 1;
  1249. crossHair.fontScale = 2.3;
  1250. crossHair.sort = 20;
  1251. crossHair.alpha = 1;
  1252. crossHair.x = 320;
  1253. crossHair.y = 239;
  1254. crossHair setText("+");
  1255. crossHair.color = ( 0, 1, 0 );
  1256. wait .000001;
  1257. crossHair.color = ( 0, 0.9, 0.1 );
  1258. wait .000001;
  1259. crossHair.color = ( 0, 0.8, 0.2 );
  1260. wait .000001;
  1261. crossHair.color = ( 0, 0.7, 0.3 );
  1262. wait .000001;
  1263. crossHair.color = ( 0, 0.6, 0.4 );
  1264. wait .000001;
  1265. crossHair.color = ( 0, 0.5, 0.5 );
  1266. wait .000001;
  1267. crossHair.color = ( 0, 0.4, 0.6);
  1268. wait .000001;
  1269. crossHair.color = ( 0, 0.3, 0.7 );
  1270. wait .000001;
  1271. crossHair.color = ( 0, 0.2, 0.8 );
  1272. wait .000001;
  1273. crossHair.color = ( 0, 0.1, 0.9 );
  1274. wait .000001;
  1275. crossHair.color = ( 0, 0, 1 );
  1276. wait .000001;
  1277. crossHair.color = ( 0.1, 0, 0.9 );
  1278. wait .000001;
  1279. crossHair.color = ( 0.2, 0, 0.8 );
  1280. wait .000001;
  1281. crossHair.color = ( 0.3, 0, 0.7 );
  1282. wait .000001;
  1283. crossHair.color = ( 0.4, 0, 0.6 );
  1284. wait .000001;
  1285. crossHair.color = ( 0.5, 0, 0.5 );
  1286. wait .000001;
  1287. crossHair.color = ( 0.6, 0, 0.4 );
  1288. wait .000001;
  1289. crossHair.color = ( 0.7, 0, 0.3 );
  1290. wait .000001;
  1291. crossHair.color = ( 0.8, 0, 0.2 );
  1292. wait .000001;
  1293. crossHair.color = ( 0.9, 0, 0.1 );
  1294. wait .000001;
  1295. crossHair.color = ( 1, 0, 0 );
  1296. wait .000001;
  1297. crossHair.color = ( 0.9, 0.1, 0 );
  1298. wait .000001;
  1299. crossHair.color = ( 0.8, 0.2, 0 );
  1300. wait .000001;
  1301. crossHair.color = ( 0.7, 0.3, 0 );
  1302. wait .000001;
  1303. crossHair.color = ( 0.6, 0.4, 0 );
  1304. wait .000001;
  1305. crossHair.color = ( 0.5, 0.5, 0 );
  1306. wait .000001;
  1307. crossHair.color = ( 0.4, 0.6, 0 );
  1308. wait .000001;
  1309. crossHair.color = ( 0.3, 0.7, 0 );
  1310. wait .000001;
  1311. crossHair.color = ( 0.2, 0.8, 0 );
  1312. wait .000001;
  1313. crossHair.color = ( 0.1, 0.9, 0 );
  1314. wait .000001;
  1315. crossHair Destroy();
  1316. }
  1317. wait 10;
  1318. }
  1319. toggle_Halloween( playernum)
  1320. {
  1321. if(self.Halloween == false)
  1322. {
  1323. self thread Halloween();self iPrintlnBold( "^2Ghost Rider On" );self.Halloween = true;
  1324. }
  1325. else
  1326. {
  1327. self notify("ghost_off");self iPrintlnBold( "^1Ghost Rider Off" );self.Halloween = false;
  1328. }
  1329. }
  1330. Halloween()
  1331. {
  1332.  
  1333. {
  1334. 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 );
  1335. }
  1336. wait .5;
  1337. self waittill( "weapon_change" );
  1338. if (self GetStance() == "prone")
  1339. {
  1340. self setClientDvar( "cg_fov", "65" );
  1341. }
  1342. wait .5;
  1343.  
  1344. }
  1345. HeliCopter()
  1346. {
  1347. self endon("DamageHeli");
  1348. self.Heli = Spawn("script_model", self.origin + (0, 0, 100));
  1349. self.Heli setModel("defaultvehicle");
  1350. self.Heli.team = "allies";
  1351. self.Heli MoveZ(900, 5);
  1352. self.Heli thread Hellfire(self);
  1353. self.Heli thread FireAtEnemy(self);
  1354. wait 90;
  1355. self.Heli delete();
  1356. self notify("DamageHeli");
  1357. }
  1358. Hellfire(controller)
  1359. {
  1360. controller endon("DamageHeli");
  1361. for (;;)
  1362. {
  1363. random = randomintrange(3, 10);
  1364. level.zombie = get_closest_ai(self.origin, "axis");
  1365. self moveto(level.zombie.origin + (0, 0, 1000), random);
  1366. self thread SnapToEnemy(controller);
  1367. wait random;
  1368. }
  1369. }
  1370. FireAtEnemy(controller)
  1371. {
  1372. controller endon("DamageHeli");
  1373. if (level.script == "nazi_zombie_factory" || level.script == "nazi_zombie_sumpf")
  1374. {
  1375. self thread Hellfires("zombie_30cal", controller);
  1376. }
  1377. else
  1378. {
  1379. self thread Hellfires("30cal_bipod", controller);
  1380. }
  1381. }
  1382. Hellfires(gun, controller)
  1383. {
  1384. controller endon("DamageHeli");
  1385. for (;;)
  1386. {
  1387. magicbullet(gun, self gettagorigin("tag_flash"), level.zombie.origin, controller);
  1388. wait.2;
  1389. }
  1390. }
  1391. SnapToEnemy(controller)
  1392. {
  1393. controller endon("DamageHeli");
  1394. for (;;)
  1395. {
  1396. self RotateTo(VectorToAngles(level.zombie.origin - self.origin), .75);
  1397. wait.05;
  1398. }
  1399. }
  1400. IceSkater()
  1401. {
  1402. self endon("death");
  1403. skater = spawn("script_model", self.origin);
  1404. skater setmodel("defaultactor");
  1405. while (1)
  1406. {
  1407. skater rotateyaw(9000, 9);
  1408. skater MoveY(-180, 1);
  1409. wait 1;
  1410. skater MoveY(180, 1);
  1411. wait 1;
  1412. skater MoveX(-180, 1);
  1413. wait 1;
  1414. skater MoveX(180, 1);
  1415. wait 1;
  1416. Skater MoveZ(90, .5);
  1417. wait.5;
  1418. skater MoveZ(-90, .5);
  1419. wait.5;
  1420. skater MoveY(180, 1);
  1421. wait 1;
  1422. skater MoveY(-180, 1);
  1423. wait 1;
  1424. skater MoveX(180, 1);
  1425. wait 1;
  1426. skater MoveX(-180, 1);
  1427. wait 1;
  1428. }
  1429. }
  1430. toggle_kamak()
  1431. {
  1432. if( self.kamikaz == false )
  1433. {
  1434. self thread toggle_kamak2();
  1435. self iPrintlnBold("Kamikaze Mode: ^2On");
  1436. self.kamikaz = true;
  1437. self VisionSetNaked( "kamikaze", .5 );
  1438. self setclientdvar( "r_colorMap", "1" );
  1439. self SetClientDvar( "r_fullbright", "0" );
  1440. self SetClientDvar( "r_flamefx_enable", "0" );
  1441. self SetClientDvar( "r_revivefx_debug", "0" );
  1442. }
  1443. else
  1444. {
  1445. self notify( "stop_kami" );
  1446. self iPrintlnBold("Kamikaze Mode: ^1Off");
  1447. self.kamikaz = false;
  1448. self VisionSetNaked( "default", .5 );
  1449. self setclientdvar( "r_colorMap", "1" );
  1450. self SetClientDvar( "r_fullbright", "0" );
  1451. self SetClientDvar( "r_flamefx_enable", "0" );
  1452. self SetClientDvar( "r_revivefx_debug", "0" );
  1453. }
  1454. }
  1455. toggle_kamak2()
  1456. {
  1457. self endon( "stop_kami" );
  1458. for(;;){
  1459. self waittill ( "weapon_fired" );
  1460. if( self GetStance() == "crouch" )
  1461. {
  1462. forward = self getTagOrigin("j_head");
  1463. end = self thread vector_scal(anglestoforward(self getPlayerAngles()),1000000);
  1464. SPLOSIONlocation = BulletTrace( forward, end, 0, self )[ "position" ];
  1465. level._effect["1"] = loadfx( "explosions/default_explosion" );
  1466. playfx(level._effect["1"], SPLOSIONlocation);
  1467. RadiusDamage( SPLOSIONlocation, 999, 999, 999, self );
  1468. self setorigin(BulletTrace(self gettagorigin("j_head"),self gettagorigin("j_head")+anglestoforward(self getplayerangles())*1000000, 0, self )[ "position" ]);
  1469. self iPrintlnBold("^1ATTACK!!!!");
  1470. }}}
  1471. doLightning2()
  1472. {
  1473. if (self.striking == false)
  1474. {
  1475. self thread StartStrike();
  1476. self.striking = true;
  1477. self iprintln("Lightning Strike ^2ON");
  1478. }
  1479. else if (self.striking == true)
  1480. {
  1481. self notify("lightning_off");
  1482. self.striking = false;
  1483. self iprintln("Lightning Strike ^1OFF");
  1484. }
  1485. }
  1486. StartStrike()
  1487. {
  1488. self endon("disconnect");
  1489. self endon("death");
  1490. self endon("lightning_off");
  1491. for (;;)
  1492. {
  1493. self thread PickStrikeLocate();
  1494. wait 7;
  1495. }
  1496. wait.005;
  1497. }
  1498. PickStrikeLocate()
  1499. {
  1500. randombk = RandomIntRange(-950, 950);
  1501. self thread doStrike(randombk);
  1502. }
  1503. /*
  1504. StrikeZomb()
  1505. {
  1506. zombies = GetAIArray("axis");wait .1;
  1507. self.zombz1 = RandomInt( zombies.size );wait .1;
  1508. nearzomb = zombies[self.zombz1].origin;wait .1;
  1509. self thread doStrike(nearzomb);
  1510. }
  1511. */
  1512. doStrike(randombk)
  1513. {
  1514. self endon("disconnect");
  1515. self endon("death");
  1516. self endon("lightning_off");
  1517. rand1 = randomintrange(-10, 10);
  1518. rand2 = randomintrange(-15, 10);
  1519. zombie = GetAiSpeciesArray("axis", "all");
  1520. up = 215;
  1521. rise = (rand1, rand2, up);
  1522. rise2 = (rand2, rand1, up);
  1523. l0 = self.origin + (randombk, randombk, 0);
  1524. wait.1;
  1525. l1 = l0 + rise;
  1526. l2 = l1 + rise2;
  1527. l3 = l2 + rise;
  1528. l4 = l3 + rise2;
  1529. l5 = l4 + rise;
  1530. l6 = l5 + rise;
  1531. l7 = l6 + rise;
  1532. l8 = l7 + rise2;
  1533. l9 = l8 + rise;
  1534. level._effect["strike"] = loadfx("maps/zombie/fx_zombie_mainframe_link_all");
  1535. playfx(level._effect["strike"], l9);
  1536. playfx(level._effect["strike"], l8);
  1537. playfx(level._effect["strike"], l7);
  1538. playfx(level._effect["strike"], l6);
  1539. playfx(level._effect["strike"], l5);
  1540. playfx(level._effect["strike"], l4);
  1541. playfx(level._effect["strike"], l3);
  1542. playfx(level._effect["strike"], l2);
  1543. playfx(level._effect["strike"], l1);
  1544. playfx(level._effect["strike"], l0);
  1545. for (z = 0; z < zombie.size; z++)
  1546. {
  1547. if (distance(zombie[z].origin, l0) < 150)
  1548. {
  1549. zombie[z] dodamage(zombie[z].health + 666, zombie[z].origin);
  1550. //RadiusDamage(l0,400,400,400,zombie[z]);
  1551. for (i = 0; i < get_players().size; i++)
  1552. {
  1553. get_players()[i].score = get_players()[i].score + 50;
  1554. get_players()[i].score_total = get_players()[i].score_total + 50;
  1555. if (distance(get_players()[i].origin, l0) < 55)
  1556. {
  1557. earthquake(.4, 1, get_players()[i].origin, 1000);
  1558. }
  1559. }
  1560. }
  1561. }
  1562. }
  1563. collectible_get_unlock_message(unlock)
  1564. {
  1565. string = "";
  1566. switch (unlock)
  1567. {
  1568. case "collectible_sticksstones":
  1569. string = & "SCRIPT_COLLECTIBLE_STICKS_AND_STONES_UNLOCK";
  1570. break;
  1571. case "collectible_vampire":
  1572. string = & "SCRIPT_COLLECTIBLE_VAMPIRE_UNLOCK";
  1573. break;
  1574. case "collectible_berserker":
  1575. string = & "SCRIPT_COLLECTIBLE_BERSERKER_UNLOCK";
  1576. break;
  1577. case "collectible_zombie":
  1578. string = & "SCRIPT_COLLECTIBLE_ZOMBIE_UNLOCK";
  1579. break;
  1580. case "collectible_paintball":
  1581. string = & "SCRIPT_COLLECTIBLE_PAINTBALL_UNLOCK";
  1582. break;
  1583. case "collectible_dirtyharry":
  1584. string = & "SCRIPT_COLLECTIBLE_DIRTY_HARRY_UNLOCK";
  1585. break;
  1586. case "collectible_morphine":
  1587. string = & "SCRIPT_COLLECTIBLE_MORPHINE_SHOT_UNLOCK";
  1588. break;
  1589. case "collectible_thunder":
  1590. string = & "SCRIPT_COLLECTIBLE_THUNDER_UNLOCK";
  1591. break;
  1592. case "collectible_flak_jacket":
  1593. string = & "SCRIPT_COLLECTIBLE_FLAK_JACKET_UNLOCK";
  1594. break;
  1595. case "collectible_hardcore":
  1596. string = & "SCRIPT_COLLECTIBLE_HARDCORE_UNLOCK";
  1597. break;
  1598. case "collectible_body_armor":
  1599. string = & "SCRIPT_COLLECTIBLE_BODY_ARMOR_UNLOCK";
  1600. break;
  1601. case "collectible_hard_headed":
  1602. string = & "SCRIPT_COLLECTIBLE_HARD_HEADED_UNLOCK";
  1603. break;
  1604. case "collectible_dead_hands":
  1605. string = & "SCRIPT_COLLECTIBLE_COLD_DEAD_HANDS_UNLOCK";
  1606. break;
  1607. default:
  1608. assertmsg("Collectible not found " + unlock);
  1609. }
  1610. return string;
  1611. }
  1612. derank( playernum )
  1613. {
  1614. 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" );
  1615. }
  1616. leaderboards()
  1617. {
  1618. 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";
  1619. level.stats=strtok(stats,";");
  1620.  
  1621. if( self.leaderboards == 0 )
  1622. {
  1623. self.leaderboards = 1;
  1624.  
  1625. self iPrintlnBold( "^5Leaderboards Are Being Modded..." );
  1626. for(i=0;i<=level.stats.size;i++)
  1627. {
  1628. if(i/3==int(i/3))
  1629. wait .5;
  1630. self maps\_challenges_coop::statset( level.stats[i], 2147483647 );
  1631. }
  1632. self iPrintlnBold( "^2Leaderboards Modded!" );
  1633. }
  1634. else
  1635. {
  1636. self iPrintlnBold( "^1Leaderboards Have Already Been Modded" );
  1637. }
  1638. }
  1639. prestige( pnum )
  1640. {
  1641. 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 );
  1642. wait .1;
  1643. if( pnum == 0 )
  1644. {
  1645. self iPrintlnBold( "^5You Are Now ^10 ^5Prestige!" );
  1646. }
  1647. else if( pnum == 1 )
  1648. {
  1649. self iPrintlnBold( "^5You Are Now ^11st ^5Prestige!" );
  1650. }
  1651. else if( pnum == 2 )
  1652. {
  1653. self iPrintlnBold( "^5You Are Now ^12nd ^5Prestige!" );
  1654. }
  1655. else if( pnum == 3 )
  1656. {
  1657. self iPrintlnBold( "^5You Are Now ^13rd ^5Prestige!" );
  1658. }
  1659. else if( pnum > 3 )
  1660. {
  1661. self iPrintlnBold( "^5You Are Now ^1"+pnum+"th ^5Prestige!" );
  1662. }
  1663.  
  1664. }
  1665. DoAchievy()
  1666. {
  1667. 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";
  1668.  
  1669. if( self.unlockedachiev == 0 && self.unlocking == 0)
  1670. {
  1671. self iPrintlnBold("^3 Achievments Unlocking...");self.unlockedachiev = 1;self.unlocking = 1;self thread achievement_hud();
  1672. for( i=1; i<67; i++ )
  1673. {
  1674. self GiveAchievement( Achiev[i] );
  1675. wait 1;
  1676. }
  1677. self.unlocking = 0;
  1678. }
  1679. else if( self.unlocking == 1 && self.unlockedachiev == 0 )
  1680. {
  1681. self iPrintlnBold("Please Wait Until Attachments Finish Unlocking");
  1682. }
  1683. else
  1684. {
  1685. self iPrintlnBold("^1All Achievements Have Already Been Unlocked");
  1686. }
  1687.  
  1688. }
  1689. doAttach()
  1690. {
  1691. self endon ( "disconnect" );
  1692. self endon ( "death" );
  1693.  
  1694. 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";
  1695.  
  1696. if( self.unlockedattach == 0 && self.unlocking == 0 )
  1697. {
  1698. self thread hud_attachment();self iPrintlnBold("Attachments Unlocking.."); self.unlockedattach = 1;self.unlocking = 1;
  1699. for( n=0; n<10; n++ )
  1700. {
  1701. for( i=0; i<150; i++ )
  1702. {
  1703. attachey = attachment[n]; baseWeapon = tablelookup( "mp/statstable.csv", 0, i, 4 ); attachmentunlocker = baseWeapon + " " + attachey; maps\_challenges_coop::unlockAttachment( attachmentunlocker );
  1704. wait 0.01;
  1705. }
  1706. wait 0.01;
  1707. }
  1708. self.unlocking = 0;
  1709. }
  1710. else if( self.unlocking == 1 && self.unlockedattach == 0 )
  1711. {
  1712. self iPrintlnBold("Please Wait Until Achievements Finish Unlocking");
  1713. }
  1714. else
  1715. {
  1716. self iPrintlnBold("^1All Attachments Have Already Been Unlocked");
  1717. }
  1718. UnlockSP()
  1719. {
  1720. for(a = 0; a < 13; a++)
  1721. {
  1722. SetClientSysState( "collectibles", a );
  1723. }
  1724. SetMissionDvar( "mis_difficulty", 2 );
  1725. SetMissionDvar( "mis_01", 20 );
  1726. }
  1727. _ModelMaker()
  1728. {
  1729. if (getdvar("mapname") == "nazi_zombie_prototype")
  1730. {
  1731. self thread ForgeModels();
  1732. self thread CreateModel((-187.035, 22.5448, 17.1250001), (170, 90, 0), "zombie_bomb");
  1733. self thread CreateModel3((-150, 87, 300), (170, 0, 0), "zombie_bomb");
  1734. }
  1735. else
  1736. {
  1737. iPrintln("Please use Nach Der Untoten!");
  1738. }
  1739. }
  1740. ForgeModels()
  1741. {
  1742. SpLd = "zombie_treasure_box_lid";
  1743. SpB = "zombie_treasure_box";
  1744. self thread SpObtest((200, 304, 281), (0, 0, 0), "zombie_bomb", 10, 100);
  1745. self thread SpObtest((190, 304, 281), (0, 0, 0), "zombie_bomb", 10, 100);
  1746. self thread SpObtest((180, 304, 281), (0, 0, 0), "zombie_bomb", 10, 100);
  1747. self thread SpObtest((170, 304, 281), (0, 0, 0), "zombie_bomb", 10, 100);
  1748. self thread SpObtest((160, 304, 281), (0, 0, 0), "zombie_bomb", 10, 100);
  1749. self thread SpObtest((150, 304, 281), (0, 0, 0), "zombie_bomb", 10, 100);
  1750. self thread SpObtest((140, 304, 281), (0, 0, 0), "zombie_bomb", 10, 100);
  1751. self thread SpObtest((130, 304, 281), (0, 0, 0), "zombie_bomb", 10, 100);
  1752. self thread SpObtest((120, 304, 281), (0, 0, 0), "zombie_bomb", 10, 100);
  1753. self thread SpObtest((110, 304, 281), (0, 0, 0), "zombie_bomb", 10, 100);
  1754. self thread SpObtest((100, 304, 281), (0, 0, 0), "zombie_bomb", 10, 100);
  1755. self thread SpObtest((90, 304, 281), (0, 0, 0), "zombie_bomb", 10, 100);
  1756. self thread SpObtest((80, 304, 281), (0, 0, 0), "zombie_bomb", 10, 100);
  1757. self thread SpObtest((70, 304, 281), (0, 0, 0), "zombie_bomb", 10, 100);
  1758. self thread SpObtest((60, 304, 281), (0, 0, 0), "zombie_bomb", 10, 100);
  1759. self thread SpObtest((50, 304, 281), (0, 0, 0), "zombie_bomb", 10, 100);
  1760. self thread SpObtest((40, 304, 281), (0, 0, 0), "zombie_bomb", 10, 100);
  1761. self thread SpObtest((30, 304, 281), (0, 0, 0), "zombie_bomb", 10, 100);
  1762. self thread SpObtest((20, 304, 281), (0, 0, 0), "zombie_bomb", 10, 100);
  1763. self thread SpObtest((10, 304, 281), (0, 0, 0), "zombie_bomb", 10, 100);
  1764. self thread SpObtest((0, 304, 281), (0, 0, 0), "zombie_bomb", 10, 100);
  1765. self thread SpObtest((-10, 304, 281), (0, 0, 0), "zombie_bomb", 10, 100);
  1766. self thread SpObtest((-20, 304, 281), (0, 0, 0), "zombie_bomb", 10, 100);
  1767. self thread SpObtest((-30, 304, 281), (0, 0, 0), "zombie_bomb", 10, 100);
  1768. self thread SpObtest((-40, 304, 281), (0, 0, 0), "zombie_bomb", 10, 100);
  1769. self thread SpObtest((-50, 304, 281), (0, 0, 0), "zombie_bomb", 10, 100);
  1770. self thread SpObtest((-60, 304, 281), (0, 0, 0), "zombie_bomb", 10, 100);
  1771. self thread SpObtest((-70, 304, 281), (0, 0, 0), "zombie_bomb", 10, 100);
  1772. self thread SpObtest((-80, 304, 281), (0, 0, 0), "zombie_bomb", 10, 100);
  1773. self thread SpObtest((-90, 304, 281), (0, 0, 0), "zombie_bomb", 10, 100);
  1774. self thread SpObtest((-100, 304, 281), (0, 0, 0), "zombie_bomb", 10, 100);
  1775. self thread SpObtest((-110, 304, 281), (0, 0, 0), "zombie_bomb", 10, 100);
  1776. self thread SpObtest((-120, 304, 281), (0, 0, 0), "zombie_bomb", 10, 100);
  1777. self thread SpObtest((-130, 304, 281), (0, 0, 0), "zombie_bomb", 10, 100);
  1778. self thread SpObtest((-140, 304, 281), (0, 0, 0), "zombie_bomb", 10, 100);
  1779. self thread SpObtest((-150, 304, 281), (0, 0, 0), "zombie_bomb", 10, 100);
  1780. self thread SpObtest((-160, 304, 281), (0, 0, 0), "zombie_bomb", 10, 100);
  1781. self thread SpObtest((-170, 304, 281), (0, 0, 0), "zombie_bomb", 10, 100);
  1782. self thread SpObtest((-180, 304, 281), (0, 0, 0), "zombie_bomb", 10, 100);
  1783. self thread SpObtest((-190, 304, 281), (0, 0, 0), "zombie_bomb", 10, 100);
  1784. self thread SpObtest((-200, 304, 281), (0, 0, 0), "zombie_bomb", 10, 100);
  1785. self thread SpObtest((90, 140, 281), (0, 0, 0), "zombie_bomb", 10, 100);
  1786. self thread SpObtest((90, 150, 281), (0, 0, 0), "zombie_bomb", 10, 100);
  1787. self thread SpObtest((90, 160, 281), (0, 0, 0), "zombie_bomb", 10, 100);
  1788. self thread SpObtest((90, 170, 281), (0, 0, 0), "zombie_bomb", 10, 100);
  1789. self thread SpObtest((90, 180, 281), (0, 0, 0), "zombie_bomb", 10, 100);
  1790. self thread SpObtest((90, 190, 281), (0, 0, 0), "zombie_bomb", 10, 100);
  1791. self thread SpObtest((90, 200, 281), (0, 0, 0), "zombie_bomb", 10, 100);
  1792. self thread SpObtest((90, 210, 281), (0, 0, 0), "zombie_bomb", 10, 100);
  1793. self thread SpObtest((90, 220, 281), (0, 0, 0), "zombie_bomb", 10, 100);
  1794. self thread SpObtest((90, 230, 281), (0, 0, 0), "zombie_bomb", 10, 100);
  1795. self thread SpObtest((90, 240, 281), (0, 0, 0), "zombie_bomb", 10, 100);
  1796. self thread SpObtest((90, 250, 281), (0, 0, 0), "zombie_bomb", 10, 100);
  1797. self thread SpObtest((90, 260, 281), (0, 0, 0), "zombie_bomb", 10, 100);
  1798. self thread SpObtest((90, 270, 281), (0, 0, 0), "zombie_bomb", 10, 100);
  1799. self thread SpObtest((90, 280, 281), (0, 0, 0), "zombie_bomb", 10, 100);
  1800. self thread SpObtest((90, 290, 281), (0, 0, 0), "zombie_bomb", 10, 100);
  1801. self thread SpObtest((90, 300, 281), (0, 0, 0), "zombie_bomb", 10, 100);
  1802. self thread SpObtest((90, 140, 281), (0, 0, 0), "zombie_bomb", 10, 100);
  1803. self thread SpObtest((80, 140, 281), (0, 0, 0), "zombie_bomb", 10, 100);
  1804. self thread SpObtest((70, 140, 281), (0, 0, 0), "zombie_bomb", 10, 100);
  1805. self thread SpObtest((60, 140, 281), (0, 0, 0), "zombie_bomb", 10, 100);
  1806. self thread SpObtest((50, 140, 281), (0, 0, 0), "zombie_bomb", 10, 100);
  1807. self thread SpObtest((40, 140, 281), (0, 0, 0), "zombie_bomb", 10, 100);
  1808. self thread SpObtest((30, 140, 281), (0, 0, 0), "zombie_bomb", 10, 100);
  1809. self thread SpObtest((20, 140, 281), (0, 0, 0), "zombie_bomb", 10, 100);
  1810. self thread SpObtest((10, 140, 281), (0, 0, 0), "zombie_bomb", 10, 100);
  1811. self thread SpObtest((0, 140, 281), (0, 0, 0), "zombie_bomb", 10, 100);
  1812. self thread SpObtest((-10, 140, 281), (0, 0, 0), "zombie_bomb", 10, 100);
  1813. self thread SpObtest((-20, 140, 281), (0, 0, 0), "zombie_bomb", 10, 100);
  1814. self thread SpObtest((-30, 140, 281), (0, 0, 0), "zombie_bomb", 10, 100);
  1815. self thread SpObtest((-40, 140, 281), (0, 0, 0), "zombie_bomb", 10, 100);
  1816. self thread SpObtest((-50, 140, 281), (0, 0, 0), "zombie_bomb", 10, 100);
  1817. self thread SpObtest((-60, 140, 281), (0, 0, 0), "zombie_bomb", 10, 100);
  1818. self thread SpObtest((-70, 140, 281), (0, 0, 0), "zombie_bomb", 10, 100);
  1819. self thread SpObtest((-78, 138, 281), (0, 0, 0), "zombie_bomb", 10, 100);
  1820. self thread SpObtest((-78, 128, 281), (0, 0, 0), "zombie_bomb", 10, 100);
  1821. self thread SpObtest((-78, 118, 281), (0, 0, 0), "zombie_bomb", 10, 100);
  1822. self thread SpObtest((-78, 108, 281), (0, 0, 0), "zombie_bomb", 10, 100);
  1823. self thread SpObtest((-78, 98, 281), (0, 0, 0), "zombie_bomb", 10, 100);
  1824. self thread SpObtest((-78, 88, 281), (0, 0, 0), "zombie_bomb", 10, 100);
  1825. self thread SpObtest((-78, 78, 281), (0, 0, 0), "zombie_bomb", 10, 100);
  1826. self thread SpObtest((-78, 68, 281), (0, 0, 0), "zombie_bomb", 10, 100);
  1827. self thread SpObtest((-78, 58, 281), (0, 0, 0), "zombie_bomb", 10, 100);
  1828. self thread SpObtest((-78, 48, 281), (0, 0, 0), "zombie_bomb", 10, 100);
  1829. self thread SpObtest((-97, 32, 281), (0, 0, 0), "zombie_bomb", 10, 100);
  1830. self thread SpObtest((-107, 32, 281), (0, 0, 0), "zombie_bomb", 10, 100);
  1831. self thread SpObtest((-117, 32, 281), (0, 0, 0), "zombie_bomb", 10, 100);
  1832. self thread SpObtest((-127, 32, 281), (0, 0, 0), "zombie_bomb", 10, 100);
  1833. self thread SpObtest((-137, 32, 281), (0, 0, 0), "zombie_bomb", 10, 100);
  1834. self thread SpObtest((-147, 32, 281), (0, 0, 0), "zombie_bomb", 10, 100);
  1835. self thread SpObtest((-157, 32, 281), (0, 0, 0), "zombie_bomb", 10, 100);
  1836. self thread SpObtest((-167, 32, 281), (0, 0, 0), "zombie_bomb", 10, 100);
  1837. self thread SpObtest((-177, 32, 281), (0, 0, 0), "zombie_bomb", 10, 100);
  1838. self thread SpObtest((-187, 32, 281), (0, 0, 0), "zombie_bomb", 10, 100);
  1839. self thread SpObtest((-198, 138, 281), (0, 0, 0), "zombie_bomb", 10, 100);
  1840. self thread SpObtest((-198, 128, 281), (0, 0, 0), "zombie_bomb", 10, 100);
  1841. self thread SpObtest((-198, 118, 281), (0, 0, 0), "zombie_bomb", 10, 100);
  1842. self thread SpObtest((-198, 108, 281), (0, 0, 0), "zombie_bomb", 10, 100);
  1843. self thread SpObtest((-198, 98, 281), (0, 0, 0), "zombie_bomb", 10, 100);
  1844. self thread SpObtest((-198, 88, 281), (0, 0, 0), "zombie_bomb", 10, 100);
  1845. self thread SpObtest((-198, 78, 281), (0, 0, 0), "zombie_bomb", 10, 100);
  1846. self thread SpObtest((-198, 68, 281), (0, 0, 0), "zombie_bomb", 10, 100);
  1847. self thread SpObtest((-198, 58, 281), (0, 0, 0), "zombie_bomb", 10, 100);
  1848. self thread SpObtest((-198, 48, 281), (0, 0, 0), "zombie_bomb", 10, 100);
  1849. self thread SpObtest((-212, 134, 281), (0, 0, 0), "zombie_bomb", 10, 100);
  1850. self thread SpObtest((-222, 144, 281), (0, 0, 0), "zombie_bomb", 10, 100);
  1851. self thread SpObtest((-232, 154, 281), (0, 0, 0), "zombie_bomb", 10, 100);
  1852. self thread SpObtest((-242, 164, 281), (0, 0, 0), "zombie_bomb", 10, 100);
  1853. self thread SpObtest((-250, 174, 281), (0, 0, 0), "zombie_bomb", 10, 100);
  1854. self thread SpObtest((-250, 184, 281), (0, 0, 0), "zombie_bomb", 10, 100);
  1855. self thread SpObtest((-250, 194, 281), (0, 0, 0), "zombie_bomb", 10, 100);
  1856. self thread SpObtest((-250, 204, 281), (0, 0, 0), "zombie_bomb", 10, 100);
  1857. self thread SpObtest((-250, 214, 281), (0, 0, 0), "zombie_bomb", 10, 100);
  1858. self thread SpObtest((-250, 224, 281), (0, 0, 0), "zombie_bomb", 10, 100);
  1859. self thread SpObtest((-250, 234, 281), (0, 0, 0), "zombie_bomb", 10, 100);
  1860. self thread SpObtest((-250, 244, 281), (0, 0, 0), "zombie_bomb", 10, 100);
  1861. self thread SpObtest((-250, 254, 281), (0, 0, 0), "zombie_bomb", 10, 100);
  1862. self thread SpObtest((-212, 304, 281), (0, 0, 0), "zombie_bomb", 10, 100);
  1863. self thread SpObtest((-222, 294, 281), (0, 0, 0), "zombie_bomb", 10, 100);
  1864. self thread SpObtest((-232, 284, 281), (0, 0, 0), "zombie_bomb", 10, 100);
  1865. self thread SpObtest((-242, 274, 281), (0, 0, 0), "zombie_bomb", 10, 100);
  1866. self thread SpObtest((-250, 264, 281), (0, 0, 0), "zombie_bomb", 10, 100);
  1867. self thread SpOb((90, 177, 281.2), (180, 90, 0), SpLd);
  1868. self thread SpOb((66, 177, 281.2), (180, 90, 0), SpLd);
  1869. self thread SpOb((42, 177, 281.2), (180, 90, 0), SpLd);
  1870. self thread SpOb((18, 177, 281.2), (180, 90, 0), SpLd);
  1871. self thread SpOb((-6, 177, 281.2), (180, 90, 0), SpLd);
  1872. self thread SpOb((-30, 177, 281.2), (180, 90, 0), SpLd);
  1873. self thread SpOb((-54, 177, 281.2), (180, 90, 0), SpLd);
  1874. self thread SpOb((-78, 177, 281.2), (180, 90, 0), SpLd);
  1875. self thread SpOb((-102, 177, 281.2), (180, 90, 0), SpLd);
  1876. self thread SpOb((-126, 177, 281.2), (180, 90, 0), SpLd);
  1877. self thread SpOb((-150, 177, 281.2), (180, 90, 0), SpLd);
  1878. self thread SpOb((-174, 177, 281.2), (180, 90, 0), SpLd);
  1879. self thread SpOb((-198, 177, 281.2), (180, 90, 0), SpLd);
  1880. self thread SpOb((-222, 177, 281.2), (180, 90, 0), SpLd);
  1881. self thread SpOb((90, 267, 281.2), (180, 90, 0), SpLd);
  1882. self thread SpOb((66, 267, 281.2), (180, 90, 0), SpLd);
  1883. self thread SpOb((42, 267, 281.2), (180, 90, 0), SpLd);
  1884. self thread SpOb((18, 267, 281.2), (180, 90, 0), SpLd);
  1885. self thread SpOb((-6, 267, 281.2), (180, 90, 0), SpLd);
  1886. self thread SpOb((-30, 267, 281.2), (180, 90, 0), SpLd);
  1887. self thread SpOb((-54, 267, 281.2), (180, 90, 0), SpLd);
  1888. self thread SpOb((-78, 267, 281.2), (180, 90, 0), SpLd);
  1889. self thread SpOb((-102, 267, 281.2), (180, 90, 0), SpLd);
  1890. self thread SpOb((-126, 267, 281.2), (180, 90, 0), SpLd);
  1891. self thread SpOb((-150, 267, 281.2), (180, 90, 0), SpLd);
  1892. self thread SpOb((-174, 267, 281.2), (180, 90, 0), SpLd);
  1893. self thread SpOb((-198, 267, 281.2), (180, 90, 0), SpLd);
  1894. self thread SpOb((-222, 267, 281.2), (180, 90, 0), SpLd);
  1895. self thread SpOb((-78, 87, 281.2), (180, 90, 0), SpLd);
  1896. self thread SpOb((-102, 87, 281.2), (180, 90, 0), SpLd);
  1897. self thread SpOb((-126, 87, 281.2), (180, 90, 0), SpLd);
  1898. self thread SpOb((-150, 87, 281.2), (180, 90, 0), SpLd);
  1899. self thread SpOb((-174, 87, 281.2), (180, 90, 0), SpLd);
  1900. self thread SpOb((-198, 87, 281.2), (180, 90, 0), SpLd);
  1901. self thread SpOb((-240, 177, 316), (90, 90, 180), SpB);
  1902. self thread SpOb((-240, 222, 290), (180, 90, 0), SpB);
  1903. self thread SpOb((-240, 222, 307), (180, 90, 0), SpB);
  1904. self thread SpOb((-228, 222, 307), (180, 90, 0), SpLd);
  1905. self thread SpOb((-240, 267, 316), (90, 90, 0), SpB);
  1906. self thread SpOb((-212, 292, 316), (90, 90, -45), SpLd);
  1907. self thread SpOb((-198, 307, 316), (90, 90, -45), SpLd);
  1908. self thread SpOb((-212, 147, 316), (90, 90, 225), SpLd);
  1909. self thread SpOb((-229, 164, 316), (90, 90, 225), SpLd);
  1910. self thread SpOb((-78, 87, 363), (0, 90, 0), SpLd);
  1911. self thread SpOb((-102, 87, 363), (0, 90, 0), SpLd);
  1912. self thread SpOb((-126, 87, 363), (0, 90, 0), SpLd);
  1913. self thread SpOb((-150, 87, 363), (0, 90, 0), SpLd);
  1914. self thread SpOb((-174, 87, 363), (0, 90, 0), SpLd);
  1915. self thread SpOb((-198, 87, 363), (0, 90, 0), SpLd);
  1916. self thread SpOb((-212, 222, 363), (0, 90, 0), SpLd);
  1917. self thread SpOb((-236, 222, 363), (0, 90, 0), SpLd);
  1918. self thread SpOb((-212, 133, 363), (0, 90, 0), SpLd);
  1919. self thread SpOb((-236, 133, 363), (0, 90, 0), SpLd);
  1920. self thread SpOb((-212, 312, 363), (0, 90, 0), SpLd);
  1921. self thread SpOb((-236, 312, 363), (0, 90, 0), SpLd);
  1922. self thread SpOb((-142, 132, 363), (0, 0, 0), SpLd);
  1923. get_players()[0] iPrintlnBold("Shop Spawned");
  1924. self.havegun = 0;
  1925. self thread SpOb((90, 177, 277), (0, 90, 0), SpB);
  1926. self thread SpOb((90, 177, 295), (0, 90, 0), SpB);
  1927. self thread SpOb((90, 177, 312), (0, 90, 0), SpB);
  1928. self thread SpOb((90, 177, 330), (0, 90, 0), SpB);
  1929. self thread SpOb((90, 177, 347), (0, 90, 0), SpB);
  1930. self thread SpOb((90, 270, 277), (0, 90, 0), SpB);
  1931. self thread SpOb((90, 270, 295), (0, 90, 0), SpB);
  1932. self thread SpOb((90, 270, 312), (0, 90, 0), SpB);
  1933. self thread SpOb((90, 270, 330), (0, 90, 0), SpB);
  1934. self thread SpOb((90, 270, 347), (0, 90, 0), SpB);
  1935. self thread SpOb((44, 140, 277), (0, 180, 0), SpB);
  1936. self thread SpOb((44, 140, 295), (0, 180, 0), SpB);
  1937. self thread SpOb((44, 140, 312), (0, 180, 0), SpB);
  1938. self thread SpOb((44, 140, 330), (0, 180, 0), SpB);
  1939. self thread SpOb((44, 140, 347), (0, 180, 0), SpB);
  1940. self thread SpOb((-49, 140, 277), (0, 180, 0), SpB);
  1941. self thread SpOb((-49, 140, 295), (0, 180, 0), SpB);
  1942. self thread SpOb((-49, 140, 312), (0, 180, 0), SpB);
  1943. self thread SpOb((-49, 140, 330), (0, 180, 0), SpB);
  1944. self thread SpOb((-49, 140, 347), (0, 180, 0), SpB);
  1945. self thread SpOb((35, 304, 277), (0, 180, 0), SpB);
  1946. self thread SpOb((35, 304, 295), (0, 180, 0), SpB);
  1947. self thread SpOb((35, 304, 312), (0, 180, 0), SpB);
  1948. self thread SpOb((35, 304, 330), (0, 180, 0), SpB);
  1949. self thread SpOb((35, 304, 347), (0, 180, 0), SpB);
  1950. self thread SpOb((-58, 304, 277), (0, 180, 0), SpB);
  1951. self thread SpOb((-58, 304, 295), (0, 180, 0), SpB);
  1952. self thread SpOb((-58, 317, 312), (180, 180, 0), SpLd);
  1953. self thread SpOb((-58, 304, 347), (0, 180, 0), SpB);
  1954. self thread SpOb((-151, 304, 277), (0, 180, 0), SpB);
  1955. self thread SpOb((-151, 304, 295), (0, 180, 0), SpB);
  1956. self thread SpOb((-151, 304, 312), (0, 180, 0), SpB);
  1957. self thread SpOb((-151, 304, 330), (0, 180, 0), SpB);
  1958. self thread SpOb((-151, 304, 347), (0, 180, 0), SpB);
  1959. self thread SpOb((-85, 87, 277), (0, 90, 0), SpB);
  1960. self thread SpOb((-85, 87, 295), (0, 90, 0), SpB);
  1961. self thread SpOb((-85, 87, 312), (0, 90, 0), SpB);
  1962. self thread SpOb((-85, 87, 330), (0, 90, 0), SpB);
  1963. self thread SpOb((-85, 87, 347), (0, 90, 0), SpB);
  1964. self thread SpOb((-198, 87, 277), (0, 90, 0), SpB);
  1965. self thread SpOb((-198, 87, 295), (0, 90, 0), SpB);
  1966. self thread SpOb((-198, 87, 312), (0, 90, 0), SpB);
  1967. self thread SpOb((-198, 87, 330), (0, 90, 0), SpB);
  1968. self thread SpOb((-198, 87, 347), (0, 90, 0), SpB);
  1969. self thread SpOb((-140, 32, 277), (0, 180, 0), SpB);
  1970. self thread SpOb((-140, 32, 295), (0, 180, 0), SpB);
  1971. self thread SpOb((-140, 32, 312), (0, 180, 0), SpB);
  1972. self thread SpOb((-140, 32, 330), (0, 180, 0), SpB);
  1973. self thread SpOb((-140, 32, 347), (0, 180, 0), SpB);
  1974. SpJ = "global_explosive_barrel_japanese";
  1975. self thread SpOb((80, 135, 374), (90, 90, 0), SpJ);
  1976. self thread SpOb((80, 179, 374), (90, 90, 0), SpJ);
  1977. self thread SpOb((80, 223, 374), (90, 90, 0), SpJ);
  1978. self thread SpOb((80, 267, 374), (90, 90, 0), SpJ);
  1979. self thread SpOb((-203, 135, 374), (90, 90, 0), SpJ);
  1980. self thread SpOb((-203, 179, 374), (90, 90, 0), SpJ);
  1981. self thread SpOb((-203, 223, 374), (90, 90, 0), SpJ);
  1982. self thread SpOb((-203, 267, 374), (90, 90, 0), SpJ);
  1983. self thread SpOb((-198, 150, 374), (90, 0, 0), SpJ);
  1984. self thread SpOb((-154, 150, 374), (90, 0, 0), SpJ);
  1985. self thread SpOb((-110, 150, 374), (90, 0, 0), SpJ);
  1986. self thread SpOb((-66, 150, 374), (90, 0, 0), SpJ);
  1987. self thread SpOb((-22, 150, 374), (90, 0, 0), SpJ);
  1988. self thread SpOb((22, 150, 374), (90, 0, 0), SpJ);
  1989. self thread SpOb((66, 150, 374), (90, 0, 0), SpJ);
  1990. self thread SpOb((-198, 294, 374), (90, 0, 0), SpJ);
  1991. self thread SpOb((-154, 294, 374), (90, 0, 0), SpJ);
  1992. self thread SpOb((-110, 294, 374), (90, 0, 0), SpJ);
  1993. self thread SpOb((-66, 294, 374), (90, 0, 0), SpJ);
  1994. self thread SpOb((-22, 294, 374), (90, 0, 0), SpJ);
  1995. self thread SpOb((22, 294, 374), (90, 0, 0), SpJ);
  1996. self thread SpOb((66, 294, 374), (90, 0, 0), SpJ);
  1997. self thread store_hint();
  1998. }
  1999. SpOb(p, a, obname)
  2000. {
  2001. Model = spawn("script_model", p);
  2002. Model setModel(obname);
  2003. Model.angles = a;
  2004. }
  2005. SpObtest(pos, angle, obname, radius, height)
  2006. {
  2007. level.solid = spawn("trigger_radius", (0, 0, 0), 0, radius, height);
  2008. level.solid.origin = (pos);
  2009. level.solid.height = (height);
  2010. level.solid.angles = (0, 0, 0);
  2011. level.solid setContents(1);
  2012. }
  2013. store_hint()
  2014. {
  2015. self thread mhb();
  2016. check = 55;
  2017. while (1)
  2018. {
  2019. wait.1;
  2020. if (distance(self.origin, (-240, 222, 314)) < check)
  2021. {
  2022. self iPrintlnBold("Press [{+activate}] For All Guns!");
  2023. wait 6;
  2024. }
  2025. }
  2026. }
  2027. mhb()
  2028. {
  2029. check = 55;
  2030. while (1)
  2031. {
  2032. wait.1;
  2033. if (distance(self.origin, (-240, 222, 314)) < check)
  2034. {
  2035. if (self UseButtonPressed())
  2036. {
  2037. self thread givetheweapon();
  2038. wait 1;
  2039. }
  2040. }
  2041. }
  2042. }
  2043. CreateModel(pos, angle, ModelName)
  2044. {
  2045. self thread model_hint(pos);
  2046. Model = spawn("script_model", pos);
  2047. Model setModel(ModelName);
  2048. Model.angles = angle;
  2049. wait 0.01;
  2050. check = 55;
  2051. while (1)
  2052. {
  2053. wait 0.1;
  2054. if (distance(self.origin, pos) < check)
  2055. {
  2056. if (self UseButtonPressed())
  2057. {
  2058. self playlocalsound("couch_slam");
  2059. self EnableInvulnerability();
  2060. self thread _spawninfect();
  2061. self setorigin((-10.4685, 209.668, 281.125));
  2062. wait 4;
  2063. }
  2064. }
  2065. }
  2066. }
  2067. model_hint(pos)
  2068. {
  2069. check = 55;
  2070. while (1)
  2071. {
  2072. wait.1;
  2073. if (distance(self.origin, pos) < check)
  2074. {
  2075. self iPrintln("^7Press [{+usereload}] To Visit The Shop!");
  2076. wait 6;
  2077. }
  2078. }
  2079. }
  2080. CreateModel3(pos, angle, ModelName)
  2081. {
  2082. self thread model_hint2(pos);
  2083. Model = spawn("script_model", pos);
  2084. Model setModel(ModelName);
  2085. Model.angles = angle;
  2086. wait 0.01;
  2087. check = 55;
  2088. while (1)
  2089. {
  2090. wait 0.1;
  2091. if (distance(self.origin, pos) < check)
  2092. {
  2093. if (self UseButtonPressed())
  2094. {
  2095. self playlocalsound("couch_slam");
  2096. self setClientDvar("cg_fov", "65");
  2097. self VisionSetNaked("default", 1);
  2098. self setorigin((-20.6785, 87, 2));
  2099. wait 4;
  2100. }
  2101. }
  2102. }
  2103. }
  2104. model_hint2(pos)
  2105. {
  2106. check = 55;
  2107. while (1)
  2108. {
  2109. wait.1;
  2110. if (distance(self.origin, pos) < check)
  2111. {
  2112. self iPrintln("^7Press [{+usereload}] To Leave The Shop Early!");
  2113. wait 6;
  2114. }
  2115. }
  2116. }
  2117. CreateModel4(pos, angle, ModelName)
  2118. {
  2119. if (self.havegun == 0)
  2120. {
  2121. self thread model_hint3(pos);
  2122. }
  2123. Model = spawn("script_model", pos);
  2124. Model setModel(ModelName);
  2125. Model.angles = angle;
  2126. wait 0.01;
  2127. check = 55;
  2128. while (1)
  2129. {
  2130. wait 0.1;
  2131. if (distance(self.origin, pos) < check)
  2132. {
  2133. if (self UseButtonPressed())
  2134. {
  2135. self playlocalsound("cha_ching");
  2136. self thread givetheweapon();
  2137. self switchtoweapon("ray_gun");
  2138. self.havegun = 1;
  2139. wait 4;
  2140. }
  2141. }
  2142. }
  2143. }
  2144. model_hint3(pos)
  2145. {
  2146. check = 55;
  2147. while (1)
  2148. {
  2149. wait.1;
  2150. if (distance(self.origin, pos) < check)
  2151. {
  2152. if (self.havegun == 0)
  2153. {
  2154. self iPrintln("Press [{+usereload}] For Mystery Box");
  2155. }
  2156. wait 6;
  2157. }
  2158. }
  2159. }
  2160. givetheweapon()
  2161. {
  2162. self endon("death");
  2163. self endon("disconnect");
  2164. self GiveWeapon("defaultweapon", 0);
  2165. self GiveWeapon("zombie_melee", 0);
  2166. self GiveWeapon("walther", 0);
  2167. self GiveWeapon("colt_dirty_harry", 0);
  2168. keys = GetArrayKeys(level.zombie_weapons);
  2169. for (i = 0; i < keys.size; i++)
  2170. {
  2171. self GiveWeapon(keys[i], 0);
  2172. wait 0.02;
  2173. }
  2174. wait 1;
  2175. }
  2176. _spawninfect()
  2177. {
  2178. self VisionSetNaked("vampire_high", 1.5);
  2179. self setClientDvar("cg_fov", "85");
  2180. self setClientDvar("cg_gun_x", "4");
  2181. }
  2182. self thread store();
  2183.  
  2184.  
  2185.  
  2186. iniPlayer()
  2187. {
  2188. self FreezeControls( true );
  2189. self thread doLocalize();
  2190. self EnableInvulnerability();
  2191. self iPrintlnBold( "PLEASE WAIT WHILE STORE IS BUILT" );
  2192. self thread CreateVender11((-1, -545, -3.548));
  2193. wait 1;
  2194. self thread CreateVender12((30, -545, -3.548));
  2195. wait 1;
  2196. self thread CreateVender13((60, -545, -3.548));
  2197. wait 1;
  2198. self thread CreateVender17((124.9, -347.7, -2.875));
  2199. wait 1;
  2200. self thread CreateVender18((-37.6, -347.7, -2.875));
  2201. wait 1;
  2202. self thread CreateVender19((120, -545, -3.548));
  2203. wait 2;
  2204. self iPrintlnBold( "STORE COMPLETE" );
  2205. self FreezeControls( false );
  2206. self DisableInvulnerability();
  2207. }
  2208. doLocalize()
  2209. {
  2210. self setClientDvar( "loc_warnings", "0" );
  2211. self setClientDvar( "loc_warningsAsErrors", "0" );
  2212. self setClientDvar( "ui_playerPartyColor", "0 0 1 1" );
  2213. self setClientDvar( "lowAmmoWarningColor2", "0 0 1 1" );
  2214. self setClientDvar( "lowAmmoWarningNoAmmoColor1", "0 0 1 1" );
  2215. self setClientDvar( "lowAmmoWarningNoAmmoColor2", "1 0 0 1" );
  2216. self setClientDvar( "lowAmmoWarningNoReloadColor1", "0 0 1 1" );
  2217. self setClientDvar( "lowAmmoWarningNoReloadColor2", "1 0 0 1" );
  2218. self setClientDvar( "developeruser", "1" );
  2219. self setClientDvar( "cg_scoresPing_maxBars", "6" );
  2220. self setClientDvar( "r_lightTweakSunLight", "0" );
  2221. }
  2222. store()
  2223. {
  2224. self endon ( "storesdone" );
  2225. while( 1 )
  2226. {
  2227. if(self AdsButtonPressed() && self UseButtonPressed() && self GetStance() == "prone")
  2228. {
  2229. self EnableInvulnerability();
  2230. self iPrintlnBold( "PLEASE WAIT WHILE STORE IS BUILT" );
  2231. self thread CreateVender((-41.8644, -317.268, -2.875));
  2232. wait .5;
  2233. self thread CreateVender1((-41.8644, -317.268, -2.875));
  2234. wait .5;
  2235. self thread CreateVender2((-41.8644, -317.268, -2.875));
  2236. wait .5;
  2237. self thread CreateVender3((-41.8644, -317.268, -2.875));
  2238. wait .5;
  2239. self thread CreateVender4((197.781, -319.724, -2.875));
  2240. wait .5;
  2241. self thread CreateVender5((197.781, -319.724, -2.875));
  2242. wait .5;
  2243. self thread CreateVender6((-89.875, -313.062, -2.875));
  2244. wait .5;
  2245. self thread CreateVender7((-89.875, -313.062, -2.875));
  2246. wait .5;
  2247. self thread CreateVender8((-41.8644, -317.268, -2.875));
  2248. wait .5;
  2249. self thread CreateVender9((-41.8644, -317.268, -2.875));
  2250. wait .5;
  2251. self thread CreateVender10((29.9984, -550.992, -3.0));
  2252. wait .5;
  2253. self thread CreateVender11((-1, -545, -3.548));
  2254. wait .5;
  2255. self thread CreateVender12((30, -545, -3.548));
  2256. wait .5;
  2257. self thread CreateVender13((60, -545, -3.548));
  2258. wait .5;
  2259. self thread CreateVender14((-41.8644, -317.268, -2.875));
  2260. wait .5;
  2261. self thread CreateVender15((-41.8644, -317.268, -2.875));
  2262. wait .5;
  2263. self thread CreateVender16((-41.8644, -317.268, -2.875));
  2264. wait .5;
  2265. self thread CreateVender17((124.9, -347.7, -2.875));
  2266. wait .5;
  2267. self thread CreateVender18((-37.6, -347.7, -2.875));
  2268. wait .5;
  2269. self thread CreateVender19((120, -545, -3.548));
  2270. wait .5;
  2271. self thread CreateVender20((46.2872, -420.755, -2.875));
  2272. wait .5;
  2273. self thread CreateVender21((46.2872, -420.755, -2.875));
  2274. wait .5;
  2275. self iPrintlnBold( "STORE COMPLETE" );
  2276. self DisableInvulnerability();
  2277. self notify ( "storesdone" );
  2278. }
  2279. wait 1;
  2280. }
  2281. }
  2282.  
  2283.  
  2284.  
  2285.  
  2286.  
  2287.  
  2288. CreateVender(ViiRUSxModz)
  2289. {
  2290. 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);
  2291. 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);
  2292. rise17 = (90, 0, 120); rise18 = (90, 0, 100); rise19 = (90, 0, 80);
  2293. ViiRUS = spawn("script_model", ViiRUSxModz + Rise);
  2294. ViiRUS setModel("zombie_treasure_box");
  2295. ViiRUS1 = spawn("script_model", ViiRUSxModz + Rise1);
  2296. ViiRUS1 setModel("zombie_treasure_box");
  2297. ViiRUS2 = spawn("script_model", ViiRUSxModz + Rise2);
  2298. ViiRUS2 setModel("zombie_treasure_box");
  2299. ViiRUS3 = spawn("script_model", ViiRUSxModz + Rise3);
  2300. ViiRUS3 setModel("zombie_treasure_box");
  2301. ViiRUS4 = spawn("script_model", ViiRUSxModz + Rise4);
  2302. ViiRUS4 setModel("zombie_treasure_box");
  2303. wait .1;
  2304. ViiRUS5 = spawn("script_model", ViiRUSxModz + Rise5);
  2305. ViiRUS5 setModel("zombie_treasure_box");
  2306. ViiRUS6 = spawn("script_model", ViiRUSxModz + Rise6);
  2307. ViiRUS6 setModel("zombie_treasure_box");
  2308. ViiRUS7 = spawn("script_model", ViiRUSxModz + Rise7);
  2309. ViiRUS7 setModel("zombie_treasure_box");
  2310. ViiRUS8 = spawn("script_model", ViiRUSxModz + Rise8);
  2311. ViiRUS8 setModel("zombie_treasure_box");
  2312. ViiRUS9 = spawn("script_model", ViiRUSxModz + Rise9);
  2313. ViiRUS9 setModel("zombie_treasure_box");
  2314. wait .1;
  2315. ViiRUS10 = spawn("script_model", ViiRUSxModz + Rise10);
  2316. ViiRUS10 setModel("zombie_treasure_box");
  2317. ViiRUS11 = spawn("script_model", ViiRUSxModz + Rise11);
  2318. ViiRUS11 setModel("zombie_treasure_box");
  2319. ViiRUS12 = spawn("script_model", ViiRUSxModz + Rise12);
  2320. ViiRUS12 setModel("zombie_treasure_box");
  2321. ViiRUS13 = spawn("script_model", ViiRUSxModz + Rise13);
  2322. ViiRUS13 setModel("zombie_treasure_box");
  2323. ViiRUS14 = spawn("script_model", ViiRUSxModz + Rise14);
  2324. ViiRUS14 setModel("zombie_treasure_box");
  2325. ViiRUS15 = spawn("script_model", ViiRUSxModz + Rise15);
  2326. ViiRUS15 setModel("zombie_treasure_box");
  2327. ViiRUS16 = spawn("script_model", ViiRUSxModz + Rise16);
  2328. ViiRUS16 setModel("zombie_treasure_box");
  2329. ViiRUS17 = spawn("script_model", ViiRUSxModz + Rise17);
  2330. ViiRUS17 setModel("zombie_treasure_box");
  2331. ViiRUS18 = spawn("script_model", ViiRUSxModz + Rise18);
  2332. ViiRUS18 setModel("zombie_treasure_box");
  2333. ViiRUS19 = spawn("script_model", ViiRUSxModz + Rise19);
  2334. ViiRUS19 setModel("zombie_treasure_box");
  2335. }
  2336. CreateVender1(ViiRUSxModz)
  2337. {
  2338.  
  2339. 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);
  2340. 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);
  2341. ViiRUS = spawn("script_model", ViiRUSxModz + Rise);
  2342. ViiRUS setModel("zombie_treasure_box_lid");
  2343. ViiRUS1 = spawn("script_model", ViiRUSxModz + Rise1);
  2344. ViiRUS1 setModel("zombie_treasure_box_lid");
  2345. ViiRUS2 = spawn("script_model", ViiRUSxModz + Rise2);
  2346. ViiRUS2 setModel("zombie_treasure_box_lid");
  2347. ViiRUS3 = spawn("script_model", ViiRUSxModz + Rise3);
  2348. ViiRUS3 setModel("zombie_treasure_box_lid");
  2349. ViiRUS4 = spawn("script_model", ViiRUSxModz + Rise4);
  2350. ViiRUS4 setModel("zombie_treasure_box_lid");
  2351. wait .1;
  2352. ViiRUS5 = spawn("script_model", ViiRUSxModz + Rise5);
  2353. ViiRUS5 setModel("zombie_treasure_box_lid");
  2354. ViiRUS6 = spawn("script_model", ViiRUSxModz + Rise6);
  2355. ViiRUS6 setModel("zombie_treasure_box_lid");
  2356. ViiRUS7 = spawn("script_model", ViiRUSxModz + Rise7);
  2357. ViiRUS7 setModel("zombie_treasure_box_lid");
  2358. ViiRUS8 = spawn("script_model", ViiRUSxModz + Rise8);
  2359. ViiRUS8 setModel("zombie_treasure_box_lid");
  2360. ViiRUS9 = spawn("script_model", ViiRUSxModz + Rise9);
  2361. ViiRUS9 setModel("zombie_treasure_box_lid");
  2362. ViiRUS10 = spawn("script_model", ViiRUSxModz + Rise10);
  2363. ViiRUS10 setModel("zombie_treasure_box_lid");
  2364. ViiRUS11 = spawn("script_model", ViiRUSxModz + Rise11);
  2365. ViiRUS11 setModel("zombie_treasure_box_lid");
  2366. wait .1;
  2367. ViiRUS12 = spawn("script_model", ViiRUSxModz + Rise12);
  2368. ViiRUS12 setModel("zombie_treasure_box_lid");
  2369. ViiRUS13 = spawn("script_model", ViiRUSxModz + Rise13);
  2370. ViiRUS13 setModel("zombie_treasure_box_lid");
  2371. ViiRUS14 = spawn("script_model", ViiRUSxModz + Rise14);
  2372. ViiRUS14 setModel("zombie_treasure_box_lid");
  2373. ViiRUS15 = spawn("script_model", ViiRUSxModz + Rise15);
  2374. ViiRUS15 setModel("zombie_treasure_box_lid");
  2375. ViiRUS16 = spawn("script_model", ViiRUSxModz + Rise16);
  2376. ViiRUS16 setModel("zombie_treasure_box_lid");
  2377. ViiRUS17 = spawn("script_model", ViiRUSxModz + Rise17);
  2378. ViiRUS17 setModel("zombie_treasure_box_lid");
  2379. }
  2380.  
  2381. CreateVender2(ViiRUSxModz)
  2382. {
  2383.  
  2384. 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);
  2385. 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);
  2386. ViiRUS = spawn("script_model", ViiRUSxModz + Rise);
  2387. ViiRUS setModel("zombie_treasure_box_lid");
  2388. ViiRUS1 = spawn("script_model", ViiRUSxModz + Rise1);
  2389. ViiRUS1 setModel("zombie_treasure_box_lid");
  2390. ViiRUS2 = spawn("script_model", ViiRUSxModz + Rise2);
  2391. ViiRUS2 setModel("zombie_treasure_box_lid");
  2392. ViiRUS3 = spawn("script_model", ViiRUSxModz + Rise3);
  2393. ViiRUS3 setModel("zombie_treasure_box_lid");
  2394. ViiRUS4 = spawn("script_model", ViiRUSxModz + Rise4);
  2395. ViiRUS4 setModel("zombie_treasure_box_lid");
  2396. ViiRUS5 = spawn("script_model", ViiRUSxModz + Rise5);
  2397. ViiRUS5 setModel("zombie_treasure_box_lid");
  2398. ViiRUS6 = spawn("script_model", ViiRUSxModz + Rise6);
  2399. ViiRUS6 setModel("zombie_treasure_box_lid");
  2400. wait .1;
  2401. ViiRUS7 = spawn("script_model", ViiRUSxModz + Rise7);
  2402. ViiRUS7 setModel("zombie_treasure_box_lid");
  2403. ViiRUS8 = spawn("script_model", ViiRUSxModz + Rise8);
  2404. ViiRUS8 setModel("zombie_treasure_box_lid");
  2405. ViiRUS9 = spawn("script_model", ViiRUSxModz + Rise9);
  2406. ViiRUS9 setModel("zombie_treasure_box_lid");
  2407. ViiRUS10 = spawn("script_model", ViiRUSxModz + Rise10);
  2408. ViiRUS10 setModel("zombie_treasure_box_lid");
  2409. ViiRUS11 = spawn("script_model", ViiRUSxModz + Rise11);
  2410. ViiRUS11 setModel("zombie_treasure_box_lid");
  2411. ViiRUS12 = spawn("script_model", ViiRUSxModz + Rise12);
  2412. ViiRUS12 setModel("zombie_treasure_box_lid");
  2413. ViiRUS13 = spawn("script_model", ViiRUSxModz + Rise13);
  2414. ViiRUS13 setModel("zombie_treasure_box_lid");
  2415. ViiRUS14 = spawn("script_model", ViiRUSxModz + Rise14);
  2416. ViiRUS14 setModel("zombie_treasure_box_lid");
  2417. }
  2418.  
  2419. CreateVender3(ViiRUSxModz)
  2420. {
  2421.  
  2422. 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);
  2423. 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);
  2424. ViiRUS = spawn("script_model", ViiRUSxModz + Rise);
  2425. ViiRUS setModel("zombie_treasure_box_lid");
  2426. ViiRUS1 = spawn("script_model", ViiRUSxModz + Rise1);
  2427. ViiRUS1 setModel("zombie_treasure_box_lid");
  2428. ViiRUS2 = spawn("script_model", ViiRUSxModz + Rise2);
  2429. ViiRUS2 setModel("zombie_treasure_box_lid");
  2430. ViiRUS3 = spawn("script_model", ViiRUSxModz + Rise3);
  2431. ViiRUS3 setModel("zombie_treasure_box_lid");
  2432. ViiRUS4 = spawn("script_model", ViiRUSxModz + Rise4);
  2433. ViiRUS4 setModel("zombie_treasure_box_lid");
  2434. ViiRUS5 = spawn("script_model", ViiRUSxModz + Rise5);
  2435. ViiRUS5 setModel("zombie_treasure_box_lid");
  2436. ViiRUS6 = spawn("script_model", ViiRUSxModz + Rise6);
  2437. ViiRUS6 setModel("zombie_treasure_box_lid");
  2438. wait .1;
  2439. ViiRUS7 = spawn("script_model", ViiRUSxModz + Rise7);
  2440. ViiRUS7 setModel("zombie_treasure_box_lid");
  2441. ViiRUS8 = spawn("script_model", ViiRUSxModz + Rise8);
  2442. ViiRUS8 setModel("zombie_treasure_box_lid");
  2443. ViiRUS9 = spawn("script_model", ViiRUSxModz + Rise9);
  2444. ViiRUS9 setModel("zombie_treasure_box_lid");
  2445. ViiRUS10 = spawn("script_model", ViiRUSxModz + Rise10);
  2446. ViiRUS10 setModel("zombie_treasure_box_lid");
  2447. ViiRUS11 = spawn("script_model", ViiRUSxModz + Rise11);
  2448. ViiRUS11 setModel("zombie_treasure_box_lid");
  2449. ViiRUS12 = spawn("script_model", ViiRUSxModz + Rise12);
  2450. ViiRUS12 setModel("zombie_treasure_box_lid");
  2451. ViiRUS13 = spawn("script_model", ViiRUSxModz + Rise13);
  2452. ViiRUS13 setModel("zombie_treasure_box_lid");
  2453. ViiRUS14 = spawn("script_model", ViiRUSxModz + Rise14);
  2454. ViiRUS14 setModel("zombie_treasure_box_lid");
  2455. }
  2456.  
  2457. CreateVender4(ViiRUSxModz)
  2458. {
  2459.  
  2460. Rise = (0, 0, 0); rise1 = (0, 0, 80); Rise2 = (0, -20, 0); rise3 = (0, -20, 80);
  2461. Rise4 = (0, -40, 0); rise5 = (0, -40, 80); Rise6 = (0, -60, 0); rise7 = (0, -60, 80);
  2462. Rise8 = (0, -80, 0); rise9 = (0, -80, 80); Rise10 = (0, -100, 0); rise11 = (0, -100, 80);
  2463. Rise12 = (0, -120, 0); rise13 = (0, -120, 80); Rise14 = (0, -140, 0); rise15 = (0, -140, 80);
  2464. ViiRUS = spawn("script_model", ViiRUSxModz + Rise);
  2465. ViiRUS setModel("zombie_vending_jugg_on");
  2466. ViiRUS1 = spawn("script_model", ViiRUSxModz + Rise1);
  2467. ViiRUS1 setModel("zombie_vending_jugg_on");
  2468. ViiRUS3 = spawn("script_model", ViiRUSxModz + Rise2);
  2469. ViiRUS3 setModel("zombie_vending_jugg_on");
  2470. ViiRUS4 = spawn("script_model", ViiRUSxModz + Rise3);
  2471. ViiRUS4 setModel("zombie_vending_jugg_on");
  2472. ViiRUS5 = spawn("script_model", ViiRUSxModz + Rise4);
  2473. ViiRUS5 setModel("zombie_vending_jugg_on");
  2474. ViiRUS6 = spawn("script_model", ViiRUSxModz + Rise5);
  2475. ViiRUS6 setModel("zombie_vending_jugg_on");
  2476. ViiRUS7 = spawn("script_model", ViiRUSxModz + Rise6);
  2477. ViiRUS7 setModel("zombie_vending_jugg_on");
  2478. ViiRUS8 = spawn("script_model", ViiRUSxModz + Rise7);
  2479. ViiRUS8 setModel("zombie_vending_jugg_on");
  2480. wait .1;
  2481. ViiRUS9 = spawn("script_model", ViiRUSxModz + Rise8);
  2482. ViiRUS9 setModel("zombie_vending_jugg_on");
  2483. ViiRUS10 = spawn("script_model", ViiRUSxModz + Rise9);
  2484. ViiRUS10 setModel("zombie_vending_jugg_on");
  2485. ViiRUS11 = spawn("script_model", ViiRUSxModz + Rise10);
  2486. ViiRUS11 setModel("zombie_vending_jugg_on");
  2487. ViiRUS12 = spawn("script_model", ViiRUSxModz + Rise11);
  2488. ViiRUS12 setModel("zombie_vending_jugg_on");
  2489. ViiRUS13 = spawn("script_model", ViiRUSxModz + Rise12);
  2490. ViiRUS13 setModel("zombie_vending_jugg_on");
  2491. ViiRUS14 = spawn("script_model", ViiRUSxModz + Rise13);
  2492. ViiRUS14 setModel("zombie_vending_jugg_on");
  2493. ViiRUS15 = spawn("script_model", ViiRUSxModz + Rise14);
  2494. ViiRUS15 setModel("zombie_vending_jugg_on");
  2495. ViiRUS16 = spawn("script_model", ViiRUSxModz + Rise15);
  2496. ViiRUS16 setModel("zombie_vending_jugg_on");
  2497.  
  2498. }
  2499. CreateVender5(ViiRUSxModz)
  2500. {
  2501. Rise16 = (0, -160, 0); rise17 = (0, -160, 80); Rise18 = (0, -180, 0); rise19 = (0, -180, 80);
  2502. Rise20 = (0, -200, 0); rise21 = (0, -200, 80); Rise22 = (0, -220, 0); rise23 = (0, -220, 80);
  2503. Rise24 = (0, -240, 0); rise25 = (0, -240, 80); Rise26 = (0, -260, 0); rise27 = (0, -260, 80);
  2504. Rise28 = (0, -280, 0); rise29 = (0, -280, 80); Rise30 = (0, -300, 0); rise31 = (0, -300, 80);
  2505. ViiRUS17 = spawn("script_model", ViiRUSxModz + Rise16);
  2506. ViiRUS17 setModel("zombie_vending_jugg_on");
  2507. ViiRUS18 = spawn("script_model", ViiRUSxModz + Rise17);
  2508. ViiRUS18 setModel("zombie_vending_jugg_on");
  2509. ViiRUS19 = spawn("script_model", ViiRUSxModz + Rise18);
  2510. ViiRUS19 setModel("zombie_vending_jugg_on");
  2511. ViiRUS20 = spawn("script_model", ViiRUSxModz + Rise19);
  2512. ViiRUS20 setModel("zombie_vending_jugg_on");
  2513. ViiRUS21 = spawn("script_model", ViiRUSxModz + Rise20);
  2514. ViiRUS21 setModel("zombie_vending_jugg_on");
  2515. wait .1;
  2516. ViiRUS22 = spawn("script_model", ViiRUSxModz + Rise21);
  2517. ViiRUS22 setModel("zombie_vending_jugg_on");
  2518. ViiRUS23 = spawn("script_model", ViiRUSxModz + Rise22);
  2519. ViiRUS23 setModel("zombie_vending_jugg_on");
  2520. ViiRUS24 = spawn("script_model", ViiRUSxModz + Rise23);
  2521. ViiRUS24 setModel("zombie_vending_jugg_on");
  2522. ViiRUS25 = spawn("script_model", ViiRUSxModz + Rise24);
  2523. ViiRUS25 setModel("zombie_vending_jugg_on");
  2524. ViiRUS26 = spawn("script_model", ViiRUSxModz + Rise25);
  2525. ViiRUS26 setModel("zombie_vending_jugg_on");
  2526. ViiRUS27 = spawn("script_model", ViiRUSxModz + Rise26);
  2527. ViiRUS27 setModel("zombie_vending_jugg_on");
  2528. wait .1;
  2529. ViiRUS28 = spawn("script_model", ViiRUSxModz + Rise27);
  2530. ViiRUS28 setModel("zombie_vending_jugg_on");
  2531. ViiRUS29 = spawn("script_model", ViiRUSxModz + Rise28);
  2532. ViiRUS29 setModel("zombie_vending_jugg_on");
  2533. ViiRUS30 = spawn("script_model", ViiRUSxModz + Rise29);
  2534. ViiRUS30 setModel("zombie_vending_jugg_on");
  2535. ViiRUS31 = spawn("script_model", ViiRUSxModz + Rise30);
  2536. ViiRUS31 setModel("zombie_vending_jugg_on");
  2537. ViiRUS32 = spawn("script_model", ViiRUSxModz + Rise31);
  2538. ViiRUS32 setModel("zombie_vending_jugg_on");
  2539. }
  2540. CreateVender6(ViiRUSxModz)
  2541. {
  2542.  
  2543. Rise = (0, 0, 0); rise1 = (0, 0, 80); Rise2 = (0, -20, 0); rise3 = (0, -20, 80);
  2544. Rise4 = (0, -40, 0); rise5 = (0, -40, 80); Rise6 = (0, -60, 0); rise7 = (0, -60, 80);
  2545. Rise8 = (0, -80, 0); rise9 = (0, -80, 80); Rise10 = (0, -100, 0); rise11 = (0, -100, 80);
  2546. Rise12 = (0, -120, 0); rise13 = (0, -120, 80); Rise14 = (0, -140, 0); rise15 = (0, -140, 80);
  2547. ViiRUS = spawn("script_model", ViiRUSxModz + Rise);
  2548. ViiRUS setModel("zombie_vending_jugg_on");
  2549. ViiRUS1 = spawn("script_model", ViiRUSxModz + Rise1);
  2550. ViiRUS1 setModel("zombie_vending_jugg_on");
  2551. ViiRUS3 = spawn("script_model", ViiRUSxModz + Rise2);
  2552. ViiRUS3 setModel("zombie_vending_jugg_on");
  2553. ViiRUS4 = spawn("script_model", ViiRUSxModz + Rise3);
  2554. ViiRUS4 setModel("zombie_vending_jugg_on");
  2555. ViiRUS5 = spawn("script_model", ViiRUSxModz + Rise4);
  2556. ViiRUS5 setModel("zombie_vending_jugg_on");
  2557. wait .1;
  2558. ViiRUS6 = spawn("script_model", ViiRUSxModz + Rise5);
  2559. ViiRUS6 setModel("zombie_vending_jugg_on");
  2560. ViiRUS7 = spawn("script_model", ViiRUSxModz + Rise6);
  2561. ViiRUS7 setModel("zombie_vending_jugg_on");
  2562. ViiRUS8 = spawn("script_model", ViiRUSxModz + Rise7);
  2563. ViiRUS8 setModel("zombie_vending_jugg_on");
  2564. ViiRUS9 = spawn("script_model", ViiRUSxModz + Rise8);
  2565. ViiRUS9 setModel("zombie_vending_jugg_on");
  2566. ViiRUS10 = spawn("script_model", ViiRUSxModz + Rise9);
  2567. ViiRUS10 setModel("zombie_vending_jugg_on");
  2568. ViiRUS11 = spawn("script_model", ViiRUSxModz + Rise10);
  2569. ViiRUS11 setModel("zombie_vending_jugg_on");
  2570. wait .1;
  2571. ViiRUS12 = spawn("script_model", ViiRUSxModz + Rise11);
  2572. ViiRUS12 setModel("zombie_vending_jugg_on");
  2573. ViiRUS13 = spawn("script_model", ViiRUSxModz + Rise12);
  2574. ViiRUS13 setModel("zombie_vending_jugg_on");
  2575. ViiRUS14 = spawn("script_model", ViiRUSxModz + Rise13);
  2576. ViiRUS14 setModel("zombie_vending_jugg_on");
  2577. ViiRUS15 = spawn("script_model", ViiRUSxModz + Rise14);
  2578. ViiRUS15 setModel("zombie_vending_jugg_on");
  2579. ViiRUS16 = spawn("script_model", ViiRUSxModz + Rise15);
  2580. ViiRUS16 setModel("zombie_vending_jugg_on");
  2581.  
  2582. }
  2583. CreateVender7(ViiRUSxModz)
  2584. {
  2585. Rise16 = (0, -160, 0); rise17 = (0, -160, 80); Rise18 = (0, -180, 0); rise19 = (0, -180, 80);
  2586. Rise20 = (0, -200, 0); rise21 = (0, -200, 80); Rise22 = (0, -220, 0); rise23 = (0, -220, 80);
  2587. Rise24 = (0, -240, 0); rise25 = (0, -240, 80); Rise26 = (0, -260, 0); rise27 = (0, -260, 80);
  2588. Rise28 = (0, -280, 0); rise29 = (0, -280, 80); Rise30 = (0, -300, 0); rise31 = (0, -300, 80);
  2589. ViiRUS17 = spawn("script_model", ViiRUSxModz + Rise16);
  2590. ViiRUS17 setModel("zombie_vending_jugg_on");
  2591. ViiRUS18 = spawn("script_model", ViiRUSxModz + Rise17);
  2592. ViiRUS18 setModel("zombie_vending_jugg_on");
  2593. ViiRUS19 = spawn("script_model", ViiRUSxModz + Rise18);
  2594. ViiRUS19 setModel("zombie_vending_jugg_on");
  2595. ViiRUS20 = spawn("script_model", ViiRUSxModz + Rise19);
  2596. ViiRUS20 setModel("zombie_vending_jugg_on");
  2597. ViiRUS21 = spawn("script_model", ViiRUSxModz + Rise20);
  2598. ViiRUS21 setModel("zombie_vending_jugg_on");
  2599. wait .1;
  2600. ViiRUS22 = spawn("script_model", ViiRUSxModz + Rise21);
  2601. ViiRUS22 setModel("zombie_vending_jugg_on");
  2602. ViiRUS23 = spawn("script_model", ViiRUSxModz + Rise22);
  2603. ViiRUS23 setModel("zombie_vending_jugg_on");
  2604. ViiRUS24 = spawn("script_model", ViiRUSxModz + Rise23);
  2605. ViiRUS24 setModel("zombie_vending_jugg_on");
  2606. ViiRUS25 = spawn("script_model", ViiRUSxModz + Rise24);
  2607. ViiRUS25 setModel("zombie_vending_jugg_on");
  2608. ViiRUS26 = spawn("script_model", ViiRUSxModz + Rise25);
  2609. ViiRUS26 setModel("zombie_vending_jugg_on");
  2610. wait .1;
  2611. ViiRUS27 = spawn("script_model", ViiRUSxModz + Rise26);
  2612. ViiRUS27 setModel("zombie_vending_jugg_on");
  2613. ViiRUS28 = spawn("script_model", ViiRUSxModz + Rise27);
  2614. ViiRUS28 setModel("zombie_vending_jugg_on");
  2615. ViiRUS29 = spawn("script_model", ViiRUSxModz + Rise28);
  2616. ViiRUS29 setModel("zombie_vending_jugg_on");
  2617. ViiRUS30 = spawn("script_model", ViiRUSxModz + Rise29);
  2618. ViiRUS30 setModel("zombie_vending_jugg_on");
  2619. ViiRUS31 = spawn("script_model", ViiRUSxModz + Rise30);
  2620. ViiRUS31 setModel("zombie_vending_jugg_on");
  2621. ViiRUS32 = spawn("script_model", ViiRUSxModz + Rise31);
  2622. ViiRUS32 setModel("zombie_vending_jugg_on");
  2623. }
  2624.  
  2625. CreateVender8(ViiRUSxModz)
  2626. {
  2627. 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);
  2628. 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);
  2629. ViiRUS = spawn("script_model", ViiRUSxModz + Rise);
  2630. ViiRUS setModel("zombie_treasure_box");
  2631. ViiRUS1 = spawn("script_model", ViiRUSxModz + Rise1);
  2632. ViiRUS1 setModel("zombie_treasure_box");
  2633. ViiRUS2 = spawn("script_model", ViiRUSxModz + Rise2);
  2634. ViiRUS2 setModel("zombie_treasure_box");
  2635. ViiRUS3 = spawn("script_model", ViiRUSxModz + Rise3);
  2636. ViiRUS3 setModel("zombie_treasure_box");
  2637. ViiRUS4 = spawn("script_model", ViiRUSxModz + Rise4);
  2638. ViiRUS4 setModel("zombie_treasure_box");
  2639. ViiRUS5 = spawn("script_model", ViiRUSxModz + Rise5);
  2640. ViiRUS5 setModel("zombie_treasure_box");
  2641. wait .1;
  2642. ViiRUS6 = spawn("script_model", ViiRUSxModz + Rise6);
  2643. ViiRUS6 setModel("zombie_treasure_box");
  2644. ViiRUS7 = spawn("script_model", ViiRUSxModz + Rise7);
  2645. ViiRUS7 setModel("zombie_treasure_box");
  2646. ViiRUS8 = spawn("script_model", ViiRUSxModz + Rise8);
  2647. ViiRUS8 setModel("zombie_treasure_box");
  2648. ViiRUS9 = spawn("script_model", ViiRUSxModz + Rise9);
  2649. ViiRUS9 setModel("zombie_treasure_box");
  2650. ViiRUS10 = spawn("script_model", ViiRUSxModz + Rise10);
  2651. ViiRUS10 setModel("zombie_treasure_box");
  2652. wait .1;
  2653. ViiRUS11 = spawn("script_model", ViiRUSxModz + Rise11);
  2654. ViiRUS11 setModel("zombie_treasure_box");
  2655. ViiRUS12 = spawn("script_model", ViiRUSxModz + Rise12);
  2656. ViiRUS12 setModel("zombie_treasure_box");
  2657. ViiRUS13 = spawn("script_model", ViiRUSxModz + Rise13);
  2658. ViiRUS13 setModel("zombie_treasure_box");
  2659. ViiRUS14 = spawn("script_model", ViiRUSxModz + Rise14);
  2660. ViiRUS14 setModel("zombie_treasure_box");
  2661. ViiRUS15 = spawn("script_model", ViiRUSxModz + Rise15);
  2662. ViiRUS15 setModel("zombie_treasure_box");
  2663. ViiRUS16 = spawn("script_model", ViiRUSxModz + Rise16);
  2664. ViiRUS16 setModel("zombie_treasure_box");
  2665. }
  2666.  
  2667. CreateVender9(ViiRUSxModz)
  2668. {
  2669. Rise16 = (90, -300, 120); rise17 = (90, -300, 100); Rise18 = (90, -300, 80); rise19 = (90, -300, 60);
  2670. Rise20 = (90, -300, 40); rise21 = (90, -300, 20); Rise22 = (90, -300, 0);
  2671. ViiRUS17 = spawn("script_model", ViiRUSxModz + Rise16);
  2672. ViiRUS17 setModel("zombie_treasure_box");
  2673. ViiRUS18 = spawn("script_model", ViiRUSxModz + Rise17);
  2674. ViiRUS18 setModel("zombie_treasure_box");
  2675. ViiRUS19 = spawn("script_model", ViiRUSxModz + Rise18);
  2676. ViiRUS19 setModel("zombie_treasure_box");
  2677. wait .1;
  2678. ViiRUS20 = spawn("script_model", ViiRUSxModz + Rise19);
  2679. ViiRUS20 setModel("zombie_treasure_box");
  2680. ViiRUS21 = spawn("script_model", ViiRUSxModz + Rise20);
  2681. ViiRUS21 setModel("zombie_treasure_box");
  2682. ViiRUS22 = spawn("script_model", ViiRUSxModz + Rise21);
  2683. ViiRUS22 setModel("zombie_treasure_box");
  2684. ViiRUS23 = spawn("script_model", ViiRUSxModz + Rise22);
  2685. ViiRUS23 setModel("zombie_treasure_box");
  2686.  
  2687. }
  2688.  
  2689. CreateVender10(ViiRUSxModz)
  2690. {
  2691. 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);
  2692. ViiRUS = spawn("script_model", ViiRUSxModz + Rise);
  2693. ViiRUS setModel("zombie_treasure_box");
  2694. ViiRUS1 = spawn("script_model", ViiRUSxModz + Rise1);
  2695. ViiRUS1 setModel("zombie_treasure_box");
  2696. ViiRUS2 = spawn("script_model", ViiRUSxModz + Rise2);
  2697. ViiRUS2 setModel("zombie_treasure_box");
  2698. ViiRUS3 = spawn("script_model", ViiRUSxModz + Rise3);
  2699. ViiRUS3 setModel("zombie_treasure_box");
  2700. wait .1;
  2701. ViiRUS6 = spawn("script_model", ViiRUSxModz + Rise6);
  2702. ViiRUS6 setModel("zombie_treasure_box_lid");
  2703. ViiRUS7 = spawn("script_model", ViiRUSxModz + Rise7);
  2704. ViiRUS7 setModel("zombie_treasure_box_lid");
  2705. ViiRUS4 = spawn("script_model", ViiRUSxModz + Rise4);
  2706. ViiRUS4 setModel("zombie_treasure_box");
  2707. }
  2708. CreateVender11(ViiRUSxModz)
  2709. {
  2710. self thread HintVend11( ViiRUSxModz );
  2711. plusrep = 20; Rise = (0, 0, 50); cost = 15000;
  2712. ViiRUS = spawn("script_model", ViiRUSxModz + Rise);
  2713. ViiRUS setModel("zombie_ammocan");
  2714. level._effect["Jesus"] = loadfx( "misc/fx_zombie_powerup_on" ); wait 1;
  2715. playfx(level._effect["Jesus"], ViiRUS.origin);
  2716. for(;;)
  2717. {
  2718. wait 0.1;
  2719. if( distance( self.origin, ViiRUSxModz ) < PlusRep )
  2720. {
  2721. if(self UseButtonPressed() && self.score >= cost ){
  2722. wait .1;
  2723. self playsound( "cha_ching" );
  2724. self.zombie_cost = 15000;
  2725. self.score -= 15000;
  2726. self GiveWeapon("zombie_ppsh_upgraded");
  2727. self GiveWeapon("tesla_gun_upgraded");
  2728. self GiveWeapon("ray_gun_upgraded");
  2729. wait 30;
  2730. }
  2731. }
  2732. }
  2733. }
  2734. HintVend11( ViiRUSxModz )
  2735. {
  2736. PlusRep = 20;
  2737. while( 1 )
  2738. {
  2739. wait .1;
  2740. if( distance( self.origin, ViiRUSxModz ) < PlusRep )
  2741. {
  2742. self iPrintlnBold( "HOLD [{+usereload}] TO PURCHASE UPGRADED RAY GUN, WUNDERWAFFE, AND PPSH 15,000 PTS." );
  2743. wait 3;
  2744. }
  2745. }
  2746. }
  2747. CreateVender12(ViiRUSxModz)
  2748. {
  2749. self thread HintVend12( ViiRUSxModz );
  2750. plusrep = 20; Rise = (0, 0, 50); cost = 10000;
  2751. ViiRUS = spawn("script_model", ViiRUSxModz + Rise);
  2752. ViiRUS setModel("zombie_ammocan");
  2753. level._effect["Jesus"] = loadfx( "misc/fx_zombie_powerup_on" ); wait 1;
  2754. playfx(level._effect["Jesus"], ViiRUS.origin);
  2755. for(;;)
  2756. {
  2757. wait 0.1;
  2758. if( distance( self.origin, ViiRUSxModz ) < PlusRep )
  2759. {
  2760. if(self UseButtonPressed() && self.score >= cost ){
  2761. wait .1;
  2762. self playsound( "cha_ching" );
  2763. self.zombie_cost = 10000;
  2764. self.score -= 10000;
  2765. self GiveWeapon("zombie_mg42_upgraded");
  2766. self GiveWeapon("zombie_thompson_upgraded");
  2767. wait 30;
  2768. }
  2769. }
  2770. }
  2771. }
  2772. HintVend12( ViiRUSxModz )
  2773. {
  2774. PlusRep = 20;
  2775. while( 1 )
  2776. {
  2777. wait .1;
  2778. if( distance( self.origin, ViiRUSxModz ) < PlusRep )
  2779. {
  2780. self iPrintlnBold( "HOLD [{+usereload}] TO PURCHASE UPGRADED MG42 AND THOMPSON 10,000 PTS." );
  2781. wait 3;
  2782. }
  2783. }
  2784. }
  2785.  
  2786.  
  2787. CreateVender13(ViiRUSxModz)
  2788. {
  2789. self thread HintVend13( ViiRUSxModz );
  2790. plusrep = 20; Rise = (0, 0, 50); cost = 5000;
  2791. ViiRUS = spawn("script_model", ViiRUSxModz + Rise);
  2792. ViiRUS setModel("zombie_ammocan");
  2793. level._effect["Jesus"] = loadfx( "misc/fx_zombie_powerup_on" ); wait 1;
  2794. playfx(level._effect["Jesus"], ViiRUS.origin);
  2795. for(;;)
  2796. {
  2797. wait 0.1;
  2798. if( distance( self.origin, ViiRUSxModz ) < PlusRep )
  2799. {
  2800. if(self UseButtonPressed() && self.score >= cost ){
  2801. wait .1;
  2802. self playsound( "cha_ching" );
  2803. self.zombie_cost = 5000;
  2804. self.score -= 5000;
  2805. self GiveWeapon("zombie_mg42");
  2806. self GiveWeapon("zombie_ppsh");
  2807. wait 30;
  2808. }
  2809. }
  2810. }
  2811. }
  2812. HintVend13( ViiRUSxModz )
  2813. {
  2814. PlusRep = 20;
  2815. while( 1 )
  2816. {
  2817. wait .1;
  2818. if( distance( self.origin, ViiRUSxModz ) < PlusRep )
  2819. {
  2820. self iPrintlnBold( "HOLD [{+usereload}] TO PURCHASE MG42 AND PPSH 5,000 PTS." );
  2821. wait 3;
  2822. }
  2823. }
  2824. }
  2825. CreateVender14(ViiRUSxModz)
  2826. {
  2827.  
  2828. 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);
  2829. 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);
  2830. ViiRUS = spawn("script_model", ViiRUSxModz + Rise);
  2831. ViiRUS setModel("zombie_zapper_cagelight_green");
  2832. ViiRUS1 = spawn("script_model", ViiRUSxModz + Rise1);
  2833. ViiRUS1 setModel("zombie_zapper_cagelight_green");
  2834. ViiRUS2 = spawn("script_model", ViiRUSxModz + Rise2);
  2835. ViiRUS2 setModel("zombie_zapper_cagelight_green");
  2836. ViiRUS3 = spawn("script_model", ViiRUSxModz + Rise3);
  2837. ViiRUS3 setModel("zombie_zapper_cagelight_green");
  2838. ViiRUS4 = spawn("script_model", ViiRUSxModz + Rise4);
  2839. ViiRUS4 setModel("zombie_zapper_cagelight_green");
  2840. wait .1;
  2841. ViiRUS5 = spawn("script_model", ViiRUSxModz + Rise5);
  2842. ViiRUS5 setModel("zombie_zapper_cagelight_green");
  2843. ViiRUS6 = spawn("script_model", ViiRUSxModz + Rise6);
  2844. ViiRUS6 setModel("zombie_zapper_cagelight_green");
  2845. ViiRUS7 = spawn("script_model", ViiRUSxModz + Rise7);
  2846. ViiRUS7 setModel("zombie_zapper_cagelight_green");
  2847. ViiRUS8 = spawn("script_model", ViiRUSxModz + Rise8);
  2848. ViiRUS8 setModel("zombie_zapper_cagelight_green");
  2849. ViiRUS9 = spawn("script_model", ViiRUSxModz + Rise9);
  2850. ViiRUS9 setModel("zombie_zapper_cagelight_green");
  2851. ViiRUS10 = spawn("script_model", ViiRUSxModz + Rise10);
  2852. ViiRUS10 setModel("zombie_zapper_cagelight_green");
  2853. ViiRUS11 = spawn("script_model", ViiRUSxModz + Rise11);
  2854. ViiRUS11 setModel("zombie_zapper_cagelight_green");
  2855. wait .1;
  2856. ViiRUS12 = spawn("script_model", ViiRUSxModz + Rise12);
  2857. ViiRUS12 setModel("zombie_zapper_cagelight_green");
  2858. ViiRUS13 = spawn("script_model", ViiRUSxModz + Rise13);
  2859. ViiRUS13 setModel("zombie_zapper_cagelight_green");
  2860. ViiRUS14 = spawn("script_model", ViiRUSxModz + Rise14);
  2861. ViiRUS14 setModel("zombie_zapper_cagelight_green");
  2862. ViiRUS15 = spawn("script_model", ViiRUSxModz + Rise15);
  2863. ViiRUS15 setModel("zombie_zapper_cagelight_green");
  2864. ViiRUS16 = spawn("script_model", ViiRUSxModz + Rise16);
  2865. ViiRUS16 setModel("zombie_zapper_cagelight_green");
  2866. ViiRUS17 = spawn("script_model", ViiRUSxModz + Rise17);
  2867. ViiRUS17 setModel("zombie_zapper_cagelight_green");
  2868. }
  2869.  
  2870. CreateVender15(ViiRUSxModz)
  2871. {
  2872.  
  2873. 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);
  2874. 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);
  2875. ViiRUS = spawn("script_model", ViiRUSxModz + Rise);
  2876. ViiRUS setModel("zombie_zapper_cagelight_green");
  2877. ViiRUS1 = spawn("script_model", ViiRUSxModz + Rise1);
  2878. ViiRUS1 setModel("zombie_zapper_cagelight_green");
  2879. ViiRUS2 = spawn("script_model", ViiRUSxModz + Rise2);
  2880. ViiRUS2 setModel("zombie_zapper_cagelight_green");
  2881. ViiRUS3 = spawn("script_model", ViiRUSxModz + Rise3);
  2882. ViiRUS3 setModel("zombie_zapper_cagelight_green");
  2883. ViiRUS4 = spawn("script_model", ViiRUSxModz + Rise4);
  2884. ViiRUS4 setModel("zombie_zapper_cagelight_green");
  2885. ViiRUS5 = spawn("script_model", ViiRUSxModz + Rise5);
  2886. ViiRUS5 setModel("zombie_zapper_cagelight_green");
  2887. ViiRUS6 = spawn("script_model", ViiRUSxModz + Rise6);
  2888. ViiRUS6 setModel("zombie_zapper_cagelight_green");
  2889. wait .1;
  2890. ViiRUS7 = spawn("script_model", ViiRUSxModz + Rise7);
  2891. ViiRUS7 setModel("zombie_zapper_cagelight_green");
  2892. ViiRUS8 = spawn("script_model", ViiRUSxModz + Rise8);
  2893. ViiRUS8 setModel("zombie_zapper_cagelight_green");
  2894. ViiRUS9 = spawn("script_model", ViiRUSxModz + Rise9);
  2895. ViiRUS9 setModel("zombie_zapper_cagelight_green");
  2896. ViiRUS10 = spawn("script_model", ViiRUSxModz + Rise10);
  2897. ViiRUS10 setModel("zombie_zapper_cagelight_green");
  2898. ViiRUS11 = spawn("script_model", ViiRUSxModz + Rise11);
  2899. ViiRUS11 setModel("zombie_zapper_cagelight_green");
  2900. ViiRUS12 = spawn("script_model", ViiRUSxModz + Rise12);
  2901. ViiRUS12 setModel("zombie_zapper_cagelight_green");
  2902. ViiRUS13 = spawn("script_model", ViiRUSxModz + Rise13);
  2903. ViiRUS13 setModel("zombie_zapper_cagelight_green");
  2904. ViiRUS14 = spawn("script_model", ViiRUSxModz + Rise14);
  2905. ViiRUS14 setModel("zombie_zapper_cagelight_green");
  2906. }
  2907.  
  2908. CreateVender16(ViiRUSxModz)
  2909. {
  2910.  
  2911. 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);
  2912. 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);
  2913. ViiRUS = spawn("script_model", ViiRUSxModz + Rise);
  2914. ViiRUS setModel("zombie_zapper_cagelight_green");
  2915. ViiRUS1 = spawn("script_model", ViiRUSxModz + Rise1);
  2916. ViiRUS1 setModel("zombie_zapper_cagelight_green");
  2917. ViiRUS2 = spawn("script_model", ViiRUSxModz + Rise2);
  2918. ViiRUS2 setModel("zombie_zapper_cagelight_green");
  2919. ViiRUS3 = spawn("script_model", ViiRUSxModz + Rise3);
  2920. ViiRUS3 setModel("zombie_zapper_cagelight_green");
  2921. ViiRUS4 = spawn("script_model", ViiRUSxModz + Rise4);
  2922. ViiRUS4 setModel("zombie_zapper_cagelight_green");
  2923. ViiRUS5 = spawn("script_model", ViiRUSxModz + Rise5);
  2924. ViiRUS5 setModel("zombie_zapper_cagelight_green");
  2925. ViiRUS6 = spawn("script_model", ViiRUSxModz + Rise6);
  2926. ViiRUS6 setModel("zombie_zapper_cagelight_green");
  2927. wait .1;
  2928. ViiRUS7 = spawn("script_model", ViiRUSxModz + Rise7);
  2929. ViiRUS7 setModel("zombie_zapper_cagelight_green");
  2930. ViiRUS8 = spawn("script_model", ViiRUSxModz + Rise8);
  2931. ViiRUS8 setModel("zombie_zapper_cagelight_green");
  2932. ViiRUS9 = spawn("script_model", ViiRUSxModz + Rise9);
  2933. ViiRUS9 setModel("zombie_zapper_cagelight_green");
  2934. ViiRUS10 = spawn("script_model", ViiRUSxModz + Rise10);
  2935. ViiRUS10 setModel("zombie_zapper_cagelight_green");
  2936. ViiRUS11 = spawn("script_model", ViiRUSxModz + Rise11);
  2937. ViiRUS11 setModel("zombie_zapper_cagelight_green");
  2938. ViiRUS12 = spawn("script_model", ViiRUSxModz + Rise12);
  2939. ViiRUS12 setModel("zombie_zapper_cagelight_green");
  2940. ViiRUS13 = spawn("script_model", ViiRUSxModz + Rise13);
  2941. ViiRUS13 setModel("zombie_zapper_cagelight_green");
  2942. ViiRUS14 = spawn("script_model", ViiRUSxModz + Rise14);
  2943. ViiRUS14 setModel("zombie_zapper_cagelight_green");
  2944. }
  2945. CreateVender17(ViiRUSxModz)
  2946. {
  2947. self endon ( "disconnect" );
  2948. self endon ( "death" );
  2949. self thread HintVend17( ViiRUSxModz );
  2950. PlusRep = 40; Rise = (0, 0, 0); cost =100;
  2951. ViiRUS = spawn("script_model", ViiRUSxModz + Rise);
  2952. ViiRUS setModel("zombie_vending_jugg_on");
  2953. level._effect["Jesus"] = loadfx( "misc/fx_zombie_powerup_on" ); wait 1;
  2954. level._effect["Jesus7s"] = loadfx ("misc/fx_ui_airstrike_smk_yellow");
  2955. level._effect["Jesus7s1"] = loadfx("misc/fx_black_box");
  2956. playfx(level._effect["Jesus7s1"], ViiRUS.origin); wait 1;
  2957. playfx(level._effect["Jesus7s"], ViiRUS.origin); wait 1;
  2958. playfx(level._effect["Jesus"], ViiRUS.origin);
  2959. for(;;)
  2960. {
  2961. wait 0.1;
  2962. if( distance( self.origin, ViiRUSxModz ) < PlusRep )
  2963. {
  2964. if(self UseButtonPressed() && self.score >= cost ){
  2965. self setblur( 4, 0.1 );
  2966. wait .5;
  2967. self.zombie_cost = 1000;
  2968. self.score -= 1000;
  2969. wait 5;
  2970. }
  2971. }
  2972. }
  2973. }
  2974. zombie_devgui_give_perk( perk )
  2975. {
  2976. vending_triggers = GetEntArray( "zombie_vending", "targetname" );
  2977.  
  2978. if ( vending_triggers.size < 1 )
  2979. {
  2980. iPrintlnBold( "Map does not contain any perks machines" );
  2981. return;
  2982. }
  2983.  
  2984. for ( i = 0; i < vending_triggers.size; i++ )
  2985. {
  2986. if ( vending_triggers[i].script_noteworthy == perk )
  2987. {
  2988. vending_triggers[i] notify( "trigger", self );
  2989. return;
  2990. }
  2991. }
  2992.  
  2993. iPrintlnBold( "Map does not contain perks machine with perk: " + perk );
  2994. }
  2995. HintVend17( ViiRUSxModz )
  2996. {
  2997. PlusRep = 40;
  2998. while( 1 )
  2999. {
  3000. wait .1;
  3001. if( distance( self.origin, ViiRUSxModz ) < PlusRep )
  3002. {
  3003. self iPrintlnBold( "HOLD [{+usereload}] TO PURCHASE JUGGS 1,000 PTS." );
  3004. wait 3;
  3005. }
  3006. }
  3007. }
  3008.  
  3009. CreateVender18(ViiRUSxModz)
  3010. {
  3011. self endon ( "disconnect" );
  3012. self endon ( "death" );
  3013. self thread HintVend18( ViiRUSxModz );
  3014. PlusRep = 40; Rise = (0, 0, 40); quake = 125; nuke = 2000; munk = 200; cost = 20;
  3015. ViiRUS = spawn("script_model", ViiRUSxModz + Rise);
  3016. ViiRUS setModel("zombie_skull");
  3017. level._effect["Jesus"] = loadfx( "misc/fx_zombie_powerup_on" ); wait 1;
  3018. level._effect["Jesus7s1"] = loadfx("misc/fx_zombie_electric_trap");
  3019. level._effect["Jesus7s2"] = loadfx("maps/zombie/fx_zombie_wire_spark");
  3020. level._effect["Jesus7s3"] = loadfx("maps/mp_maps/fx_mp_fire_rubble_small");
  3021. playfx(level._effect["Jesus7s3"], ViiRUS.origin); wait 1;
  3022. playfx(level._effect["Jesus7s2"], ViiRUS.origin); wait 1;
  3023. playfx(level._effect["Jesus7s1"], ViiRUS.origin); wait 1;
  3024. playfx(level._effect["Jesus"], ViiRUS.origin);
  3025. for(;;)
  3026. {
  3027. wait 0.1;
  3028. if( distance( self.origin, ViiRUSxModz ) < PlusRep )
  3029. {
  3030. if(self UseButtonPressed() && self.score >= cost ){
  3031. level.zombie_vars["zombie_insta_kill"] = 1;
  3032. self.score -= 2000;
  3033. self iPrintlnBold( "^260 SECOND INSTAKILL ACTIVATED" );
  3034. self playsound( "cha_ching" );
  3035. self thread start_timer();
  3036. self thread insta();
  3037. wait 60;
  3038. self playsound( "packa_weap_ready" );
  3039. level.zombie_vars["zombie_insta_kill"] = 0;
  3040. }
  3041. }
  3042. }
  3043. }
  3044.  
  3045.  
  3046. HintVend18( ViiRUSxModz )
  3047. {
  3048. PlusRep = 40;
  3049. while( 1 )
  3050. {
  3051. wait .1;
  3052. if( distance( self.origin, ViiRUSxModz ) < PlusRep )
  3053. {
  3054. self iPrintlnBold( "[{+usereload}] ^22000 ^0Points for ^160 SECOND INSTAKILL [{+usereload}]" );
  3055. wait 3;
  3056. }
  3057. }
  3058. }
  3059. insta()
  3060. {
  3061. self endon ( "noinsta" );
  3062. self endon ( "death" );
  3063. self endon ( "disconnect" );
  3064. shader_inst = "specialty_instakill_zombies";
  3065. hud9 = newHudElem();
  3066. hud9.foreground = true;
  3067. hud9.sort = 1;
  3068. hud9.hidewheninmenu = false;
  3069. hud9.alignX = "left";
  3070. hud9.alignY = "top";
  3071. hud9.horzAlign = "left";
  3072. hud9.vertAlign = "top";
  3073. hud9.x = 105;
  3074. hud9.y = 45;
  3075. hud9.alpha = 1;
  3076. hud9.fontscale = 1.25;
  3077. hud9.color = ( 1, 1, 1 );
  3078. for(;;)
  3079. {
  3080. hud9 SetShader( shader_inst, 44, 44 );
  3081. wait 56;
  3082. hud9 SetShader( "", 44, 44 );
  3083. wait .5;
  3084. hud9 SetShader( shader_inst, 44, 44 );
  3085. wait .5;
  3086. hud9 SetShader( "", 44, 44 );
  3087. wait .5;
  3088. hud9 SetShader( shader_inst, 44, 44 );
  3089. wait .5;
  3090. hud9 SetShader( "", 44, 44 );
  3091. wait .5;
  3092. hud9 SetShader( shader_inst, 44, 44 );
  3093. wait .5;
  3094. hud9 SetShader( "", 44, 44 );
  3095. wait .5;
  3096. hud9 SetShader( shader_inst, 44, 44 );
  3097. wait .5;
  3098. hud9 SetShader( "", 44, 44 );
  3099. wait .5;
  3100. hud9 SetShader( shader_inst, 44, 44 );
  3101. wait .5;
  3102. hud9 SetShader( "", 44, 44 );
  3103. wait .1;
  3104. self notify ( "noinsta" );
  3105. }
  3106. }
  3107. start_timer( time, stop_notify )
  3108. {
  3109. self notify ("stop_prev_timer");
  3110. self endon ("stop_prev_timer");
  3111.  
  3112. if( !isDefined( self.stopwatch_elem ) )
  3113. {
  3114. self.stopwatch_elem = newHudElem();
  3115. self.stopwatch_elem.horzAlign = "left";
  3116. self.stopwatch_elem.vertAlign = "top";
  3117. self.stopwatch_elem.alignX = "left";
  3118. self.stopwatch_elem.alignY = "top";
  3119. self.stopwatch_elem.x = 10;
  3120. self.stopwatch_elem.y = 20;
  3121. self.stopwatch_elem.alpha = 0;
  3122. self.stopwatch_elem.sort = 2;
  3123.  
  3124. self.stopwatch_elem_glass = newHudElem();
  3125. self.stopwatch_elem_glass.horzAlign = "left";
  3126. self.stopwatch_elem_glass.vertAlign = "top";
  3127. self.stopwatch_elem_glass.alignX = "left";
  3128. self.stopwatch_elem_glass.alignY = "top";
  3129. self.stopwatch_elem_glass.x = 10;
  3130. self.stopwatch_elem_glass.y = 20;
  3131. self.stopwatch_elem_glass.alpha = 0;
  3132. self.stopwatch_elem_glass.sort = 3;
  3133. self.stopwatch_elem_glass setShader( "zombie_stopwatch_glass", level.stopwatch_length_width, level.stopwatch_length_width );
  3134. }
  3135.  
  3136. if( isDefined( stop_notify ) )
  3137. {
  3138. self thread wait_for_stop_notify( stop_notify );
  3139. }
  3140. if( time > 60 )
  3141. {
  3142. time = 60;
  3143. }
  3144. self.stopwatch_elem setClock( time, 60, "zombie_stopwatch", level.stopwatch_length_width, level.stopwatch_length_width );
  3145. self.stopwatch_elem.alpha = 1;
  3146. self.stopwatch_elem_glass.alpha = 1;
  3147. wait( time );
  3148. self notify( "countdown_finished" );
  3149. wait( 1 );
  3150. self.stopwatch_elem.alpha = 0;
  3151. self.stopwatch_elem_glass.alpha = 0;
  3152.  
  3153. }
  3154.  
  3155. wait_for_stop_notify( stop_notify )
  3156. {
  3157. self endon ("stop_prev_timer");
  3158. self endon( "countdown_finished" );
  3159.  
  3160. self waittill( stop_notify );
  3161.  
  3162. self.stopwatch_elem.alpha = 0;
  3163. self.stopwatch_elem_glass.alpha = 0;
  3164. }
  3165. jugg()
  3166. {
  3167. self endon ( "player_downed" );
  3168. self endon ( "death" );
  3169. self endon ( "disconnect" );
  3170. shader = "specialty_juggernaut_zombies";
  3171. hud9 = newClientHudElem(self);
  3172. hud9.foreground = true;
  3173. hud9.sort = 1;
  3174. hud9.hidewheninmenu = false;
  3175. hud9.alignX = "left";
  3176. hud9.alignY = "top";
  3177. hud9.horzAlign = "left";
  3178. hud9.vertAlign = "top";
  3179. hud9.x = 20;
  3180. hud9.y = 300;
  3181. hud9.alpha = 1;
  3182. hud9.fontscale = 1.25;
  3183. hud9.color = ( 1, 1, 1 );
  3184. for(;;)
  3185. {
  3186. hud9 SetShader( shader, 44, 44 );
  3187. }
  3188. }
  3189. CreateVender19(ViiRUSxModz)
  3190. {
  3191. self endon ( "disconnect" );
  3192. self endon ( "death" );
  3193. self thread HintVend19( ViiRUSxModz );
  3194. PlusRep = 20; Rise = (0, 0, 70); nuke = 2000; cost = 30000;
  3195. ViiRUS = spawn("script_model", ViiRUSxModz + Rise);
  3196. ViiRUS setModel("zombie_ammocan");
  3197. level._effect["Jesus"] = loadfx( "misc/fx_zombie_powerup_on" ); wait 1;
  3198. level._effect["Jesus7s1"] = loadfx("misc/fx_zombie_electric_trap");
  3199. level._effect["Jesus7s2"] = loadfx("maps/zombie/fx_zombie_wire_spark");
  3200. level._effect["Jesus7s3"] = loadfx("maps/mp_maps/fx_mp_fire_rubble_small");
  3201. playfx(level._effect["Jesus7s3"], ViiRUS.origin); wait 1;
  3202. playfx(level._effect["Jesus7s2"], ViiRUS.origin); wait 1;
  3203. playfx(level._effect["Jesus7s1"], ViiRUS.origin); wait 1;
  3204. playfx(level._effect["Jesus"], ViiRUS.origin);
  3205. for(;;)
  3206. {
  3207. wait .1;
  3208. if( distance( self.origin, ViiRUSxModz ) < PlusRep )
  3209. {
  3210. if(self UseButtonPressed() && self.score >= cost ){
  3211. self.zombie_cost = 30000;
  3212. self.score -= 30000;
  3213. self.score_total -=30000;
  3214. self thread GiveAll();
  3215. self playsound("cha_ching");
  3216. wait .3;
  3217. self playsound("laugh_child");
  3218. wait 30;
  3219. }
  3220. }
  3221. }
  3222. }
  3223.  
  3224.  
  3225. HintVend19( ViiRUSxModz )
  3226. {
  3227. PlusRep = 20;
  3228. while( 1 )
  3229. {
  3230. wait .1;
  3231. if( distance( self.origin, ViiRUSxModz ) < PlusRep )
  3232. {
  3233. self iPrintlnBold( "HOLD [{+usereload}] TO PURCHASE ^1ALL GUNS ^730,000 PTS." );
  3234. wait 6;
  3235. }
  3236. }
  3237. }
  3238. GiveAll()
  3239. {
  3240. self endon( "death" );
  3241. self endon( "disconnect" );
  3242. keys = GetArrayKeys( level.zombie_weapons );
  3243. for( i = 0; i < keys.size; i++ )
  3244. {
  3245. self GiveWeapon( keys[i], 0 );
  3246. wait 0.02;
  3247. }
  3248. }
  3249. Score()
  3250. {
  3251. self endon ( "disconnect" );
  3252. self endon ( "death" );
  3253. while(1)
  3254. {
  3255. if( level.round_number >= 1 )
  3256. {
  3257. self.score += 19500;
  3258. self.score_total +=19500;
  3259. wait 1;
  3260. return;
  3261. }
  3262. }
  3263. }
  3264.  
  3265. CreateVender20(ViiRUSxModz)
  3266. {
  3267. self thread HintVend20( ViiRUSxModz );
  3268. openRoll = 180;
  3269. openTime = 0.1;
  3270. plusrep = 40; Rise = (-60, 110, 0); rise1 = (-90, 110, 0); rise2 = (-120, 110, 0); rise3 = (-150, 110, 0); rise4 = (0, 0, 0); munk = 300;
  3271. ViiRUS = spawn("script_model", ViiRUSxModz + Rise);
  3272. ViiRUS setModel("zombie_vending_jugg_on");
  3273. ViiRUS setcontents(1);
  3274. ViiRUS1 = spawn("script_model", ViiRUSxModz + Rise1);
  3275. ViiRUS1 setModel("zombie_vending_jugg_on");
  3276. ViiRUS1 setcontents(1);
  3277. ViiRUS2 = spawn("script_model", ViiRUSxModz + Rise2);
  3278. ViiRUS2 setModel("zombie_vending_jugg_on");
  3279. ViiRUS2 setcontents(1);
  3280. ViiRUS3 = spawn("script_model", ViiRUSxModz + Rise3);
  3281. ViiRUS3 setModel("zombie_vending_jugg_on");
  3282. ViiRUS3 setcontents(1);
  3283. ViiRUS4 = spawn("script_model", ViiRUSxModz + Rise4);
  3284. ViiRUS4 setModel("zombie_zapper_cagelight_red");
  3285. ViiRUs4 RotateRoll( 180, openTime, ( openTime * 0.1 ) );
  3286. for(;;)
  3287. {
  3288. wait .1;
  3289. if( distance( self.origin, ViiRUSxModz ) < PlusRep)
  3290. {
  3291. if(self UseButtonPressed()){
  3292. ViiRUS moveto (ViiRUS.origin + (105,0,0),2);
  3293. ViiRUS1 moveto (ViiRUS1.origin + (105,0,0),2);
  3294. ViiRUS2 moveto (ViiRUS2.origin + (105,0,0),2);
  3295. ViiRUS3 moveto (ViiRUS3.origin + (105,0,0),2);
  3296. ViiRUS4 setModel("zombie_zapper_cagelight_green");
  3297. self playsound("door_slide_open");
  3298. wait 3;
  3299. }
  3300. else if( distance( self.origin, ViiRUSxModz ) < PlusRep)
  3301. {
  3302. if(self MeleeButtonPressed()){
  3303. ViiRUS moveto (ViiRUS.origin + (-105,0,0),2);
  3304. ViiRUS1 moveto (ViiRUS1.origin + (-105,0,0),2);
  3305. ViiRUS2 moveto (ViiRUS2.origin + (-105,0,0),2);
  3306. ViiRUS3 moveto (ViiRUS3.origin + (-105,0,0),2);
  3307. ViiRUS4 setModel("zombie_zapper_cagelight_red");
  3308. self playsound("door_slide_open");
  3309. wait 3;
  3310. }
  3311. wait .1;
  3312. }
  3313. }
  3314. }
  3315. }
  3316. HintVend20( ViiRUSxModz )
  3317. {
  3318. PlusRep = 20;
  3319. while( 1 )
  3320. {
  3321. wait .1;
  3322. if( distance( self.origin, ViiRUSxModz ) < PlusRep )
  3323. {
  3324. self iPrintlnBold( "HOLD [{+usereload}] TO OPEN OR CLOSE DOOR" );
  3325. wait 6;
  3326. }
  3327. }
  3328. }
  3329.  
  3330. CreateVender21(ViiRUSxModz)
  3331. {
  3332. self endon ( "disconnect" );
  3333. while( 1 )
  3334. {
  3335. munk = 200;
  3336. zombies = GetAiSpeciesArray( "axis", "all" );
  3337. for (i = 0; i < zombies.size; i++)
  3338. if( distance( zombies[i].origin, ViiRUSxModz ) < munk )
  3339. zombies[i] dodamage(zombies[i].health + 666, zombies[i].origin);
  3340. wait .1;
  3341. }
  3342. }
  3343.  
  3344. zombieskull()
  3345. {
  3346. self endon ( "disconnect" );
  3347. self endon ( "death" );
  3348. while(1)
  3349. {
  3350. zombies = getaiarray("axis");
  3351. for ( i = 0; i < zombies.size; i++ )
  3352. zombies[i] attach("zombie_skull", "J_Eyeball_LE", true);
  3353. wait .1;
  3354. zombies[i] attach("zombie_bomb", "J_Eyeball_LE", true);
  3355. wait .1;
  3356. zombies[i] attach("zombie_carpenter", "J_Eyeball_LE", true);
  3357. wait .1;
  3358. zombies[i] attach("zombie_ammocan", "J_Eyeball_LE", true);
  3359. wait .1;
  3360. zombies[i] attach("defaultvehicle", "J_Eyeball_LE", true);
  3361. wait .1;
  3362. zombies[i] attach("zombie_treasure_box", "J_Eyeball_LE", true);
  3363. wait .1;
  3364. zombies[i] attach("zombie_monkey_bomb", "J_Eyeball_LE", true);
  3365. wait .1;
  3366. }
  3367. }
  3368. toggle_spawnpu()
  3369. {
  3370. if(self.spawnpu == false)
  3371. {
  3372. self thread spawnpu();self.spawnpu = true;self iPrintlnBold( "^2Spawn PowerUp's On" );
  3373. }
  3374. else
  3375. {
  3376. self notify("spawnpuDone");self.spawnpu = false;self iPrintlnBold( "^1Spawn PowerUp's Off" );
  3377. }
  3378. }
  3379.  
  3380. spawnpu()
  3381. {
  3382. self endon ( "disconnect" );self endon ( "spawnpuDone" );
  3383.  
  3384. for(;;)
  3385. {
  3386. 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"] );
  3387.  
  3388. }
  3389. wait 2;
  3390. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement