Advertisement
Guest User

Untitled

a guest
Aug 18th, 2017
58
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 33.22 KB | None | 0 0
  1.  
  2. #include common_scripts\utility;
  3. #include maps\_utility;
  4. #include maps\_hud_util;
  5.  
  6.  
  7. ac130z()
  8. {
  9. self endon("death");
  10. self endon("acisdone");
  11. //self CloseMenu();
  12. //self setModel("static_peleliu_b17_bomber_body");
  13. //Nacht only^^
  14. self EnableInvulnerability();
  15. //self thread MonButts();
  16. //You need to change the button controls, or use
  17. //the thread above
  18. visionSetNaked( "kamikaze", 0.2 );
  19. self setClientDvar( "cg_drawGun", "0" );
  20. self setClientDvar( "cg_drawCrosshair", "0" );
  21. //self setClientDvar("g_gravity", "1");
  22. self setClientDvar("aftermath", "2");
  23. self thread acpath((166.549, -940.029, 300.123));
  24. //Comment the above and uncomment g_gravity for walking AC
  25. self setClientDvar( "player_sustainAmmo" , "1" );
  26. wait 0.1;
  27. self air(1500);
  28. self thread ac130_death();
  29. self thread doAc130105mmHUD();
  30. self thread ac130weapons();
  31. self thread ac130timer();
  32. self thread MonButts();
  33. wait 60;
  34. self notify("acisdone");
  35. }
  36. MonButts()
  37. {
  38. self endon("death");
  39. self endon("disconnect");
  40. for(;;)
  41. {
  42. if(self FragButtonPressed())
  43. {
  44. self notify("frag");
  45. }
  46. if(self MeleeButtonPressed())
  47. {
  48. self notify("melee");
  49. }
  50. if(self AttackButtonPressed())
  51. {
  52. self notify("attack");
  53. }
  54. if(self AdsButtonPressed())
  55. {
  56. self notify("ads");
  57. }
  58. if(self UseButtonPressed())
  59. {
  60. self notify("use");
  61. }
  62. wait .15;
  63. }
  64. }
  65. air(jump)
  66. {
  67. self setOrigin(self.origin+(0,0,jump));
  68. }
  69. acpath(origin)
  70. {
  71. self endon( "acisdone" );
  72. center = spawn("script_origin", origin);
  73.  
  74. // 600 = how far away we are from center
  75. // 750 = how high we are
  76. link = spawn("script_origin", origin+(0,600,750));
  77. link linkto(center);
  78.  
  79. self playerlinktodelta(link);
  80. center thread ac130_spin();
  81. }
  82. ac130_spin()
  83. {
  84. self endon( "acisdone" );
  85. for(;;)
  86. {
  87. self rotateyaw(360, 17);
  88. wait 0.01;
  89. }
  90. }
  91. ac130_death()
  92. {
  93. self waittill("death");
  94. self waittill("acisdone");
  95. self notify("DESTROY");
  96. self notify("DELETE");
  97. self notify("NULL");
  98. visionSetNaked( "default", 0.2 );
  99. self setClientDvar("g_gravity", "800");
  100. self setClientDvar( "cg_drawGun", "1" );
  101. self setClientDvar( "cg_drawCrosshair", "1" );
  102. }
  103. doAc130105mmHUD()
  104. {
  105. self thread ac130boxleftvert();
  106. self thread ac130boxrightvert();
  107. self thread ac130boxtophorz();
  108. self thread ac130boxbottomhorz();
  109. self thread ac130topline();
  110. self thread ac130bottomline();
  111. self thread ac130leftline();
  112. self thread ac130rightline();
  113. self thread ac130topleftleft();
  114. self thread ac130toplefttop();
  115. self thread ac130toprightright();
  116. self thread ac130toprighttop();
  117. self thread ac130bottomleftleft();
  118. self thread ac130bottomleftbottom();
  119. self thread ac130bottomrightright();
  120. self thread ac130bottomrightbottom();
  121. }
  122.  
  123. ac130boxleftvert()
  124. {
  125. ac130boxleftvert = newClientHudElem( self );
  126. ac130boxleftvert.x = -30;
  127. ac130boxleftvert.y = 0;
  128. ac130boxleftvert.alignX = "center";
  129. ac130boxleftvert.alignY = "middle";
  130. ac130boxleftvert.horzAlign = "center";
  131. ac130boxleftvert.vertAlign = "middle";
  132. ac130boxleftvert.foreground = true;
  133. ac130boxleftvert setshader ("white", 5, 65);
  134. ac130boxleftvert.alpha = 1;
  135. self waittill ("DESTROY");
  136. ac130boxleftvert destroy();
  137. }
  138.  
  139. ac130boxrightvert()
  140. {
  141. ac130boxrightvert = newClientHudElem( self );
  142. ac130boxrightvert.x = 30;
  143. ac130boxrightvert.y = 0;
  144. ac130boxrightvert.alignX = "center";
  145. ac130boxrightvert.alignY = "middle";
  146. ac130boxrightvert.horzAlign = "center";
  147. ac130boxrightvert.vertAlign = "middle";
  148. ac130boxrightvert.foreground = true;
  149. ac130boxrightvert setshader ("white", 5, 65);
  150. ac130boxrightvert.alpha = 1;
  151. self waittill ("DESTROY");
  152. ac130boxrightvert destroy();
  153. }
  154.  
  155. ac130boxtophorz()
  156. {
  157. ac130boxtophorz = newClientHudElem( self );
  158. ac130boxtophorz.x = 0;
  159. ac130boxtophorz.y = -25;
  160. ac130boxtophorz.alignX = "center";
  161. ac130boxtophorz.alignY = "middle";
  162. ac130boxtophorz.horzAlign = "center";
  163. ac130boxtophorz.vertAlign = "middle";
  164. ac130boxtophorz.foreground = true;
  165. ac130boxtophorz setshader ("white", 65, 5);
  166. ac130boxtophorz.alpha = 1;
  167. self waittill ("DESTROY");
  168. ac130boxtophorz destroy();
  169. }
  170.  
  171. ac130boxbottomhorz()
  172. {
  173. ac130boxbottomhorz = newClientHudElem( self );
  174. ac130boxbottomhorz.x = 0;
  175. ac130boxbottomhorz.y = 25;
  176. ac130boxbottomhorz.alignX = "center";
  177. ac130boxbottomhorz.alignY = "middle";
  178. ac130boxbottomhorz.horzAlign = "center";
  179. ac130boxbottomhorz.vertAlign = "middle";
  180. ac130boxbottomhorz.foreground = true;
  181. ac130boxbottomhorz setshader ("white", 65, 5);
  182. ac130boxbottomhorz.alpha = 1;
  183. self waittill ("DESTROY");
  184. ac130boxbottomhorz destroy();
  185. }
  186.  
  187. ac130topline()
  188. {
  189. ac130topline = newClientHudElem( self );
  190. ac130topline.x = 0;
  191. ac130topline.y = -50;
  192. ac130topline.alignX = "center";
  193. ac130topline.alignY = "middle";
  194. ac130topline.horzAlign = "center";
  195. ac130topline.vertAlign = "middle";
  196. ac130topline.foreground = true;
  197. ac130topline setshader ("white", 5, 60);
  198. ac130topline.alpha = 1;
  199. self waittill ("DESTROY");
  200. ac130topline destroy();
  201. }
  202.  
  203. ac130bottomline()
  204. {
  205. ac130bottomline = newClientHudElem( self );
  206. ac130bottomline.x = 0;
  207. ac130bottomline.y = 50;
  208. ac130bottomline.alignX = "center";
  209. ac130bottomline.alignY = "middle";
  210. ac130bottomline.horzAlign = "center";
  211. ac130bottomline.vertAlign = "middle";
  212. ac130bottomline.foreground = true;
  213. ac130bottomline setshader ("white", 5, 60);
  214. ac130bottomline.alpha = 1;
  215. self waittill ("DESTROY");
  216. ac130bottomline destroy();
  217. }
  218.  
  219. ac130leftline()
  220. {
  221. ac130leftline = newClientHudElem( self );
  222. ac130leftline.x = -64.5;
  223. ac130leftline.y = 0;
  224. ac130leftline.alignX = "center";
  225. ac130leftline.alignY = "middle";
  226. ac130leftline.horzAlign = "center";
  227. ac130leftline.vertAlign = "middle";
  228. ac130leftline.foreground = true;
  229. ac130leftline setshader ("white", 60, 5);
  230. ac130leftline.alpha = 1;
  231. self waittill ("DESTROY");
  232. ac130leftline destroy();
  233. }
  234.  
  235. ac130rightline()
  236. {
  237. ac130rightline = newClientHudElem( self );
  238. ac130rightline.x = 64;
  239. ac130rightline.y = 0;
  240. ac130rightline.alignX = "center";
  241. ac130rightline.alignY = "middle";
  242. ac130rightline.horzAlign = "center";
  243. ac130rightline.vertAlign = "middle";
  244. ac130rightline.foreground = true;
  245. ac130rightline setshader ("white", 60, 5);
  246. ac130rightline.alpha = 1;
  247. self waittill ("DESTROY");
  248. ac130rightline destroy();
  249. }
  250.  
  251. ac130topleftleft()
  252. {
  253. ac130topll = newClientHudElem( self );
  254. ac130topll.x = -125;
  255. ac130topll.y = -87;
  256. ac130topll.alignX = "center";
  257. ac130topll.alignY = "middle";
  258. ac130topll.horzAlign = "center";
  259. ac130topll.vertAlign = "middle";
  260. ac130topll.foreground = true;
  261. ac130topll setshader ("white", 5, 35);
  262. ac130topll.alpha = 1;
  263. self waittill ("DESTROY");
  264. ac130topll destroy();
  265. }
  266.  
  267. ac130toplefttop()
  268. {
  269. ac130toplt = newClientHudElem( self );
  270. ac130toplt.x = -110;
  271. ac130toplt.y = -100;
  272. ac130toplt.alignX = "center";
  273. ac130toplt.alignY = "middle";
  274. ac130toplt.horzAlign = "center";
  275. ac130toplt.vertAlign = "middle";
  276. ac130toplt.foreground = true;
  277. ac130toplt setshader ("white", 35, 5);
  278. ac130toplt.alpha = 1;
  279. self waittill ("DESTROY");
  280. ac130toplt destroy();
  281. }
  282.  
  283. ac130toprightright()
  284. {
  285. ac130toprr = newClientHudElem( self );
  286. ac130toprr.x = 125;
  287. ac130toprr.y = -87;
  288. ac130toprr.alignX = "center";
  289. ac130toprr.alignY = "middle";
  290. ac130toprr.horzAlign = "center";
  291. ac130toprr.vertAlign = "middle";
  292. ac130toprr.foreground = true;
  293. ac130toprr setshader ("white", 5, 35);
  294. ac130toprr.alpha = 1;
  295. self waittill ("DESTROY");
  296. ac130toprr destroy();
  297. }
  298.  
  299. ac130toprighttop()
  300. {
  301. ac130toprt = newClientHudElem( self );
  302. ac130toprt.x = 110;
  303. ac130toprt.y = -100;
  304. ac130toprt.alignX = "center";
  305. ac130toprt.alignY = "middle";
  306. ac130toprt.horzAlign = "center";
  307. ac130toprt.vertAlign = "middle";
  308. ac130toprt.foreground = true;
  309. ac130toprt setshader ("white", 35, 5);
  310. ac130toprt.alpha = 1;
  311. self waittill ("DESTROY");
  312. ac130toprt destroy();
  313. }
  314.  
  315. ac130bottomleftleft()
  316. {
  317. ac130bottomll = newClientHudElem( self );
  318. ac130bottomll.x = -125;
  319. ac130bottomll.y = 87;
  320. ac130bottomll.alignX = "center";
  321. ac130bottomll.alignY = "middle";
  322. ac130bottomll.horzAlign = "center";
  323. ac130bottomll.vertAlign = "middle";
  324. ac130bottomll.foreground = true;
  325. ac130bottomll setshader ("white", 5, 35);
  326. ac130bottomll.alpha = 1;
  327. self waittill ("DESTROY");
  328. ac130bottomll destroy();
  329. }
  330.  
  331. ac130bottomleftbottom()
  332. {
  333. ac130bottomlb = newClientHudElem( self );
  334. ac130bottomlb.x = -110;
  335. ac130bottomlb.y = 100;
  336. ac130bottomlb.alignX = "center";
  337. ac130bottomlb.alignY = "middle";
  338. ac130bottomlb.horzAlign = "center";
  339. ac130bottomlb.vertAlign = "middle";
  340. ac130bottomlb.foreground = true;
  341. ac130bottomlb setshader ("white", 35, 5);
  342. ac130bottomlb.alpha = 1;
  343. self waittill ("DESTROY");
  344. ac130bottomlb destroy();
  345. }
  346.  
  347. ac130bottomrightright()
  348. {
  349. ac130bottomrr = newClientHudElem( self );
  350. ac130bottomrr.x = 125;
  351. ac130bottomrr.y = 87;
  352. ac130bottomrr.alignX = "center";
  353. ac130bottomrr.alignY = "middle";
  354. ac130bottomrr.horzAlign = "center";
  355. ac130bottomrr.vertAlign = "middle";
  356. ac130bottomrr.foreground = true;
  357. ac130bottomrr setshader ("white", 5, 35);
  358. ac130bottomrr.alpha = 1;
  359. self waittill ("DESTROY");
  360. ac130bottomrr destroy();
  361. }
  362.  
  363. ac130bottomrightbottom()
  364. {
  365. ac130bottomrb = newClientHudElem( self );
  366. ac130bottomrb.x = 110;
  367. ac130bottomrb.y = 100;
  368. ac130bottomrb.alignX = "center";
  369. ac130bottomrb.alignY = "middle";
  370. ac130bottomrb.horzAlign = "center";
  371. ac130bottomrb.vertAlign = "middle";
  372. ac130bottomrb.foreground = true;
  373. ac130bottomrb setshader ("white", 35, 5);
  374. ac130bottomrb.alpha = 1;
  375. self waittill ("DESTROY");
  376. ac130bottomrb destroy();
  377. }
  378.  
  379. doAc13040mmHUD()
  380. {
  381. self thread Ac13040mmtopline();
  382. self thread Ac13040mmbottomline();
  383. self thread Ac13040mmleftline();
  384. self thread Ac13040mmrightline();
  385. self thread Ac13040mmtophorz();
  386. self thread Ac13040mmbottomhorz();
  387. self thread Ac13040mmleftvert();
  388. self thread Ac13040mmrightvert();
  389. self thread Ac13040mmmidtophorz();
  390. self thread Ac13040mmmidbottomhorz();
  391. self thread Ac13040mmmidleftvert();
  392. self thread Ac13040mmmidrightvert();
  393. }
  394.  
  395. Ac13040mmtopline()
  396. {
  397. ac13040mmtopline = newClientHudElem( self );
  398. ac13040mmtopline.x = 0;
  399. ac13040mmtopline.y = -70;
  400. ac13040mmtopline.alignX = "center";
  401. ac13040mmtopline.alignY = "middle";
  402. ac13040mmtopline.horzAlign = "center";
  403. ac13040mmtopline.vertAlign = "middle";
  404. ac13040mmtopline.foreground = true;
  405. ac13040mmtopline setshader ("white", 2, 125);
  406. ac13040mmtopline.alpha = 1;
  407. self waittill ("DELETE");
  408. ac13040mmtopline destroy();
  409. }
  410.  
  411. Ac13040mmbottomline()
  412. {
  413. ac13040mmbottomline = newClientHudElem( self );
  414. ac13040mmbottomline.x = 0;
  415. ac13040mmbottomline.y = 70;
  416. ac13040mmbottomline.alignX = "center";
  417. ac13040mmbottomline.alignY = "middle";
  418. ac13040mmbottomline.horzAlign = "center";
  419. ac13040mmbottomline.vertAlign = "middle";
  420. ac13040mmbottomline.foreground = true;
  421. ac13040mmbottomline setshader ("white", 2, 125);
  422. ac13040mmbottomline.alpha = 1;
  423. self waittill ("DELETE");
  424. ac13040mmbottomline destroy();
  425. }
  426.  
  427. Ac13040mmleftline()
  428. {
  429. ac13040mmleftline = newClientHudElem( self );
  430. ac13040mmleftline.x = -85;
  431. ac13040mmleftline.y = 0;
  432. ac13040mmleftline.alignX = "center";
  433. ac13040mmleftline.alignY = "middle";
  434. ac13040mmleftline.horzAlign = "center";
  435. ac13040mmleftline.vertAlign = "middle";
  436. ac13040mmleftline.foreground = true;
  437. ac13040mmleftline setshader ("white", 115, 4);
  438. ac13040mmleftline.alpha = 1;
  439. self waittill ("DELETE");
  440. ac13040mmleftline destroy();
  441. }
  442.  
  443. Ac13040mmrightline()
  444. {
  445. ac13040mmrightline = newClientHudElem( self );
  446. ac13040mmrightline.x = 85;
  447. ac13040mmrightline.y = 0;
  448. ac13040mmrightline.alignX = "center";
  449. ac13040mmrightline.alignY = "middle";
  450. ac13040mmrightline.horzAlign = "center";
  451. ac13040mmrightline.vertAlign = "middle";
  452. ac13040mmrightline.foreground = true;
  453. ac13040mmrightline setshader ("white", 115, 4);
  454. ac13040mmrightline.alpha = 1;
  455. self waittill ("DELETE");
  456. ac13040mmrightline destroy();
  457. }
  458.  
  459. Ac13040mmtophorz()
  460. {
  461. ac13040mmtophorz = newClientHudElem( self );
  462. ac13040mmtophorz.x = 0;
  463. ac13040mmtophorz.y = -118;
  464. ac13040mmtophorz.alignX = "center";
  465. ac13040mmtophorz.alignY = "middle";
  466. ac13040mmtophorz.horzAlign = "center";
  467. ac13040mmtophorz.vertAlign = "middle";
  468. ac13040mmtophorz.foreground = true;
  469. ac13040mmtophorz setshader ("white", 30, 3);
  470. ac13040mmtophorz.alpha = 1;
  471. self waittill ("DELETE");
  472. ac13040mmtophorz destroy();
  473. }
  474.  
  475. Ac13040mmbottomhorz()
  476. {
  477. ac13040mmbottomhorz = newClientHudElem( self );
  478. ac13040mmbottomhorz.x = 0;
  479. ac13040mmbottomhorz.y = 118;
  480. ac13040mmbottomhorz.alignX = "center";
  481. ac13040mmbottomhorz.alignY = "middle";
  482. ac13040mmbottomhorz.horzAlign = "center";
  483. ac13040mmbottomhorz.vertAlign = "middle";
  484. ac13040mmbottomhorz.foreground = true;
  485. ac13040mmbottomhorz setshader ("white", 30, 3);
  486. ac13040mmbottomhorz.alpha = 1;
  487. self waittill ("DELETE");
  488. ac13040mmbottomhorz destroy();
  489. }
  490.  
  491. Ac13040mmleftvert()
  492. {
  493. ac13040mmleftvert = newClientHudElem( self );
  494. ac13040mmleftvert.x = -142;
  495. ac13040mmleftvert.y = 0;
  496. ac13040mmleftvert.alignX = "center";
  497. ac13040mmleftvert.alignY = "middle";
  498. ac13040mmleftvert.horzAlign = "center";
  499. ac13040mmleftvert.vertAlign = "middle";
  500. ac13040mmleftvert.foreground = true;
  501. ac13040mmleftvert setshader ("white", 3, 30);
  502. ac13040mmleftvert.alpha = 1;
  503. self waittill ("DELETE");
  504. ac13040mmleftvert destroy();
  505. }
  506.  
  507. Ac13040mmrightvert()
  508. {
  509. ac13040mmrightvert = newClientHudElem( self );
  510. ac13040mmrightvert.x = 142;
  511. ac13040mmrightvert.y = 0;
  512. ac13040mmrightvert.alignX = "center";
  513. ac13040mmrightvert.alignY = "middle";
  514. ac13040mmrightvert.horzAlign = "center";
  515. ac13040mmrightvert.vertAlign = "middle";
  516. ac13040mmrightvert.foreground = true;
  517. ac13040mmrightvert setshader ("white", 3, 30);
  518. ac13040mmrightvert.alpha = 1;
  519. self waittill ("DELETE");
  520. ac13040mmrightvert destroy();
  521. }
  522.  
  523. Ac13040mmmidtophorz()
  524. {
  525. ac13040mmmidtophorz = newClientHudElem( self );
  526. ac13040mmmidtophorz.x = 0;
  527. ac13040mmmidtophorz.y = -69;
  528. ac13040mmmidtophorz.alignX = "center";
  529. ac13040mmmidtophorz.alignY = "middle";
  530. ac13040mmmidtophorz.horzAlign = "center";
  531. ac13040mmmidtophorz.vertAlign = "middle";
  532. ac13040mmmidtophorz.foreground = true;
  533. ac13040mmmidtophorz setshader ("white", 20, 3);
  534. ac13040mmmidtophorz.alpha = 1;
  535. self waittill ("DELETE");
  536. ac13040mmmidtophorz destroy();
  537. }
  538.  
  539. Ac13040mmmidbottomhorz()
  540. {
  541. ac13040mmmidbottomhorz = newClientHudElem( self );
  542. ac13040mmmidbottomhorz.x = 0;
  543. ac13040mmmidbottomhorz.y = 69;
  544. ac13040mmmidbottomhorz.alignX = "center";
  545. ac13040mmmidbottomhorz.alignY = "middle";
  546. ac13040mmmidbottomhorz.horzAlign = "center";
  547. ac13040mmmidbottomhorz.vertAlign = "middle";
  548. ac13040mmmidbottomhorz.foreground = true;
  549. ac13040mmmidbottomhorz setshader ("white", 20, 3);
  550. ac13040mmmidbottomhorz.alpha = 1;
  551. self waittill ("DELETE");
  552. ac13040mmmidbottomhorz destroy();
  553. }
  554.  
  555. Ac13040mmmidleftvert()
  556. {
  557. ac13040mmmidleftvert = newClientHudElem( self );
  558. ac13040mmmidleftvert.x = -81;
  559. ac13040mmmidleftvert.y = 0;
  560. ac13040mmmidleftvert.alignX = "center";
  561. ac13040mmmidleftvert.alignY = "middle";
  562. ac13040mmmidleftvert.horzAlign = "center";
  563. ac13040mmmidleftvert.vertAlign = "middle";
  564. ac13040mmmidleftvert.foreground = true;
  565. ac13040mmmidleftvert setshader ("white", 3, 20);
  566. ac13040mmmidleftvert.alpha = 1;
  567. self waittill ("DELETE");
  568. ac13040mmmidleftvert destroy();
  569. }
  570.  
  571. Ac13040mmmidrightvert()
  572. {
  573. ac13040mmmidrightvert = newClientHudElem( self );
  574. ac13040mmmidrightvert.x = 81;
  575. ac13040mmmidrightvert.y = 0;
  576. ac13040mmmidrightvert.alignX = "center";
  577. ac13040mmmidrightvert.alignY = "middle";
  578. ac13040mmmidrightvert.horzAlign = "center";
  579. ac13040mmmidrightvert.vertAlign = "middle";
  580. ac13040mmmidrightvert.foreground = true;
  581. ac13040mmmidrightvert setshader ("white", 3, 20);
  582. ac13040mmmidrightvert.alpha = 1;
  583. self waittill ("DELETE");
  584. ac13040mmmidrightvert destroy();
  585. }
  586.  
  587. doAc13020mmHUD()
  588. {
  589. self thread ac13020mmbottomline();
  590. self thread ac13020mmleftline();
  591. self thread ac13020mmrightline();
  592. self thread ac13020mmtopleftleft();
  593. self thread ac13020mmtoplefttop();
  594. self thread ac13020mmtoprightright();
  595. self thread ac13020mmtoprighttop();
  596. self thread ac13020mmbottomleftleft();
  597. self thread ac13020mmbottomleftbottom();
  598. self thread ac13020mmbottomrightright();
  599. self thread ac13020mmbottomrightbottom();
  600. self thread ac13020mmarrow1vert();
  601. self thread ac13020mmarrow1horz();
  602. self thread ac13020mmarrow2vert();
  603. self thread ac13020mmarrow2horz();
  604. self thread ac13020mmarrow3vert();
  605. self thread ac13020mmarrow3horz();
  606. self thread ac13020mmarrow4vert();
  607. self thread ac13020mmarrow4horz();
  608. }
  609.  
  610. ac13020mmbottomline()
  611. {
  612. ac13020mmbottomline = newClientHudElem( self );
  613. ac13020mmbottomline.x = 0;
  614. ac13020mmbottomline.y = 20;
  615. ac13020mmbottomline.alignX = "center";
  616. ac13020mmbottomline.alignY = "middle";
  617. ac13020mmbottomline.horzAlign = "center";
  618. ac13020mmbottomline.vertAlign = "middle";
  619. ac13020mmbottomline.foreground = true;
  620. ac13020mmbottomline setshader ("white", 3, 50);
  621. ac13020mmbottomline.alpha = 1;
  622. self waittill ("NULL");
  623. ac13020mmbottomline destroy();
  624. }
  625.  
  626. ac13020mmleftline()
  627. {
  628. ac13020mmleftline = newClientHudElem( self );
  629. ac13020mmleftline.x = -25;
  630. ac13020mmleftline.y = 0;
  631. ac13020mmleftline.alignX = "center";
  632. ac13020mmleftline.alignY = "middle";
  633. ac13020mmleftline.horzAlign = "center";
  634. ac13020mmleftline.vertAlign = "middle";
  635. ac13020mmleftline.foreground = true;
  636. ac13020mmleftline setshader ("white", 42, 3);
  637. ac13020mmleftline.alpha = 1;
  638. self waittill ("NULL");
  639. ac13020mmleftline destroy();
  640. }
  641.  
  642. ac13020mmrightline()
  643. {
  644. ac13020mmrightline = newClientHudElem( self );
  645. ac13020mmrightline.x = 25;
  646. ac13020mmrightline.y = 0;
  647. ac13020mmrightline.alignX = "center";
  648. ac13020mmrightline.alignY = "middle";
  649. ac13020mmrightline.horzAlign = "center";
  650. ac13020mmrightline.vertAlign = "middle";
  651. ac13020mmrightline.foreground = true;
  652. ac13020mmrightline setshader ("white", 42, 3);
  653. ac13020mmrightline.alpha = 1;
  654. self waittill ("NULL");
  655. ac13020mmrightline destroy();
  656. }
  657.  
  658. ac13020mmtopleftleft()
  659. {
  660. ac130topll = newClientHudElem( self );
  661. ac130topll.x = -75;
  662. ac130topll.y = -47;
  663. ac130topll.alignX = "center";
  664. ac130topll.alignY = "middle";
  665. ac130topll.horzAlign = "center";
  666. ac130topll.vertAlign = "middle";
  667. ac130topll.foreground = true;
  668. ac130topll setshader ("white", 5, 35);
  669. ac130topll.alpha = 1;
  670. self waittill ("NULL");
  671. ac130topll destroy();
  672. }
  673.  
  674. ac13020mmtoplefttop()
  675. {
  676. ac130toplt = newClientHudElem( self );
  677. ac130toplt.x = -60;
  678. ac130toplt.y = -60;
  679. ac130toplt.alignX = "center";
  680. ac130toplt.alignY = "middle";
  681. ac130toplt.horzAlign = "center";
  682. ac130toplt.vertAlign = "middle";
  683. ac130toplt.foreground = true;
  684. ac130toplt setshader ("white", 35, 5);
  685. ac130toplt.alpha = 1;
  686. self waittill ("NULL");
  687. ac130toplt destroy();
  688. }
  689.  
  690. ac13020mmtoprightright()
  691. {
  692. ac130toprr = newClientHudElem( self );
  693. ac130toprr.x = 75;
  694. ac130toprr.y = -47;
  695. ac130toprr.alignX = "center";
  696. ac130toprr.alignY = "middle";
  697. ac130toprr.horzAlign = "center";
  698. ac130toprr.vertAlign = "middle";
  699. ac130toprr.foreground = true;
  700. ac130toprr setshader ("white", 5, 35);
  701. ac130toprr.alpha = 1;
  702. self waittill ("NULL");
  703. ac130toprr destroy();
  704. }
  705.  
  706. ac13020mmtoprighttop()
  707. {
  708. ac130toprt = newClientHudElem( self );
  709. ac130toprt.x = 60;
  710. ac130toprt.y = -60;
  711. ac130toprt.alignX = "center";
  712. ac130toprt.alignY = "middle";
  713. ac130toprt.horzAlign = "center";
  714. ac130toprt.vertAlign = "middle";
  715. ac130toprt.foreground = true;
  716. ac130toprt setshader ("white", 35, 5);
  717. ac130toprt.alpha = 1;
  718. self waittill ("NULL");
  719. ac130toprt destroy();
  720. }
  721.  
  722. ac13020mmbottomleftleft()
  723. {
  724. ac130bottomll = newClientHudElem( self );
  725. ac130bottomll.x = -75;
  726. ac130bottomll.y = 47;
  727. ac130bottomll.alignX = "center";
  728. ac130bottomll.alignY = "middle";
  729. ac130bottomll.horzAlign = "center";
  730. ac130bottomll.vertAlign = "middle";
  731. ac130bottomll.foreground = true;
  732. ac130bottomll setshader ("white", 5, 35);
  733. ac130bottomll.alpha = 1;
  734. self waittill ("NULL");
  735. ac130bottomll destroy();
  736. }
  737.  
  738. ac13020mmbottomleftbottom()
  739. {
  740. ac130bottomlb = newClientHudElem( self );
  741. ac130bottomlb.x = -60;
  742. ac130bottomlb.y = 60;
  743. ac130bottomlb.alignX = "center";
  744. ac130bottomlb.alignY = "middle";
  745. ac130bottomlb.horzAlign = "center";
  746. ac130bottomlb.vertAlign = "middle";
  747. ac130bottomlb.foreground = true;
  748. ac130bottomlb setshader ("white", 35, 5);
  749. ac130bottomlb.alpha = 1;
  750. self waittill ("NULL");
  751. ac130bottomlb destroy();
  752. }
  753.  
  754. ac13020mmbottomrightright()
  755. {
  756. ac130bottomrr = newClientHudElem( self );
  757. ac130bottomrr.x = 75;
  758. ac130bottomrr.y = 47;
  759. ac130bottomrr.alignX = "center";
  760. ac130bottomrr.alignY = "middle";
  761. ac130bottomrr.horzAlign = "center";
  762. ac130bottomrr.vertAlign = "middle";
  763. ac130bottomrr.foreground = true;
  764. ac130bottomrr setshader ("white", 5, 35);
  765. ac130bottomrr.alpha = 1;
  766. self waittill ("NULL");
  767. ac130bottomrr destroy();
  768. }
  769.  
  770. ac13020mmbottomrightbottom()
  771. {
  772. ac130bottomrb = newClientHudElem( self );
  773. ac130bottomrb.x = 60;
  774. ac130bottomrb.y = 60;
  775. ac130bottomrb.alignX = "center";
  776. ac130bottomrb.alignY = "middle";
  777. ac130bottomrb.horzAlign = "center";
  778. ac130bottomrb.vertAlign = "middle";
  779. ac130bottomrb.foreground = true;
  780. ac130bottomrb setshader ("white", 35, 5);
  781. ac130bottomrb.alpha = 1;
  782. self waittill ("NULL");
  783. ac130bottomrb destroy();
  784. }
  785.  
  786. ac13020mmarrow1vert()
  787. {
  788. ac13020mmarrow1vert = newClientHudElem( self );
  789. ac13020mmarrow1vert.x = 10;
  790. ac13020mmarrow1vert.y = 12;
  791. ac13020mmarrow1vert.alignX = "center";
  792. ac13020mmarrow1vert.alignY = "middle";
  793. ac13020mmarrow1vert.horzAlign = "center";
  794. ac13020mmarrow1vert.vertAlign = "middle";
  795. ac13020mmarrow1vert.foreground = true;
  796. ac13020mmarrow1vert setshader ("white", 1, 11);
  797. ac13020mmarrow1vert.alpha = 1;
  798. self waittill ("NULL");
  799. ac13020mmarrow1vert destroy();
  800. }
  801.  
  802. ac13020mmarrow1horz()
  803. {
  804. ac13020mmarrow1horz = newClientHudElem( self );
  805. ac13020mmarrow1horz.x = 15;
  806. ac13020mmarrow1horz.y = 8;
  807. ac13020mmarrow1horz.alignX = "center";
  808. ac13020mmarrow1horz.alignY = "middle";
  809. ac13020mmarrow1horz.horzAlign = "center";
  810. ac13020mmarrow1horz.vertAlign = "middle";
  811. ac13020mmarrow1horz.foreground = true;
  812. ac13020mmarrow1horz setshader ("white", 11, 2);
  813. ac13020mmarrow1horz.alpha = 1;
  814. self waittill ("NULL");
  815. ac13020mmarrow1horz destroy();
  816. }
  817.  
  818. ac13020mmarrow2vert()
  819. {
  820. ac13020mmarrow2vert = newClientHudElem( self );
  821. ac13020mmarrow2vert.x = 15;
  822. ac13020mmarrow2vert.y = 17;
  823. ac13020mmarrow2vert.alignX = "center";
  824. ac13020mmarrow2vert.alignY = "middle";
  825. ac13020mmarrow2vert.horzAlign = "center";
  826. ac13020mmarrow2vert.vertAlign = "middle";
  827. ac13020mmarrow2vert.foreground = true;
  828. ac13020mmarrow2vert setshader ("white", 1, 11);
  829. ac13020mmarrow2vert.alpha = 1;
  830. self waittill ("NULL");
  831. ac13020mmarrow2vert destroy();
  832. }
  833.  
  834. ac13020mmarrow2horz()
  835. {
  836. ac13020mmarrow2horz = newClientHudElem( self );
  837. ac13020mmarrow2horz.x = 20;
  838. ac13020mmarrow2horz.y = 13;
  839. ac13020mmarrow2horz.alignX = "center";
  840. ac13020mmarrow2horz.alignY = "middle";
  841. ac13020mmarrow2horz.horzAlign = "center";
  842. ac13020mmarrow2horz.vertAlign = "middle";
  843. ac13020mmarrow2horz.foreground = true;
  844. ac13020mmarrow2horz setshader ("white", 11, 2);
  845. ac13020mmarrow2horz.alpha = 1;
  846. self waittill ("NULL");
  847. ac13020mmarrow2horz destroy();
  848. }
  849.  
  850. ac13020mmarrow3vert()
  851. {
  852. ac13020mmarrow3vert = newClientHudElem( self );
  853. ac13020mmarrow3vert.x = 20;
  854. ac13020mmarrow3vert.y = 22;
  855. ac13020mmarrow3vert.alignX = "center";
  856. ac13020mmarrow3vert.alignY = "middle";
  857. ac13020mmarrow3vert.horzAlign = "center";
  858. ac13020mmarrow3vert.vertAlign = "middle";
  859. ac13020mmarrow3vert.foreground = true;
  860. ac13020mmarrow3vert setshader ("white", 1, 11);
  861. ac13020mmarrow3vert.alpha = 1;
  862. self waittill ("NULL");
  863. ac13020mmarrow3vert destroy();
  864. }
  865.  
  866. ac13020mmarrow3horz()
  867. {
  868. ac13020mmarrow3horz = newClientHudElem( self );
  869. ac13020mmarrow3horz.x = 25;
  870. ac13020mmarrow3horz.y = 18;
  871. ac13020mmarrow3horz.alignX = "center";
  872. ac13020mmarrow3horz.alignY = "middle";
  873. ac13020mmarrow3horz.horzAlign = "center";
  874. ac13020mmarrow3horz.vertAlign = "middle";
  875. ac13020mmarrow3horz.foreground = true;
  876. ac13020mmarrow3horz setshader ("white", 11, 2);
  877. ac13020mmarrow3horz.alpha = 1;
  878. self waittill ("NULL");
  879. ac13020mmarrow3horz destroy();
  880. }
  881.  
  882. ac13020mmarrow4vert()
  883. {
  884. ac13020mmarrow4vert = newClientHudElem( self );
  885. ac13020mmarrow4vert.x = 25;
  886. ac13020mmarrow4vert.y = 27;
  887. ac13020mmarrow4vert.alignX = "center";
  888. ac13020mmarrow4vert.alignY = "middle";
  889. ac13020mmarrow4vert.horzAlign = "center";
  890. ac13020mmarrow4vert.vertAlign = "middle";
  891. ac13020mmarrow4vert.foreground = true;
  892. ac13020mmarrow4vert setshader ("white", 1, 11);
  893. ac13020mmarrow4vert.alpha = 1;
  894. self waittill ("NULL");
  895. ac13020mmarrow4vert destroy();
  896. }
  897.  
  898. ac13020mmarrow4horz()
  899. {
  900. ac13020mmarrow4horz = newClientHudElem( self );
  901. ac13020mmarrow4horz.x = 30;
  902. ac13020mmarrow4horz.y = 23;
  903. ac13020mmarrow4horz.alignX = "center";
  904. ac13020mmarrow4horz.alignY = "middle";
  905. ac13020mmarrow4horz.horzAlign = "center";
  906. ac13020mmarrow4horz.vertAlign = "middle";
  907. ac13020mmarrow4horz.foreground = true;
  908. ac13020mmarrow4horz setshader ("white", 11, 2);
  909. ac13020mmarrow4horz.alpha = 1;
  910. self waittill ("NULL");
  911. ac13020mmarrow4horz destroy();
  912. }
  913.  
  914. ac130weapons()
  915. {
  916. self endon("death");
  917. for(;;)
  918. {
  919. self.ac130weapon = "1";
  920. if(self.ac130weapon == 1)
  921. {
  922. self thread ac130105mm();
  923. self thread doAc130105mmHUD();
  924. self notify("NULL");
  925. }
  926. wait 1;
  927. self waittill ("use");
  928. self.ac130weapon = "2";
  929. if(self.ac130weapon == 2)
  930. {
  931. self thread ac13040mm();
  932. self thread doAc13040mmHUD();
  933. self notify("DESTROY");
  934. }
  935. wait 1;
  936. self waittill ("use");
  937. self.ac130weapon = "3";
  938. if(self.ac130weapon == 3)
  939. {
  940. self thread ac13020mm();
  941. self thread doAc13020mmHUD();
  942. self notify("DELETE");
  943. }
  944. wait 2;
  945. self waittill ("use");
  946. }
  947. }
  948.  
  949. ac130105mm()
  950. {
  951. self endon ("death");
  952. self.ac130weapon = "1";
  953. self iPrintln("^5105mm Cannon Ready For Action!");
  954. self takeallweapons();
  955. self giveWeapon( "zombie_30cal" );
  956. self switchToWeapon( "zombie_30cal" );
  957. while(1)
  958. {
  959. if(self.ac130weapon == "1")
  960. {
  961. self waittill ( "weapon_fired" );
  962. forward = self geteye();
  963. vec = anglestoforward(self getPlayerAngles());
  964. end = (vec[0] * 100000000, vec[1] * 100000000, vec[2] * 100000000);
  965. SPLOSIONlocation = BulletTrace( forward, end, 0, self )[ "position" ];
  966. RadiusDamage( SPLOSIONlocation, 300, 600, 200, self );
  967. playfx(loadfx("explosions/default_explosion"), SPLOSIONlocation);
  968. }
  969. }
  970. }
  971.  
  972. ac13040mm()
  973. {
  974. self endon ("death");
  975. self.ac130weapon = "2";
  976. self iPrintln("^340mm Cannon Ready For Action!");
  977. while(1)
  978. {
  979. if(self.ac130weapon == "2")
  980. {
  981. self waittill ( "weapon_fired" );
  982. forward = self geteye();
  983. vec = anglestoforward(self getPlayerAngles());
  984. end = (vec[0] * 100000000, vec[1] * 100000000, vec[2] * 100000000);
  985. SPLOSIONlocation = BulletTrace( forward, end, 0, self )[ "position" ];
  986. RadiusDamage( SPLOSIONlocation, 300, 600, 200, self );
  987. playfx(loadfx("explosions/default_explosion"), SPLOSIONlocation);
  988. }
  989. }
  990. }
  991.  
  992. ac13020mm()
  993. {
  994. self endon("death");
  995. self.ac130weapon = "3";
  996. self iPrintln("^220mm Gun Ready For Action!");
  997. self takeallweapons();
  998. self giveWeapon( "zombie_fg42" );
  999. self switchToWeapon( "zombie_fg42" );
  1000. while(1)
  1001. {
  1002. if(self.ac130weapon == "3")
  1003. {
  1004. self waittill ( "weapon_fired" );
  1005. forward = self geteye();
  1006. vec = anglestoforward(self getPlayerAngles());
  1007. end = (vec[0] * 100000000, vec[1] * 100000000, vec[2] * 100000000);
  1008. SPLOSIONlocation = BulletTrace( forward, end, 0, self )[ "position" ];
  1009. RadiusDamage( SPLOSIONlocation, 300, 600, 200, self );
  1010. playfx(loadFx("maps/mp_maps/fx_mp_zombie_hand_dirt_burst"), SPLOSIONlocation);
  1011. }
  1012. }
  1013. }
  1014.  
  1015. ac130timer( duration )
  1016. {
  1017. level.HUDItem[ "timer" ] = newClientHudElem( self );
  1018. level.HUDItem[ "timer" ].x = -100;
  1019. level.HUDItem[ "timer" ].y = 50;
  1020. level.HUDItem[ "timer" ].alignX = "right";
  1021. level.HUDItem[ "timer" ].alignY = "bottom";
  1022. level.HUDItem[ "timer" ].horzAlign = "right";
  1023. level.HUDItem[ "timer" ].vertAlign = "bottom";
  1024. level.HUDItem[ "timer" ].font = "objective";
  1025. level.HUDItem[ "timer" ].fontScale = 2.5;
  1026. level.HUDItem[ "timer" ] setTimer( 60.0 );
  1027. level.HUDItem[ "timer" ].alpha = 1.0;
  1028. level.HUDItem[ "timer" ] setTimer( duration );
  1029. self waittill( "death" );
  1030. level.HUDItem[ "timer" ] destroy();
  1031. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement