Advertisement
Guest User

hudanimations.txt

a guest
Jul 23rd, 2019
64
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 20.41 KB | None | 0 0
  1. // sample animation script
  2. //
  3. //
  4. // commands:
  5. // Animate <panel name> <variable> <target value> <interpolator> <start time> <duration>
  6. // variables:
  7. // FgColor
  8. // BgColor
  9. // ition
  10. // Size
  11. // Blur (hud panels only)
  12. // TextColor (hud panels only)
  13. // Ammo2Color (hud panels only)
  14. // Alpha (hud weapon selection only)
  15. // SelectionAlpha (hud weapon selection only)
  16. // TextScan (hud weapon selection only)
  17. //
  18. // interpolator:
  19. // Linear
  20. // Accel - starts moving slow, ends fast
  21. // Deaccel - starts moving fast, ends slow
  22. //
  23. // RunEvent <event name> <start time>
  24. // starts another even running at the specified time
  25. //
  26. // StopEvent <event name> <start time>
  27. // stops another event that is current running at the specified time
  28. //
  29. // StopAnimation <panel name> <variable> <start time>
  30. // stops all animations refering to the specified variable in the specified panel
  31. //
  32. // StopPanelAnimations <panel name> <start time>
  33. // stops all active animations operating on the specified panel
  34. //
  35. //
  36. // Useful game console commands:
  37. // cl_Animationinfo <hudelement name> or <panelname>
  38. // displays all the animatable variables for the hud element
  39. //
  40.  
  41.  
  42. event LevelInit
  43. {
  44. }
  45.  
  46. event FadeOutTeamLine
  47. {
  48. }
  49.  
  50. event FadeInTeamLine
  51. {
  52. }
  53.  
  54. event OpenWeaponSelectionMenu
  55. {
  56. StopEvent CloseWeaponSelectionMenu 0.0
  57. StopEvent WeaponPickup 0.0
  58. StopEvent FadeOutWeaponSelectionMenu 0.0
  59.  
  60. // make the display visible
  61. Animate HudWeaponSelection Alpha "128" Linear 0.0 0.1
  62. Animate HudWeaponSelection SelectionAlpha "255" Linear 0.0 0.1
  63. Animate HudWeaponSelection FgColor "255 255 255 255" Linear 0.0 0.1
  64. Animate HudWeaponSelection TextColor "255 255 255 255" Linear 0.0 0.1
  65. Animate HudWeaponSelection TextScan "1" Linear 0.0 0.1
  66. }
  67.  
  68. event CloseWeaponSelectionMenu
  69. {
  70. // hide the whole thing near immediately
  71. Animate HudWeaponSelection FgColor "0 0 0 0" Linear 0.0 0.1
  72. Animate HudWeaponSelection TextColor "0 0 0 0" Linear 0.0 0.1
  73. Animate HudWeaponSelection Alpha "0" Linear 0.0 0.1
  74. Animate HudWeaponSelection SelectionAlpha "0" Linear 0.0 0.1
  75. }
  76.  
  77. event FadeOutWeaponSelectionMenu
  78. {
  79. // slowly hide the whole thing
  80. Animate HudWeaponSelection FgColor "0 0 0 0" Linear 0.0 1.5
  81. Animate HudWeaponSelection TextColor "0 0 0 0" Linear 0.0 1.5
  82. Animate HudWeaponSelection Alpha "0" Linear 0.0 1.5
  83. Animate HudWeaponSelection SelectionAlpha "0" Linear 0.0 1.5
  84. }
  85.  
  86. event SuitAuxPowerMax
  87. {
  88. // hide the suit power
  89. Animate HudSuitPower BgColor "0 0 0 255" Linear 0.0 0.4
  90. Animate HudSuitPower AuxPowerColor "255 0 255 50" Linear 0.0 0.2
  91. Animate HudSuitPower Alpha "0" Linear 0.0 0.099
  92. Animate AUXPOWERNOTE Alpha "0" Deaccel 0.0 0
  93. Animate xL25% Alpha "0" Linear 0.0 0.099
  94. Animate xL50% Alpha "0" Linear 0.0 0.099
  95. Animate xL75% Alpha "0" Linear 0.0 0.099
  96. Animate AuxPowerPanel1 Alpha "0" Linear 0.0 0.099
  97. }
  98.  
  99.  
  100. event SuitAuxPowerNotMax
  101. {
  102. // show suit power
  103. Animate HudSuitPower BgColor "0 0 0 255" Linear 0.0 0.4 // BgColor
  104. Animate HudSuitPower AuxPowerColor "255 165 0 255" Linear 0.0 0.2 // 255 220 0 220
  105. Animate HudSuitPower Alpha "255" Linear 0 0.1
  106. Animate AuxPowerPanel1 Alpha "80" Linear 0.0 0.1
  107. Animate xL25% Alpha "200" Linear 0.0 0.1
  108. Animate xL50% Alpha "200" Linear 0.0 0.1
  109. Animate xL75% Alpha "200" Linear 0.0 0.1
  110. }
  111.  
  112. event SuitAuxPowerDecreasedBelow25
  113. {
  114. // make color red
  115. Animate HudSuitPower AuxPowerColor "255 0 0 255" Linear 0.0 0.2 // 255 0 0 220
  116. Animate AUXPOWERNOTE Alpha "255" Linear 0.0 0.1
  117. }
  118.  
  119. event SuitAuxPowerIncreasedAbove25
  120. {
  121. // make colr bright
  122. Animate HudSuitPower AuxPowerColor "255 165 0 255" Linear 0.0 0.2 // 255 220 0 220
  123. Animate AUXPOWERNOTE Alpha "0" Deaccel 0.0 0.1
  124. }
  125.  
  126. event SuitAuxPowerNoItemsActive
  127. {
  128. // resize the aux power to be the smallest size
  129. // Animate HudSuitPower Size "102 26" Linear 0.0 0.4
  130. // Animate HudSuitPower Position "16 400" Linear 0.0 0.4
  131. // Animate HudSuitPower text_xpos "8" Linear 0.0 0.4
  132. // Animate HudSuitPower text_ypos "15" Linear 0.0 0.4
  133. }
  134.  
  135. event SuitAuxPowerOneItemActive
  136. {
  137. // resize the aux power to fit one item
  138. // Animate HudSuitPower Size "102 36" Linear 0.0 0.4
  139. // Animate HudSuitPower Position "16 390" Linear 0.0 0.4
  140. }
  141.  
  142. event SuitAuxPowerTwoItemsActive
  143. {
  144. // resize the aux power to fit two items
  145. // Animate HudSuitPower Size "102 46" Linear 0.0 0.4
  146. // Animate HudSuitPower Position "16 380" Linear 0.0 0.4
  147. }
  148.  
  149. event SuitAuxPowerThreeItemsActive
  150. {
  151. // resize the aux power to fit three items
  152. // Animate HudSuitPower Size "102 56" Linear 0.0 0.4
  153. // Animate HudSuitPower Position "16 370" Linear 0.0 0.4
  154. }
  155.  
  156. event SuitFlashlightOn
  157. {
  158. Animate HudFlashlight TextColor "255 165 0 255" Linear 0.0 0.1
  159. Animate HudFlashlight TextColor "255 165 0 160" Deaccel 0.1 0.75
  160. Animate HudFlashlight BgColor "Blank" Linear 0.0 0.75
  161. }
  162.  
  163. event SuitFlashlightOff
  164. {
  165. StopEvent SuitFlashlightOn 0.0
  166. Animate HudFlashlight TextColor "0 0 0 0" Linear 0.0 0.4
  167. Animate HudFlashlight BgColor "0 0 0 0" Linear 0.0 0.4
  168. }
  169.  
  170. event HudTakeDamageFront
  171. {
  172. }
  173.  
  174. event HudTakeDamageLeft
  175. {
  176. Animate HudDamageIndicator DmgColorLeft "255 88 0 25" Linear 0.0 0.0
  177. Animate HudDamageIndicator DmgColorLeft "255 0 0 25" Linear 0.0 0.1
  178. Animate HudDamageIndicator DmgColorLeft "255 0 0 0" Deaccel 0 0.25
  179. }
  180.  
  181. event HudTakeDamageRight
  182. {
  183. Animate HudDamageIndicator DmgColorRight "255 88 0 25" Linear 0.0 0.0
  184. Animate HudDamageIndicator DmgColorRight "255 0 0 25" Linear 0.0 0.1
  185. Animate HudDamageIndicator DmgColorRight "255 0 0 0" Deaccel 0 0.25
  186. }
  187.  
  188. event HudTakeDamageBehind
  189. {
  190. RunEvent HudTakeDamageLeft 0.0
  191. RunEvent HudTakeDamageRight 0.0
  192. }
  193.  
  194. event HudTakeDamageHighLeft
  195. {
  196. Animate HudDamageIndicator DmgHighColorLeft "255 88 0 35" Linear 0.0 0.0
  197. Animate HudDamageIndicator DmgHighColorLeft "255 0 0 35" Linear 0.0 0.4
  198. Animate HudDamageIndicator DmgHighColorLeft "255 0 0 0" Deaccel 0 0.5
  199. }
  200.  
  201. event HudTakeDamageHighRight
  202. {
  203. Animate HudDamageIndicator DmgHighColorRight "255 88 0 35" Linear 0.0 0.0
  204. Animate HudDamageIndicator DmgHighColorRight "255 0 0 35" Linear 0.0 0.4
  205. Animate HudDamageIndicator DmgHighColorRight "255 0 0 0" Deaccel 0 0.5
  206. }
  207.  
  208. event HudTakeDamageHigh
  209. {
  210. Animate HudDamageIndicator DmgFullscreenColor "255 88 0 35" Linear 0.0 0.0
  211. Animate HudDamageIndicator DmgFullscreenColor "255 0 0 35" Linear 0.0 0.4
  212. Animate HudDamageIndicator DmgFullscreenColor "255 0 0 0" Deaccel 0 0.5
  213. }
  214.  
  215. event HudTakeDamageDrown
  216. {
  217. RunEvent HudTakeDamageBehind 0.0
  218. }
  219.  
  220. event HudTakeDamagePoison
  221. {
  222. Animate HudDamageIndicator DmgFullscreenColor "255 236 128 240" Linear 0.0 0.0
  223. Animate HudDamageIndicator DmgFullscreenColor "255 236 128 0" Deaccel 0.4 0.8
  224. }
  225.  
  226. event HudTakeDamageBurn
  227. {
  228. Animate HudDamageIndicator DmgFullscreenColor "255 0 0 25" Linear 0.0 0.0
  229. Animate HudDamageIndicator DmgFullscreenColor "255 0 0 0" Deaccel 0.2 0.4
  230. }
  231.  
  232. event HudTakeDamageRadiation
  233. {
  234. Animate HudDamageIndicator DmgFullscreenColor "255 255 255 25" Deaccel 0.0 0.1
  235. Animate HudDamageIndicator DmgFullscreenColor "255 255 255 0" Deaccel 0.1 0.4
  236. RunEvent HudTakeDamageBehind 0.0
  237. }
  238.  
  239. event HudPlayerDeath
  240. {
  241. StopEvent HealthLoop 0.0
  242. StopEvent HealthPulse 0.0
  243.  
  244. Animate HudDamageIndicator DmgFullscreenColor "255 0 0 8" Deaccel 0.1 0.2
  245. Animate HudDamageIndicator DmgFullscreenColor "255 0 0 48" Deaccel 0.3 4.0
  246. }
  247.  
  248. event HealthIncreasedAbove20
  249. {
  250. StopEvent HealthLoop 0.0
  251. StopEvent HealthPulse 0.0
  252. StopEvent HealthLow 0.0
  253.  
  254. Animate HudHealth BgColor "0 0 0 150" Linear 0.0 0.0
  255.  
  256. Animate HudHealth TextColor "0 255 0 255" Linear 0.0 0.04
  257. Animate HudHealth FgColor "0 255 0 255" Linear 0.0 0.03
  258.  
  259. Animate HudHealth Blur "2" Linear 0.0 0.1
  260. Animate HudHealth Blur "0.5" Deaccel 0.1 1
  261. }
  262.  
  263. event HealthIncreasedBelow20
  264. {
  265. Animate HudHealth FgColor "0 255 0 255" Linear 0.0 0.25
  266. Animate HudHealth FgColor "0 255 0 255" Linear 0.3 0.75
  267.  
  268. Animate HudHealth Blur "2" Linear 0.0 0.1
  269. Animate HudHealth Blur "0.5" Deaccel 0.1 1
  270. }
  271.  
  272. event SuitPowerIncreasedAbove20
  273. {
  274. StopEvent SuitLoop 0.0
  275. StopEvent SuitPulse 0.0
  276. StopEvent SuitPowerZero 0.0
  277.  
  278. Animate HudSuit Alpha "255" Linear 0.0 0.0
  279.  
  280. Animate HudSuit BgColor "0 0 0 50" Linear 0.0 0.0
  281.  
  282. Animate HudSuit TextColor "0 165 255 255" Linear 0.0 0.05
  283. Animate HudSuit FgColor "0 165 255 255" Linear 0.0 0.05
  284.  
  285. Animate HudSuit Blur "2" Linear 0.0 0.1
  286. Animate HudSuit Blur "0.5" Deaccel 0.1 1
  287. }
  288.  
  289.  
  290. event SuitPowerIncreasedBelow20
  291. {
  292. StopEvent SuitPowerZero 0.0
  293. Animate HudSuit Alpha "255" Linear 0.0 0.0
  294.  
  295. Animate HudSuit BgColor "0 0 0 50" Linear 0.0 0.0
  296.  
  297. Animate HudSuit FgColor "0 165 255 255" Linear 0.0 0.25
  298. Animate HudSuit FgColor "0 165 255 255" Linear 0.3 0.75
  299.  
  300. Animate HudSuit Blur "2" Linear 0.0 0.1
  301. Animate HudSuit Blur "0.5" Deaccel 0.1 2.0
  302. }
  303.  
  304. event SuitPowerZero
  305. {
  306. // StopEvent SuitLoop 0.0
  307. // StopEvent SuitPulse 0.0
  308. // StopEvent SuitArmorLow 0.0
  309. // StopEvent SuitDamageTaken 0.0
  310.  
  311. Animate HudSuit Alpha "0" Linear 0.0 0.3
  312. Animate HudSuit Text "EMPTY" Linear 0.0 0.3
  313. }
  314.  
  315. event TestMovement
  316. {
  317. Animate HudHealth Position "256 120" Linear 0.0 2.0
  318. Animate HudHealth Size "128 24" Linear 0.0 1.5
  319. }
  320.  
  321. event HealthDamageTaken
  322. {
  323. Animate HudHealth FgColor "0 255 0 255" Linear 0.0 0.25
  324. Animate HudHealth FgColor "0 255 0 255" Linear 0.3 0.75
  325.  
  326. Animate HudHealth Blur "2" Linear 0.0 0.1
  327. Animate HudHealth Blur "0.5" Deaccel 0.1 1
  328.  
  329. Animate HudHealth TextColor "0 255 0 255" Linear 0.0 0.1
  330. Animate HudHealth TextColor "0 255 0 255" Deaccel 0.1 1.2
  331. }
  332.  
  333. event SuitDamageTaken
  334. {
  335. Animate HudSuit FgColor "0 165 255 255" Linear 0.0 0.25
  336. Animate HudSuit FgColor "0 165 255 255" Linear 0.3 0.75
  337.  
  338. Animate HudSuit Blur "2" Linear 0.0 0.1
  339. Animate HudSuit Blur "0.5" Deaccel 0.1 1
  340.  
  341. Animate HudSuit TextColor "0 165 255 255" Linear 0.0 0.1
  342. Animate HudSuit TextColor "0 165 255 255" Deaccel 0.1 1.2
  343. }
  344.  
  345. // health has been damaged to below 20%
  346. event HealthLow
  347. {
  348. StopEvent HealthDamageTaken 0.0
  349. StopEvent HealthPulse 0.0
  350. StopEvent HealthLoop 0.0
  351.  
  352. Animate HudHealth BgColor "0 0 0 150" Linear 0.0 0.1
  353. Animate HudHealth BgColor "0 0 0 150" Deaccel 0.1 1.75
  354.  
  355. Animate HudHealth FgColor "BrightFg" Linear 0.0 0.2
  356. Animate HudHealth FgColor "DamagedFg" Linear 0.2 1.2
  357.  
  358. Animate HudHealth TextColor "BrightFg" Linear 0.0 0.1
  359. Animate HudHealth TextColor "DamagedFg" Linear 0.1 1.2
  360.  
  361. Animate HudHealth Blur "2" Linear 0.0 0.1
  362. Animate HudHealth Blur "0.5" Deaccel 0.1 1
  363.  
  364. RunEvent HealthPulse 1.0
  365. }
  366.  
  367. event HealthPulse
  368. {
  369. Animate HudHealth Blur "0" Linear 0.0 0.05
  370. Animate HudHealth Blur "2" Deaccel 0.1 0.8
  371. Animate HudHealth TextColor "BrightDamagedFg" Linear 0.0 0.1
  372. Animate HudHealth TextColor "DamagedFg" Deaccel 0.1 0.8
  373. Animate HudHealth BgColor "0 0 0 150" Linear 0.0 0.1
  374. Animate HudHealth BgColor "0 0 0 150" Deaccel 0.1 0.8
  375.  
  376. RunEvent HealthLoop 0.8
  377. }
  378.  
  379. // call to loop HealthPulse
  380. event HealthLoop
  381. {
  382. RunEvent HealthPulse 0.0
  383. }
  384.  
  385.  
  386. // suit armor has been damaged to below 20%
  387. event SuitArmorLow
  388. {
  389. StopEvent SuitDamageTaken 0.0
  390. StopEvent SuitPulse 0.0
  391. StopEvent SuitLoop 0.0
  392.  
  393. // removing this effect -- matching it to the event for normal suit damage
  394. // so, there will be no special indication (redness, flashing)
  395. // in the hud that the suit armor is low
  396.  
  397. Animate HudSuit BgColor "DamagedBg" Linear 0.0 0.1
  398. Animate HudSuit BgColor "BgColor" Deaccel 0.1 1.75
  399.  
  400. Animate HudSuit FgColor "255 165 0 255" Linear 0.0 0.25
  401. Animate HudSuit FgColor "255 165 0 255" Linear 0.3 0.75
  402.  
  403. Animate HudSuit Blur "0" Linear 0.0 0.1
  404. Animate HudSuit Blur "0" Deaccel 0.1 2.0
  405.  
  406. Animate HudSuit TextColor "0 165 255 255" Linear 0.0 0.1
  407. Animate HudSuit TextColor "0 165 255 255" Deaccel 0.1 1.2
  408.  
  409. // RunEvent SuitPulse 1.0
  410. }
  411.  
  412. event SuitPulse
  413. // this even no longer gets called
  414. {
  415. Animate HudSuit Blur "5" Linear 0.0 0.1
  416. Animate HudSuit Blur "2" Deaccel 0.1 0.8
  417. Animate HudSuit TextColor "0 165 255 255" Linear 0.0 0.1
  418. Animate HudSuit TextColor "0 165 255 255" Deaccel 0.1 0.8
  419. Animate HudSuit BgColor "100 0 0 80" Linear 0.0 0.1
  420. Animate HudSuit BgColor "100 0 0 80" Deaccel 0.1 0.8
  421. RunEvent SuitLoop 0.8
  422. }
  423.  
  424. event SuitLoop
  425. {
  426. // this event no longer gets called
  427. RunEvent SuitPulse 0.0
  428. }
  429.  
  430. // ammo has been picked up
  431. event AmmoIncreased
  432. {
  433. Animate HudAmmo FgColor "255 255 0 255" Linear 0.0 0.15
  434. Animate HudAmmo FgColor "255 255 0 255" Deaccel 0.15 1.5
  435. Animate HudAmmo Blur "0.2" Linear 0.0 0.0
  436. Animate HudAmmo Blur "0.1" Accel 0.01 0.75
  437. }
  438.  
  439. // ammo has been decreased, but there is still some remaining
  440. event AmmoDecreased
  441. {
  442. StopEvent AmmoIncreased 0.0
  443.  
  444. Animate HudAmmo Blur "0.2" Linear 0.0 0.0
  445. Animate HudAmmo Blur "0.1" Deaccel 0.1 0.25
  446.  
  447. Animate HudAmmo TextColor "255 165 0 255" Linear 0.0 0.1
  448. Animate HudAmmo TextColor "255 165 0 255" Deaccel 0.1 0.75
  449.  
  450. // Animate testright Position "c-315 c-240" Linear 0.0 0.00
  451. // Animate testright Position "c-320 c-240" Deaccel 0.75 0.00
  452. // Animate testleft Position "c-325 c-240" Linear 0.0 0.00
  453. // Animate testleft Position "c-320 c-240" Deaccel 0.75 0.00
  454.  
  455. // Animate arrowupright Position "c-315 c-240" Linear 0.0 0.00
  456. // Animate arrowupright Position "c-320 c-240" Deaccel 0.75 0.00
  457. // Animate arrowdownleft Position "c-325 c-240" Linear 0.0 0.00
  458. // Animate arrowdownleft Position "c-320 c-240" Deaccel 0.75 0.00
  459. // Animate arrowdownright Position "c-315 c-240" Linear 0.0 0.00
  460. // Animate arrowdownright Position "c-320 c-240" Deaccel 0.75 0.00
  461. // Animate arrowupleft Position "c-325 c-240" Linear 0.0 0.00
  462. // Animate arrowupleft Position "c-320 c-240" Deaccel 0.75 0.00
  463.  
  464. }
  465.  
  466. // primary ammo is zero
  467. event AmmoEmpty
  468. {
  469. Animate Hudammo FgColor "255 25 0 255" Linear 0.0 0.2
  470. Animate Hudammo FgColor "255 25 0 255" Accel 0.2 0.25
  471. Animate HudAmmo TextColor "255 25 0 255" Linear 0.0 0.1
  472. Animate HudAmmo TextColor "255 25 0 255" Deaccel 0.1 0.1
  473.  
  474. // Animate testright Position "c-315 c-240" Linear 0.0 0.00
  475. // Animate testright Position "c-315 c-240" Deaccel 0.75 0.00
  476. // Animate testleft Position "c-325 c-240" Linear 0.0 0.00
  477. // Animate testleft Position "c-325 c-240" Deaccel 0.75 0.00
  478.  
  479. // Animate arrowupright Position "c-315 c-240" Linear 0.0 0.00
  480. // Animate arrowupright Position "c-320 c-240" Deaccel 0.75 0.00
  481. // Animate arrowdownleft Position "c-325 c-240" Linear 0.0 0.00
  482. // Animate arrowdownleft Position "c-320 c-240" Deaccel 0.75 0.00
  483. // Animate arrowdownright Position "c-315 c-240" Linear 0.0 0.00
  484. // Animate arrowdownright Position "c-320 c-240" Deaccel 0.75 0.00
  485. // Animate arrowupleft Position "c-325 c-240" Linear 0.0 0.00
  486. // Animate arrowupleft Position "c-320 c-240" Deaccel 0.75 0.00
  487.  
  488. }
  489.  
  490. // ammo2 is the total ammo for a weapon that uses clip ammo
  491. event Ammo2Increased
  492. {
  493. Animate Hudammo ammo2color "255 255 0 255" Linear 0.0 0.2
  494. Animate Hudammo ammo2color "255 255 0 255" Accel 0.2 1.2
  495. }
  496.  
  497. // total ammo has been decreased, but there is still some remaining
  498. event Ammo2Decreased
  499. {
  500. Animate Hudammo ammo2color "0 255 165 255" Linear 0.0 0.2
  501. Animate Hudammo ammo2color "0 255 165 255" Accel 0.2 1.2
  502. }
  503.  
  504. // total ammo is zero
  505. event Ammo2Empty
  506. {
  507. Animate Hudammo ammo2color "0 0 0 0" Linear 0.0 0.2
  508. Animate Hudammo ammo2color "0 0 0 0" Accel 0.2 1.2
  509. }
  510.  
  511. event AmmoSecondaryIncreased
  512. {
  513. Animate HudAmmoSecondary FgColor "255 255 255 255" Linear 0.0 0.15
  514. Animate HudAmmoSecondary FgColor "255 255 255 255" Deaccel 0.15 1.5
  515. Animate HudAmmoSecondary Blur "0.2" Linear 0.0 0.0
  516. Animate HudAmmoSecondary Blur "0.1" Accel 0.01 0.75
  517. }
  518.  
  519. event AmmoSecondaryDecreased
  520. {
  521. StopEvent AmmoSecondaryIncreased 0.0
  522.  
  523. Animate HudAmmoSecondary Blur "0.2" Linear 0.0 0.0
  524. Animate HudAmmoSecondary Blur "0.1" Deaccel 0.1 1.5
  525.  
  526. Animate HudAmmoSecondary TextColor "A" Linear 0.0 0.1
  527. Animate HudAmmoSecondary TextColor "A" Deaccel 0.1 0.75
  528. }
  529.  
  530. event AmmoSecondaryEmpty
  531. {
  532. Animate HudAmmoSecondary FgColor "255 255 255 255" Linear 0.0 0.2
  533. Animate HudAmmoSecondary FgColor "255 255 255 255" Accel 0.2 0.74
  534. Animate HudAmmoSecondary Blur "1" Linear 0.0 0.0
  535. Animate HudAmmoSecondary Blur "0.1" Deaccel 0.1 0.75
  536.  
  537. }
  538.  
  539. // current weapon has been changed
  540. event WeaponChanged
  541. {
  542. Animate HudAmmo BgColor "100 100 0 150" Linear 0.0 0.1
  543. Animate HudAmmo BgColor "0 0 0 150" Deaccel 0.1 1.0
  544. Animate HudAmmo FgColor "255 255 0 255" Linear 0.0 0.1
  545. Animate HudAmmo FgColor "255 255 0 255" Linear 0.2 0.24
  546. }
  547.  
  548. // ran if we just changed to a weapon that needs clip ammo
  549. event WeaponUsesClips
  550. {
  551. // Animate HudAmmo Position "r118 432" Deaccel 0.0 0.4
  552. // Animate HudAmmo Size "132 36" Deaccel 0.0 0.4
  553. }
  554.  
  555. // ran if we just changed to a weapon that does not use clip ammo
  556. event WeaponDoesNotUseClips
  557. {
  558. // Animate HudAmmo Position "r118 432" Deaccel 0.0 0.4
  559. // Animate HudAmmo Size "100 36" Deaccel 0.0 0.4
  560. }
  561.  
  562. event WeaponUsesSecondaryAmmo
  563. {
  564. StopAnimation HudAmmo Position 0.0
  565. StopAnimation HudAmmo Size 0.0
  566. StopPanelAnimations HudAmmoSecondary 0.0
  567.  
  568. Animate HudAmmoSecondary BgColor "Blank" Linear 0.0 0.1
  569. Animate HudAmmoSecondary BgColor "Blank" Deaccel 0.1 1.0
  570. Animate HudAmmoSecondary FgColor "A" Linear 0.0 0.1
  571. Animate HudAmmoSecondary FgColor "A" Linear 0.2 1.5
  572. Animate HudAmmoSecondary Alpha 255 Linear 0.0 0.1
  573.  
  574. // Animate HudAmmo Position "r149 447" Deaccel 0.0 0.5
  575. // Animate HudAmmo Size "132 36" Deaccel 0.0 0.4
  576. }
  577.  
  578. event WeaponDoesNotUseSecondaryAmmo
  579. {
  580. StopPanelAnimations HudAmmoSecondary 0.0
  581. Animate HudAmmoSecondary FgColor "0 0 0 0" Linear 0.0 0.4
  582. Animate HudAmmoSecondary BgColor "0 0 0 0" Linear 0.0 0.4
  583. Animate HudAmmoSecondary Alpha 0 Linear 0.0 0.1
  584. }
  585.  
  586. event CraneMagnetFlash
  587. {
  588. Animate HudCraneMagnet TextColor "255 255 255 255" Linear 0.0 0.1
  589. Animate HudCraneMagnet TextColor "255 255 255 160" Deaccel 0.1 0.3
  590. Animate HudCraneMagnet TextColor "255 255 255 220" Deaccel 0.4 0.3
  591. Animate HudCraneMagnet TextColor "255 255 255 255" Linear 0.8 0.2
  592. }
  593.  
  594. event HintMessageShow
  595. {
  596. // show the hints
  597. Animate HudHintDisplay Alpha 255 Linear 0.0 0.5
  598.  
  599. // flash text
  600. Animate HudHintDisplay FgColor "A" Linear 0.0 0.01
  601. Animate HudHintDisplay FgColor "255 255 255 255" Linear 0.5 0.2
  602. Animate HudHintDisplay FgColor "A" Linear 0.7 0.2
  603. Animate HudHintDisplay FgColor "255 255 255 255" Linear 1.5 0.2
  604. Animate HudHintDisplay FgColor "A" Linear 1.7 0.2
  605.  
  606. // hide the panel after a while
  607. Animate HudHintDisplay Alpha 0 Linear 12.0 1.0
  608. }
  609.  
  610. event HintMessageHide
  611. {
  612. Animate HudHintDisplay Alpha 0 Linear 0.0 0.5
  613. }
  614.  
  615. event SquadMemberAdded
  616. {
  617. StopEvent SquadMemberDied 0.0
  618. StopEvent SquadMemberLeft 0.0
  619.  
  620. // add in the squad member, brighter then normal color
  621. Animate HudSquadStatus LastMemberColor "255 255 255 255" Linear 0.0 0.3
  622. Animate HudSquadStatus LastMemberColor "255 255 255 160" Linear 0.3 0.3
  623. }
  624.  
  625. event SquadMemberLeft
  626. {
  627. StopEvent SquadMemberDied 0.0
  628. StopEvent SquadMemberAdded 0.0
  629.  
  630. // fade out the icon
  631. Animate HudSquadStatus LastMemberColor "255 220 0 0" Linear 0.0 0.5
  632. }
  633.  
  634. event SquadMemberDied
  635. {
  636. StopEvent SquadMemberAdded 0.0
  637. StopEvent SquadMemberLeft 0.0
  638.  
  639. // flash red, hold, then disappear
  640. Animate HudSquadStatus LastMemberColor "255 0 0 255" Linear 0.0 0.5
  641. Animate HudSquadStatus LastMemberColor "255 0 0 0" Linear 2.0 2.0
  642. }
  643.  
  644. event SquadMembersFollowing
  645. {
  646. StopEvent SquadMembersStationed 0.0
  647. Animate HudSquadStatus SquadTextColor "255 255 255 255" Linear 0.0 0.2
  648. Animate HudSquadStatus SquadTextColor "255 255 255 160" Linear 0.2 0.4
  649. }
  650.  
  651. event SquadMembersStationed
  652. {
  653. StopEvent SquadMembersFollowing 0.0
  654. Animate HudSquadStatus SquadTextColor "255 255 255 160" Linear 0.5 0.5
  655. }
  656.  
  657. event PoisonDamageTaken
  658. {
  659. Animate HudPoisonDamageIndicator Alpha 255 Linear 0.0 1.0
  660. RunEvent PoisonLoop 0.0
  661. }
  662.  
  663. event PoisonDamageCured
  664. {
  665. StopEvent PoisonDamageTaken 0.0
  666. StopEvent PoisonLoop 0.0
  667. StopEvent PoisonPulse 0.0
  668. Animate HudPoisonDamageIndicator Alpha 0 Linear 0.0 1.0
  669. }
  670.  
  671. event PoisonPulse
  672. {
  673. Animate HudPoisonDamageIndicator TextColor "A" Linear 0.0 0.1
  674. Animate HudPoisonDamageIndicator TextColor "A" Deaccel 0.1 0.8
  675. Animate HudPoisonDamageIndicator BgColor "100 0 0 180" Linear 0.0 0.1
  676. Animate HudPoisonDamageIndicator BgColor "Blank" Deaccel 0.1 0.8
  677.  
  678. RunEvent PoisonLoop 0.8
  679. }
  680.  
  681. // call to loop PoisonLoop
  682. event PoisonLoop
  683. {
  684. RunEvent PoisonPulse 0.0
  685. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement