Advertisement
Guest User

Untitled

a guest
Sep 4th, 2013
104
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 20.77 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 xHairSpread FgColor "0 255 255 255" Accel 0.0 0.0
  208. Animate PlayerStatusHealthBonusImage Alpha "255" Linear 0.0 0.2
  209. Animate PlayerStatusHealthBonusImage Alpha "0" Linear 0.2 0.4
  210.  
  211. RunEvent HudHealthBonusPulseLoop 0.4
  212. }
  213.  
  214. // call to loop HudHealthBonusPulse
  215. event HudHealthBonusPulseLoop
  216. {
  217. RunEvent HudHealthBonusPulse 0.0
  218. }
  219.  
  220. event HudHealthBonusPulseStop
  221. {
  222. Animate xHairSpread FgColor "255 255 255 255" Accel 0.0 0.0
  223. StopEvent HudHealthBonusPulse 0.0
  224. StopEvent HudHealthBonusPulseLoop 0.0
  225. }
  226.  
  227. //===========================================
  228.  
  229. //Health Dying Pulse
  230. event HudHealthDyingPulse
  231. {
  232. Animate xHairSpread FgColor "255 0 0 255" Accel 0.0 0.0
  233. Animate PlayerStatusHealthBonusImage Alpha "255" Linear 0.0 0.075
  234. Animate PlayerStatusHealthBonusImage Alpha "0" Linear 0.125 0.075
  235.  
  236. RunEvent HudHealthDyingPulseLoop 0.25
  237. }
  238.  
  239. // call to loop HudHealthDyingPulse
  240. event HudHealthDyingPulseLoop
  241. {
  242. RunEvent HudHealthDyingPulse 0.0
  243. }
  244.  
  245. event HudHealthDyingPulseStop
  246. {
  247. Animate xHairSpread FgColor "255 255 255 255" Accel 0.0 0.0
  248. StopEvent HudHealthDyingPulse 0.0
  249. StopEvent HudHealthDyingPulseLoop 0.0
  250. }
  251.  
  252. //===========================================
  253.  
  254. event HudLowAmmoPulse
  255. {
  256. Animate HudWeaponLowAmmoImage Alpha "255" Linear 0.0 0.075
  257. Animate HudWeaponLowAmmoImage Alpha "0" Linear 0.125 0.075
  258.  
  259. RunEvent HudLowAmmoPulseLoop 0.25
  260. }
  261.  
  262. // call to loop HudLowAmmoPulse
  263. event HudLowAmmoPulseLoop
  264. {
  265. RunEvent HudLowAmmoPulse 0.0
  266. }
  267.  
  268. event HudLowAmmoPulseStop
  269. {
  270. StopEvent HudLowAmmoPulse 0.0
  271. StopEvent HudLowAmmoPulseLoop 0.0
  272. }
  273.  
  274. //===========================================
  275.  
  276. event ControlPointIconShrink
  277. {
  278. Animate HudControlPointIcons icon_expand "0" Linear 0.0 0.2
  279. }
  280.  
  281. event ControlPointIconGrow
  282. {
  283. Animate HudControlPointIcons icon_expand "4" Linear 0.0 0.2
  284. }
  285.  
  286. // Metal Account
  287.  
  288. //activecolor - instantly turn red, fade back to yellow
  289. event AccountMoneyRemoved
  290. {
  291. Animate HudAccount FgColor "HudIcon_Red" Linear 0.0 0.0001
  292. Animate HudAccount FgColor "OrangeDim" Accel 0.0 3.0
  293.  
  294. Animate HudAccount Ammo2Color "HudIcon_Red" Linear 0.0 0.0001
  295. Animate HudAccount Ammo2Color "0 0 0 0" Accel 0.0 3.0
  296. }
  297.  
  298. //activecolor - instantly turn green, fade back to yellow
  299. event AccountMoneyAdded
  300. {
  301. Animate HudAccount FgColor "HudIcon_Green" Linear 0.0 0.0001
  302. Animate HudAccount FgColor "OrangeDim" Accel 0.0 3.0
  303.  
  304. Animate HudAccount Ammo2Color "HudIcon_Green" Accel 0.0 0.0001
  305. Animate HudAccount Ammo2Color "0 0 0 0" Accel 0.0 3.0
  306. }
  307.  
  308. event AccountMoneyInvisible
  309. {
  310. Animate HudAccount FgColor "OrangeDim" Accel 0.0 0.0001
  311. Animate HudAccount Ammo2Color "0 0 0 0" Accel 0.0 0.0001
  312. }
  313.  
  314. //===========================================
  315.  
  316. event FlagOutlineHide
  317. {
  318. Animate OutlineImage Alpha "0" Linear 0.0 0.1
  319. }
  320.  
  321. // Local player flag pickup/drop
  322. event FlagOutline
  323. {
  324. RunEvent FlagOutlineHide 0.0
  325. Animate OutlineImage Alpha "255" Linear 0.1 0.2
  326.  
  327. Animate OutlineImage Position "c-200 140" Linear 0.1 0.2
  328. Animate OutlineImage Size "400 200" Linear 0.1 0.2
  329.  
  330. Animate OutlineImage Position "c-50 r137" Linear 0.7 0.2 [$WIN32]
  331. Animate OutlineImage Position "c-50 r158" Linear 0.7 0.2 [$X360]
  332. Animate OutlineImage Size "100 50" Linear 0.7 0.2
  333.  
  334. Animate OutlineImage Alpha "0" Linear 0.9 0.1
  335. }
  336.  
  337. //===========================================
  338.  
  339. // Spy Disguise
  340. event HudSpyDisguiseChanged
  341. {
  342. Animate PlayerStatusSpyOutlineImage Alpha "255" Linear 0.0 0.2
  343.  
  344. Animate PlayerStatusSpyOutlineImage Position "c-200 c-200" Linear 0.0 0.2
  345. Animate PlayerStatusSpyOutlineImage Size "400 400" Linear 0.0 0.2
  346.  
  347. RunEvent HudSpyDisguiseHide 0.7
  348. }
  349.  
  350. event HudSpyDisguiseHide
  351. {
  352. Animate PlayerStatusSpyOutlineImage Position "3 413" Linear 0.0 0.2
  353. Animate PlayerStatusSpyOutlineImage Size "55 55" Linear 0.0 0.2
  354.  
  355. Animate PlayerStatusSpyOutlineImage Alpha "0" Linear 0.2 0.1
  356. }
  357.  
  358. event HudSpyDisguiseFadeIn
  359. {
  360. RunEvent HudSpyDisguiseChanged 0
  361. Animate PlayerStatusSpyImage Alpha "255" Linear 0.9 0.1
  362. }
  363.  
  364. event HudSpyDisguiseFadeOut
  365. {
  366. RunEvent HudSpyDisguiseChanged 0
  367. Animate PlayerStatusSpyImage Alpha "0" Linear 0.9 0.1
  368. }
  369.  
  370. //===========================================
  371.  
  372. // Show the Overtime panel
  373. event OvertimeShow
  374. {
  375. Animate OvertimeLabel Alpha "255" Linear 0.0 0.1
  376. Animate OvertimeBG Alpha "255" Linear 0.0 0.1
  377. }
  378.  
  379.  
  380. event HudSnapShotReminderIn
  381. {
  382. Animate ScreenshotPanel Position "c-83 -50" Linear 0.0 0.001
  383. Animate ScreenshotPanel Position "c-83 13" Spline 0.001 0.2
  384. }
  385.  
  386. event HudReplayReminderIn // Places the replay reminder in the same place as the snapshot reminder
  387. {
  388. Animate ReplayReminder Position "c-83 -50" Linear 0.0 0.001
  389. Animate ReplayReminder Position "c-83 13" Spline 0.001 0.2
  390. }
  391.  
  392. event HudReplayReminderIn2 // Puts the panel below the snapshot panel
  393. {
  394. Animate ReplayReminder Position "c-83 -50" Linear 0.0 0.001
  395. Animate ReplayReminder Position "c-83 53" Spline 0.001 0.2
  396. }
  397.  
  398. event HudReplayTipIn
  399. {
  400. Animate ReplayTip Position "10 -100" Linear 0.0 0.001
  401. Animate ReplayTip Position "10 6" Spline 0.001 0.1
  402. }
  403.  
  404. event HudReplayTipOut
  405. {
  406. Animate ReplayTip Position "10 6" Linear 0.0 0.001
  407. Animate ReplayTip Position "10 -100" Spline 0.001 0.1
  408. }
  409.  
  410. event HudTournamentSetupPanelOpen
  411. {
  412. Animate HudTournamentSetup Position "c-90 -70" Linear 0.0 0.001
  413. Animate HudTournamentSetup Position "c-90 70" Spline 0.001 0.2
  414. }
  415.  
  416. event HudTournamentSetupPanelClose
  417. {
  418. Animate HudTournamentSetup Position "c-90 70" Linear 0.0 0.001
  419. Animate HudTournamentSetup Position "c-90 -70" Spline 0.001 0.2
  420. }
  421.  
  422.  
  423. //====================================
  424.  
  425. // Flash the medic charge hud when we have full charge
  426.  
  427. event HudMedicCharged
  428. {
  429. Animate ChargeLabel FgColor "TanLight" Linear 0.0 0.1
  430. Animate ChargeLabel FgColor "TanDarker" Linear 0.3 0.4
  431.  
  432. Animate ChargeMeter FgColor "TanLight" Linear 0.0 0.1
  433. Animate ChargeMeter FgColor "TanDarker" Linear 0.3 0.4
  434.  
  435. RunEvent HudMedicChargedLoop 0.6
  436. }
  437.  
  438. // call to loop HudHealthBonusPulse
  439. event HudMedicChargedLoop
  440. {
  441. RunEvent HudMedicCharged 0.0
  442. }
  443.  
  444. event HudMedicChargedStop
  445. {
  446. StopEvent HudMedicCharged 0.0
  447. StopEvent HudMedicChargedLoop 0.0
  448.  
  449. Animate ChargeLabel FgColor "TanLight" Linear 0.0 0.0001
  450. Animate ChargeMeter FgColor "TanLight" Linear 0.0 0.0001
  451. }
  452.  
  453. //====================================
  454.  
  455. event VideoCaptionFadeIn
  456. {
  457. Animate VideoCaption Alpha "255" Linear 0.0 0.1
  458. }
  459.  
  460. event VideoCaptionFadeOut
  461. {
  462. Animate VideoCaption Alpha "0" Linear 0.0 0.1
  463. }
  464.  
  465. //====================================
  466.  
  467. // arena
  468.  
  469. event ArenaVsPanelOnShow
  470. {
  471. Animate bluepanel Position "-200 50" Linear 0.0 0.001
  472. Animate redpanel Position "r-200 140" Linear 0.0 0.001
  473. Animate vslabel Alpha "0" Linear 0.0 0.001
  474.  
  475. RunEvent ArenaVsPanelSlideIn 1.0
  476. RunEvent ArenaVsPanelSlideOut 4.8
  477. }
  478.  
  479. event ArenaVsPanelSlideIn
  480. {
  481. Animate bluepanel Position "c-100 50" Spline 0.0 0.2
  482. Animate redpanel Position "c-100 140" Spline 0.0 0.2
  483. Animate vslabel Alpha "255" Linear 0.15 0.2
  484. }
  485.  
  486. event ArenaVsPanelSlideOut
  487. {
  488. Animate bluepanel Position "-200 50" Spline 0.0 0.2
  489. Animate redpanel Position "r-200 140" Spline 0.0 0.2
  490. Animate vslabel Alpha "0" Linear 0.0 0.05
  491. }
  492.  
  493. //===========================================
  494.  
  495. //Cart Alarm Pulse
  496. event HudCartAlarmPulse
  497. {
  498. Animate EscortItemImageAlert Alpha "160" Linear 0.0 0.3
  499. Animate EscortItemImageAlert Alpha "0" Linear 0.6 0.3
  500.  
  501. RunEvent HudCartAlarmPulseLoop 1.2
  502. }
  503.  
  504. event HudCartAlarmPulseLoop
  505. {
  506. RunEvent HudCartAlarmPulse 0.0
  507. }
  508.  
  509. event HudCartAlarmPulseStop
  510. {
  511. StopEvent HudCartAlarmPulse 0.0
  512. StopEvent HudCartAlarmPulseLoop 0.0
  513. }
  514.  
  515. //===========================================
  516.  
  517. // Active Timer BG Pulse
  518. event ActiveTimerBGPulse
  519. {
  520. Animate ActiveTimerBG Alpha "0" Linear 0.1 0.1
  521. Animate ActiveTimerBG Alpha "255" Linear 0.3 0.1
  522.  
  523. Animate ActiveTimerBG Alpha "0" Linear 0.5 0.1
  524. Animate ActiveTimerBG Alpha "255" Linear 0.7 0.1
  525.  
  526. Animate ActiveTimerBG Alpha "0" Linear 0.9 0.1
  527. Animate ActiveTimerBG Alpha "255" Linear 1.1 0.1
  528. }
  529.  
  530. //===========================================
  531.  
  532. event TeamsFullArrowAnimate
  533. {
  534. Animate TeamsFullArrow Position "c-118 165" Linear 0 0
  535. Animate TeamsFullArrow Position "c-118 180" Linear 0 0.4
  536. Animate TeamsFullArrow Position "c-118 165" Linear 0.4 0.4
  537.  
  538. RunEvent TeamsFullArrowAnimateLoop 0.8
  539. }
  540.  
  541. event TeamsFullArrowAnimateLoop
  542. {
  543. RunEvent TeamsFullArrowAnimate 0.0
  544. }
  545.  
  546. event TeamsFullArrowAnimateEnd
  547. {
  548. StopEvent TeamsFullArrowAnimate 0.0
  549. StopEvent TeamsFullArrowAnimateLoop 0.0
  550. }
  551.  
  552. //===========================================
  553.  
  554. event TrainingHudBounce
  555. {
  556. Animate ObjectiveStatusTraining Position "c-160 r187" Linear 0 0
  557. Animate ObjectiveStatusTraining Position "c-160 r127" Bounce 0.0 2.0
  558. }
  559.  
  560. event TrainingPressSpacebarBlink
  561. {
  562. Animate PressSpacebarToContinue Alpha "255" Linear 0.0 0.1
  563. Animate PressSpacebarToContinue Alpha "0" Linear 0.2 0.1
  564.  
  565. Animate PressSpacebarToContinue Alpha "255" Linear 0.4 0.1
  566. Animate PressSpacebarToContinue Alpha "0" Linear 0.6 0.1
  567.  
  568. Animate PressSpacebarToContinue Alpha "255" Linear 0.8 0.1
  569. Animate PressSpacebarToContinue Alpha "0" Linear 1.0 0.1
  570.  
  571. Animate PressSpacebarToContinue Alpha "255" Linear 1.2 0.1
  572.  
  573. RunEvent TrainingPressSpacebarBlinkLoop 3.0
  574. }
  575.  
  576. event TrainingPressSpacebarBlinkLoop
  577. {
  578. RunEvent TrainingPressSpacebarBlink 0.0
  579. }
  580.  
  581. event TrainingPressSpacebarBlinkStop
  582. {
  583. StopEvent TrainingPressSpacebarBlink 0.0
  584. StopEvent TrainingPressSpacebarBlinkLoop 0.0
  585. }
  586.  
  587. //===========================================
  588.  
  589. event IntroMovieContinueBlink
  590. {
  591. Animate continue Alpha "255" Linear 0.0 0.1
  592. Animate continue Alpha "0" Linear 0.2 0.1
  593.  
  594. Animate continue Alpha "255" Linear 0.4 0.1
  595. Animate continue Alpha "0" Linear 0.6 0.1
  596.  
  597. Animate continue Alpha "255" Linear 0.8 0.1
  598. Animate continue Alpha "0" Linear 1.0 0.1
  599.  
  600. Animate continue Alpha "255" Linear 1.2 0.1
  601.  
  602. RunEvent IntroMovieContinueBlinkLoop 2.0
  603. }
  604.  
  605. event IntroMovieContinueBlinkLoop
  606. {
  607. RunEvent IntroMovieContinueBlink 0.0
  608. }
  609.  
  610. event IntroMovieContinueBlinkStop
  611. {
  612. StopEvent IntroMovieContinueBlink 0.0
  613. StopEvent IntroMovieContinueBlinkLoop 0.0
  614. }
  615.  
  616. //===========================================
  617.  
  618. event HasMOTDBlink
  619. {
  620. Animate MOTD_ShowButtonPanel_SB Alpha "255" Linear 0.0 0.1
  621. Animate MOTD_ShowButtonPanel_SB Alpha "0" Linear 0.2 0.1
  622.  
  623. Animate MOTD_ShowButtonPanel_SB Alpha "255" Linear 0.4 0.1
  624. Animate MOTD_ShowButtonPanel_SB Alpha "0" Linear 0.6 0.1
  625.  
  626. Animate MOTD_ShowButtonPanel_SB Alpha "255" Linear 0.8 0.1
  627. Animate MOTD_ShowButtonPanel_SB Alpha "0" Linear 1.0 0.1
  628.  
  629. Animate MOTD_ShowButtonPanel_SB Alpha "255" Linear 1.2 0.1
  630.  
  631. RunEvent HasMOTDBlinkLoop 2.0
  632. }
  633.  
  634. event HasMOTDBlinkLoop
  635. {
  636. RunEvent HasMOTDBlink 0.0
  637. }
  638.  
  639. event HasMOTDBlinkStop
  640. {
  641. StopEvent HasMOTDBlink 0.0
  642. StopEvent HasMOTDBlinkLoop 0.0
  643. Animate MOTD_ShowButtonPanel_SB Alpha "255" Linear 0.0 0.1
  644. }
  645.  
  646. //===========================================
  647.  
  648. event HasNotificationsBlink
  649. {
  650. Animate Notifications_ShowButtonPanel_SB Alpha "255" Linear 0.0 0.1
  651. Animate Notifications_ShowButtonPanel_SB Alpha "0" Linear 0.2 0.1
  652.  
  653. Animate Notifications_ShowButtonPanel_SB Alpha "255" Linear 0.4 0.1
  654. Animate Notifications_ShowButtonPanel_SB Alpha "0" Linear 0.6 0.1
  655.  
  656. Animate Notifications_ShowButtonPanel_SB Alpha "255" Linear 0.8 0.1
  657. Animate Notifications_ShowButtonPanel_SB Alpha "0" Linear 1.0 0.1
  658.  
  659. Animate Notifications_ShowButtonPanel_SB Alpha "255" Linear 1.2 0.1
  660.  
  661. RunEvent HasNotificationsBlinkLoop 2.0
  662. }
  663.  
  664. event HasNotificationsBlinkLoop
  665. {
  666. RunEvent HasNotificationsBlink 0.0
  667. }
  668.  
  669. event HasNotificationsBlinkStop
  670. {
  671. StopEvent HasNotificationsBlink 0.0
  672. StopEvent HasNotificationsBlinkLoop 0.0
  673. Animate Notifications_ShowButtonPanel_SB Alpha "255" Linear 0.0 0.1
  674. }
  675.  
  676. //===========================================
  677.  
  678. event AddToCartBlink
  679. {
  680. Animate CartButton BgColor "TanDark" Linear 0.0 0.01
  681. Animate CartButton BgColor "255 150 0 255" Linear 0.1 0.01
  682.  
  683. Animate CartButton BgColor "TanDark" Linear 0.2 0.01
  684. Animate CartButton BgColor "255 150 0 255" Linear 0.3 0.01
  685.  
  686. Animate CartButton BgColor "TanDark" Linear 0.4 0.01
  687. Animate CartButton BgColor "255 150 0 255" Linear 0.5 0.01
  688.  
  689. Animate CartButton BgColor "TanDark" Linear 0.6 0.01
  690. Animate CartButton BgColor "255 150 0 255" Linear 0.7 0.01
  691.  
  692. Animate CartButton BgColor "TanDark" Linear 0.8 0.01
  693. Animate CartButton BgColor "255 150 0 255" Linear 0.9 0.01
  694.  
  695. Animate CartButton BgColor "TanDark" Linear 1.0 0.01
  696. }
  697.  
  698. //===========================================
  699.  
  700. event NotificationsPresentBlink
  701. {
  702. Animate NotificationsPresentPanel Alpha "255" Linear 0.0 0.1
  703. Animate NotificationsPresentPanel Alpha "0" Linear 0.2 0.1
  704.  
  705. Animate NotificationsPresentPanel Alpha "255" Linear 0.4 0.1
  706. Animate NotificationsPresentPanel Alpha "0" Linear 0.6 0.1
  707.  
  708. Animate NotificationsPresentPanel Alpha "255" Linear 0.8 0.1
  709. Animate NotificationsPresentPanel Alpha "0" Linear 1.0 0.1
  710.  
  711. Animate NotificationsPresentPanel Alpha "255" Linear 1.2 0.1
  712.  
  713. RunEvent NotificationsPresentBlinkLoop 2.0
  714. }
  715.  
  716. event NotificationsPresentBlinkLoop
  717. {
  718. RunEvent NotificationsPresentBlink 0.0
  719. }
  720.  
  721. event NotificationsPresentBlinkStop
  722. {
  723. StopEvent NotificationsPresentBlink 0.0
  724. StopEvent NotificationsPresentBlinkLoop 0.0
  725. Animate NotificationsPresentPanel Alpha "255" Linear 0.0 0.1
  726. }
  727.  
  728. //===========================================
  729.  
  730. event DamagedPlayer
  731. {
  732. // empty
  733. }
  734.  
  735. //===========================================
  736.  
  737. event SpyWarningFlash
  738. {
  739. Animate EnemyCountImageBG BgColor "RedSolid" Linear 0.0 0.01
  740. Animate EnemyCountImageBG BgColor "TanLight" Linear 0.21 0.01
  741.  
  742. RunEvent SpyWarningFlashLoop 0.42
  743. }
  744.  
  745. event SpyWarningFlashLoop
  746. {
  747. RunEvent SpyWarningFlash 0.0
  748. }
  749.  
  750. event SpyWarningFlashEnd
  751. {
  752. StopEvent SpyWarningFlash 0.0
  753. StopEvent SpyWarningFlashLoop 0.0
  754. }
  755.  
  756. event HudReadyPulse
  757. {
  758. Animate TournamentInstructionsLabel FgColor "TanLight" Linear 0.0 0.1
  759. Animate TournamentInstructionsLabel FgColor "RedSolid" Linear 0.3 0.4
  760.  
  761. RunEvent HudReadyPulseLoop 0.5
  762. }
  763.  
  764. event HudReadyPulseLoop
  765. {
  766. RunEvent HudReadyPulse 0.0
  767. }
  768.  
  769. event HudReadyPulseEnd
  770. {
  771. Animate TournamentInstructionsLabel FgColor "TanLight" Linear 0.0 0.1
  772.  
  773. StopEvent HudReadyPulse 0.0
  774. StopEvent HudReadyPulseLoop 0.0
  775. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement