Advertisement
Guest User

HudAnimations_tf

a guest
Sep 4th, 2013
139
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 26.35 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. // Position
  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. // Spline - simple ease in/out curve
  23. // Pulse - < freq > over the duration, the value is pulsed (cosine) freq times ending at the dest value (assuming freq is integral)
  24. // Flicker - < randomness factor 0.0 to 1.0 > over duration, each frame if random # is less than factor, use end value, otherwise use prev value
  25. //
  26. // RunEvent <event name> <start time>
  27. // starts another even running at the specified time
  28. //
  29. // StopEvent <event name> <start time>
  30. // stops another event that is current running at the specified time
  31. //
  32. // StopAnimation <panel name> <variable> <start time>
  33. // stops all animations refering to the specified variable in the specified panel
  34. //
  35. // StopPanelAnimations <panel name> <start time>
  36. // stops all active animations operating on the specified panel
  37. //
  38. // SetFont <panel name> <fontparameter> <fontname from scheme> <set time>
  39. //
  40. // SetTexture <panel name> <textureidname> <texturefilename> <set time>
  41. //
  42. // SetString <panel name> <string varname> <stringvalue> <set time>
  43.  
  44. event LevelInit
  45. {
  46. }
  47.  
  48. event OpenWeaponSelectionMenu
  49. {
  50. StopEvent CloseWeaponSelectionMenu 0.0
  51. StopEvent WeaponPickup 0.0
  52.  
  53. // make the display visible
  54. Animate HudWeaponSelection Alpha "128" Linear 0.0 0.1
  55. Animate HudWeaponSelection SelectionAlpha "255" Linear 0.0 0.1
  56. Animate HudWeaponSelection FgColor "FgColor" Linear 0.0 0.1
  57. //Animate HudWeaponSelection TextColor "BrightFg" Linear 0.0 0.1
  58. Animate HudWeaponSelection TextScan "1" Linear 0.0 0.1
  59. }
  60.  
  61. event CloseWeaponSelectionMenu
  62. {
  63. StopEvent CloseWeaponSelectionMenu 0.0
  64. StopEvent WeaponPickup 0.0
  65.  
  66. // make the display visible
  67. Animate HudWeaponSelection Alpha "128" Linear 0.0 0.1
  68. Animate HudWeaponSelection SelectionAlpha "255" Linear 0.0 0.1
  69. Animate HudWeaponSelection FgColor "FgColor" Linear 0.0 0.1
  70. //Animate HudWeaponSelection TextColor "BrightFg" Linear 0.0 0.1
  71. Animate HudWeaponSelection TextScan "1" Linear 0.0 0.1
  72. }
  73.  
  74.  
  75. event MenuOpen
  76. {
  77. StopEvent MenuClose 0.0
  78.  
  79. // fade in
  80. Animate HudMenu Alpha "255" Linear 0.0 0.1
  81. Animate HudMenu SelectionAlpha "255" Linear 0.0 0.1
  82. Animate HudMenu FgColor "FgColor" Linear 0.0 0.1
  83. Animate HudMenu MenuColor "MenuColor" Linear 0.0 0.1
  84. Animate HudMenu ItemColor "ItemColor" Linear 0.0 0.1
  85. Animate HudMenu TextScan "1" Linear 0.0 0.1
  86.  
  87. // Undo any blur
  88. Animate HudMenu Blur "1" Linear 0.0 0.01
  89. }
  90.  
  91. event MenuClose
  92. {
  93. // Hide it
  94. Animate HudMenu Alpha "0" Linear 0.0 1
  95. Animate HudMenu SelectionAlpha "0" Linear 0.0 1
  96. Animate HudMenu FgColor "0 0 0 0" Linear 0.0 1
  97. Animate HudMenu MenuColor "0 0 0 0" Linear 0.0 1
  98. Animate HudMenu ItemColor "0 0 0 0" Linear 0.0 1
  99. }
  100.  
  101. event MenuPulse
  102. {
  103. Animate HudMenu Blur "7" Linear 0.0 0.1
  104. Animate HudMenu Blur "2" Deaccel 0.1 0.1
  105. Animate HudMenu Blur "7" Linear 0.2 0.1
  106. Animate HudMenu Blur "2" Deaccel 0.3 0.1
  107. Animate HudMenu Blur "7" Linear 0.4 0.1
  108. Animate HudMenu Blur "2" Deaccel 0.5 0.1
  109. Animate HudMenu Blur "1" Deaccel 0.6 0.4
  110. }
  111.  
  112. event TimerIncrement
  113. {
  114. Animate HudTimer Blur "7" Linear 0.0 0.1
  115. Animate HudTimer Blur "2" Deaccel 0.1 0.8
  116. Animate HudTimer Blur "0" Deaccel 1.1 1.5
  117. }
  118.  
  119. event TimerDecrement
  120. {
  121. Animate HudTimer Blur "7" Linear 0.0 0.1
  122. Animate HudTimer Blur "2" Deaccel 0.1 0.8
  123. Animate HudTimer Blur "0" Deaccel 1.1 1.5
  124. }
  125.  
  126.  
  127. event ResourceIncrement
  128. {
  129. Animate HudResources Blur "3" Linear 0.0 0.0
  130. Animate HudResources PulseAmount "0" Linear 0.0 0.01
  131. Animate HudResources Blur "1" Deaccel 0.1 1.5
  132. Animate HudResources PulseAmount "1" Linear 0.1 2
  133.  
  134. Animate HudResources PulseAmount "0" Linear 2 2
  135. }
  136.  
  137. event ResourceDecrement
  138. {
  139. Animate HudResources Blur "7" Linear 0.0 0.0
  140. Animate HudResources PulseAmount "0" Linear 0.0 0.01
  141. Animate HudResources Blur "1" Deaccel 0.1 1.5
  142. Animate HudResources PulseAmount "1" Linear 0.1 2
  143.  
  144. Animate HudResources PulseAmount "0" Linear 2 2
  145. }
  146.  
  147. event ResourcePickup
  148. {
  149. Animate HudResourcesPickup Alpha "255" Linear 0 0
  150. Animate HudResourcesPickup Position "80 r40" Linear 0 0
  151. Animate HudResourcesPickup Position "80 r120" Deaccel 0 1
  152. Animate HudResourcesPickup Blur "7" Deaccel 0 0.2
  153. Animate HudResourcesPickup Alpha "0" Deaccel .8 0.2
  154. Animate HudResourcesPickup Blur "1" Deaccel 0.2 0.3
  155. }
  156.  
  157. event HintMessageShow
  158. {
  159. Animate HudHintDisplay HintSize "1" Deaccel 0.0 0.3
  160. Animate HudHintDisplay FgColor "FgColor" Linear 0.4 0.4
  161.  
  162. // flash text
  163. Animate HudHintDisplay FgColor "FgColor" Linear 1.5 0.01
  164. Animate HudHintDisplay FgColor "255 220 0 255" Linear 2.0 0.2
  165. Animate HudHintDisplay FgColor "FgColor" Linear 2.2 0.2
  166. Animate HudHintDisplay FgColor "255 220 0 255" Linear 3.0 0.2
  167. Animate HudHintDisplay FgColor "FgColor" Linear 3.2 0.2
  168.  
  169. // hide the panel after a while
  170. Animate HudHintDisplay FgColor "255 220 0 0" Linear 10.0 0.2
  171. Animate HudHintDisplay HintSize "0" Deaccel 10.2 0.3
  172. }
  173.  
  174.  
  175. event HintMessageHide
  176. {
  177. Animate HudHintDisplay FgColor "255 220 0 0" Linear 0.0 0.2
  178. Animate HudHintDisplay HintSize "0" Deaccel 0.2 0.3
  179. }
  180.  
  181. event KeyHintMessageShow
  182. {
  183. // show the hints
  184. Animate HudHintKeyDisplay Alpha 255 Linear 0.0 0.5
  185.  
  186. // flash text
  187. Animate HudHintKeyDisplay FgColor "FgColor" Linear 0.0 0.01
  188. Animate HudHintKeyDisplay FgColor "255 220 0 255" Linear 0.5 0.2
  189. Animate HudHintKeyDisplay FgColor "FgColor" Linear 0.7 0.2
  190. Animate HudHintKeyDisplay FgColor "255 220 0 255" Linear 1.5 0.2
  191. Animate HudHintKeyDisplay FgColor "FgColor" Linear 1.7 0.2
  192.  
  193. // hide the panel after a while
  194. Animate HudHintKeyDisplay Alpha 0 Linear 12.0 1.0
  195. }
  196.  
  197. event KeyHintMessageHide
  198. {
  199. Animate HudHintKeyDisplay Alpha 0 Linear 0.0 0.5
  200. }
  201.  
  202. //===========================================
  203.  
  204. //Health Bonus Pulse
  205. event HudHealthBonusPulse
  206. {
  207. Animate PlayerStatusHealthBonusImage Alpha "125" Linear 0.0 0.2
  208. Animate PlayerStatusHealthBonusImage Alpha "0" Linear 0.2 0.4
  209.  
  210. Animate PlayerStatusHealthValue FgColor "BuffedColor" Accel 0.0 0.0
  211. Animate ShadedBarThin Alpha "0" Accel 0.0 0.0
  212. Animate ShadedBarThinBuff Alpha "255" Accel 0.0 0.0
  213.  
  214. Animate PlayerStatusHealthValueCam FgColor "BuffedColor" Accel 0.0 0.0
  215.  
  216. Animate PlayerStatusHealthValueSpec FgColor "32 32 32 255" Accel 0.0 0.0
  217.  
  218. Animate PlayerStatusHealthValueTour FgColor "BuffedColor" Accel 0.0 0.0
  219.  
  220. Animate WingsSmallDot FgColor "0 255 0 255" Accel 0.0 0.0
  221.  
  222. Animate xHairNormal FgColor "BuffedColor" Accel 0.0 0.0
  223.  
  224. Animate xHairRequest FgColor "BuffedColor" Accel 0.0 0.0
  225.  
  226. Animate xHairCircle FgColor "BuffedColor" Accel 0.0 0.0
  227.  
  228. Animate xHairDotOutline FgColor "BuffedColor" Accel 0.0 0.0
  229.  
  230. RunEvent HudHealthBonusPulseLoop 0.4
  231. }
  232.  
  233. // call to loop HudHealthBonusPulse
  234. event HudHealthBonusPulseLoop
  235. {
  236. RunEvent HudHealthBonusPulse 0.0
  237. RunEvent PlayerStatusHealthValue 0.0
  238. RunEvent PlayerStatusHealthValueCam 0.0
  239. RunEvent PlayerStatusHealthValueSpec 0.0
  240. RunEvent PlayerStatusHealthValueTour 0.0
  241. RunEvent xHairNormal 0.0
  242. RunEvent xHairRequest 0.0
  243. RunEvent xHairCircle 0.0
  244. RunEvent xHairDotOutline 0.0
  245. }
  246.  
  247. event HudHealthBonusPulseStop
  248. {
  249. StopEvent HudHealthBonusPulse 0.0
  250. StopEvent HudHealthBonusPulseLoop 0.0
  251. StopEvent PlayerStatusHealthValue 0.0
  252. StopEvent PlayerStatusHealthValueCam 0.0
  253. StopEvent PlayerStatusHealthValueSpec 0.0
  254. StopEvent PlayerStatusHealthValueTour 0.0
  255. StopEvent ShadedBarThin 0.0
  256. StopEvent ShadedBarThinLow 0.0
  257. StopEvent xHairNormal 0.0
  258. StopEvent xHairRequest 0.0
  259. StopEvent xHairCircle 0.0
  260. StopEvent xHairDotOutline 0.0
  261.  
  262. Animate PlayerStatusHealthValue FgColor "234 234 234 255" Accel 0.0 0.0
  263. Animate ShadedBarThin Alpha "255" Accel 0.0 0.0
  264. Animate ShadedBarThinBuff Alpha "0" Accel 0.0 0.0
  265.  
  266. Animate PlayerStatusHealthValueCam FgColor "234 234 234 255" Accel 0.0 0.0
  267.  
  268. Animate PlayerStatusHealthValueSpec FgColor "234 234 234 255" Accel 0.0 0.0
  269.  
  270. Animate PlayerStatusHealthValueTour FgColor "234 234 234 255" Accel 0.0 0.0
  271.  
  272. Animate WingsSmallDot FgColor "255 255 255 255" Accel 0.0 0.0
  273.  
  274. Animate xHairNormal FgColor "234 234 234 255" Accel 0.0 0.0
  275.  
  276. Animate xHairRequest FgColor "234 234 234 255" Accel 0.0 0.0
  277.  
  278. Animate xHairCircle FgColor "234 234 234 255" Accel 0.0 0.0
  279.  
  280. Animate xHairDotOutline FgColor "234 234 234 255" Accel 0.0 0.0
  281. }
  282.  
  283. //===========================================
  284.  
  285. //Health Dying Pulse
  286. event HudHealthDyingPulse
  287. {
  288. Animate PlayerStatusHealthBonusImage Alpha "255" Linear 0.0 0.075
  289. Animate PlayerStatusHealthBonusImage Alpha "0" Linear 0.125 0.075
  290.  
  291. Animate PlayerStatusHealthValue FgColor "LowColor" Accel 0.0 0.0
  292. Animate ShadedBarThin Alpha "0" Accel 0.0 0.0
  293. Animate ShadedBarThinLow Alpha "255" Accel 0.0 0.0
  294.  
  295. Animate PlayerStatusHealthValueCam FgColor "LowColor" Accel 0.0 0.0
  296.  
  297. Animate PlayerStatusHealthValueSpec FgColor "32 32 32 255" Accel 0.0 0.0
  298.  
  299. Animate PlayerStatusHealthValueTour FgColor "LowColor" Accel 0.0 0.0
  300.  
  301. Animate WingsSmallDot FgColor "255 0 0 255" Accel 0.0 0.0
  302.  
  303. Animate xHairNormal FgColor "LowColor" Accel 0.0 0.0
  304.  
  305. Animate xHairRequest FgColor "LowColor" Accel 0.0 0.0
  306.  
  307. Animate xHairCircle FgColor "LowColor" Accel 0.0 0.0
  308.  
  309. Animate xHairDotOutline FgColor "LowColor" Accel 0.0 0.0
  310.  
  311. RunEvent HudHealthDyingPulseLoop 0.25
  312. }
  313.  
  314. // call to loop HudHealthDyingPulse
  315. event HudHealthDyingPulseLoop
  316. {
  317. RunEvent HudHealthDyingPulse 0.0
  318. RunEvent PlayerStatusHealthValue 0.0
  319. RunEvent PlayerStatusHealthValueCam 0.0
  320. RunEvent PlayerStatusHealthValueSpec 0.0
  321. RunEvent PlayerStatusHealthValueTour 0.0
  322. RunEvent xHairNormal 0.0
  323. RunEvent xHairRequest 0.0
  324. RunEvent xHairCircle 0.0
  325. RunEvent xHairDot 0.0
  326. }
  327.  
  328. event HudHealthDyingPulseStop
  329. {
  330. StopEvent HudHealthDyingPulse 0.0
  331. StopEvent HudHealthDyingPulseLoop 0.0
  332. StopEvent PlayerStatusHealthValue 0.0
  333. StopEvent PlayerStatusHealthValueCam 0.0
  334. StopEvent PlayerStatusHealthValueSpec 0.0
  335. StopEvent PlayerStatusHealthValueTour 0.0
  336. StopEvent ShadedBarThin 0.0
  337. StopEvent ShadedBarThinLow 0.0
  338.  
  339. StopEvent xHairNormal 0.0
  340. StopEvent xHairRequest 0.0
  341. StopEvent xHairCircle 0.0
  342. StopEvent xHairDot 0.0
  343.  
  344. Animate PlayerStatusHealthValue FgColor "234 234 234 255" Accel 0.0 0.0
  345. Animate ShadedBarThin Alpha "255" Accel 0.0 0.0
  346. Animate ShadedBarThinLow Alpha "0" Accel 0.0 0.0
  347.  
  348. Animate PlayerStatusHealthValueCam FgColor "234 234 234 255" Accel 0.0 0.0
  349.  
  350. Animate PlayerStatusHealthValueSpec FgColor "234 234 234 255" Accel 0.0 0.0
  351.  
  352. Animate PlayerStatusHealthValueTour FgColor "234 234 234 255" Accel 0.0 0.0
  353.  
  354. Animate WingsSmallDot FgColor "255 255 255 255" Accel 0.0 0.0
  355.  
  356. Animate xHairNormal FgColor "234 234 234 255" Accel 0.0 0.0
  357.  
  358. Animate xHairRequest FgColor "234 234 234 255" Accel 0.0 0.0
  359.  
  360. Animate xHairCircle FgColor "234 234 234 255" Accel 0.0 0.0
  361.  
  362. Animate xHairDotOutline FgColor "234 234 234 255" Accel 0.0 0.0
  363. }
  364.  
  365. //===========================================
  366.  
  367. event HudLowAmmoPulse
  368. {
  369. Animate HudWeaponLowAmmoImage Alpha "255" Linear 0.0 0.075
  370. Animate HudWeaponLowAmmoImage Alpha "0" Linear 0.125 0.075
  371.  
  372. Animate ShadedBarThinlow Alpha "255" Accel 0.0 0.0
  373. Animate ShadedBarThin Alpha "0" Accel 0.0 0.0
  374. Animate AmmoInClip FgColor "LowColor" Accel 0.0 0.0
  375.  
  376.  
  377. Animate AmmoNoClip FgColor "LowColor" Accel 0.0 0.0
  378.  
  379. RunEvent HudLowAmmoPulseLoop 0.25
  380. }
  381.  
  382. // call to loop HudLowAmmoPulse
  383. event HudLowAmmoPulseLoop
  384. {
  385. RunEvent HudLowAmmoPulse 0.0
  386. RunEvent AmmoInClip 0.0
  387. RunEvent AmmoInReserve 0.0
  388. RunEvent AmmoNoClip 0.0
  389. }
  390.  
  391. event HudLowAmmoPulseStop
  392. {
  393. StopEvent HudLowAmmoPulse 0.0
  394. StopEvent HudLowAmmoPulseLoop 0.0
  395. StopEvent AmmoInClip 0.0
  396. StopEvent AmmoInReserve 0.0
  397. StopEvent AmmoNoClip 0.0
  398.  
  399. Animate AmmoInClip FgColor "234 234 234 255" Accel 0.0 0.0
  400. Animate ShadedBarThinlow Alpha "0" Accel 0.0 0.0
  401. Animate ShadedBarThin Alpha "255" Accel 0.0 0.0
  402.  
  403. Animate AmmoNoClip FgColor "234 234 234 255" Accel 0.0 0.0
  404. }
  405.  
  406. //===========================================
  407.  
  408. event ControlPointIconShrink
  409. {
  410. Animate HudControlPointIcons icon_expand "0" Linear 0.0 0.2
  411. }
  412.  
  413. event ControlPointIconGrow
  414. {
  415. Animate HudControlPointIcons icon_expand "4" Linear 0.0 0.2
  416. }
  417.  
  418. // Metal Account
  419.  
  420. //activecolor - instantly turn red, fade back to yellow
  421. event AccountMoneyRemoved
  422. {
  423. Animate HudAccount FgColor "HudIcon_Red" Linear 0.0 0.0001
  424. Animate HudAccount FgColor "OrangeDim" Accel 0.0 3.0
  425.  
  426. Animate HudAccount Ammo2Color "HudIcon_Red" Linear 0.0 0.0001
  427. Animate HudAccount Ammo2Color "0 0 0 0" Accel 0.0 3.0
  428. }
  429.  
  430. //activecolor - instantly turn green, fade back to yellow
  431. event AccountMoneyAdded
  432. {
  433. Animate HudAccount FgColor "HudIcon_Green" Linear 0.0 0.0001
  434. Animate HudAccount FgColor "OrangeDim" Accel 0.0 3.0
  435.  
  436. Animate HudAccount Ammo2Color "HudIcon_Green" Accel 0.0 0.0001
  437. Animate HudAccount Ammo2Color "0 0 0 0" Accel 0.0 3.0
  438. }
  439.  
  440. event AccountMoneyInvisible
  441. {
  442. Animate HudAccount FgColor "OrangeDim" Accel 0.0 0.0001
  443. Animate HudAccount Ammo2Color "0 0 0 0" Accel 0.0 0.0001
  444. }
  445.  
  446. //===========================================
  447.  
  448. event FlagOutlineHide
  449. {
  450. Animate OutlineImage Alpha "0" Linear 0.0 0.1
  451. }
  452.  
  453. // Local player flag pickup/drop
  454. event FlagOutline
  455. {
  456. RunEvent FlagOutlineHide 0.0
  457. Animate OutlineImage Alpha "255" Linear 0.1 0.2
  458.  
  459. Animate OutlineImage Position "c-200 140" Linear 0.1 0.2
  460. Animate OutlineImage Size "400 200" Linear 0.1 0.2
  461.  
  462. Animate OutlineImage Position "c-50 r137" Linear 0.7 0.2 [$WIN32]
  463. Animate OutlineImage Position "c-50 r158" Linear 0.7 0.2 [$X360]
  464. Animate OutlineImage Size "100 50" Linear 0.7 0.2
  465.  
  466. Animate OutlineImage Alpha "0" Linear 0.9 0.1
  467. }
  468.  
  469. //===========================================
  470.  
  471. // Spy Disguise
  472. event HudSpyDisguiseChanged
  473. {
  474. Animate PlayerStatusSpyOutlineImage Alpha "255" Linear 0.0 0.2
  475.  
  476. Animate PlayerStatusSpyOutlineImage Position "c-200 c-200" Linear 0.0 0.2
  477. Animate PlayerStatusSpyOutlineImage Size "400 400" Linear 0.0 0.2
  478.  
  479. RunEvent HudSpyDisguiseHide 0.7
  480. }
  481.  
  482. event HudSpyDisguiseHide
  483. {
  484. Animate PlayerStatusSpyOutlineImage Position "3 413" Linear 0.0 0.2
  485. Animate PlayerStatusSpyOutlineImage Size "55 55" Linear 0.0 0.2
  486.  
  487. Animate PlayerStatusSpyOutlineImage Alpha "0" Linear 0.2 0.1
  488. }
  489.  
  490. event HudSpyDisguiseFadeIn
  491. {
  492. Animate PlayerStatusSpyImage Alpha "255" Linear 0.9 0.1
  493. Animate PlayerStatusClassImage Alpha "255" Linear 0.0 0.0
  494. }
  495.  
  496. event HudSpyDisguiseFadeOut
  497. {
  498. Animate PlayerStatusSpyImage Alpha "0" Linear 0.9 0.1
  499. Animate PlayerStatusClassImage Alpha "0" Linear 0.0 0.0
  500. }
  501.  
  502. //===========================================
  503.  
  504. // Show the Overtime panel
  505. event OvertimeShow
  506. {
  507. Animate OvertimeLabel Alpha "255" Linear 0.0 0.1
  508. Animate OvertimeBG Alpha "255" Linear 0.0 0.1
  509. }
  510.  
  511.  
  512. event HudSnapShotReminderIn
  513. {
  514. Animate ScreenshotPanel Position "c-83 -50" Linear 0.0 0.001
  515. Animate ScreenshotPanel Position "c-83 13" Spline 0.001 0.2
  516. }
  517.  
  518. event HudReplayReminderIn // Places the replay reminder in the same place as the snapshot reminder
  519. {
  520. Animate ReplayReminder Position "c-83 -50" Linear 0.0 0.001
  521. Animate ReplayReminder Position "c-83 13" Spline 0.001 0.2
  522. }
  523.  
  524. event HudReplayReminderIn2 // Puts the panel below the snapshot panel
  525. {
  526. Animate ReplayReminder Position "c-83 -50" Linear 0.0 0.001
  527. Animate ReplayReminder Position "c-83 53" Spline 0.001 0.2
  528. }
  529.  
  530. event HudReplayTipIn
  531. {
  532. Animate ReplayTip Position "10 -100" Linear 0.0 0.001
  533. Animate ReplayTip Position "10 6" Spline 0.001 0.1
  534. }
  535.  
  536. event HudReplayTipOut
  537. {
  538. Animate ReplayTip Position "10 6" Linear 0.0 0.001
  539. Animate ReplayTip Position "10 -100" Spline 0.001 0.1
  540. }
  541.  
  542. event HudTournamentSetupPanelOpen
  543. {
  544. Animate HudTournamentSetup Position "c-90 -70" Linear 0.0 0.001
  545. Animate HudTournamentSetup Position "c-90 70" Spline 0.001 0.2
  546. }
  547.  
  548. event HudTournamentSetupPanelClose
  549. {
  550. Animate HudTournamentSetup Position "c-90 70" Linear 0.0 0.001
  551. Animate HudTournamentSetup Position "c-90 -70" Spline 0.001 0.2
  552. }
  553.  
  554.  
  555. //====================================
  556.  
  557. // Flash the medic charge hud when we have full charge
  558.  
  559. event HudMedicCharged
  560. {
  561. Animate ChargeLabel FgColor "0 221 255 255" Linear 0.0 0.0
  562. Animate IndividualChargesLabel FgColor "0 221 255 255" Linear 0.0 0.0
  563. Animate ShadedBarThinLow Alpha "0" Linear 0.0 0.0
  564. Animate ShadedBarThinFull Alpha "255" Linear 0.0 0.0
  565. Animate ChargeMeter FgColor "0 221 255 255" Linear 0.0 0.0
  566.  
  567. RunEvent HudMedicChargedLoop 0.0
  568. }
  569.  
  570. // call to loop HudHealthBonusPulse
  571. event HudMedicChargedLoop
  572. {
  573. RunEvent HudMedicCharged 0.0
  574. RunEvent ChargeLabel 0.0
  575. RunEvent ChargeMeter 0.0
  576. RunEvent ShadedBarThinLow 0.0
  577. RunEvent ShadedBarThinFull 0.0
  578. }
  579.  
  580. event HudMedicChargedStop
  581. {
  582. //StopEvent HudMedicCharged 0.0
  583. //StopEvent HudMedicChargedLoop 0.0
  584. StopEvent ChargeLabel 0.0
  585. StopEvent ChargeMeter 0.0
  586. StopEvent ShadedBarThinLow 0.0
  587. StopEvent ShadedBarThinFull 0.0
  588.  
  589. Animate ChargeLabel FgColor "255 85 0 255" Linear 0.0 0.0001
  590. Animate IndividualChargesLabel FgColor "255 85 0 255" Linear 0.0 0.0001
  591. Animate ShadedBarThinLow Alpha "255" Linear 0.0 0.0001
  592. Animate ShadedBarThinFull Alpha "0" Linear 0.0 0.0001
  593. Animate ChargeMeter FgColor "255 85 0 255" Linear 0.0 0.0001
  594. }
  595.  
  596. //====================================
  597.  
  598. event VideoCaptionFadeIn
  599. {
  600. Animate VideoCaption Alpha "255" Linear 0.0 0.1
  601. }
  602.  
  603. event VideoCaptionFadeOut
  604. {
  605. Animate VideoCaption Alpha "0" Linear 0.0 0.1
  606. }
  607.  
  608. //====================================
  609.  
  610. // arena
  611.  
  612. event ArenaVsPanelOnShow
  613. {
  614. Animate bluepanel Position "-200 50" Linear 0.0 0.001
  615. Animate redpanel Position "r-200 140" Linear 0.0 0.001
  616. Animate vslabel Alpha "0" Linear 0.0 0.001
  617.  
  618. RunEvent ArenaVsPanelSlideIn 1.0
  619. RunEvent ArenaVsPanelSlideOut 4.8
  620. }
  621.  
  622. event ArenaVsPanelSlideIn
  623. {
  624. Animate bluepanel Position "c-100 50" Spline 0.0 0.2
  625. Animate redpanel Position "c-100 140" Spline 0.0 0.2
  626. Animate vslabel Alpha "255" Linear 0.15 0.2
  627. }
  628.  
  629. event ArenaVsPanelSlideOut
  630. {
  631. Animate bluepanel Position "-200 50" Spline 0.0 0.2
  632. Animate redpanel Position "r-200 140" Spline 0.0 0.2
  633. Animate vslabel Alpha "0" Linear 0.0 0.05
  634. }
  635.  
  636. //===========================================
  637.  
  638. //Cart Alarm Pulse
  639. event HudCartAlarmPulse
  640. {
  641. Animate EscortItemImageAlert Alpha "160" Linear 0.0 0.3
  642. Animate EscortItemImageAlert Alpha "0" Linear 0.6 0.3
  643.  
  644. RunEvent HudCartAlarmPulseLoop 1.2
  645. }
  646.  
  647. event HudCartAlarmPulseLoop
  648. {
  649. RunEvent HudCartAlarmPulse 0.0
  650. }
  651.  
  652. event HudCartAlarmPulseStop
  653. {
  654. StopEvent HudCartAlarmPulse 0.0
  655. StopEvent HudCartAlarmPulseLoop 0.0
  656. }
  657.  
  658. //===========================================
  659.  
  660. // Active Timer BG Pulse
  661. event ActiveTimerBGPulse
  662. {
  663. Animate ActiveTimerBG Alpha "0" Linear 0.1 0.1
  664. Animate ActiveTimerBG Alpha "255" Linear 0.3 0.1
  665.  
  666. Animate ActiveTimerBG Alpha "0" Linear 0.5 0.1
  667. Animate ActiveTimerBG Alpha "255" Linear 0.7 0.1
  668.  
  669. Animate ActiveTimerBG Alpha "0" Linear 0.9 0.1
  670. Animate ActiveTimerBG Alpha "255" Linear 1.1 0.1
  671. }
  672.  
  673. //===========================================
  674.  
  675. event TeamsFullArrowAnimate
  676. {
  677. Animate TeamsFullArrow Position "c-118 165" Linear 0 0
  678. Animate TeamsFullArrow Position "c-118 180" Linear 0 0.4
  679. Animate TeamsFullArrow Position "c-118 165" Linear 0.4 0.4
  680.  
  681. RunEvent TeamsFullArrowAnimateLoop 0.8
  682. }
  683.  
  684. event TeamsFullArrowAnimateLoop
  685. {
  686. RunEvent TeamsFullArrowAnimate 0.0
  687. }
  688.  
  689. event TeamsFullArrowAnimateEnd
  690. {
  691. StopEvent TeamsFullArrowAnimate 0.0
  692. StopEvent TeamsFullArrowAnimateLoop 0.0
  693. }
  694.  
  695. //===========================================
  696.  
  697. event TrainingHudBounce
  698. {
  699. Animate ObjectiveStatusTraining Position "c-160 r187" Linear 0 0
  700. Animate ObjectiveStatusTraining Position "c-160 r127" Bounce 0.0 2.0
  701. }
  702.  
  703. event TrainingPressSpacebarBlink
  704. {
  705. Animate PressSpacebarToContinue Alpha "255" Linear 0.0 0.1
  706. Animate PressSpacebarToContinue Alpha "0" Linear 0.2 0.1
  707.  
  708. Animate PressSpacebarToContinue Alpha "255" Linear 0.4 0.1
  709. Animate PressSpacebarToContinue Alpha "0" Linear 0.6 0.1
  710.  
  711. Animate PressSpacebarToContinue Alpha "255" Linear 0.8 0.1
  712. Animate PressSpacebarToContinue Alpha "0" Linear 1.0 0.1
  713.  
  714. Animate PressSpacebarToContinue Alpha "255" Linear 1.2 0.1
  715.  
  716. RunEvent TrainingPressSpacebarBlinkLoop 3.0
  717. }
  718.  
  719. event TrainingPressSpacebarBlinkLoop
  720. {
  721. RunEvent TrainingPressSpacebarBlink 0.0
  722. }
  723.  
  724. event TrainingPressSpacebarBlinkStop
  725. {
  726. StopEvent TrainingPressSpacebarBlink 0.0
  727. StopEvent TrainingPressSpacebarBlinkLoop 0.0
  728. }
  729.  
  730. //===========================================
  731.  
  732. event IntroMovieContinueBlink
  733. {
  734. Animate continue Alpha "255" Linear 0.0 0.1
  735. Animate continue Alpha "0" Linear 0.2 0.1
  736.  
  737. Animate continue Alpha "255" Linear 0.4 0.1
  738. Animate continue Alpha "0" Linear 0.6 0.1
  739.  
  740. Animate continue Alpha "255" Linear 0.8 0.1
  741. Animate continue Alpha "0" Linear 1.0 0.1
  742.  
  743. Animate continue Alpha "255" Linear 1.2 0.1
  744.  
  745. RunEvent IntroMovieContinueBlinkLoop 2.0
  746. }
  747.  
  748. event IntroMovieContinueBlinkLoop
  749. {
  750. RunEvent IntroMovieContinueBlink 0.0
  751. }
  752.  
  753. event IntroMovieContinueBlinkStop
  754. {
  755. StopEvent IntroMovieContinueBlink 0.0
  756. StopEvent IntroMovieContinueBlinkLoop 0.0
  757. }
  758.  
  759. //===========================================
  760.  
  761. event HasMOTDBlink
  762. {
  763. Animate MOTD_ShowButtonPanel_SB Alpha "255" Linear 0.0 0.1
  764. Animate MOTD_ShowButtonPanel_SB Alpha "0" Linear 0.2 0.1
  765.  
  766. Animate MOTD_ShowButtonPanel_SB Alpha "255" Linear 0.4 0.1
  767. Animate MOTD_ShowButtonPanel_SB Alpha "0" Linear 0.6 0.1
  768.  
  769. Animate MOTD_ShowButtonPanel_SB Alpha "255" Linear 0.8 0.1
  770. Animate MOTD_ShowButtonPanel_SB Alpha "0" Linear 1.0 0.1
  771.  
  772. Animate MOTD_ShowButtonPanel_SB Alpha "255" Linear 1.2 0.1
  773.  
  774. RunEvent HasMOTDBlinkLoop 2.0
  775. }
  776.  
  777. event HasMOTDBlinkLoop
  778. {
  779. RunEvent HasMOTDBlink 0.0
  780. }
  781.  
  782. event HasMOTDBlinkStop
  783. {
  784. StopEvent HasMOTDBlink 0.0
  785. StopEvent HasMOTDBlinkLoop 0.0
  786. Animate MOTD_ShowButtonPanel_SB Alpha "255" Linear 0.0 0.1
  787. }
  788.  
  789. //===========================================
  790.  
  791. event HasNotificationsBlink
  792. {
  793. Animate Notifications_ShowButtonPanel_SB Alpha "255" Linear 0.0 0.1
  794. Animate Notifications_ShowButtonPanel_SB Alpha "0" Linear 0.2 0.1
  795.  
  796. Animate Notifications_ShowButtonPanel_SB Alpha "255" Linear 0.4 0.1
  797. Animate Notifications_ShowButtonPanel_SB Alpha "0" Linear 0.6 0.1
  798.  
  799. Animate Notifications_ShowButtonPanel_SB Alpha "255" Linear 0.8 0.1
  800. Animate Notifications_ShowButtonPanel_SB Alpha "0" Linear 1.0 0.1
  801.  
  802. Animate Notifications_ShowButtonPanel_SB Alpha "255" Linear 1.2 0.1
  803.  
  804. RunEvent HasNotificationsBlinkLoop 2.0
  805. }
  806.  
  807. event HasNotificationsBlinkLoop
  808. {
  809. RunEvent HasNotificationsBlink 0.0
  810. }
  811.  
  812. event HasNotificationsBlinkStop
  813. {
  814. StopEvent HasNotificationsBlink 0.0
  815. StopEvent HasNotificationsBlinkLoop 0.0
  816. Animate Notifications_ShowButtonPanel_SB Alpha "255" Linear 0.0 0.1
  817. }
  818.  
  819. //===========================================
  820.  
  821. event AddToCartBlink
  822. {
  823. Animate CartButton BgColor "TanDark" Linear 0.0 0.01
  824. Animate CartButton BgColor "255 150 0 255" Linear 0.1 0.01
  825.  
  826. Animate CartButton BgColor "TanDark" Linear 0.2 0.01
  827. Animate CartButton BgColor "255 150 0 255" Linear 0.3 0.01
  828.  
  829. Animate CartButton BgColor "TanDark" Linear 0.4 0.01
  830. Animate CartButton BgColor "255 150 0 255" Linear 0.5 0.01
  831.  
  832. Animate CartButton BgColor "TanDark" Linear 0.6 0.01
  833. Animate CartButton BgColor "255 150 0 255" Linear 0.7 0.01
  834.  
  835. Animate CartButton BgColor "TanDark" Linear 0.8 0.01
  836. Animate CartButton BgColor "255 150 0 255" Linear 0.9 0.01
  837.  
  838. Animate CartButton BgColor "TanDark" Linear 1.0 0.01
  839. }
  840.  
  841. //===========================================
  842.  
  843. event NotificationsPresentBlink
  844. {
  845. Animate NotificationsPresentPanel Alpha "255" Linear 0.0 0.1
  846. Animate NotificationsPresentPanel Alpha "0" Linear 0.2 0.1
  847.  
  848. Animate NotificationsPresentPanel Alpha "255" Linear 0.4 0.1
  849. Animate NotificationsPresentPanel Alpha "0" Linear 0.6 0.1
  850.  
  851. Animate NotificationsPresentPanel Alpha "255" Linear 0.8 0.1
  852. Animate NotificationsPresentPanel Alpha "0" Linear 1.0 0.1
  853.  
  854. Animate NotificationsPresentPanel Alpha "255" Linear 1.2 0.1
  855.  
  856. RunEvent NotificationsPresentBlinkLoop 2.0
  857. }
  858.  
  859. event NotificationsPresentBlinkLoop
  860. {
  861. RunEvent NotificationsPresentBlink 0.0
  862. }
  863.  
  864. event NotificationsPresentBlinkStop
  865. {
  866. StopEvent NotificationsPresentBlink 0.0
  867. StopEvent NotificationsPresentBlinkLoop 0.0
  868. Animate NotificationsPresentPanel Alpha "255" Linear 0.0 0.1
  869. }
  870.  
  871. //===========================================
  872.  
  873. event DamagedPlayer
  874. {
  875. // empty
  876. }
  877.  
  878. //===========================================
  879.  
  880. event SpyWarningFlash
  881. {
  882. Animate EnemyCountImageBG BgColor "RedSolid" Linear 0.0 0.01
  883. Animate EnemyCountImageBG BgColor "TanLight" Linear 0.21 0.01
  884.  
  885. RunEvent SpyWarningFlashLoop 0.42
  886. }
  887.  
  888. event SpyWarningFlashLoop
  889. {
  890. RunEvent SpyWarningFlash 0.0
  891. }
  892.  
  893. event SpyWarningFlashEnd
  894. {
  895. StopEvent SpyWarningFlash 0.0
  896. StopEvent SpyWarningFlashLoop 0.0
  897. }
  898.  
  899. event HudReadyPulse
  900. {
  901. Animate TournamentInstructionsLabel FgColor "TanLight" Linear 0.0 0.1
  902. Animate TournamentInstructionsLabel FgColor "RedSolid" Linear 0.3 0.4
  903.  
  904. RunEvent HudReadyPulseLoop 0.5
  905. }
  906.  
  907. event HudReadyPulseLoop
  908. {
  909. RunEvent HudReadyPulse 0.0
  910. }
  911.  
  912. event HudReadyPulseEnd
  913. {
  914. Animate TournamentInstructionsLabel FgColor "TanLight" Linear 0.0 0.1
  915.  
  916. StopEvent HudReadyPulse 0.0
  917. StopEvent HudReadyPulseLoop 0.0
  918. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement