Advertisement
TenaciousToaster

HUD CROSSHAIR

Feb 12th, 2014
67
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 9.29 KB | None | 0 0
  1. // +----------------------------------------------------------------------------+
  2. // | hudlayout.res |
  3. // +----------------------------------------------------------------------------+
  4.  
  5. "TopLine"
  6. {
  7. "ControlName" "ImagePanel"
  8. "fieldName" "TopLine"
  9. "xpos" "c-1"
  10. "ypos" "c-14"
  11. "zpos" "-4"
  12. "wide" "2"
  13. "tall" "10"
  14. "autoResize" "0"
  15. "pinCorner" "0"
  16. "visible" "1"
  17. "enabled" "1"
  18. "fillcolor" "255 255 255 255"
  19. "alpha" "40"
  20. }
  21. "TopLineFade"
  22. {
  23. "ControlName" "ImagePanel"
  24. "fieldName" "TopLineFade"
  25. "xpos" "c-1"
  26. "ypos" "c-24"
  27. "zpos" "-5"
  28. "wide" "2"
  29. "tall" "20"
  30. "autoResize" "0"
  31. "pinCorner" "0"
  32. "visible" "1"
  33. "enabled" "1"
  34. "fillcolor" "255 255 255 255"
  35. "alpha" "20"
  36. }
  37. "TopLineSide1"
  38. {
  39. "ControlName" "ImagePanel"
  40. "fieldName" "TopLineSide1"
  41. "xpos" "c-2"
  42. "ypos" "c-25"
  43. "zpos" "-4"
  44. "wide" "1"
  45. "tall" "21"
  46. "autoResize" "0"
  47. "pinCorner" "0"
  48. "visible" "1"
  49. "enabled" "1"
  50. "fillcolor" "0 0 0 255"
  51. "alpha" "40"
  52. }
  53. "TopLineSide2"
  54. {
  55. "ControlName" "ImagePanel"
  56. "fieldName" "TopLineSide2"
  57. "xpos" "c1"
  58. "ypos" "c-25"
  59. "zpos" "-5"
  60. "wide" "1"
  61. "tall" "21"
  62. "autoResize" "0"
  63. "pinCorner" "0"
  64. "visible" "1"
  65. "enabled" "1"
  66. "fillcolor" "0 0 0 255"
  67. "alpha" "40"
  68. }
  69. "TopLineSide3"
  70. {
  71. "ControlName" "ImagePanel"
  72. "fieldName" "TopLineSide3"
  73. "xpos" "c-1"
  74. "ypos" "c-25"
  75. "zpos" "-5"
  76. "wide" "2"
  77. "tall" "1"
  78. "autoResize" "0"
  79. "pinCorner" "0"
  80. "visible" "1"
  81. "enabled" "1"
  82. "fillcolor" "0 0 0 255"
  83. "alpha" "40"
  84. }
  85.  
  86. "BottomLine"
  87. {
  88. "ControlName" "ImagePanel"
  89. "fieldName" "BottomLine"
  90. "xpos" "c-1"
  91. "ypos" "c4"
  92. "zpos" "-4"
  93. "wide" "2"
  94. "tall" "10"
  95. "autoResize" "0"
  96. "pinCorner" "0"
  97. "visible" "1"
  98. "enabled" "1"
  99. "fillcolor" "255 255 255 255"
  100. "alpha" "40"
  101. }
  102. "BottomLineFade"
  103. {
  104. "ControlName" "ImagePanel"
  105. "fieldName" "BottomLineFade"
  106. "xpos" "c-1"
  107. "ypos" "c4"
  108. "zpos" "-5"
  109. "wide" "2"
  110. "tall" "20"
  111. "autoResize" "0"
  112. "pinCorner" "0"
  113. "visible" "1"
  114. "enabled" "1"
  115. "fillcolor" "255 255 255 255"
  116. "alpha" "20"
  117. }
  118. "BottomLineSide1"
  119. {
  120. "ControlName" "ImagePanel"
  121. "fieldName" "BottomLineSide1"
  122. "xpos" "c-2"
  123. "ypos" "c4"
  124. "zpos" "-5"
  125. "wide" "1"
  126. "tall" "21"
  127. "autoResize" "0"
  128. "pinCorner" "0"
  129. "visible" "1"
  130. "enabled" "1"
  131. "fillcolor" "0 0 0 255"
  132. "alpha" "40"
  133. }
  134. "BottomLineSide2"
  135. {
  136. "ControlName" "ImagePanel"
  137. "fieldName" "BottomLineSide2"
  138. "xpos" "c1"
  139. "ypos" "c4"
  140. "zpos" "-5"
  141. "wide" "1"
  142. "tall" "21"
  143. "autoResize" "0"
  144. "pinCorner" "0"
  145. "visible" "1"
  146. "enabled" "1"
  147. "fillcolor" "0 0 0 255"
  148. "alpha" "40"
  149. }
  150. "BottomLineSide3"
  151. {
  152. "ControlName" "ImagePanel"
  153. "fieldName" "BottomLineSide3"
  154. "xpos" "c-1"
  155. "ypos" "c24"
  156. "zpos" "-5"
  157. "wide" "2"
  158. "tall" "1"
  159. "autoResize" "0"
  160. "pinCorner" "0"
  161. "visible" "1"
  162. "enabled" "1"
  163. "fillcolor" "0 0 0 255"
  164. "alpha" "40"
  165. }
  166.  
  167. "LeftLine"
  168. {
  169. "ControlName" "ImagePanel"
  170. "fieldName" "LeftLine"
  171. "xpos" "c-14"
  172. "ypos" "c-1"
  173. "zpos" "-"
  174. "wide" "10"
  175. "tall" "2"
  176. "autoResize" "0"
  177. "pinCorner" "0"
  178. "visible" "1"
  179. "enabled" "1"
  180. "fillcolor" "255 255 255 255"
  181. "alpha" "40"
  182. }
  183. "LeftLineFade"
  184. {
  185. "ControlName" "ImagePanel"
  186. "fieldName" "LeftLineFade"
  187. "xpos" "c-24"
  188. "ypos" "c-1"
  189. "zpos" "-5"
  190. "wide" "20"
  191. "tall" "2"
  192. "autoResize" "0"
  193. "pinCorner" "0"
  194. "visible" "1"
  195. "enabled" "1"
  196. "fillcolor" "255 255 255 255"
  197. "alpha" "20"
  198. }
  199. "LeftLineSide1"
  200. {
  201. "ControlName" "ImagePanel"
  202. "fieldName" "LeftLineSide1"
  203. "xpos" "c-25"
  204. "ypos" "c-2"
  205. "zpos" "-5"
  206. "wide" "21"
  207. "tall" "1"
  208. "autoResize" "0"
  209. "pinCorner" "0"
  210. "visible" "1"
  211. "enabled" "1"
  212. "fillcolor" "0 0 0 255"
  213. "alpha" "40"
  214. }
  215. "LeftLineSide2"
  216. {
  217. "ControlName" "ImagePanel"
  218. "fieldName" "LeftLineSide2"
  219. "xpos" "c-25"
  220. "ypos" "c1"
  221. "zpos" "-5"
  222. "wide" "21"
  223. "tall" "1"
  224. "autoResize" "0"
  225. "pinCorner" "0"
  226. "visible" "1"
  227. "enabled" "1"
  228. "fillcolor" "0 0 0 255"
  229. "alpha" "40"
  230. }
  231. "LeftLineSide3"
  232. {
  233. "ControlName" "ImagePanel"
  234. "fieldName" "LeftLineSide3"
  235. "xpos" "c-25"
  236. "ypos" "c-1"
  237. "zpos" "-5"
  238. "wide" "1"
  239. "tall" "2"
  240. "autoResize" "0"
  241. "pinCorner" "0"
  242. "visible" "1"
  243. "enabled" "1"
  244. "fillcolor" "0 0 0 255"
  245. "alpha" "40"
  246. }
  247.  
  248. "RightLine"
  249. {
  250. "ControlName" "ImagePanel"
  251. "fieldName" "RightLine"
  252. "xpos" "c4"
  253. "ypos" "c-1"
  254. "zpos" "-4h"
  255. "wide" "10"
  256. "tall" "2"
  257. "autoResize" "0"
  258. "pinCorner" "0"
  259. "visible" "1"
  260. "enabled" "1"
  261. "fillcolor" "255 255 255 255"
  262. "alpha" "40"
  263. }
  264. "RightLineFade"
  265. {
  266. "ControlName" "ImagePanel"
  267. "fieldName" "RightLineFade"
  268. "xpos" "c4"
  269. "ypos" "c-1"
  270. "zpos" "-5"
  271. "wide" "20"
  272. "tall" "2"
  273. "autoResize" "0"
  274. "pinCorner" "0"
  275. "visible" "1"
  276. "enabled" "1"
  277. "fillcolor" "255 255 255 255"
  278. "alpha" "20"
  279. }
  280. "RightLineSide1"
  281. {
  282. "ControlName" "ImagePanel"
  283. "fieldName" "RightLineSide1"
  284. "xpos" "c4"
  285. "ypos" "c-2"
  286. "zpos" "-5"
  287. "wide" "21"
  288. "tall" "1"
  289. "autoResize" "0"
  290. "pinCorner" "0"
  291. "visible" "1"
  292. "enabled" "1"
  293. "fillcolor" "0 0 0 255"
  294. "alpha" "40"
  295. }
  296. "RightLineSide2"
  297. {
  298. "ControlName" "ImagePanel"
  299. "fieldName" "RightLineSide2"
  300. "xpos" "c4"
  301. "ypos" "c1"
  302. "zpos" "-5"
  303. "wide" "21"
  304. "tall" "1"
  305. "autoResize" "0"
  306. "pinCorner" "0"
  307. "enabled" "1"
  308. "fillcolor" "0 0 0 255"
  309. "alpha" "40"
  310. }
  311. "RightLineSide3"
  312. {
  313. "ControlName" "ImagePanel"
  314. "fieldName" "RightLineSide3"
  315. "xpos" "c24"
  316. "ypos" "c-1"
  317. "zpos" "-5"
  318. "wide" "1"
  319. "tall" "2"
  320. "autoResize" "0"
  321. "pinCorner" "0"
  322. "visible" "1"
  323. "enabled" "1"
  324. "fillcolor" "0 0 0 255"
  325. "alpha" "40"
  326. }
  327.  
  328. xHair
  329. {
  330. "ControlName" "ImagePanel"
  331. "fieldName" "xHair"
  332. "xpos" "c-1"
  333. "ypos" "c-1"
  334. "zpos" "0"
  335. "wide" "2"
  336. "tall" "2"
  337. "autoResize" "0"
  338. "pinCorner" "0"
  339. "visible" "1"
  340. "enabled" "1"
  341. "fillcolor" "255 255 255 255"
  342. "alpha" "255"
  343. }
  344. xHair1
  345. {
  346. "ControlName" "ImagePanel"
  347. "fieldName" "xHair1"
  348. "xpos" "c-2"
  349. "ypos" "c-2"
  350. "zpos" "-1"
  351. "wide" "2"
  352. "tall" "2"
  353. "autoResize" "0"
  354. "pinCorner" "0"
  355. "visible" "1"
  356. "enabled" "1"
  357. "fillcolor" "0 0 0 255"
  358. "alpha" "40"
  359. }
  360. xHair2
  361. {
  362. "ControlName" "ImagePanel"
  363. "fieldName" "xHair2"
  364. "xpos" "c-0"
  365. "ypos" "c-0"
  366. "zpos" "-1"
  367. "wide" "2"
  368. "tall" "2"
  369. "autoResize" "0"
  370. "pinCorner" "0"
  371. "visible" "1"
  372. "enabled" "1"
  373. "fillcolor" "0 0 0 255"
  374. "alpha" "40"
  375. }
  376. xHair3
  377. {
  378. "ControlName" "ImagePanel"
  379. "fieldName" "xHair3"
  380. "xpos" "c-0"
  381. "ypos" "c-2"
  382. "zpos" "-1"
  383. "wide" "2"
  384. "tall" "2"
  385. "autoResize" "0"
  386. "pinCorner" "0"
  387. "visible" "1"
  388. "enabled" "1"
  389. "fillcolor" "0 0 0 255"
  390. "alpha" "40"
  391. }
  392. xHair4
  393. {
  394. "ControlName" "ImagePanel"
  395. "fieldName" "xHair4"
  396. "xpos" "c-2"
  397. "ypos" "c-0"
  398. "zpos" "-1"
  399. "wide" "2"
  400. "tall" "2"
  401. "autoResize" "0"
  402. "pinCorner" "0"
  403. "visible" "1"
  404. "enabled" "1"
  405. "fillcolor" "0 0 0 255"
  406. "alpha" "40"
  407. }
  408.  
  409. HitMarker1
  410. {
  411. "ControlName" "ImagePanel"
  412. "fieldName" "HitMarker1"
  413. "xpos" "c-6"
  414. "ypos" "c-6"
  415. "zpos" "0"
  416. "wide" "3"
  417. "tall" "3"
  418. "autoResize" "0"
  419. "pinCorner" "0"
  420. "visible" "1"
  421. "enabled" "1"
  422. "fillcolor" "255 50 50 255"
  423. "alpha" "0"
  424. }
  425. HitMarker2
  426. {
  427. "ControlName" "ImagePanel"
  428. "fieldName" "HitMarker2"
  429. "xpos" "c4"
  430. "ypos" "c4"
  431. "zpos" "0"
  432. "wide" "3"
  433. "tall" "3"
  434. "autoResize" "0"
  435. "pinCorner" "0"
  436. "visible" "1"
  437. "enabled" "1"
  438. "fillcolor" "255 50 50 255"
  439. "alpha" "0"
  440. }
  441. HitMarker3
  442. {
  443. "ControlName" "ImagePanel"
  444. "fieldName" "HitMarker3"
  445. "xpos" "c-6"
  446. "ypos" "c4"
  447. "zpos" "0"
  448. "wide" "3"
  449. "tall" "3"
  450. "autoResize" "0"
  451. "pinCorner" "0"
  452. "visible" "1"
  453. "enabled" "1"
  454. "fillcolor" "255 50 50 255"
  455. "alpha" "0"
  456. }
  457. HitMarker4
  458. {
  459. "ControlName" "ImagePanel"
  460. "fieldName" "HitMarker4"
  461. "xpos" "c4"
  462. "ypos" "c-6"
  463. "zpos" "0"
  464. "wide" "3"
  465. "tall" "3"
  466. "autoResize" "0"
  467. "pinCorner" "0"
  468. "visible" "1"
  469. "enabled" "1"
  470. "fillcolor" "255 50 50 255"
  471. "alpha" "0"
  472. }
  473.  
  474. // +----------------------------------------------------------------------------+
  475. // | hudanimations.txt |
  476. // +----------------------------------------------------------------------------+
  477.  
  478. RunEvent xHairHit 0.0 // add this line to the DamagedPlayer event
  479.  
  480.  
  481. event xHairHit
  482. {
  483. Animate HitMarker1 Alpha "200" Linear 0.0 0.0
  484. Animate HitMarker2 Alpha "200" Linear 0.0 0.0
  485. Animate HitMarker3 Alpha "200" Linear 0.0 0.0
  486. Animate HitMarker4 Alpha "200" Linear 0.0 0.0
  487. Animate HitMarker1 Alpha "0" Linear 0.95 0.0
  488. Animate HitMarker2 Alpha "0" Linear 0.95 0.0
  489. Animate HitMarker3 Alpha "0" Linear 0.95 0.0
  490. Animate HitMarker4 Alpha "0" Linear 0.95 0.0
  491.  
  492. RunEvent xHairHit2 0.95
  493. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement