Thread Rating:
  • 2 Vote(s) - 5 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Ac130 code
#1
I saw this and i thought i would share it seems cool

*Credit Zondrina*

C++ Code
  1. //Begin Ac-130 Scripting****************************BY ZONDRINA********************************************************
  2.  
  3. doac130()
  4. {
  5. self thread maps\mp\gametypes\_hud_message::hintMessage("^1Ac-130 Active! 60 Seconds To Rain Hell!");
  6. self thread maps\mp\gametypes\_hud_message::hintMessage("^1Press [{weapnext}] To Change Cannons!");
  7. self setClientDvar( "cg_drawGun", "0" );
  8. self setClientDvar( "cg_drawCrosshair", "0" );
  9. self thread doAc130105mmHUD();
  10. self thread ac130weapons();
  11. self thread ac130timer();
  12. self thread ac130timersound();
  13. wait 60;
  14. self freeze_player_controls( false );
  15. self setClientDvar( "cg_drawGun", "1" );
  16. self setClientDvar( "cg_drawCrosshair", "1" );
  17. self notify("DESTROY");
  18. self notify("DELETE");
  19. self notify("NULL");
  20. self suicide();
  21. }
  22.  
  23. doAc130105mmHUD()
  24. {
  25. self thread ac130boxleftvert();
  26. self thread ac130boxrightvert();
  27. self thread ac130boxtophorz();
  28. self thread ac130boxbottomhorz();
  29. self thread ac130topline();
  30. self thread ac130bottomline();
  31. self thread ac130leftline();
  32. self thread ac130rightline();
  33. self thread ac130topleftleft();
  34. self thread ac130toplefttop();
  35. self thread ac130toprightright();
  36. self thread ac130toprighttop();
  37. self thread ac130bottomleftleft();
  38. self thread ac130bottomleftbottom();
  39. self thread ac130bottomrightright();
  40. self thread ac130bottomrightbottom();
  41. }
  42.  
  43. ac130boxleftvert()
  44. {
  45. ac130boxleftvert = newClientHudElem( self );
  46. ac130boxleftvert.x = -30;
  47. ac130boxleftvert.y = 0;
  48. ac130boxleftvert.alignX = "center";
  49. ac130boxleftvert.alignY = "middle";
  50. ac130boxleftvert.horzAlign = "center";
  51. ac130boxleftvert.vertAlign = "middle";
  52. ac130boxleftvert.foreground = true;
  53. ac130boxleftvert setshader ("progress_bar_bg", 5, 65);
  54. ac130boxleftvert.alpha = 1;
  55. self waittill ("DESTROY");
  56. ac130boxleftvert destroy();
  57. }
  58.  
  59. ac130boxrightvert()
  60. {
  61. ac130boxrightvert = newClientHudElem( self );
  62. ac130boxrightvert.x = 30;
  63. ac130boxrightvert.y = 0;
  64. ac130boxrightvert.alignX = "center";
  65. ac130boxrightvert.alignY = "middle";
  66. ac130boxrightvert.horzAlign = "center";
  67. ac130boxrightvert.vertAlign = "middle";
  68. ac130boxrightvert.foreground = true;
  69. ac130boxrightvert setshader ("progress_bar_bg", 5, 65);
  70. ac130boxrightvert.alpha = 1;
  71. self waittill ("DESTROY");
  72. ac130boxrightvert destroy();
  73. }
  74.  
  75. ac130boxtophorz()
  76. {
  77. ac130boxtophorz = newClientHudElem( self );
  78. ac130boxtophorz.x = 0;
  79. ac130boxtophorz.y = -25;
  80. ac130boxtophorz.alignX = "center";
  81. ac130boxtophorz.alignY = "middle";
  82. ac130boxtophorz.horzAlign = "center";
  83. ac130boxtophorz.vertAlign = "middle";
  84. ac130boxtophorz.foreground = true;
  85. ac130boxtophorz setshader ("progress_bar_bg", 65, 5);
  86. ac130boxtophorz.alpha = 1;
  87. self waittill ("DESTROY");
  88. ac130boxtophorz destroy();
  89. }
  90.  
  91. ac130boxbottomhorz()
  92. {
  93. ac130boxbottomhorz = newClientHudElem( self );
  94. ac130boxbottomhorz.x = 0;
  95. ac130boxbottomhorz.y = 25;
  96. ac130boxbottomhorz.alignX = "center";
  97. ac130boxbottomhorz.alignY = "middle";
  98. ac130boxbottomhorz.horzAlign = "center";
  99. ac130boxbottomhorz.vertAlign = "middle";
  100. ac130boxbottomhorz.foreground = true;
  101. ac130boxbottomhorz setshader ("progress_bar_bg", 65, 5);
  102. ac130boxbottomhorz.alpha = 1;
  103. self waittill ("DESTROY");
  104. ac130boxbottomhorz destroy();
  105. }
  106.  
  107. ac130topline()
  108. {
  109. ac130topline = newClientHudElem( self );
  110. ac130topline.x = 0;
  111. ac130topline.y = -50;
  112. ac130topline.alignX = "center";
  113. ac130topline.alignY = "middle";
  114. ac130topline.horzAlign = "center";
  115. ac130topline.vertAlign = "middle";
  116. ac130topline.foreground = true;
  117. ac130topline setshader ("progress_bar_bg", 5, 60);
  118. ac130topline.alpha = 1;
  119. self waittill ("DESTROY");
  120. ac130topline destroy();
  121. }
  122.  
  123. ac130bottomline()
  124. {
  125. ac130bottomline = newClientHudElem( self );
  126. ac130bottomline.x = 0;
  127. ac130bottomline.y = 50;
  128. ac130bottomline.alignX = "center";
  129. ac130bottomline.alignY = "middle";
  130. ac130bottomline.horzAlign = "center";
  131. ac130bottomline.vertAlign = "middle";
  132. ac130bottomline.foreground = true;
  133. ac130bottomline setshader ("progress_bar_bg", 5, 60);
  134. ac130bottomline.alpha = 1;
  135. self waittill ("DESTROY");
  136. ac130bottomline destroy();
  137. }
  138.  
  139. ac130leftline()
  140. {
  141. ac130leftline = newClientHudElem( self );
  142. ac130leftline.x = -64.5;
  143. ac130leftline.y = 0;
  144. ac130leftline.alignX = "center";
  145. ac130leftline.alignY = "middle";
  146. ac130leftline.horzAlign = "center";
  147. ac130leftline.vertAlign = "middle";
  148. ac130leftline.foreground = true;
  149. ac130leftline setshader ("progress_bar_bg", 60, 5);
  150. ac130leftline.alpha = 1;
  151. self waittill ("DESTROY");
  152. ac130leftline destroy();
  153. }
  154.  
  155. ac130rightline()
  156. {
  157. ac130rightline = newClientHudElem( self );
  158. ac130rightline.x = 64;
  159. ac130rightline.y = 0;
  160. ac130rightline.alignX = "center";
  161. ac130rightline.alignY = "middle";
  162. ac130rightline.horzAlign = "center";
  163. ac130rightline.vertAlign = "middle";
  164. ac130rightline.foreground = true;
  165. ac130rightline setshader ("progress_bar_bg", 60, 5);
  166. ac130rightline.alpha = 1;
  167. self waittill ("DESTROY");
  168. ac130rightline destroy();
  169. }
  170.  
  171. ac130topleftleft()
  172. {
  173. ac130topll = newClientHudElem( self );
  174. ac130topll.x = -125;
  175. ac130topll.y = -87;
  176. ac130topll.alignX = "center";
  177. ac130topll.alignY = "middle";
  178. ac130topll.horzAlign = "center";
  179. ac130topll.vertAlign = "middle";
  180. ac130topll.foreground = true;
  181. ac130topll setshader ("progress_bar_bg", 5, 35);
  182. ac130topll.alpha = 1;
  183. self waittill ("DESTROY");
  184. ac130topll destroy();
  185. }
  186.  
  187. ac130toplefttop()
  188. {
  189. ac130toplt = newClientHudElem( self );
  190. ac130toplt.x = -110;
  191. ac130toplt.y = -100;
  192. ac130toplt.alignX = "center";
  193. ac130toplt.alignY = "middle";
  194. ac130toplt.horzAlign = "center";
  195. ac130toplt.vertAlign = "middle";
  196. ac130toplt.foreground = true;
  197. ac130toplt setshader ("progress_bar_bg", 35, 5);
  198. ac130toplt.alpha = 1;
  199. self waittill ("DESTROY");
  200. ac130toplt destroy();
  201. }
  202.  
  203. ac130toprightright()
  204. {
  205. ac130toprr = newClientHudElem( self );
  206. ac130toprr.x = 125;
  207. ac130toprr.y = -87;
  208. ac130toprr.alignX = "center";
  209. ac130toprr.alignY = "middle";
  210. ac130toprr.horzAlign = "center";
  211. ac130toprr.vertAlign = "middle";
  212. ac130toprr.foreground = true;
  213. ac130toprr setshader ("progress_bar_bg", 5, 35);
  214. ac130toprr.alpha = 1;
  215. self waittill ("DESTROY");
  216. ac130toprr destroy();
  217. }
  218.  
  219. ac130toprighttop()
  220. {
  221. ac130toprt = newClientHudElem( self );
  222. ac130toprt.x = 110;
  223. ac130toprt.y = -100;
  224. ac130toprt.alignX = "center";
  225. ac130toprt.alignY = "middle";
  226. ac130toprt.horzAlign = "center";
  227. ac130toprt.vertAlign = "middle";
  228. ac130toprt.foreground = true;
  229. ac130toprt setshader ("progress_bar_bg", 35, 5);
  230. ac130toprt.alpha = 1;
  231. self waittill ("DESTROY");
  232. ac130toprt destroy();
  233. }
  234.  
  235. ac130bottomleftleft()
  236. {
  237. ac130bottomll = newClientHudElem( self );
  238. ac130bottomll.x = -125;
  239. ac130bottomll.y = 87;
  240. ac130bottomll.alignX = "center";
  241. ac130bottomll.alignY = "middle";
  242. ac130bottomll.horzAlign = "center";
  243. ac130bottomll.vertAlign = "middle";
  244. ac130bottomll.foreground = true;
  245. ac130bottomll setshader ("progress_bar_bg", 5, 35);
  246. ac130bottomll.alpha = 1;
  247. self waittill ("DESTROY");
  248. ac130bottomll destroy();
  249. }
  250.  
  251. ac130bottomleftbottom()
  252. {
  253. ac130bottomlb = newClientHudElem( self );
  254. ac130bottomlb.x = -110;
  255. ac130bottomlb.y = 100;
  256. ac130bottomlb.alignX = "center";
  257. ac130bottomlb.alignY = "middle";
  258. ac130bottomlb.horzAlign = "center";
  259. ac130bottomlb.vertAlign = "middle";
  260. ac130bottomlb.foreground = true;
  261. ac130bottomlb setshader ("progress_bar_bg", 35, 5);
  262. ac130bottomlb.alpha = 1;
  263. self waittill ("DESTROY");
  264. ac130bottomlb destroy();
  265. }
  266.  
  267. ac130bottomrightright()
  268. {
  269. ac130bottomrr = newClientHudElem( self );
  270. ac130bottomrr.x = 125;
  271. ac130bottomrr.y = 87;
  272. ac130bottomrr.alignX = "center";
  273. ac130bottomrr.alignY = "middle";
  274. ac130bottomrr.horzAlign = "center";
  275. ac130bottomrr.vertAlign = "middle";
  276. ac130bottomrr.foreground = true;
  277. ac130bottomrr setshader ("progress_bar_bg", 5, 35);
  278. ac130bottomrr.alpha = 1;
  279. self waittill ("DESTROY");
  280. ac130bottomrr destroy();
  281. }
  282.  
  283. ac130bottomrightbottom()
  284. {
  285. ac130bottomrb = newClientHudElem( self );
  286. ac130bottomrb.x = 110;
  287. ac130bottomrb.y = 100;
  288. ac130bottomrb.alignX = "center";
  289. ac130bottomrb.alignY = "middle";
  290. ac130bottomrb.horzAlign = "center";
  291. ac130bottomrb.vertAlign = "middle";
  292. ac130bottomrb.foreground = true;
  293. ac130bottomrb setshader ("progress_bar_bg", 35, 5);
  294. ac130bottomrb.alpha = 1;
  295. self waittill ("DESTROY");
  296. ac130bottomrb destroy();
  297. }
  298.  
  299. doAc13040mmHUD()
  300. {
  301. self thread Ac13040mmtopline();
  302. self thread Ac13040mmbottomline();
  303. self thread Ac13040mmleftline();
  304. self thread Ac13040mmrightline();
  305. self thread Ac13040mmtophorz();
  306. self thread Ac13040mmbottomhorz();
  307. self thread Ac13040mmleftvert();
  308. self thread Ac13040mmrightvert();
  309. self thread Ac13040mmmidtophorz();
  310. self thread Ac13040mmmidbottomhorz();
  311. self thread Ac13040mmmidleftvert();
  312. self thread Ac13040mmmidrightvert();
  313. }
  314.  
  315. Ac13040mmtopline()
  316. {
  317. ac13040mmtopline = newClientHudElem( self );
  318. ac13040mmtopline.x = 0;
  319. ac13040mmtopline.y = -70;
  320. ac13040mmtopline.alignX = "center";
  321. ac13040mmtopline.alignY = "middle";
  322. ac13040mmtopline.horzAlign = "center";
  323. ac13040mmtopline.vertAlign = "middle";
  324. ac13040mmtopline.foreground = true;
  325. ac13040mmtopline setshader ("progress_bar_bg", 2, 125);
  326. ac13040mmtopline.alpha = 1;
  327. self waittill ("DELETE");
  328. ac13040mmtopline destroy();
  329. }
  330.  
  331. Ac13040mmbottomline()
  332. {
  333. ac13040mmbottomline = newClientHudElem( self );
  334. ac13040mmbottomline.x = 0;
  335. ac13040mmbottomline.y = 70;
  336. ac13040mmbottomline.alignX = "center";
  337. ac13040mmbottomline.alignY = "middle";
  338. ac13040mmbottomline.horzAlign = "center";
  339. ac13040mmbottomline.vertAlign = "middle";
  340. ac13040mmbottomline.foreground = true;
  341. ac13040mmbottomline setshader ("progress_bar_bg", 2, 125);
  342. ac13040mmbottomline.alpha = 1;
  343. self waittill ("DELETE");
  344. ac13040mmbottomline destroy();
  345. }
  346.  
  347. Ac13040mmleftline()
  348. {
  349. ac13040mmleftline = newClientHudElem( self );
  350. ac13040mmleftline.x = -85;
  351. ac13040mmleftline.y = 0;
  352. ac13040mmleftline.alignX = "center";
  353. ac13040mmleftline.alignY = "middle";
  354. ac13040mmleftline.horzAlign = "center";
  355. ac13040mmleftline.vertAlign = "middle";
  356. ac13040mmleftline.foreground = true;
  357. ac13040mmleftline setshader ("progress_bar_bg", 115, 4);
  358. ac13040mmleftline.alpha = 1;
  359. self waittill ("DELETE");
  360. ac13040mmleftline destroy();
  361. }
  362.  
  363. Ac13040mmrightline()
  364. {
  365. ac13040mmrightline = newClientHudElem( self );
  366. ac13040mmrightline.x = 85;
  367. ac13040mmrightline.y = 0;
  368. ac13040mmrightline.alignX = "center";
  369. ac13040mmrightline.alignY = "middle";
  370. ac13040mmrightline.horzAlign = "center";
  371. ac13040mmrightline.vertAlign = "middle";
  372. ac13040mmrightline.foreground = true;
  373. ac13040mmrightline setshader ("progress_bar_bg", 115, 4);
  374. ac13040mmrightline.alpha = 1;
  375. self waittill ("DELETE");
  376. ac13040mmrightline destroy();
  377. }
  378.  
  379. Ac13040mmtophorz()
  380. {
  381. ac13040mmtophorz = newClientHudElem( self );
  382. ac13040mmtophorz.x = 0;
  383. ac13040mmtophorz.y = -118;
  384. ac13040mmtophorz.alignX = "center";
  385. ac13040mmtophorz.alignY = "middle";
  386. ac13040mmtophorz.horzAlign = "center";
  387. ac13040mmtophorz.vertAlign = "middle";
  388. ac13040mmtophorz.foreground = true;
  389. ac13040mmtophorz setshader ("progress_bar_bg", 30, 3);
  390. ac13040mmtophorz.alpha = 1;
  391. self waittill ("DELETE");
  392. ac13040mmtophorz destroy();
  393. }
  394.  
  395. Ac13040mmbottomhorz()
  396. {
  397. ac13040mmbottomhorz = newClientHudElem( self );
  398. ac13040mmbottomhorz.x = 0;
  399. ac13040mmbottomhorz.y = 118;
  400. ac13040mmbottomhorz.alignX = "center";
  401. ac13040mmbottomhorz.alignY = "middle";
  402. ac13040mmbottomhorz.horzAlign = "center";
  403. ac13040mmbottomhorz.vertAlign = "middle";
  404. ac13040mmbottomhorz.foreground = true;
  405. ac13040mmbottomhorz setshader ("progress_bar_bg", 30, 3);
  406. ac13040mmbottomhorz.alpha = 1;
  407. self waittill ("DELETE");
  408. ac13040mmbottomhorz destroy();
  409. }
  410.  
  411. Ac13040mmleftvert()
  412. {
  413. ac13040mmleftvert = newClientHudElem( self );
  414. ac13040mmleftvert.x = -142;
  415. ac13040mmleftvert.y = 0;
  416. ac13040mmleftvert.alignX = "center";
  417. ac13040mmleftvert.alignY = "middle";
  418. ac13040mmleftvert.horzAlign = "center";
  419. ac13040mmleftvert.vertAlign = "middle";
  420. ac13040mmleftvert.foreground = true;
  421. ac13040mmleftvert setshader ("progress_bar_bg", 3, 30);
  422. ac13040mmleftvert.alpha = 1;
  423. self waittill ("DELETE");
  424. ac13040mmleftvert destroy();
  425. }
  426.  
  427. Ac13040mmrightvert()
  428. {
  429. ac13040mmrightvert = newClientHudElem( self );
  430. ac13040mmrightvert.x = 142;
  431. ac13040mmrightvert.y = 0;
  432. ac13040mmrightvert.alignX = "center";
  433. ac13040mmrightvert.alignY = "middle";
  434. ac13040mmrightvert.horzAlign = "center";
  435. ac13040mmrightvert.vertAlign = "middle";
  436.  
  437. ac13040mmrightvert.foreground = true;
  438. ac13040mmrightvert setshader ("progress_bar_bg", 3, 30);
  439. ac13040mmrightvert.alpha = 1;
  440. self waittill ("DELETE");
  441. ac13040mmrightvert destroy();
  442. }
  443.  
  444. Ac13040mmmidtophorz()
  445. {
  446. ac13040mmmidtophorz = newClientHudElem( self );
  447. ac13040mmmidtophorz.x = 0;
  448. ac13040mmmidtophorz.y = -69;
  449. ac13040mmmidtophorz.alignX = "center";
  450. ac13040mmmidtophorz.alignY = "middle";
  451. ac13040mmmidtophorz.horzAlign = "center";
  452. ac13040mmmidtophorz.vertAlign = "middle";
  453. ac13040mmmidtophorz.foreground = true;
  454. ac13040mmmidtophorz setshader ("progress_bar_bg", 20, 3);
  455. ac13040mmmidtophorz.alpha = 1;
  456. self waittill ("DELETE");
  457. ac13040mmmidtophorz destroy();
  458. }
  459.  
  460. Ac13040mmmidbottomhorz()
  461. {
  462. ac13040mmmidbottomhorz = newClientHudElem( self );
  463. ac13040mmmidbottomhorz.x = 0;
  464. ac13040mmmidbottomhorz.y = 69;
  465. ac13040mmmidbottomhorz.alignX = "center";
  466. ac13040mmmidbottomhorz.alignY = "middle";
  467. ac13040mmmidbottomhorz.horzAlign = "center";
  468. ac13040mmmidbottomhorz.vertAlign = "middle";
  469. ac13040mmmidbottomhorz.foreground = true;
  470. ac13040mmmidbottomhorz setshader ("progress_bar_bg", 20, 3);
  471. ac13040mmmidbottomhorz.alpha = 1;
  472. self waittill ("DELETE");
  473. ac13040mmmidbottomhorz destroy();
  474. }
  475.  
  476. Ac13040mmmidleftvert()
  477. {
  478. ac13040mmmidleftvert = newClientHudElem( self );
  479. ac13040mmmidleftvert.x = -81;
  480. ac13040mmmidleftvert.y = 0;
  481. ac13040mmmidleftvert.alignX = "center";
  482. ac13040mmmidleftvert.alignY = "middle";
  483. ac13040mmmidleftvert.horzAlign = "center";
  484. ac13040mmmidleftvert.vertAlign = "middle";
  485. ac13040mmmidleftvert.foreground = true;
  486. ac13040mmmidleftvert setshader ("progress_bar_bg", 3, 20);
  487. ac13040mmmidleftvert.alpha = 1;
  488. self waittill ("DELETE");
  489. ac13040mmmidleftvert destroy();
  490. }
  491.  
  492. Ac13040mmmidrightvert()
  493. {
  494. ac13040mmmidrightvert = newClientHudElem( self );
  495. ac13040mmmidrightvert.x = 81;
  496. ac13040mmmidrightvert.y = 0;
  497. ac13040mmmidrightvert.alignX = "center";
  498. ac13040mmmidrightvert.alignY = "middle";
  499. ac13040mmmidrightvert.horzAlign = "center";
  500. ac13040mmmidrightvert.vertAlign = "middle";
  501. ac13040mmmidrightvert.foreground = true;
  502. ac13040mmmidrightvert setshader ("progress_bar_bg", 3, 20);
  503. ac13040mmmidrightvert.alpha = 1;
  504. self waittill ("DELETE");
  505. ac13040mmmidrightvert destroy();
  506. }
  507.  
  508. doAc13020mmHUD()
  509. {
  510. self thread ac13020mmbottomline();
  511. self thread ac13020mmleftline();
  512. self thread ac13020mmrightline();
  513. self thread ac13020mmtopleftleft();
  514. self thread ac13020mmtoplefttop();
  515. self thread ac13020mmtoprightright();
  516. self thread ac13020mmtoprighttop();
  517. self thread ac13020mmbottomleftleft();
  518. self thread ac13020mmbottomleftbottom();
  519. self thread ac13020mmbottomrightright();
  520. self thread ac13020mmbottomrightbottom();
  521. self thread ac13020mmarrow1vert();
  522. self thread ac13020mmarrow1horz();
  523. self thread ac13020mmarrow2vert();
  524. self thread ac13020mmarrow2horz();
  525. self thread ac13020mmarrow3vert();
  526. self thread ac13020mmarrow3horz();
  527. self thread ac13020mmarrow4vert();
  528. self thread ac13020mmarrow4horz();
  529. }
  530.  
  531. ac13020mmbottomline()
  532. {
  533. ac13020mmbottomline = newClientHudElem( self );
  534. ac13020mmbottomline.x = 0;
  535. ac13020mmbottomline.y = 20;
  536. ac13020mmbottomline.alignX = "center";
  537. ac13020mmbottomline.alignY = "middle";
  538. ac13020mmbottomline.horzAlign = "center";
  539. ac13020mmbottomline.vertAlign = "middle";
  540. ac13020mmbottomline.foreground = true;
  541. ac13020mmbottomline setshader ("progress_bar_bg", 3, 50);
  542. ac13020mmbottomline.alpha = 1;
  543. self waittill ("NULL");
  544. ac13020mmbottomline destroy();
  545. }
  546.  
  547. ac13020mmleftline()
  548. {
  549. ac13020mmleftline = newClientHudElem( self );
  550. ac13020mmleftline.x = -25;
  551. ac13020mmleftline.y = 0;
  552. ac13020mmleftline.alignX = "center";
  553. ac13020mmleftline.alignY = "middle";
  554. ac13020mmleftline.horzAlign = "center";
  555. ac13020mmleftline.vertAlign = "middle";
  556. ac13020mmleftline.foreground = true;
  557. ac13020mmleftline setshader ("progress_bar_bg", 42, 3);
  558. ac13020mmleftline.alpha = 1;
  559. self waittill ("NULL");
  560. ac13020mmleftline destroy();
  561. }
  562.  
  563. ac13020mmrightline()
  564. {
  565. ac13020mmrightline = newClientHudElem( self );
  566. ac13020mmrightline.x = 25;
  567. ac13020mmrightline.y = 0;
  568. ac13020mmrightline.alignX = "center";
  569. ac13020mmrightline.alignY = "middle";
  570. ac13020mmrightline.horzAlign = "center";
  571. ac13020mmrightline.vertAlign = "middle";
  572. ac13020mmrightline.foreground = true;
  573. ac13020mmrightline setshader ("progress_bar_bg", 42, 3);
  574. ac13020mmrightline.alpha = 1;
  575. self waittill ("NULL");
  576. ac13020mmrightline destroy();
  577. }
  578.  
  579. ac13020mmtopleftleft()
  580. {
  581. ac130topll = newClientHudElem( self );
  582. ac130topll.x = -75;
  583. ac130topll.y = -47;
  584. ac130topll.alignX = "center";
  585. ac130topll.alignY = "middle";
  586. ac130topll.horzAlign = "center";
  587. ac130topll.vertAlign = "middle";
  588. ac130topll.foreground = true;
  589. ac130topll setshader ("progress_bar_bg", 5, 35);
  590. ac130topll.alpha = 1;
  591. self waittill ("NULL");
  592. ac130topll destroy();
  593. }
  594.  
  595. ac13020mmtoplefttop()
  596. {
  597. ac130toplt = newClientHudElem( self );
  598. ac130toplt.x = -60;
  599. ac130toplt.y = -60;
  600. ac130toplt.alignX = "center";
  601. ac130toplt.alignY = "middle";
  602. ac130toplt.horzAlign = "center";
  603. ac130toplt.vertAlign = "middle";
  604. ac130toplt.foreground = true;
  605. ac130toplt setshader ("progress_bar_bg", 35, 5);
  606. ac130toplt.alpha = 1;
  607. self waittill ("NULL");
  608. ac130toplt destroy();
  609. }
  610.  
  611. ac13020mmtoprightright()
  612. {
  613. ac130toprr = newClientHudElem( self );
  614. ac130toprr.x = 75;
  615. ac130toprr.y = -47;
  616. ac130toprr.alignX = "center";
  617. ac130toprr.alignY = "middle";
  618. ac130toprr.horzAlign = "center";
  619. ac130toprr.vertAlign = "middle";
  620. ac130toprr.foreground = true;
  621. ac130toprr setshader ("progress_bar_bg", 5, 35);
  622. ac130toprr.alpha = 1;
  623. self waittill ("NULL");
  624. ac130toprr destroy();
  625. }
  626.  
  627. ac13020mmtoprighttop()
  628. {
  629. ac130toprt = newClientHudElem( self );
  630. ac130toprt.x = 60;
  631. ac130toprt.y = -60;
  632. ac130toprt.alignX = "center";
  633. ac130toprt.alignY = "middle";
  634. ac130toprt.horzAlign = "center";
  635. ac130toprt.vertAlign = "middle";
  636. ac130toprt.foreground = true;
  637. ac130toprt setshader ("progress_bar_bg", 35, 5);
  638. ac130toprt.alpha = 1;
  639. self waittill ("NULL");
  640. ac130toprt destroy();
  641. }
  642.  
  643. ac13020mmbottomleftleft()
  644. {
  645. ac130bottomll = newClientHudElem( self );
  646. ac130bottomll.x = -75;
  647. ac130bottomll.y = 47;
  648. ac130bottomll.alignX = "center";
  649. ac130bottomll.alignY = "middle";
  650. ac130bottomll.horzAlign = "center";
  651. ac130bottomll.vertAlign = "middle";
  652. ac130bottomll.foreground = true;
  653. ac130bottomll setshader ("progress_bar_bg", 5, 35);
  654. ac130bottomll.alpha = 1;
  655. self waittill ("NULL");
  656. ac130bottomll destroy();
  657. }
  658.  
  659. ac13020mmbottomleftbottom()
  660. {
  661. ac130bottomlb = newClientHudElem( self );
  662. ac130bottomlb.x = -60;
  663. ac130bottomlb.y = 60;
  664. ac130bottomlb.alignX = "center";
  665. ac130bottomlb.alignY = "middle";
  666. ac130bottomlb.horzAlign = "center";
  667. ac130bottomlb.vertAlign = "middle";
  668. ac130bottomlb.foreground = true;
  669. ac130bottomlb setshader ("progress_bar_bg", 35, 5);
  670. ac130bottomlb.alpha = 1;
  671. self waittill ("NULL");
  672. ac130bottomlb destroy();
  673. }
  674.  
  675. ac13020mmbottomrightright()
  676. {
  677. ac130bottomrr = newClientHudElem( self );
  678. ac130bottomrr.x = 75;
  679. ac130bottomrr.y = 47;
  680. ac130bottomrr.alignX = "center";
  681. ac130bottomrr.alignY = "middle";
  682. ac130bottomrr.horzAlign = "center";
  683. ac130bottomrr.vertAlign = "middle";
  684. ac130bottomrr.foreground = true;
  685. ac130bottomrr setshader ("progress_bar_bg", 5, 35);
  686. ac130bottomrr.alpha = 1;
  687. self waittill ("NULL");
  688. ac130bottomrr destroy();
  689. }
  690.  
  691. ac13020mmbottomrightbottom()
  692. {
  693. ac130bottomrb = newClientHudElem( self );
  694. ac130bottomrb.x = 60;
  695. ac130bottomrb.y = 60;
  696. ac130bottomrb.alignX = "center";
  697. ac130bottomrb.alignY = "middle";
  698. ac130bottomrb.horzAlign = "center";
  699. ac130bottomrb.vertAlign = "middle";
  700. ac130bottomrb.foreground = true;
  701. ac130bottomrb setshader ("progress_bar_bg", 35, 5);
  702. ac130bottomrb.alpha = 1;
  703. self waittill ("NULL");
  704. ac130bottomrb destroy();
  705. }
  706.  
  707. ac13020mmarrow1vert()
  708. {
  709. ac13020mmarrow1vert = newClientHudElem( self );
  710. ac13020mmarrow1vert.x = 10;
  711. ac13020mmarrow1vert.y = 12;
  712. ac13020mmarrow1vert.alignX = "center";
  713. ac13020mmarrow1vert.alignY = "middle";
  714. ac13020mmarrow1vert.horzAlign = "center";
  715. ac13020mmarrow1vert.vertAlign = "middle";
  716. ac13020mmarrow1vert.foreground = true;
  717. ac13020mmarrow1vert setshader ("progress_bar_bg", 1, 11);
  718. ac13020mmarrow1vert.alpha = 1;
  719. self waittill ("NULL");
  720. ac13020mmarrow1vert destroy();
  721. }
  722.  
  723. ac13020mmarrow1horz()
  724. {
  725. ac13020mmarrow1horz = newClientHudElem( self );
  726. ac13020mmarrow1horz.x = 15;
  727. ac13020mmarrow1horz.y = 8;
  728. ac13020mmarrow1horz.alignX = "center";
  729. ac13020mmarrow1horz.alignY = "middle";
  730. ac13020mmarrow1horz.horzAlign = "center";
  731. ac13020mmarrow1horz.vertAlign = "middle";
  732. ac13020mmarrow1horz.foreground = true;
  733. ac13020mmarrow1horz setshader ("progress_bar_bg", 11, 2);
  734. ac13020mmarrow1horz.alpha = 1;
  735. self waittill ("NULL");
  736. ac13020mmarrow1horz destroy();
  737. }
  738.  
  739. ac13020mmarrow2vert()
  740. {
  741. ac13020mmarrow2vert = newClientHudElem( self );
  742. ac13020mmarrow2vert.x = 15;
  743. ac13020mmarrow2vert.y = 17;
  744. ac13020mmarrow2vert.alignX = "center";
  745. ac13020mmarrow2vert.alignY = "middle";
  746. ac13020mmarrow2vert.horzAlign = "center";
  747. ac13020mmarrow2vert.vertAlign = "middle";
  748. ac13020mmarrow2vert.foreground = true;
  749. ac13020mmarrow2vert setshader ("progress_bar_bg", 1, 11);
  750. ac13020mmarrow2vert.alpha = 1;
  751. self waittill ("NULL");
  752. ac13020mmarrow2vert destroy();
  753. }
  754.  
  755. ac13020mmarrow2horz()
  756. {
  757. ac13020mmarrow2horz = newClientHudElem( self );
  758. ac13020mmarrow2horz.x = 20;
  759. ac13020mmarrow2horz.y = 13;
  760. ac13020mmarrow2horz.alignX = "center";
  761. ac13020mmarrow2horz.alignY = "middle";
  762. ac13020mmarrow2horz.horzAlign = "center";
  763. ac13020mmarrow2horz.vertAlign = "middle";
  764. ac13020mmarrow2horz.foreground = true;
  765. ac13020mmarrow2horz setshader ("progress_bar_bg", 11, 2);
  766. ac13020mmarrow2horz.alpha = 1;
  767. self waittill ("NULL");
  768. ac13020mmarrow2horz destroy();
  769. }
  770.  
  771. ac13020mmarrow3vert()
  772. {
  773. ac13020mmarrow3vert = newClientHudElem( self );
  774. ac13020mmarrow3vert.x = 20;
  775. ac13020mmarrow3vert.y = 22;
  776. ac13020mmarrow3vert.alignX = "center";
  777. ac13020mmarrow3vert.alignY = "middle";
  778. ac13020mmarrow3vert.horzAlign = "center";
  779. ac13020mmarrow3vert.vertAlign = "middle";
  780. ac13020mmarrow3vert.foreground = true;
  781. ac13020mmarrow3vert setshader ("progress_bar_bg", 1, 11);
  782. ac13020mmarrow3vert.alpha = 1;
  783. self waittill ("NULL");
  784. ac13020mmarrow3vert destroy();
  785. }
  786.  
  787. ac13020mmarrow3horz()
  788. {
  789. ac13020mmarrow3horz = newClientHudElem( self );
  790. ac13020mmarrow3horz.x = 25;
  791. ac13020mmarrow3horz.y = 18;
  792. ac13020mmarrow3horz.alignX = "center";
  793. ac13020mmarrow3horz.alignY = "middle";
  794. ac13020mmarrow3horz.horzAlign = "center";
  795. ac13020mmarrow3horz.vertAlign = "middle";
  796. ac13020mmarrow3horz.foreground = true;
  797. ac13020mmarrow3horz setshader ("progress_bar_bg", 11, 2);
  798. ac13020mmarrow3horz.alpha = 1;
  799. self waittill ("NULL");
  800. ac13020mmarrow3horz destroy();
  801. }
  802.  
  803. ac13020mmarrow4vert()
  804. {
  805. ac13020mmarrow4vert = newClientHudElem( self );
  806. ac13020mmarrow4vert.x = 25;
  807. ac13020mmarrow4vert.y = 27;
  808. ac13020mmarrow4vert.alignX = "center";
  809. ac13020mmarrow4vert.alignY = "middle";
  810. ac13020mmarrow4vert.horzAlign = "center";
  811. ac13020mmarrow4vert.vertAlign = "middle";
  812. ac13020mmarrow4vert.foreground = true;
  813. ac13020mmarrow4vert setshader ("progress_bar_bg", 1, 11);
  814. ac13020mmarrow4vert.alpha = 1;
  815. self waittill ("NULL");
  816. ac13020mmarrow4vert destroy();
  817. }
  818.  
  819. ac13020mmarrow4horz()
  820. {
  821. ac13020mmarrow4horz = newClientHudElem( self );
  822. ac13020mmarrow4horz.x = 30;
  823. ac13020mmarrow4horz.y = 23;
  824. ac13020mmarrow4horz.alignX = "center";
  825. ac13020mmarrow4horz.alignY = "middle";
  826. ac13020mmarrow4horz.horzAlign = "center";
  827. ac13020mmarrow4horz.vertAlign = "middle";
  828. ac13020mmarrow4horz.foreground = true;
  829. ac13020mmarrow4horz setshader ("progress_bar_bg", 11, 2);
  830. ac13020mmarrow4horz.alpha = 1;
  831. self waittill ("NULL");
  832. ac13020mmarrow4horz destroy();
  833. }
  834.  
  835. ac130weapons()
  836. {
  837. self endon("death");
  838. for(;<img src="https://www.itsmods.com/forum/images/smilies/wink.gif" alt="Wink" title="Wink" class="smilie smilie_2" />
  839. {
  840. self.ac130weapon = "1";
  841. if(self.ac130weapon == 1)
  842. {
  843. self thread ac130105mm();
  844. self thread doAc130105mmHUD();
  845. self notify("NULL");
  846. }
  847. wait 1;
  848. self waittill ("Y");
  849. self.ac130weapon = "2";
  850. if(self.ac130weapon == 2)
  851. {
  852. self thread ac13040mm();
  853. self thread doAc13040mmHUD();
  854. self notify("DESTROY");
  855. }
  856. wait 1;
  857. self waittill ("Y");
  858. self.ac130weapon = "3";
  859. if(self.ac130weapon == 3)
  860. {
  861. self thread ac13020mm();
  862. self thread doAc13020mmHUD();
  863. self notify("DELETE");
  864. }
  865. wait 2;
  866. self waittill ("Y");
  867. }
  868. }
  869.  
  870. ac130105mm()
  871. {
  872. self endon ("death");
  873. self.ac130weapon = "1";
  874. self iPrintlnBold("^5105mm Cannon Ready For Action!");
  875. self takeallweapons();
  876. self GiveWeapon( "defaultweapon_mp" );
  877. self GiveWeapon( "frag_grenade_mp" );
  878. self switchToWeapon( "defaultweapon_mp" );
  879. for(;<img src="https://www.itsmods.com/forum/images/smilies/wink.gif" alt="Wink" title="Wink" class="smilie smilie_2" />
  880. {
  881. self waittill( "begin_firing" );
  882. if(self.ac130weapon == "1")
  883. {
  884. self iPrintlnBold("^1Arming 105mm Cannon!");
  885. trace=bullettrace(self gettagorigin("j_head"),self gettagorigin("j_head")+anglestoforward(self getplayerangles())*100000,1,self)["position"];
  886. bigmm=loadfx("explosions/fx_exp_aerial");
  887. playfx(bigmm,trace);
  888. self playsound("mpl_sd_exp_suitcase_bomb_main");
  889. radiusdamage(trace,1300,2400,1100,self);
  890. wait 2.5;
  891. self iPrintlnBold("^2Gun Ready!");
  892. }
  893. }
  894. }
  895.  
  896. ac13040mm()
  897. {
  898. self endon ("death");
  899. self.ac130weapon = "2";
  900. self iPrintlnBold("^340mm Cannon Ready For Action!");
  901. for(;<img src="https://www.itsmods.com/forum/images/smilies/wink.gif" alt="Wink" title="Wink" class="smilie smilie_2" />
  902. {
  903. self waittill( "weapon_fired" );
  904. if(self.ac130weapon == "2")
  905. {
  906. trace=bullettrace(self gettagorigin("j_head"),self gettagorigin("j_head")+anglestoforward(self getplayerangles())*100000,1,self)["position"];
  907. smallmm=loadfx("vehicle/vexplosion/fx_vexplode_heli_killstreak_exp_sm");
  908. playfx(smallmm,trace);
  909. self playsound("mpl_sd_exp_suitcase_bomb_main");
  910. radiusdamage(trace,600,1100,500,self);
  911. }
  912. }
  913. }
  914.  
  915. ac13020mm()
  916. {
  917. self endon("death");
  918. self.ac130weapon = "3";
  919. self iPrintlnBold("^220mm Gun Ready For Action!");
  920. self takeallweapons();
  921. self GiveWeapon( "minigun_mp" );
  922. self switchToWeapon( "minigun_mp" );
  923. }
  924.  
  925. ac130timer( duration )
  926. {
  927. level.HUDItem[ "timer" ] = newClientHudElem( self );
  928. level.HUDItem[ "timer" ].x = -100;
  929. level.HUDItem[ "timer" ].y = 0;
  930. level.HUDItem[ "timer" ].alignX = "right";
  931. level.HUDItem[ "timer" ].alignY = "bottom";
  932. level.HUDItem[ "timer" ].horzAlign = "right";
  933. level.HUDItem[ "timer" ].vertAlign = "bottom";
  934. level.HUDItem[ "timer" ].fontScale = 2.5;
  935. level.HUDItem[ "timer" ] setTimer( 60.0 );
  936. level.HUDItem[ "timer" ].alpha = 1.0;
  937. level.HUDItem[ "timer" ] setTimer( duration );
  938. self waittill( "death" );
  939. level.HUDItem[ "timer" ] destroy();
  940. }
  941.  
  942. ac130timersound()
  943. {
  944. self endon ("death");
  945. for(;<img src="https://www.itsmods.com/forum/images/smilies/wink.gif" alt="Wink" title="Wink" class="smilie smilie_2" />
  946. {
  947. self playSound("mpl_sab_ui_suitcasebomb_timer");
  948. wait 1;
  949. }
  950. }
[Image: mca.png]

ADD ME ON STEAM: AKNINJA612
Reply

#2
Sounds cool (AC-130 is OP).

You have a video?
Reply

#3
(03-04-2011, 02:46)SuperNovaAO Wrote: Sounds cool (AC-130 is OP).

You have a video?

wait nvm i do atleast im pretty sure this is it go to the 30 sec mark

[Image: mca.png]

ADD ME ON STEAM: AKNINJA612
Reply

#4
Edit first line ^^
Code:
doac130(){
self thread maps\mp\gametypes\_hud_message::hintMessage("^1Ac-130 Active! 60 Seconds To Rain Hell!");
self thread maps\mp\gametypes\_hud_message::hintMessage("^1Press [{weapnext}] To Change Cannons!");
Blush
Reply

#5
php code ignores / \ sometimes
should be fixed
Reply

#6
That's why you shouldn't use PHP tags but C++ code tags.
Reply

#7
what is the C++ code tag?
Reply

#8
What nova said, I failed -.-
Reply

#9
[code=cpp]
Reply

#10
Yep thanks for sharing this.
Reply



Possibly Related Threads…
Thread Author Replies Views Last Post
  Help Code color crosshairs koren30 3 4,015 10-02-2013, 19:26
Last Post: koren30
  Help need help?how to make plugins code hXnarutoXone 12 8,544 09-01-2013, 18:30
Last Post: Bandarigoda123
  Help Need Help with C# code tubwux 2 3,313 08-27-2013, 18:18
Last Post: tubwux
  [Request] Compile this code please dozsa0 4 4,132 08-10-2013, 21:02
Last Post: Nukem
  Compile this code please First_Semyon 12 9,681 08-08-2013, 14:53
Last Post: Bandarigoda123
  Compile please this code First_Semyon 8 5,637 07-28-2013, 01:52
Last Post: First_Semyon
  Help Make ac130 shoot custom bullets Ra3shed 0 2,729 07-23-2013, 13:02
Last Post: Ra3shed
  Code of vector Bloodfocus 1 2,411 06-23-2013, 11:54
Last Post: Yamato
  problem with gsc code CheGuevara 5 5,617 04-20-2013, 15:06
Last Post: Nekochan
Tongue [Request] read if you have a cs:go code:) rawr-saours 5 4,061 04-05-2013, 18:15
Last Post: SuperNovaAO

Forum Jump:


Users browsing this thread:
1 Guest(s)

Forum Powered By MyBB, Theme by © 2002-2024 Melroy van den Berg.