Guest User

Untitled

a guest
Jan 28th, 2016
144
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  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. // Gain - < bias > Lower bias values bias towards 0.5 and higher bias values bias away from it.
  26. // Bias - < bias > Lower values bias the curve towards 0 and higher values bias it towards 1.
  27. //
  28. // RunEvent <event name> <start time>
  29. // starts another even running at the specified time
  30. //
  31. // StopEvent <event name> <start time>
  32. // stops another event that is current running at the specified time
  33. //
  34. // StopAnimation <panel name> <variable> <start time>
  35. // stops all animations refering to the specified variable in the specified panel
  36. //
  37. // StopPanelAnimations <panel name> <start time>
  38. // stops all active animations operating on the specified panel
  39. //
  40. // SetFont <panel name> <fontparameter> <fontname from scheme> <set time>
  41. //
  42. // SetTexture <panel name> <textureidname> <texturefilename> <set time>
  43. //
  44. // SetString <panel name> <string varname> <stringvalue> <set time>
  45.  
  46. event LevelInit
  47. {
  48. }
  49.  
  50. event OpenWeaponSelectionMenu
  51. {
  52. StopEvent CloseWeaponSelectionMenu 0.0
  53. StopEvent WeaponPickup 0.0
  54.  
  55. // make the display visible
  56. Animate HudWeaponSelection Alpha "128" Linear 0.0 0.1
  57. Animate HudWeaponSelection SelectionAlpha "255" Linear 0.0 0.1
  58. Animate HudWeaponSelection FgColor "FgColor" Linear 0.0 0.1
  59. //Animate HudWeaponSelection TextColor "BrightFg" Linear 0.0 0.1
  60. Animate HudWeaponSelection TextScan "1" Linear 0.0 0.1
  61. }
  62.  
  63. event CloseWeaponSelectionMenu
  64. {
  65. StopEvent CloseWeaponSelectionMenu 0.0
  66. StopEvent WeaponPickup 0.0
  67.  
  68. // make the display visible
  69. Animate HudWeaponSelection Alpha "128" Linear 0.0 0.1
  70. Animate HudWeaponSelection SelectionAlpha "255" Linear 0.0 0.1
  71. Animate HudWeaponSelection FgColor "FgColor" Linear 0.0 0.1
  72. //Animate HudWeaponSelection TextColor "BrightFg" Linear 0.0 0.1
  73. Animate HudWeaponSelection TextScan "1" Linear 0.0 0.1
  74. }
  75.  
  76.  
  77. event MenuOpen
  78. {
  79. StopEvent MenuClose 0.0
  80.  
  81. // fade in
  82. Animate HudMenu Alpha "255" Linear 0.0 0.1
  83. Animate HudMenu SelectionAlpha "255" Linear 0.0 0.1
  84. Animate HudMenu FgColor "FgColor" Linear 0.0 0.1
  85. Animate HudMenu MenuColor "qtcwhite" Linear 0.0 0.1
  86. Animate HudMenu ItemColor "ItemColor" Linear 0.0 0.1
  87. Animate HudMenu TextScan "1" Linear 0.0 0.1
  88.  
  89. // Undo any blur
  90. Animate HudMenu Blur "1" Linear 0.0 0.01
  91. }
  92.  
  93. event MenuClose
  94. {
  95. // Hide it
  96. Animate HudMenu Alpha "0" Linear 0.0 1
  97. Animate HudMenu SelectionAlpha "0" Linear 0.0 1
  98. Animate HudMenu FgColor "0 0 0 0" Linear 0.0 1
  99. Animate HudMenu MenuColor "0 0 0 0" Linear 0.0 1
  100. Animate HudMenu ItemColor "0 0 0 0" Linear 0.0 1
  101. }
  102.  
  103. event MenuPulse
  104. {
  105. Animate HudMenu Blur "7" Linear 0.0 0.1
  106. Animate HudMenu Blur "2" Deaccel 0.1 0.1
  107. Animate HudMenu Blur "7" Linear 0.2 0.1
  108. Animate HudMenu Blur "2" Deaccel 0.3 0.1
  109. Animate HudMenu Blur "7" Linear 0.4 0.1
  110. Animate HudMenu Blur "2" Deaccel 0.5 0.1
  111. Animate HudMenu Blur "1" Deaccel 0.6 0.4
  112. }
  113.  
  114. event TimerIncrement
  115. {
  116. Animate HudTimer Blur "7" Linear 0.0 0.1
  117. Animate HudTimer Blur "2" Deaccel 0.1 0.8
  118. Animate HudTimer Blur "0" Deaccel 1.1 1.5
  119. }
  120.  
  121. event TimerDecrement
  122. {
  123. Animate HudTimer Blur "7" Linear 0.0 0.1
  124. Animate HudTimer Blur "2" Deaccel 0.1 0.8
  125. Animate HudTimer Blur "0" Deaccel 1.1 1.5
  126. }
  127.  
  128.  
  129. event ResourceIncrement
  130. {
  131. Animate HudResources Blur "3" Linear 0.0 0.0
  132. Animate HudResources PulseAmount "0" Linear 0.0 0.01
  133. Animate HudResources Blur "1" Deaccel 0.1 1.5
  134. Animate HudResources PulseAmount "1" Linear 0.1 2
  135.  
  136. Animate HudResources PulseAmount "0" Linear 2 2
  137. }
  138.  
  139. event ResourceDecrement
  140. {
  141. Animate HudResources Blur "7" Linear 0.0 0.0
  142. Animate HudResources PulseAmount "0" Linear 0.0 0.01
  143. Animate HudResources Blur "1" Deaccel 0.1 1.5
  144. Animate HudResources PulseAmount "1" Linear 0.1 2
  145.  
  146. Animate HudResources PulseAmount "0" Linear 2 2
  147. }
  148.  
  149. event ResourcePickup
  150. {
  151. Animate HudResourcesPickup Alpha "255" Linear 0 0
  152. Animate HudResourcesPickup Position "80 r40" Linear 0 0
  153. Animate HudResourcesPickup Position "80 r120" Deaccel 0 1
  154. Animate HudResourcesPickup Blur "7" Deaccel 0 0.2
  155. Animate HudResourcesPickup Alpha "0" Deaccel .8 0.2
  156. Animate HudResourcesPickup Blur "1" Deaccel 0.2 0.3
  157. }
  158.  
  159. event HintMessageShow
  160. {
  161. Animate HudHintDisplay HintSize "1" Deaccel 0.0 0.3
  162. Animate HudHintDisplay FgColor "FgColor" Linear 0.4 0.4
  163.  
  164. // flash text
  165. Animate HudHintDisplay FgColor "FgColor" Linear 1.5 0.01
  166. Animate HudHintDisplay FgColor "255 220 0 255" Linear 2.0 0.2
  167. Animate HudHintDisplay FgColor "FgColor" Linear 2.2 0.2
  168. Animate HudHintDisplay FgColor "255 220 0 255" Linear 3.0 0.2
  169. Animate HudHintDisplay FgColor "FgColor" Linear 3.2 0.2
  170.  
  171. // hide the panel after a while
  172. Animate HudHintDisplay FgColor "255 220 0 0" Linear 10.0 0.2
  173. Animate HudHintDisplay HintSize "0" Deaccel 10.2 0.3
  174. }
  175.  
  176.  
  177. event HintMessageHide
  178. {
  179. Animate HudHintDisplay FgColor "255 220 0 0" Linear 0.0 0.2
  180. Animate HudHintDisplay HintSize "0" Deaccel 0.2 0.3
  181. }
  182.  
  183. event KeyHintMessageShow
  184. {
  185. // show the hints
  186. Animate HudHintKeyDisplay Alpha 255 Linear 0.0 0.5
  187.  
  188. // flash text
  189. Animate HudHintKeyDisplay FgColor "FgColor" Linear 0.0 0.01
  190. Animate HudHintKeyDisplay FgColor "255 220 0 255" Linear 0.5 0.2
  191. Animate HudHintKeyDisplay FgColor "FgColor" Linear 0.7 0.2
  192. Animate HudHintKeyDisplay FgColor "255 220 0 255" Linear 1.5 0.2
  193. Animate HudHintKeyDisplay FgColor "FgColor" Linear 1.7 0.2
  194.  
  195. // hide the panel after a while
  196. Animate HudHintKeyDisplay Alpha 0 Linear 12.0 1.0
  197. }
  198.  
  199. event KeyHintMessageHide
  200. {
  201. Animate HudHintKeyDisplay Alpha 0 Linear 0.0 0.5
  202. }
  203.  
  204. //===========================================
  205.  
  206. //Health Bonus Pulse
  207. event HudHealthBonusPulse
  208. {
  209. Animate PlayerStatusHealthBonusImage Alpha "25" Linear 0.0 0.2
  210. Animate PlayerStatusHealthBonusImage Alpha "65" Linear 0.2 0.4
  211. Animate PlayerStatusHealthImageBGheal Alpha "255" Linear 0.0 0.2
  212. Animate PlayerStatusHealthImageBGheal Alpha "255" Linear 0.2 0.4
  213. Animate PlayerStatusHealthImageBG22 Alpha "0" Linear 0.0 0.0
  214. Animate PlayerStatusHealthValue Fgcolor "230 230 230 255" Linear 0.0 0.1
  215. Animate PlayerStatusHealthValue Fgcolor "65 85 135 255" Linear 0.09 0.3
  216. Animate PlayerStatusHealthValueSpec FgColor "230 230 230 255" Linear 0.0 0.1
  217. Animate PlayerStatusHealthValueSpec FgColor "230 230 230 255" Linear 0.1 0.2
  218. Animate PlayerStatusHealthValueSpec2 FgColor "qtcwhite" Linear 0.0 0.1
  219. Animate PlayerStatusHealthValueSpec2 FgColor "qtcwhite" Linear 0.1 0.2
  220. Animate PlayerStatusHealthImageBGHeal Fgcolor "0 9 255 255" Linear 0.0 0.2
  221. Animate PlayerStatusHealthImageBGHeal Fgcolor "0 9 255 255" Linear 0.2 0.4
  222. Animate PlayerStatusHealthImageBGHealtop Alpha "0" Linear 0.0 0.2
  223. Animate PlayerStatusHealthImageBGHealtop Alpha "0" Linear 0.2 0.4
  224. Animate PlayerStatusHealthImageBGHealbot Alpha "0" Linear 0.0 0.2
  225. Animate PlayerStatusHealthImageBGHealbot Alpha "0" Linear 0.2 0.4
  226. Animate PlayerStatusHealthImageBGHealright Alpha "0" Linear 0.0 0.2
  227. Animate PlayerStatusHealthImageBGHealright Alpha "0" Linear 0.2 0.4
  228. Animate PlayerHealthBG2 Alpha "145" Linear 0.0 0.2
  229. Animate PlayerHealthBG2 Alpha "165" Linear 0.2 0.4
  230. Animate PlayerHealthBGNorm Alpha "0" Linear 0.2 0.4
  231. Animate HealthBG alpha "40" Linear 0.1 0.2
  232. Animate HealthBG alpha "230" Linear 0.2 0.4
  233.  
  234. RunEvent HudHealthBonusPulseLoop 0.4
  235. }
  236.  
  237. // call to loop HudHealthBonusPulse
  238. event HudHealthBonusPulseLoop
  239. {
  240. RunEvent HudHealthBonusPulse 0.2
  241. }
  242.  
  243. event HudHealthBonusPulseStop
  244. {
  245. StopEvent HudHealthBonusPulse 0.0
  246. StopEvent HudHealthBonusPulseLoop 0.0
  247. Animate PlayerStatusHealthValue FgColor "230 230 230 255" Linear 0.0 0.0
  248. Animate PlayerStatusHealthValueSpec FgColor "230 230 230 255" Linear 0.0 0.0
  249. Animate PlayerStatusHealthValueSpec2 FgColor "230 230 230 255" Linear 0.0 0.0
  250. Animate SpecPlayerHealthBG BgColor "20 20 20 255" Linear 0.0 0.0
  251. Animate PlayerStatusHealthImageBGheal alpha "0" Linear 0.0 0.2
  252. Animate PlayerStatusHealthImageBGHealtop alpha "0" Linear 0.0 0.2
  253. Animate PlayerStatusHealthImageBGHealbot alpha "0" Linear 0.0 0.2
  254. Animate PlayerStatusHealthImageBGhealright alpha "0" Linear 0.0 0.2
  255. Animate PlayerHealthBG2 alpha "0" Linear 0.0 0.0
  256. Animate PlayerHealthBGNorm alpha "255" Linear 0.0 0.0
  257. Animate HealthBG Alpha "0" Linear 0.0 0.0
  258.  
  259. }
  260.  
  261. //===========================================
  262.  
  263. //Health Dying Pulse
  264. event HudHealthDyingPulse
  265. {
  266. Animate PlayerStatusHealthBonusImage Alpha "0" Linear 0.0 0.2
  267. Animate PlayerStatusHealthBonusImage Alpha "0" Linear 0.2 0.4
  268. Animate PlayerStatusHealthValue Fgcolor "qtcwhite" Linear 0.0 0.1
  269. Animate PlayerStatusHealthValue Fgcolor "245 53 64 255" Linear 0.09 0.3
  270. Animate PlayerStatusHealthValueSpec Fgcolor "235 75 75 255" Linear 0.0 0.1
  271. Animate PlayerStatusHealthValueSpec Fgcolor "235 75 75 255" Linear 0.09 0.3
  272. Animate PlayerStatusHealthImageBGHurt Alpha "255" Linear 0.0 0.075
  273. Animate PlayerStatusHealthImageBGHurt Alpha "255" Linear 0.125 0.075
  274. Animate PlayerStatusHealthImageBGHurtLeft Alpha "255" Linear 0.0 0.075
  275. Animate PlayerStatusHealthImageBGHurtLeft Alpha "255" Linear 0.125 0.075
  276. Animate PlayerStatusHealthImageBGHurttop Alpha "0" Linear 0.0 0.075
  277. Animate PlayerStatusHealthImageBGHurttop Alpha "0" Linear 0.125 0.075
  278. Animate PlayerStatusHealthImageBGHurtbot Alpha "0" Linear 0.0 0.075
  279. Animate PlayerStatusHealthImageBGHurtbot Alpha "0" Linear 0.125 0.075
  280. Animate PlayerHealthBG2hurtspec Alpha "145" Linear 0.0 0.075
  281. Animate PlayerStatusHealthValueSpec2 FgColor "qtcwhite" Linear 0.0 0.0
  282. Animate PlayerHealthBG2hurtspec Alpha "165" Linear 0.125 0.075
  283. Animate HealthBG2 alpha "40" Linear 0.1 0.2
  284. Animate HealthBG2 alpha "230" Linear 0.2 0.4
  285.  
  286.  
  287. RunEvent HudHealthDyingPulseLoop 0.4
  288. }
  289.  
  290. // call to loop HudHealthDyingPulse
  291. event HudHealthDyingPulseLoop
  292. {
  293. RunEvent HudHealthDyingPulse 0.2
  294. }
  295.  
  296. event HudHealthDyingPulseStop
  297. {
  298. StopEvent HudHealthDyingPulse 0.0
  299. StopEvent HudHealthDyingPulseLoop 0.0
  300. Animate PlayerStatusHealthValue Fgcolor "230 230 230 255" Linear 0.0 0.1
  301. Animate PlayerStatusHealthValueSpec FgColor "230 230 230 255" Linear 0.0 0.0
  302. Animate PlayerStatusHealthImageBGHurt Alpha "0" Linear 0.0 0.0
  303. Animate PlayerStatusHealthImageBGHurttop Alpha "0" Linear 0.0 0.0
  304. Animate PlayerStatusHealthImageBGHurtLeft Alpha "0" Linear 0.0 0.0
  305. Animate PlayerStatusHealthImageBGHurtbot Alpha "0" Linear 0.0 0.0
  306. Animate PlayerHealthBG2hurtspec Alpha "0" Linear 0.0 0.0
  307. Animate PlayerHealthBGNorm Alpha "255" Linear 0.0 0.0
  308. Animate HealthBG2 alpha "0" Linear 0.0 0.0
  309. }
  310.  
  311. //===========================================
  312. event HudLowAmmoPulse
  313. {
  314. Animate HudWeaponLowAmmoImage Alpha "0" Linear 0.0 0.075
  315. Animate HudWeaponLowAmmoImage Alpha "0" Linear 0.125 0.075
  316.  
  317. Animate AmmoInClip fgcolor "245 53 64 255" Linear 0.0 0.1
  318. Animate AmmoInClip fgcolor "245 53 64 255" Linear 0.09 0.3
  319. Animate AmmoInReserve fgcolor "245 53 64 255" Linear 0.0 0.1
  320. Animate AmmoInReserve fgcolor "245 53 64 255" Linear 0.09 0.3
  321. Animate AmmoNoClip fgcolor "245 53 64 255" Linear 0.0 0.1
  322. Animate AmmoNoClip fgcolor "245 53 64 255" Linear 0.09 0.3
  323. Animate PlayerLowAmmo alpha "245" Linear 0.0 0.075
  324. Animate PlayerStatusHealthValueSpec2 FgColor "230 230 230 255" Linear 0.0 0.0
  325. Animate PlayerLowAmmo alpha "255" Linear 0.125 0.075
  326. Animate AmmoGBG alpha "40" Linear 0.1 0.2
  327. Animate AmmoGBG alpha "230" Linear 0.2 0.4
  328.  
  329. RunEvent HudLowAmmoPulseLoop .4
  330. }
  331.  
  332. // call to loop HudLowAmmoPulse
  333. event HudLowAmmoPulseLoop
  334. {
  335. RunEvent HudLowAmmoPulse 0.4
  336. }
  337.  
  338. event HudLowAmmoPulseStop
  339. {
  340. StopEvent HudLowAmmoPulse 0.0
  341. StopEvent HudLowAmmoPulseLoop 0.0
  342.  
  343. Animate AmmoInClip fgcolor "qtcwhite" Linear 0.0 0.0
  344. Animate AmmoNoClip fgcolor "qtcwhite" Linear 0.0 0.0
  345. Animate AmmoInReserve fgcolor "qtcwhite" Linear 0.0 0.0
  346. Animate PlayerLowAmmo alpha "0" Linear 0.0 0.0
  347. Animate AmmoGBG Alpha "0" Linear 0.0 0.0
  348.  
  349. }
  350. ////////////////////////////
  351.  
  352. event ControlPointIconShrink
  353. {
  354. Animate HudControlPointIcons icon_expand "0" Linear 0.0 0.2
  355. }
  356.  
  357. event ControlPointIconGrow
  358. {
  359. Animate HudControlPointIcons icon_expand "4" Linear 0.0 0.2
  360. }
  361.  
  362. // Metal Account
  363.  
  364. //activecolor - instantly turn red, fade back to yellow
  365. event AccountMoneyRemoved
  366. {
  367. Animate HudAccount FgColor "HudIcon_Red" Linear 0.0 0.0001
  368. Animate HudAccount FgColor "OrangeDim" Accel 0.0 3.0
  369.  
  370. Animate HudAccount Ammo2Color "HudIcon_Red" Linear 0.0 0.0001
  371. Animate HudAccount Ammo2Color "0 0 0 0" Accel 0.0 3.0
  372. }
  373.  
  374. //activecolor - instantly turn green, fade back to yellow
  375. event AccountMoneyAdded
  376. {
  377. Animate HudAccount FgColor "HudIcon_Green" Linear 0.0 0.0001
  378. Animate HudAccount FgColor "OrangeDim" Accel 0.0 3.0
  379.  
  380. Animate HudAccount Ammo2Color "HudIcon_Green" Accel 0.0 0.0001
  381. Animate HudAccount Ammo2Color "0 0 0 0" Accel 0.0 3.0
  382. }
  383.  
  384. event AccountMoneyInvisible
  385. {
  386. Animate HudAccount FgColor "OrangeDim" Accel 0.0 0.0001
  387. Animate HudAccount Ammo2Color "0 0 0 0" Accel 0.0 0.0001
  388. }
  389.  
  390. //===========================================
  391.  
  392. event FlagOutlineHide
  393. {
  394. Animate OutlineImage Alpha "0" Linear 0.0 0.1
  395. }
  396.  
  397. // Local player flag pickup/drop
  398. event FlagOutline
  399. {
  400. RunEvent FlagOutlineHide 0.0
  401. Animate OutlineImage Alpha "255" Linear 0.1 0.2
  402.  
  403. Animate OutlineImage Position "c-200 140" Linear 0.1 0.2
  404. Animate OutlineImage Size "400 200" Linear 0.1 0.2
  405.  
  406. Animate OutlineImage Position "c-50 r137" Linear 0.7 0.2 [$WIN32]
  407. Animate OutlineImage Position "c-50 r158" Linear 0.7 0.2 [$X360]
  408. Animate OutlineImage Size "100 50" Linear 0.7 0.2
  409.  
  410. Animate OutlineImage Alpha "0" Linear 0.9 0.1
  411. }
  412.  
  413. //===========================================
  414.  
  415. // Spy Disguise
  416. event HudSpyDisguiseChanged
  417. {
  418. Animate PlayerStatusSpyOutlineImage Alpha "255" Linear 0.0 0.2
  419.  
  420. Animate PlayerStatusSpyOutlineImage Position "-22 400" Linear 0.0 0.2
  421. Animate PlayerStatusSpyOutlineImage Size "110 110" Linear 0.0 0.2
  422.  
  423. RunEvent HudSpyDisguiseHide 0.7
  424. }
  425.  
  426. event HudSpyDisguiseHide
  427. {
  428. Animate PlayerStatusSpyOutlineImage Position "1 493" Linear 0.0 0.2
  429. Animate PlayerStatusSpyOutlineImage Size "55 55" Linear 0.0 0.2
  430.  
  431. Animate PlayerStatusSpyOutlineImage Alpha "0" Linear 0.2 0.1
  432. }
  433.  
  434. event HudSpyDisguiseFadeIn
  435. {
  436. RunEvent HudSpyDisguiseChanged 0
  437. Animate PlayerStatusSpyImage Alpha "255" Linear 0.9 0.1
  438. }
  439.  
  440. event HudSpyDisguiseFadeOut
  441. {
  442. RunEvent HudSpyDisguiseChanged 0
  443. Animate PlayerStatusSpyImage Alpha "0" Linear 0.9 0.1
  444. }
  445.  
  446. //===========================================
  447.  
  448. // Show the Overtime panel
  449. event OvertimeShow
  450. {
  451. Animate OvertimeLabel Alpha "255" Linear 0.0 0.1
  452. Animate OvertimeBG Alpha "255" Linear 0.0 0.1
  453. }
  454.  
  455.  
  456. event HudSnapShotReminderIn
  457. {
  458. Animate ScreenshotPanel Position "c-83 -50" Linear 0.0 0.001
  459. Animate ScreenshotPanel Position "c-83 13" Spline 0.001 0.2
  460. }
  461.  
  462. event HudReplayReminderIn // Places the replay reminder in the same place as the snapshot reminder
  463. {
  464. Animate ReplayReminder Position "c-83 -50" Linear 0.0 0.001
  465. Animate ReplayReminder Position "c-83 13" Spline 0.001 0.2
  466. }
  467.  
  468. event HudReplayReminderIn2 // Puts the panel below the snapshot panel
  469. {
  470. Animate ReplayReminder Position "c-83 -50" Linear 0.0 0.001
  471. Animate ReplayReminder Position "c-83 53" Spline 0.001 0.2
  472. }
  473.  
  474. event HudReplayTipIn
  475. {
  476. Animate ReplayTip Position "10 -100" Linear 0.0 0.001
  477. Animate ReplayTip Position "10 6" Spline 0.001 0.1
  478. }
  479.  
  480. event HudReplayTipOut
  481. {
  482. Animate ReplayTip Position "10 6" Linear 0.0 0.001
  483. Animate ReplayTip Position "10 -100" Spline 0.001 0.1
  484. }
  485.  
  486. event HudTournamentSetupPanelOpen
  487. {
  488. Animate HudTournamentSetup Position "c-127 -35" Linear 0.0 0.001
  489. Animate HudTournamentSetup Position "c-127 50" Spline 0.001 0.2
  490. }
  491.  
  492. event HudTournamentSetupPanelClose
  493. {
  494. Animate HudTournamentSetup Position "c-127 36" Linear 0.0 0.001
  495. Animate HudTournamentSetup Position "c-127 -35" Spline 0.001 0.2
  496. }
  497.  
  498.  
  499. //====================================
  500.  
  501. // Flash the medic charge hud when we have full charge
  502.  
  503. event HudMedicCharged
  504. {
  505. Animate ChargeMeter FgColor "qtcwhite" Linear 0.0 0.1
  506. Animate ChargeMeter FgColor "qtcwhite" Linear 0.09 0.3
  507. Animate ChargeLabel FgColor "qtcwhite" Linear 0.0 0.1
  508. Animate CircleBG FgColor "sbbgb" Linear 0.0 0.1
  509. Animate ChargeLabel FgColor "qtcwhite" Linear 0.1 0.2
  510. Animate ChargeBox alpha "255" Linear 0.0 0.1
  511. Animate ChargeBox alpha "255" Linear 0.1 0.2
  512.  
  513.  
  514. RunEvent HudMedicChargedLoop 0.2
  515. }
  516.  
  517. // call to loop HudHealthBonusPulse
  518. event HudMedicChargedLoop
  519. {
  520. RunEvent HudMedicCharged 0.0
  521. }
  522.  
  523. event HudMedicChargedStop
  524. {
  525. StopEvent HudMedicCharged 0.0
  526. StopEvent HudMedicChargedLoop 0.0
  527.  
  528. Animate ChargeLabel FgColor "230 230 230 255" Linear 0.0 0.0
  529. Animate ChargeMeter FgColor "qtcDARKERwhite" Linear 0.0 0.0
  530. Animate CircleBG FgColor "30 30 30 0" Linear 0.1 0.2
  531.  
  532. }
  533.  
  534. //====================================
  535.  
  536. event VideoCaptionFadeIn
  537. {
  538. Animate VideoCaption Alpha "255" Linear 0.0 0.1
  539. }
  540.  
  541. event VideoCaptionFadeOut
  542. {
  543. Animate VideoCaption Alpha "0" Linear 0.0 0.1
  544. }
  545.  
  546. //====================================
  547.  
  548. // arena
  549.  
  550. event ArenaVsPanelOnShow
  551. {
  552. Animate bluepanel Position "-200 50" Linear 0.0 0.001
  553. Animate redpanel Position "r-200 140" Linear 0.0 0.001
  554. Animate vslabel Alpha "0" Linear 0.0 0.001
  555.  
  556. RunEvent ArenaVsPanelSlideIn 1.0
  557. RunEvent ArenaVsPanelSlideOut 4.8
  558. }
  559.  
  560. event ArenaVsPanelSlideIn
  561. {
  562. Animate bluepanel Position "c-100 50" Spline 0.0 0.2
  563. Animate redpanel Position "c-100 140" Spline 0.0 0.2
  564. Animate vslabel Alpha "255" Linear 0.15 0.2
  565. }
  566.  
  567. event ArenaVsPanelSlideOut
  568. {
  569. Animate bluepanel Position "-200 50" Spline 0.0 0.2
  570. Animate redpanel Position "r-200 140" Spline 0.0 0.2
  571. Animate vslabel Alpha "0" Linear 0.0 0.05
  572. }
  573.  
  574. //===========================================
  575.  
  576. //Cart Alarm Pulse
  577. event HudCartAlarmPulse
  578. {
  579. Animate EscortItemImageAlert Alpha "160" Linear 0.0 0.3
  580. Animate EscortItemImageAlert Alpha "0" Linear 0.6 0.3
  581.  
  582. RunEvent HudCartAlarmPulseLoop 1.2
  583. }
  584.  
  585. event HudCartAlarmPulseLoop
  586. {
  587. RunEvent HudCartAlarmPulse 0.0
  588. }
  589.  
  590. event HudCartAlarmPulseStop
  591. {
  592. StopEvent HudCartAlarmPulse 0.0
  593. StopEvent HudCartAlarmPulseLoop 0.0
  594. }
  595.  
  596. //===========================================
  597.  
  598. // Active Timer BG Pulse
  599. event ActiveTimerBGPulse
  600. {
  601. Animate ActiveTimerBG Alpha "0" Linear 0.1 0.1
  602. Animate ActiveTimerBG Alpha "255" Linear 0.3 0.1
  603.  
  604. Animate ActiveTimerBG Alpha "0" Linear 0.5 0.1
  605. Animate ActiveTimerBG Alpha "255" Linear 0.7 0.1
  606.  
  607. Animate ActiveTimerBG Alpha "0" Linear 0.9 0.1
  608. Animate ActiveTimerBG Alpha "255" Linear 1.1 0.1
  609. }
  610.  
  611. //===========================================
  612.  
  613. event TeamsFullArrowAnimate
  614. {
  615. Animate TeamsFullArrow Position "c-118 165" Linear 0 0
  616. Animate TeamsFullArrow Position "c-118 180" Linear 0 0.4
  617. Animate TeamsFullArrow Position "c-118 165" Linear 0.4 0.4
  618.  
  619. RunEvent TeamsFullArrowAnimateLoop 0.8
  620. }
  621.  
  622. event TeamsFullArrowAnimateLoop
  623. {
  624. RunEvent TeamsFullArrowAnimate 0.0
  625. }
  626.  
  627. event TeamsFullArrowAnimateEnd
  628. {
  629. StopEvent TeamsFullArrowAnimate 0.0
  630. StopEvent TeamsFullArrowAnimateLoop 0.0
  631. }
  632.  
  633. //===========================================
  634.  
  635. event TrainingHudBounce
  636. {
  637. Animate ObjectiveStatusTraining Position "c-160 r187" Linear 0 0
  638. Animate ObjectiveStatusTraining Position "c-160 r127" Bounce 0.0 2.0
  639. }
  640.  
  641. event TrainingPressSpacebarBlink
  642. {
  643. Animate PressSpacebarToContinue Alpha "255" Linear 0.0 0.1
  644. Animate PressSpacebarToContinue Alpha "0" Linear 0.2 0.1
  645.  
  646. Animate PressSpacebarToContinue Alpha "255" Linear 0.4 0.1
  647. Animate PressSpacebarToContinue Alpha "0" Linear 0.6 0.1
  648.  
  649. Animate PressSpacebarToContinue Alpha "255" Linear 0.8 0.1
  650. Animate PressSpacebarToContinue Alpha "0" Linear 1.0 0.1
  651.  
  652. Animate PressSpacebarToContinue Alpha "255" Linear 1.2 0.1
  653.  
  654. RunEvent TrainingPressSpacebarBlinkLoop 3.0
  655. }
  656.  
  657. event TrainingPressSpacebarBlinkLoop
  658. {
  659. RunEvent TrainingPressSpacebarBlink 0.0
  660. }
  661.  
  662. event TrainingPressSpacebarBlinkStop
  663. {
  664. StopEvent TrainingPressSpacebarBlink 0.0
  665. StopEvent TrainingPressSpacebarBlinkLoop 0.0
  666. }
  667.  
  668. //===========================================
  669.  
  670. event IntroMovieContinueBlink
  671. {
  672. Animate continue Alpha "255" Linear 0.0 0.1
  673. Animate continue Alpha "0" Linear 0.2 0.1
  674.  
  675. Animate continue Alpha "255" Linear 0.4 0.1
  676. Animate continue Alpha "0" Linear 0.6 0.1
  677.  
  678. Animate continue Alpha "255" Linear 0.8 0.1
  679. Animate continue Alpha "0" Linear 1.0 0.1
  680.  
  681. Animate continue Alpha "255" Linear 1.2 0.1
  682.  
  683. RunEvent IntroMovieContinueBlinkLoop 2.0
  684. }
  685.  
  686. event IntroMovieContinueBlinkLoop
  687. {
  688. RunEvent IntroMovieContinueBlink 0.0
  689. }
  690.  
  691. event IntroMovieContinueBlinkStop
  692. {
  693. StopEvent IntroMovieContinueBlink 0.0
  694. StopEvent IntroMovieContinueBlinkLoop 0.0
  695. }
  696.  
  697. //===========================================
  698.  
  699. event HasMOTDBlink
  700. {
  701. Animate MOTD_ShowButtonPanel_SB Alpha "255" Linear 0.0 0.1
  702. Animate MOTD_ShowButtonPanel_SB Alpha "0" Linear 0.2 0.1
  703.  
  704. Animate MOTD_ShowButtonPanel_SB Alpha "255" Linear 0.4 0.1
  705. Animate MOTD_ShowButtonPanel_SB Alpha "0" Linear 0.6 0.1
  706.  
  707. Animate MOTD_ShowButtonPanel_SB Alpha "255" Linear 0.8 0.1
  708. Animate MOTD_ShowButtonPanel_SB Alpha "0" Linear 1.0 0.1
  709.  
  710. Animate MOTD_ShowButtonPanel_SB Alpha "255" Linear 1.2 0.1
  711.  
  712. RunEvent HasMOTDBlinkLoop 2.0
  713. }
  714.  
  715. event HasMOTDBlinkLoop
  716. {
  717. RunEvent HasMOTDBlink 0.0
  718. }
  719.  
  720. event HasMOTDBlinkStop
  721. {
  722. StopEvent HasMOTDBlink 0.0
  723. StopEvent HasMOTDBlinkLoop 0.0
  724. Animate MOTD_ShowButtonPanel_SB Alpha "255" Linear 0.0 0.1
  725. }
  726.  
  727. //===========================================
  728.  
  729. event HasNotificationsBlink
  730. {
  731. Animate Notifications_ShowButtonPanel_SB Alpha "255" Linear 0.0 0.1
  732. Animate Notifications_ShowButtonPanel_SB Alpha "0" Linear 0.2 0.1
  733.  
  734. Animate Notifications_ShowButtonPanel_SB Alpha "255" Linear 0.4 0.1
  735. Animate Notifications_ShowButtonPanel_SB Alpha "0" Linear 0.6 0.1
  736.  
  737. Animate Notifications_ShowButtonPanel_SB Alpha "255" Linear 0.8 0.1
  738. Animate Notifications_ShowButtonPanel_SB Alpha "0" Linear 1.0 0.1
  739.  
  740. Animate Notifications_ShowButtonPanel_SB Alpha "255" Linear 1.2 0.1
  741.  
  742. RunEvent HasNotificationsBlinkLoop 2.0
  743. }
  744.  
  745. event HasNotificationsBlinkLoop
  746. {
  747. RunEvent HasNotificationsBlink 0.0
  748. }
  749.  
  750. event HasNotificationsBlinkStop
  751. {
  752. StopEvent HasNotificationsBlink 0.0
  753. StopEvent HasNotificationsBlinkLoop 0.0
  754. Animate Notifications_ShowButtonPanel_SB Alpha "255" Linear 0.0 0.1
  755. }
  756.  
  757. //===========================================
  758.  
  759. event AddToCartBlink
  760. {
  761. Animate CartButton BgColor "TanDark" Linear 0.0 0.01
  762. Animate CartButton BgColor "255 150 0 255" Linear 0.1 0.01
  763.  
  764. Animate CartButton BgColor "TanDark" Linear 0.2 0.01
  765. Animate CartButton BgColor "255 150 0 255" Linear 0.3 0.01
  766.  
  767. Animate CartButton BgColor "TanDark" Linear 0.4 0.01
  768. Animate CartButton BgColor "255 150 0 255" Linear 0.5 0.01
  769.  
  770. Animate CartButton BgColor "TanDark" Linear 0.6 0.01
  771. Animate CartButton BgColor "255 150 0 255" Linear 0.7 0.01
  772.  
  773. Animate CartButton BgColor "TanDark" Linear 0.8 0.01
  774. Animate CartButton BgColor "255 150 0 255" Linear 0.9 0.01
  775.  
  776. Animate CartButton BgColor "TanDark" Linear 1.0 0.01
  777. }
  778.  
  779. //===========================================
  780.  
  781. event NotificationsPresentBlink
  782. {
  783. Animate NotificationsPresentPanel Alpha "255" Linear 0.0 0.1
  784. Animate NotificationsPresentPanel Alpha "0" Linear 0.2 0.1
  785.  
  786. Animate NotificationsPresentPanel Alpha "255" Linear 0.4 0.1
  787. Animate NotificationsPresentPanel Alpha "0" Linear 0.6 0.1
  788.  
  789. Animate NotificationsPresentPanel Alpha "255" Linear 0.8 0.1
  790. Animate NotificationsPresentPanel Alpha "0" Linear 1.0 0.1
  791.  
  792. Animate NotificationsPresentPanel Alpha "255" Linear 1.2 0.1
  793.  
  794. RunEvent NotificationsPresentBlinkLoop 2.0
  795. }
  796.  
  797. event NotificationsPresentBlinkLoop
  798. {
  799. RunEvent NotificationsPresentBlink 0.0
  800. }
  801.  
  802. event NotificationsPresentBlinkStop
  803. {
  804. StopEvent NotificationsPresentBlink 0.0
  805. StopEvent NotificationsPresentBlinkLoop 0.0
  806. Animate NotificationsPresentPanel Alpha "255" Linear 0.0 0.1
  807. }
  808.  
  809. //===========================================
  810.  
  811. event DamagedPlayer
  812. {
  813. // empty
  814. Animate xHairSpread FgColor "255 10 10 255" Linear 0.0 0.0
  815. Animate xHairSpread FgColor "255 10 10 255" Linear 0.15 0.0
  816. Animate xHairSpread FgColor "255 255 255 225" Linear 0.20 0.0
  817.  
  818. // call to loop DamagedPlayerPulse
  819. event DamagedPlayerLoop
  820. {
  821. RunEvent DamagedPlayer 0.6
  822. }
  823.  
  824.  
  825. }
  826.  
  827. //===========================================
  828.  
  829. event SpyWarningFlash
  830. {
  831. Animate EnemyCountImageBG BgColor "RedSolid" Linear 0.0 0.01
  832. Animate EnemyCountImageBG BgColor "TanLight" Linear 0.21 0.01
  833.  
  834. RunEvent SpyWarningFlashLoop 0.42
  835. }
  836.  
  837. event SpyWarningFlashLoop
  838. {
  839. RunEvent SpyWarningFlash 0.0
  840. }
  841.  
  842. event SpyWarningFlashEnd
  843. {
  844. StopEvent SpyWarningFlash 0.0
  845. StopEvent SpyWarningFlashLoop 0.0
  846. }
  847.  
  848. event HudReadyPulse
  849. {
  850. Animate TournamentInstructionsLabel FgColor "TanLight" Linear 0.0 0.1
  851. Animate TournamentInstructionsLabel FgColor "210 210 210 255" Linear 0.3 0.4
  852.  
  853. RunEvent HudReadyPulseLoop 0.5
  854. }
  855.  
  856. event HudReadyPulseLoop
  857. {
  858. RunEvent HudReadyPulse 0.0
  859. }
  860.  
  861. event HudReadyPulseEnd
  862. {
  863. Animate TournamentInstructionsLabel FgColor "TanLight" Linear 0.0 0.1
  864.  
  865. StopEvent HudReadyPulse 0.0
  866. StopEvent HudReadyPulseLoop 0.0
  867. }
  868.  
  869. // Respec in Win
  870. event RespecEarnedPulse
  871. {
  872. Animate RespecTextLabelWin FgColor "TanLight" Linear 0.0 0.1
  873. Animate RespecTextLabelWin FgColor "RedSolid" Linear 0.3 0.4
  874.  
  875. RunEvent RespecEarnedPulseLoop 0.5
  876. }
  877.  
  878. event RespecEarnedPulseLoop
  879. {
  880. RunEvent RespecEarnedPulse 0.0
  881. }
  882.  
  883. event RespecEarnedPulseEnd
  884. {
  885. Animate RespecTextLabelWin FgColor "TanLight" Linear 0.0 0.1
  886.  
  887. StopEvent RespecEarnedPulse 0.0
  888. StopEvent RespecEarnedPulseLoop 0.0
  889. }
  890.  
  891. // Respec on Loss
  892. event RespecEarnedPulseLoss
  893. {
  894. Animate RespecTextLabelLoss FgColor "TanLight" Linear 0.0 0.1
  895. Animate RespecTextLabelLoss FgColor "RedSolid" Linear 0.3 0.4
  896.  
  897. RunEvent RespecEarnedPulseLoopLoss 0.5
  898. }
  899.  
  900. event RespecEarnedPulseLoopLoss
  901. {
  902. RunEvent RespecEarnedPulseLoss 0.0
  903. }
  904.  
  905. event RespecEarnedPulseEndLoss
  906. {
  907. Animate RespecTextLabelLoss FgColor "TanLight" Linear 0.0 0.1
  908. Animate RespecTextLabelLoss FgColor "TanLight" Linear 0.0 0.1
  909.  
  910. StopEvent RespecEarnedPulseLoss 0.0
  911. StopEvent RespecEarnedPulseLoopLoss 0.0
  912. }
  913.  
  914. event RDPositiveScorePulse
  915. {
  916. Animate Score FgColor "25 255 25 255" Linear 0.0 0.0
  917. Animate Score FgColor "TanLight" Linear 0.1 0.2
  918.  
  919. Animate Score Position "3 5" Deaccel 0.0 0.05
  920. Animate Score Position "3 10" Accel 0.05 0.2
  921.  
  922. Animate ScoreShadow FgColor "0 0 0 200" Deaccel 0.0 0.05
  923. Animate ScoreShadow FgColor "0 0 0 255" Accel 0.1 0.2
  924. }
  925.  
  926. event RDNegativeScorePulse
  927. {
  928. Animate Score FgColor "255 75 75 255" Linear 0.0 0.0
  929. Animate Score FgColor "TanLight" Linear 0.1 0.2
  930.  
  931. Animate Score Position "3 5" Deaccel 0.0 0.05
  932. Animate Score Position "3 10" Accel 0.05 0.2
  933.  
  934. Animate ScoreShadow FgColor "0 0 0 200" Deaccel 0.0 0.05
  935. Animate ScoreShadow FgColor "0 0 0 255" Accel 0.1 0.2
  936. }
  937.  
  938. event QuestNotification_Present
  939. {
  940. Animate MainContainer Position "r0 94" Deaccel 0 0
  941. Animate MainContainer Position "r115 94" Deaccel 0.01 0.4
  942. }
  943.  
  944. event QuestNotification_Hide
  945. {
  946. Animate MainContainer Position "r115 94" Deaccel 0 0
  947. Animate MainContainer Position "r0 94" Deaccel 0.01 0.4
  948. }
  949.  
  950. event ItemCard_ShowPinHint
  951. {
  952. Animate PinLabel Position "0 -20" Deaccel 0 0
  953.  
  954. Animate PinLabel FgColor "TanLight" Linear 0.2 0
  955. Animate PinLabel Position "0 0" Deaccel 0.2 0.2
  956. }
  957.  
  958. event ItemCard_HidePinHint
  959. {
  960. Animate PinLabel Position "0 5" Deaccel 0 0.3
  961.  
  962. Animate PinLabel Position "0 -20" Accel 0.3 0.1
  963. }
  964.  
  965. event ItemCard_ShowCloseButton
  966. {
  967. Animate CloseButton Position "-8 -68" Deaccel 0 0.3
  968.  
  969. Animate CloseButton Position "-8 -68" Accel 0.3 0.1
  970. }
  971.  
  972. event ItemCard_HideCloseButton
  973. {
  974. Animate CloseButton Position "-30 -90" Deaccel 0 0.0
  975. }
  976.  
  977. event QuestItem_StaticPhoto_Reveal
  978. {
  979. Animate StaticPhoto Alpha "0" Accel 0 2
  980. }
  981.  
  982. event HideStamp
  983. {
  984. SetVisible ApplyStampButton 0 0
  985. }
  986.  
  987. event CollectionCrafting_Intro
  988. {
  989. // Reset
  990. SetVisible ApplyStampButton 0 0
  991. SetVisible Stamp 0 0
  992. Animate Stamp xpos c140 Accel 0 0
  993. Animate DrawingPanel xpos c0 Accel 0 0
  994. Animate DrawingPanel wide 0 Accel 0 0
  995. Animate LetterFront xpos c0 Accel 0 0
  996. Animate LetterFront wide 0 Accel 0 0
  997. Animate LetterBack_Top xpos c-250 Accel 0 0
  998. Animate LetterBack_Top ypos 400 Accel 0 0
  999. Animate LetterBack_Top wide 500 Accel 0 0
  1000. Animate LetterBack_Bottom xpos c-250 Accel 0 0
  1001. Animate LetterBack_Bottom ypos 400 Accel 0 0
  1002. Animate LetterBack_Bottom wide 500 Accel 0 0
  1003. Animate LetterBack_Flap xpos c-250 Accel 0 0
  1004. Animate LetterBack_Flap ypos 400 Accel 0 0
  1005. Animate LetterBack_Flap wide 500 Accel 0 0
  1006. Animate LetterBack_Flap tall 0 Deaccel 0.6 0.4
  1007. Animate LetterBack_Top ypos 400 Accel 0 0
  1008. SetVisible ReturnModel 0 0
  1009. Animate SendEvelopeButton ypos 280 Accel 0 0
  1010. SetVisible SendEvelopeButton 0 0
  1011. SetVisible ResponseTimeout 0 0
  1012. SetVisible WaitingForResponse 0 0
  1013.  
  1014. SetVisible ShowExplanationsButton1 1 0
  1015. SetVisible ShowExplanationsButton2 0 0
  1016. Animate TradeUpContainer wide 800 Accel 0 0
  1017.  
  1018. // Slide paper down
  1019. Animate TradeUpContainer Position "0 60" Deaccel 0 0.3
  1020.  
  1021. // Slider BG up
  1022. Animate BG Position "0 34" Deaccel 0 0.3
  1023.  
  1024. // Fade dimmer down
  1025. Animate Dimmer Alpha "255" Linear 0 0.4
  1026. }
  1027.  
  1028. event CollectionCrafting_LetterStart
  1029. {
  1030. // Slide envelope up
  1031. FireCommand 0.0 "playsound ui/trade_up_envelope_slide_in.wav"
  1032. Animate LetterBack_Bottom ypos 60 Deaccel 0 0.3
  1033. Animate LetterBack_Flap ypos 60 Deaccel 0 0.3
  1034. Animate LetterBack_Top ypos 60 Deaccel 0 0.3
  1035. SetVisible ShowExplanationsButton1 0 0
  1036.  
  1037. // Close flap
  1038. FireCommand 0.3 "playsound ui/trade_up_envelope_fold.wav"
  1039. Animate LetterBack_Flap tall 250 Deaccel 0.4 0.2
  1040.  
  1041. // Start Flip
  1042. FireCommand 0.8 "playsound ui/trade_up_envelope_spin.wav"
  1043. Animate TradeUpContainer wide 0 Accel 0.8 0
  1044. Animate LetterBack_Bottom wide 0 Accel 0.8 0.2
  1045. Animate LetterBack_Bottom xpos c0 Accel 0.8 0.2
  1046. Animate LetterBack_Flap wide 0 Accel 0.8 0.2
  1047. Animate LetterBack_Flap xpos c0 Accel 0.8 0.2
  1048. Animate LetterBack_Top wide 0 Accel 0.8 0.2
  1049. Animate LetterBack_Top xpos c0 Accel 0.8 0.2
  1050.  
  1051. // End Flips
  1052. Animate LetterFront xpos c-250 Deaccel 1.0 0.2
  1053. Animate LetterFront wide 500 Deaccel 1.0 0.2
  1054. Animate DrawingPanel xpos c-250 Deaccel 1.0 0.2
  1055. Animate DrawingPanel wide 500 Deaccel 1.0 0.2
  1056. SetVisible ApplyStampButton 1 1.3
  1057. SetVisible ShowExplanationsButton2 1 1.3
  1058. }
  1059.  
  1060. event CollectionCrafting_PlaceStamp
  1061. {
  1062. SetVisible Stamp 1 0
  1063. SetVisible ApplyStampButton 0 0
  1064. FireCommand 0 "playsound ui/trade_up_apply_stamp.wav"
  1065. }
  1066.  
  1067. event CollectionCrafting_LetterSend
  1068. {
  1069. SetVisible ShowExplanationsButton2 0 0
  1070. SetVisible SendEvelopeButton 0 0
  1071. Animate Stamp xpos c70 Deaccel 0 0.3
  1072. Animate LetterFront xpos c-320 Deaccel 0 0.3
  1073. Animate DrawingPanel xpos c-320 Deaccel 0 0.3
  1074.  
  1075. RunEventChild BehindItemParticlePanel PlayEnvelopSendParticles 0.3
  1076. Animate Stamp xpos 1120 Accel 0.3 0.2
  1077. Animate LetterFront xpos 1000 Accel 0.3 0.2
  1078. Animate DrawingPanel xpos 1000 Accel 0.3 0.2
  1079. SetVisible CloseButton 0 0
  1080. FireCommand 0.2 "playsound ui/trade_up_envelope_slide_out.wav"
  1081. }
  1082.  
  1083. event PlayNewItemParticles
  1084. {
  1085. FireCommand 0 "start0"
  1086. }
  1087.  
  1088. event PlayCrateSmashParticles
  1089. {
  1090. FireCommand 0 "start1"
  1091. }
  1092.  
  1093. event PlayEnvelopSendParticles
  1094. {
  1095. FireCommand 0 "start2"
  1096. }
  1097.  
  1098. event ShowFoundLabels
  1099. {
  1100. Animate YouTradedForLabel alpha 0 Linear 0 0
  1101. Animate ItemName alpha 0 Linear 0 0
  1102.  
  1103. Animate YouTradedForLabel alpha 255 Linear 3 1
  1104. Animate ItemName alpha 255 Linear 3 1
  1105. }
  1106.  
  1107. event CollectionCrafting_ItemRecieved
  1108. {
  1109. RunEventChild NewItemPanel ShowFoundLabels 0
  1110. FireCommand 0 "playcratesequence1"
  1111. SetVisible NewItemPanel 0 0
  1112. SetVisible ReturnModel 1 0.05
  1113. RunEventChild BehindItemParticlePanel PlayCrateSmashParticles 0.2
  1114.  
  1115. FireCommand 0 "playsound ui/trade_up_crate_smash.wav"
  1116.  
  1117. SetVisible NewItemPanel 1 1.5
  1118. SetVisible CloseButton 1 1.5
  1119.  
  1120. FireCommand 2.1 "playcratesequence2"
  1121. RunEventChild BehindItemParticlePanel PlayNewItemParticles 1.5
  1122.  
  1123. FireCommand 1.0 "playsound ../player/taunt_medic_heroic.wav"
  1124. }
  1125.  
  1126. event CollectionCrafting_OKBlink_Repeatable
  1127. {
  1128. Animate OkButton FgColor Red Linear 0 0.1
  1129. Animate OkButton FgColor TanLight Linear 0.1 0.1
  1130. }
  1131.  
  1132. event CollectionCrafting_OKBlink
  1133. {
  1134. RunEvent CollectionCrafting_OKBlink_Repeatable 0
  1135. RunEvent CollectionCrafting_OKBlink_Repeatable 0.2
  1136. RunEvent CollectionCrafting_OKBlink_Repeatable 0.4
  1137. RunEvent CollectionCrafting_OKBlink_Repeatable 0.6
  1138. }
  1139.  
  1140.  
  1141. event CollectionCrafting_ShowSendButton
  1142. {
  1143. SetVisible SendEvelopeButton 1 0
  1144. Animate SendEvelopeButton ypos 320 Deaccel 0 0.5
  1145. }
  1146.  
  1147. event CollectionCrafting_ShowWaiting
  1148. {
  1149. SetVisible WaitingForResponse 1 0
  1150. }
  1151.  
  1152. event CollectionCrafting_HideWaiting
  1153. {
  1154. SetVisible WaitingForResponse 0 0
  1155. }
  1156.  
  1157. event CollectionCrafting_ShowFailure
  1158. {
  1159. SetVisible ResponseTimeout 1 0
  1160. SetVisible CloseButton 1 0
  1161. }
  1162.  
  1163. event CollectionCrafting_WaitForItemsOnly
  1164. {
  1165. // Set Everything Invisible
  1166. SetVisible ReturnModel 0 0
  1167. SetVisible SendEvelopeButton 0 0
  1168. SetVisible ResponseTimeout 0 0
  1169. SetVisible WaitingForResponse 0 0
  1170. SetVisible ShowExplanationsButton1 0 0
  1171. SetVisible ShowExplanationsButton2 0 0
  1172. SetVisible ShowExplanationsButton2 0 0
  1173. SetVisible SendEvelopeButton 0 0
  1174. SetVisible CloseButton 0 0
  1175.  
  1176. SetVisible ApplyStampButton 0 0
  1177. SetVisible Stamp 0 0
  1178. Animate Stamp xpos c140 Accel 0 0
  1179. Animate DrawingPanel xpos c0 Accel 0 0
  1180. Animate DrawingPanel wide 0 Accel 0 0
  1181. Animate LetterFront xpos c0 Accel 0 0
  1182. Animate LetterFront wide 0 Accel 0 0
  1183. Animate LetterBack_Top xpos c-250 Accel 0 0
  1184. Animate LetterBack_Top ypos 400 Accel 0 0
  1185. Animate LetterBack_Top wide 500 Accel 0 0
  1186. Animate LetterBack_Bottom xpos c-250 Accel 0 0
  1187. Animate LetterBack_Bottom ypos 400 Accel 0 0
  1188. Animate LetterBack_Bottom wide 500 Accel 0 0
  1189. Animate LetterBack_Flap xpos c-250 Accel 0 0
  1190. Animate LetterBack_Flap ypos 400 Accel 0 0
  1191. Animate LetterBack_Flap wide 500 Accel 0 0
  1192. Animate LetterBack_Flap tall 0 Deaccel 0.6 0.4
  1193. Animate LetterBack_Top ypos 400 Accel 0 0
  1194.  
  1195. // Slider BG up
  1196. Animate BG Position "0 34" Deaccel 0 0.3
  1197.  
  1198. // Fade dimmer down
  1199. Animate Dimmer Alpha "255" Linear 0 0.4
  1200. }
  1201. //--------------------------------------------------------------------------
  1202. event QuestItem_Identify_Expand
  1203. {
  1204. StopEvent QuestItem_Identify_Collapse 0
  1205. Animate Dimmer wide 285 Bias 0.1 0.0 0.4
  1206. Animate Dimmer xpos 0 Bias 0.1 0.0 0.4
  1207. }
  1208.  
  1209. event QuestItem_Identify_Collapse
  1210. {
  1211. StopEvent QuestItem_Identify_Expand 0
  1212. Animate Dimmer wide 0 Accel 0.4 0.4
  1213. Animate Dimmer xpos 142 Accel 0.4 0.4
  1214. }
  1215.  
  1216. event QuestItem_Complete_Expand
  1217. {
  1218. Animate Dimmer wide 285 Deaccel 0.4 0.1
  1219. Animate Dimmer xpos 0 Deaccel 0.4 0.1
  1220. }
  1221.  
  1222. event QuestItem_Complete_Collapse
  1223. {
  1224. Animate Dimmer wide 0 Accel 0 0.4
  1225. Animate Dimmer xpos 142 Accel 0 0.4
  1226. }
  1227.  
  1228. event QuestItem_Complete_Progress
  1229. {
  1230. Animate Dimmer wide 0 Linear 0 5
  1231. Animate Dimmer xpos 142 Linear 0 5
  1232. }
  1233.  
  1234. event QuestItem_Options_Flash
  1235. {
  1236. Animate OptionsButton FgColor LightOrange Linear 0 0.1
  1237. Animate OptionsButton FgColor TanLight Linear 0.1 0.1
  1238. Animate OptionsButton FgColor LightOrange Linear 0.2 0.1
  1239. Animate OptionsButton FgColor TanLight Linear 0.3 0.1
  1240. Animate OptionsButton FgColor LightOrange Linear 0.4 0.1
  1241. Animate OptionsButton FgColor TanLight Linear 0.5 0.1
  1242. }
  1243.  
  1244. //--------------------------------------------------------------------------
  1245. event QuestItem_Expand
  1246. {
  1247. Animate FrontFolderContainer ypos 240 Gain 0.75 0 0.4
  1248. RunEventChild IdentifyButtonContainer QuestItem_Identify_Expand 0
  1249. RunEventChild TurnInContainer QuestItem_Complete_Expand 0
  1250.  
  1251. SetInputEnabled FrontFolderContainer 0 0
  1252. RunEvent QuestItem_Options_Flash 1
  1253. }
  1254.  
  1255. event QuestItem_Collapse
  1256. {
  1257. Animate FrontFolderContainer ypos 0 Gain 0.75 0 0.4
  1258. RunEventChild IdentifyButtonContainer QuestItem_Identify_Collapse 0
  1259. RunEventChild TurnInContainer QuestItem_Complete_Collapse 0
  1260.  
  1261. SetInputEnabled FrontFolderContainer 1 0
  1262. }
  1263.  
  1264. event QuestItem_TurningIn
  1265. {
  1266. RunEventChild TurnInContainer QuestItem_Complete_Progress 0
  1267. }
  1268.  
  1269. event QuestItem_Reset
  1270. {
  1271. Animate FrontFolderContainer ypos 0 Linear 0 0
  1272. RunEventChild IdentifyButtonContainer QuestItem_Identify_Collapse 0
  1273. RunEventChild TurnInContainer QuestItem_Complete_Collapse 0
  1274.  
  1275. SetInputEnabled FrontFolderContainer 1 0
  1276. }
  1277.  
  1278. //--------------------------------------------------------------------------
  1279. event QuestItem_Operation2_Expand
  1280. {
  1281. StopEvent QuestItem_Operation2_Collapse 0
  1282.  
  1283. RunEventChild IdentifyButtonContainer QuestItem_Identify_Expand 0.4
  1284. RunEventChild TurnInContainer QuestItem_Complete_Expand 0.4
  1285.  
  1286. Animate FrontFolderContainer xpos -270 Gain 0.75 0.4 0.3
  1287. Animate BackFolderContainer xpos -270 Gain 0.75 0.4 0.3
  1288. Animate FrontFolderContainer xpos -10 Gain 0.75 0.7 0.3
  1289. Animate BackFolderContainer xpos 0 Gain 0.75 0.7 0.3
  1290. SetVisible FrontFolderContainer 0 0.7
  1291. SetVisible BackFolderContainer 1 0.7
  1292.  
  1293. SetInputEnabled FrontFolderContainer 0 0
  1294. RunEvent QuestItem_Options_Flash 1
  1295. }
  1296.  
  1297. event QuestItem_Operation2_Collapse
  1298. {
  1299. StopEvent QuestItem_Operation2_Expand 0
  1300.  
  1301. RunEventChild IdentifyButtonContainer QuestItem_Identify_Collapse 0
  1302. RunEventChild TurnInContainer QuestItem_Complete_Collapse 0
  1303.  
  1304. Animate FrontFolderContainer xpos -270 Gain 0.75 0.0 0.3
  1305. Animate BackFolderContainer xpos -270 Gain 0.75 0.0 0.3
  1306. Animate FrontFolderContainer xpos 0 Gain 0.75 0.3 0.4
  1307. Animate BackFolderContainer xpos 0 Gain 0.75 0.3 0.4
  1308. SetVisible FrontFolderContainer 1 0.3
  1309. SetVisible BackFolderContainer 0 0.3
  1310.  
  1311. SetInputEnabled FrontFolderContainer 1 0
  1312. }
  1313.  
  1314. event QuestItem_Operation2_TurningIn
  1315. {
  1316. RunEventChild TurnInContainer QuestItem_Complete_Progress 0
  1317. }
  1318.  
  1319. event QuestItem_Operation2_Reset
  1320. {
  1321. StopEvent QuestItem_Operation2_Collapse 0
  1322. StopEvent QuestItem_Operation2_Expand 0
  1323.  
  1324. RunEventChild IdentifyButtonContainer QuestItem_Identify_Collapse 0
  1325. RunEventChild TurnInContainer QuestItem_Complete_Collapse 0
  1326.  
  1327. Animate FrontFolderContainer xpos 0 Linear 0 0
  1328. Animate BackFolderContainer xpos 0 Linear 0 0
  1329. SetVisible FrontFolderContainer 1 0
  1330. SetVisible BackFolderContainer 0 0
  1331.  
  1332. SetInputEnabled FrontFolderContainer 1 0
  1333. }
  1334.  
  1335. //--------------------------------------------------------------------------
  1336. event QuestItem_DisableFrontMouse
  1337. {
  1338. SetVisible FrontInputProxyPanel 0 0
  1339. }
  1340.  
  1341. event QuestItem_EnableFrontMouse
  1342. {
  1343. SetVisible FrontInputProxyPanel 1 0
  1344. }
  1345.  
  1346. event QuestItem_Expand_Halloween
  1347. {
  1348. StopEvent QuestItem_Collapse_Halloween 0
  1349.  
  1350. // Immediately disable the mouse proxy so the inactive hint goes away
  1351. RunEventChild FrontFolderContainer QuestItem_DisableFrontMouse 0
  1352. SetInputEnabled FrontFolderContainer 0 0
  1353.  
  1354. // Slide the sleeve
  1355. Animate SleeveImage xpos 300 Bias 0.2 0.0 0.4
  1356. Animate EncodedStatus xpos 300 Bias 0.2 0.0 0.4
  1357. Animate ReadyToTurnInStatus xpos 300 Bias 0.2 0.0 0.4
  1358. Animate InactiveStatus xpos 300 Bias 0.2 0.0 0.4
  1359.  
  1360. // Once the sleeve is off, then "unroll" the paper
  1361. FireCommand 0.4 "playsound ui/quest_folder_open_halloween.wav"
  1362. RunEventChild IdentifyButtonContainer QuestItem_Identify_Expand 0.4
  1363. RunEventChild TurnInContainer QuestItem_Complete_Expand 0.4
  1364. Animate FrontFolderContainer ypos 240 Gain 0.75 0.4 0.4
  1365. Animate QuestPaperContainer tall 300 Gain 0.75 0.4 0.4
  1366.  
  1367. RunEvent QuestItem_Options_Flash 1
  1368. }
  1369.  
  1370. event QuestItem_Collapse_Halloween
  1371. {
  1372. StopEvent QuestItem_Expand_Halloween 0
  1373.  
  1374. // Roll up the paper
  1375. Animate FrontFolderContainer ypos 0 Gain 0.75 0 0.4
  1376. Animate QuestPaperContainer tall 70 Gain 0.75 0 0.4
  1377. RunEventChild IdentifyButtonContainer QuestItem_Identify_Collapse 0
  1378. RunEventChild TurnInContainer QuestItem_Complete_Collapse 0
  1379. RunEventChild FrontFolderContainer QuestItem_EnableFrontMouse 0
  1380.  
  1381. // Put the sleeve back
  1382. FireCommand 0.5 "playsound ui/quest_folder_keeper_slide_on_halloween.wav"
  1383.  
  1384. Animate SleeveImage xpos 15 Bias 0.8 0.5 0.2
  1385. Animate ReadyToTurnInStatus xpos 10 Bias 0.8 0.5 0.2
  1386. Animate InactiveStatus xpos 10 Bias 0.8 0.5 0.2
  1387. Animate EncodedStatus xpos 10 Bias 0.8 0.5 0.2
  1388. SetInputEnabled FrontFolderContainer 1 0
  1389. }
  1390.  
  1391. event QuestItem_Reset_Halloween
  1392. {
  1393. StopEvent QuestItem_Expand_Halloween 0
  1394. SetVisible FrontFolderContainer 1 0
  1395. RunEventChild FrontFolderContainer QuestItem_EnableFrontMouse 0
  1396.  
  1397. // Roll up the paper
  1398. Animate FrontFolderContainer ypos 0 Linear 0 0
  1399. Animate QuestPaperContainer tall 70 Linear 0 0
  1400. Animate EncodedStatus xpos 10 Bias 0 0 0
  1401. Animate ReadyToTurnInStatus xpos 10 Bias 0 0 0
  1402. Animate InactiveStatus xpos 10 Bias 0 0 0
  1403.  
  1404. // Put the sleeve back
  1405. Animate SleeveImage xpos 15 Linear 0 0
  1406. SetInputEnabled FrontFolderContainer 1 0
  1407. }
  1408.  
  1409. //--------------------------------------------------------------------------
  1410. event QuestItem_Front_Selected
  1411. {
  1412. StopEvent QuestItem_Front_OtherSelected 0
  1413. StopEvent QuestItem_Front_NoneSelected 0
  1414.  
  1415. Animate MainContainer ypos 0 Gain 0.75 0 0.4
  1416. }
  1417.  
  1418. event QuestItem_Front_OtherSelected
  1419. {
  1420. StopEvent QuestItem_Front_Selected 0
  1421. StopEvent QuestItem_Front_NoneSelected 0
  1422.  
  1423. Animate MainContainer ypos 300 Gain 0.75 0 0.4
  1424. }
  1425.  
  1426.  
  1427. event QuestItem_Front_NoneSelected
  1428. {
  1429. StopEvent QuestItem_Front_Selected 0
  1430. StopEvent QuestItem_Front_OtherSelected 0
  1431.  
  1432. Animate MainContainer ypos 120 Gain 0.75 0 0.4
  1433. }
  1434.  
  1435. //--------------------------------------------------------------------------
  1436. event QuestItem_Back_Selected
  1437. {
  1438. StopEvent QuestItem_Back_OtherSelected 0
  1439. StopEvent QuestItem_Back_NoneSelected 0
  1440.  
  1441. Animate MainContainer ypos 0 Gain 0.75 0 0.4
  1442. }
  1443.  
  1444. event QuestItem_Back_OtherSelected
  1445. {
  1446. StopEvent QuestItem_Back_Selected 0
  1447. StopEvent QuestItem_Back_NoneSelected 0
  1448.  
  1449. Animate MainContainer ypos 300 Gain 0.75 0 0.8
  1450. }
  1451.  
  1452.  
  1453. event QuestItem_Back_NoneSelected
  1454. {
  1455. StopEvent QuestItem_Back_Selected 0
  1456. StopEvent QuestItem_Back_OtherSelected 0
  1457.  
  1458. Animate MainContainer ypos 0 Gain 0.75 0 0.4
  1459. }
  1460.  
  1461. //--------------------------------------------------------------------------
  1462. event QuestItem_Highlight_On_Halloween
  1463. {
  1464. SetVisible GlowImage 1 0
  1465. Animate GlowImage Alpha 255 Bias 0.8 0 0.2
  1466. }
  1467.  
  1468. event QuestItem_Highlight_Off_Halloween
  1469. {
  1470. Animate GlowImage Alpha 0 Bias 0.8 0 0.2
  1471. }
  1472.  
  1473. //
RAW Paste Data Copied