Advertisement
Guest User

Untitled

a guest
Oct 29th, 2015
449
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 38.90 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 "qtcwhite" 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 "25" Linear 0.0 0.2
  208. Animate PlayerStatusHealthBonusImage Alpha "65" Linear 0.2 0.4
  209. Animate PlayerStatusHealthImageBGheal Alpha "255" Linear 0.0 0.2
  210. Animate PlayerStatusHealthImageBGheal Alpha "255" Linear 0.2 0.4
  211. Animate PlayerStatusHealthImageBG22 Alpha "0" Linear 0.0 0.0
  212. Animate PlayerStatusHealthValue Fgcolor "230 230 230 255" Linear 0.0 0.1
  213. Animate PlayerStatusHealthValue Fgcolor "65 85 135 255" Linear 0.09 0.3
  214. Animate PlayerStatusHealthValueSpec FgColor "230 230 230 255" Linear 0.0 0.1
  215. Animate PlayerStatusHealthValueSpec FgColor "230 230 230 255" Linear 0.1 0.2
  216. Animate PlayerStatusHealthValueSpec2 FgColor "qtcwhite" Linear 0.0 0.1
  217. Animate PlayerStatusHealthValueSpec2 FgColor "qtcwhite" Linear 0.1 0.2
  218. Animate PlayerStatusHealthImageBGHeal Fgcolor "0 9 255 255" Linear 0.0 0.2
  219. Animate PlayerStatusHealthImageBGHeal Fgcolor "0 9 255 255" Linear 0.2 0.4
  220. Animate PlayerStatusHealthImageBGHealtop Alpha "0" Linear 0.0 0.2
  221. Animate PlayerStatusHealthImageBGHealtop Alpha "0" Linear 0.2 0.4
  222. Animate PlayerStatusHealthImageBGHealbot Alpha "0" Linear 0.0 0.2
  223. Animate PlayerStatusHealthImageBGHealbot Alpha "0" Linear 0.2 0.4
  224. Animate PlayerStatusHealthImageBGHealright Alpha "0" Linear 0.0 0.2
  225. Animate PlayerStatusHealthImageBGHealright Alpha "0" Linear 0.2 0.4
  226. Animate PlayerHealthBG2 Alpha "145" Linear 0.0 0.2
  227. Animate PlayerHealthBG2 Alpha "165" Linear 0.2 0.4
  228. Animate PlayerHealthBGNorm Alpha "0" Linear 0.2 0.4
  229. Animate HealthBG alpha "40" Linear 0.1 0.2
  230. Animate HealthBG alpha "230" Linear 0.2 0.4
  231.  
  232. RunEvent HudHealthBonusPulseLoop 0.4
  233. }
  234.  
  235. // call to loop HudHealthBonusPulse
  236. event HudHealthBonusPulseLoop
  237. {
  238. RunEvent HudHealthBonusPulse 0.2
  239. }
  240.  
  241. event HudHealthBonusPulseStop
  242. {
  243. StopEvent HudHealthBonusPulse 0.0
  244. StopEvent HudHealthBonusPulseLoop 0.0
  245. Animate PlayerStatusHealthValue FgColor "230 230 230 255" Linear 0.0 0.0
  246. Animate PlayerStatusHealthValueSpec FgColor "230 230 230 255" Linear 0.0 0.0
  247. Animate PlayerStatusHealthValueSpec2 FgColor "230 230 230 255" Linear 0.0 0.0
  248. Animate SpecPlayerHealthBG BgColor "20 20 20 255" Linear 0.0 0.0
  249. Animate PlayerStatusHealthImageBGheal alpha "0" Linear 0.0 0.2
  250. Animate PlayerStatusHealthImageBGHealtop alpha "0" Linear 0.0 0.2
  251. Animate PlayerStatusHealthImageBGHealbot alpha "0" Linear 0.0 0.2
  252. Animate PlayerStatusHealthImageBGhealright alpha "0" Linear 0.0 0.2
  253. Animate PlayerHealthBG2 alpha "0" Linear 0.0 0.0
  254. Animate PlayerHealthBGNorm alpha "255" Linear 0.0 0.0
  255. Animate HealthBG Alpha "0" Linear 0.0 0.0
  256.  
  257. }
  258.  
  259. //===========================================
  260.  
  261. //Health Dying Pulse
  262. event HudHealthDyingPulse
  263. {
  264. Animate PlayerStatusHealthBonusImage Alpha "0" Linear 0.0 0.2
  265. Animate PlayerStatusHealthBonusImage Alpha "0" Linear 0.2 0.4
  266. Animate PlayerStatusHealthValue Fgcolor "qtcwhite" Linear 0.0 0.1
  267. Animate PlayerStatusHealthValue Fgcolor "245 53 64 255" Linear 0.09 0.3
  268. Animate PlayerStatusHealthValueSpec Fgcolor "235 75 75 255" Linear 0.0 0.1
  269. Animate PlayerStatusHealthValueSpec Fgcolor "235 75 75 255" Linear 0.09 0.3
  270. Animate PlayerStatusHealthImageBGHurt Alpha "255" Linear 0.0 0.075
  271. Animate PlayerStatusHealthImageBGHurt Alpha "255" Linear 0.125 0.075
  272. Animate PlayerStatusHealthImageBGHurtLeft Alpha "255" Linear 0.0 0.075
  273. Animate PlayerStatusHealthImageBGHurtLeft Alpha "255" Linear 0.125 0.075
  274. Animate PlayerStatusHealthImageBGHurttop Alpha "0" Linear 0.0 0.075
  275. Animate PlayerStatusHealthImageBGHurttop Alpha "0" Linear 0.125 0.075
  276. Animate PlayerStatusHealthImageBGHurtbot Alpha "0" Linear 0.0 0.075
  277. Animate PlayerStatusHealthImageBGHurtbot Alpha "0" Linear 0.125 0.075
  278. Animate PlayerHealthBG2hurtspec Alpha "145" Linear 0.0 0.075
  279. Animate PlayerStatusHealthValueSpec2 FgColor "qtcwhite" Linear 0.0 0.0
  280. Animate PlayerHealthBG2hurtspec Alpha "165" Linear 0.125 0.075
  281. Animate HealthBG2 alpha "40" Linear 0.1 0.2
  282. Animate HealthBG2 alpha "230" Linear 0.2 0.4
  283.  
  284.  
  285. RunEvent HudHealthDyingPulseLoop 0.4
  286. }
  287.  
  288. // call to loop HudHealthDyingPulse
  289. event HudHealthDyingPulseLoop
  290. {
  291. RunEvent HudHealthDyingPulse 0.2
  292. }
  293.  
  294. event HudHealthDyingPulseStop
  295. {
  296. StopEvent HudHealthDyingPulse 0.0
  297. StopEvent HudHealthDyingPulseLoop 0.0
  298. Animate PlayerStatusHealthValue Fgcolor "230 230 230 255" Linear 0.0 0.1
  299. Animate PlayerStatusHealthValueSpec FgColor "230 230 230 255" Linear 0.0 0.0
  300. Animate PlayerStatusHealthImageBGHurt Alpha "0" Linear 0.0 0.0
  301. Animate PlayerStatusHealthImageBGHurttop Alpha "0" Linear 0.0 0.0
  302. Animate PlayerStatusHealthImageBGHurtLeft Alpha "0" Linear 0.0 0.0
  303. Animate PlayerStatusHealthImageBGHurtbot Alpha "0" Linear 0.0 0.0
  304. Animate PlayerHealthBG2hurtspec Alpha "0" Linear 0.0 0.0
  305. Animate PlayerHealthBGNorm Alpha "255" Linear 0.0 0.0
  306. Animate HealthBG2 alpha "0" Linear 0.0 0.0
  307. }
  308.  
  309. //===========================================
  310. event HudLowAmmoPulse
  311. {
  312. Animate HudWeaponLowAmmoImage Alpha "0" Linear 0.0 0.075
  313. Animate HudWeaponLowAmmoImage Alpha "0" Linear 0.125 0.075
  314.  
  315. Animate AmmoInClip fgcolor "245 53 64 255" Linear 0.0 0.1
  316. Animate AmmoInClip fgcolor "245 53 64 255" Linear 0.09 0.3
  317. Animate AmmoInReserve fgcolor "245 53 64 255" Linear 0.0 0.1
  318. Animate AmmoInReserve fgcolor "245 53 64 255" Linear 0.09 0.3
  319. Animate AmmoNoClip fgcolor "245 53 64 255" Linear 0.0 0.1
  320. Animate AmmoNoClip fgcolor "245 53 64 255" Linear 0.09 0.3
  321. Animate PlayerLowAmmo alpha "245" Linear 0.0 0.075
  322. Animate PlayerStatusHealthValueSpec2 FgColor "230 230 230 255" Linear 0.0 0.0
  323. Animate PlayerLowAmmo alpha "255" Linear 0.125 0.075
  324. Animate AmmoGBG alpha "40" Linear 0.1 0.2
  325. Animate AmmoGBG alpha "230" Linear 0.2 0.4
  326.  
  327. RunEvent HudLowAmmoPulseLoop .4
  328. }
  329.  
  330. // call to loop HudLowAmmoPulse
  331. event HudLowAmmoPulseLoop
  332. {
  333. RunEvent HudLowAmmoPulse 0.4
  334. }
  335.  
  336. event HudLowAmmoPulseStop
  337. {
  338. StopEvent HudLowAmmoPulse 0.0
  339. StopEvent HudLowAmmoPulseLoop 0.0
  340.  
  341. Animate AmmoInClip fgcolor "qtcwhite" Linear 0.0 0.0
  342. Animate AmmoNoClip fgcolor "qtcwhite" Linear 0.0 0.0
  343. Animate AmmoInReserve fgcolor "qtcwhite" Linear 0.0 0.0
  344. Animate PlayerLowAmmo alpha "0" Linear 0.0 0.0
  345. Animate AmmoGBG Alpha "0" Linear 0.0 0.0
  346.  
  347. }
  348. ////////////////////////////
  349.  
  350. event ControlPointIconShrink
  351. {
  352. Animate HudControlPointIcons icon_expand "0" Linear 0.0 0.2
  353. }
  354.  
  355. event ControlPointIconGrow
  356. {
  357. Animate HudControlPointIcons icon_expand "4" Linear 0.0 0.2
  358. }
  359.  
  360. // Metal Account
  361.  
  362. //activecolor - instantly turn red, fade back to yellow
  363. event AccountMoneyRemoved
  364. {
  365. Animate HudAccount FgColor "HudIcon_Red" Linear 0.0 0.0001
  366. Animate HudAccount FgColor "OrangeDim" Accel 0.0 3.0
  367.  
  368. Animate HudAccount Ammo2Color "HudIcon_Red" Linear 0.0 0.0001
  369. Animate HudAccount Ammo2Color "0 0 0 0" Accel 0.0 3.0
  370. }
  371.  
  372. //activecolor - instantly turn green, fade back to yellow
  373. event AccountMoneyAdded
  374. {
  375. Animate HudAccount FgColor "HudIcon_Green" Linear 0.0 0.0001
  376. Animate HudAccount FgColor "OrangeDim" Accel 0.0 3.0
  377.  
  378. Animate HudAccount Ammo2Color "HudIcon_Green" Accel 0.0 0.0001
  379. Animate HudAccount Ammo2Color "0 0 0 0" Accel 0.0 3.0
  380. }
  381.  
  382. event AccountMoneyInvisible
  383. {
  384. Animate HudAccount FgColor "OrangeDim" Accel 0.0 0.0001
  385. Animate HudAccount Ammo2Color "0 0 0 0" Accel 0.0 0.0001
  386. }
  387.  
  388. //===========================================
  389.  
  390. event FlagOutlineHide
  391. {
  392. Animate OutlineImage Alpha "0" Linear 0.0 0.1
  393. }
  394.  
  395. // Local player flag pickup/drop
  396. event FlagOutline
  397. {
  398. RunEvent FlagOutlineHide 0.0
  399. Animate OutlineImage Alpha "255" Linear 0.1 0.2
  400.  
  401. Animate OutlineImage Position "c-200 140" Linear 0.1 0.2
  402. Animate OutlineImage Size "400 200" Linear 0.1 0.2
  403.  
  404. Animate OutlineImage Position "c-50 r137" Linear 0.7 0.2 [$WIN32]
  405. Animate OutlineImage Position "c-50 r158" Linear 0.7 0.2 [$X360]
  406. Animate OutlineImage Size "100 50" Linear 0.7 0.2
  407.  
  408. Animate OutlineImage Alpha "0" Linear 0.9 0.1
  409. }
  410.  
  411. //===========================================
  412.  
  413. // Spy Disguise
  414. event HudSpyDisguiseChanged
  415. {
  416. Animate PlayerStatusSpyOutlineImage Alpha "255" Linear 0.0 0.2
  417.  
  418. Animate PlayerStatusSpyOutlineImage Position "-22 400" Linear 0.0 0.2
  419. Animate PlayerStatusSpyOutlineImage Size "110 110" Linear 0.0 0.2
  420.  
  421. RunEvent HudSpyDisguiseHide 0.7
  422. }
  423.  
  424. event HudSpyDisguiseHide
  425. {
  426. Animate PlayerStatusSpyOutlineImage Position "1 493" Linear 0.0 0.2
  427. Animate PlayerStatusSpyOutlineImage Size "55 55" Linear 0.0 0.2
  428.  
  429. Animate PlayerStatusSpyOutlineImage Alpha "0" Linear 0.2 0.1
  430. }
  431.  
  432. event HudSpyDisguiseFadeIn
  433. {
  434. RunEvent HudSpyDisguiseChanged 0
  435. Animate PlayerStatusSpyImage Alpha "255" Linear 0.9 0.1
  436. }
  437.  
  438. event HudSpyDisguiseFadeOut
  439. {
  440. RunEvent HudSpyDisguiseChanged 0
  441. Animate PlayerStatusSpyImage Alpha "0" Linear 0.9 0.1
  442. }
  443.  
  444. //===========================================
  445.  
  446. // Show the Overtime panel
  447. event OvertimeShow
  448. {
  449. Animate OvertimeLabel Alpha "255" Linear 0.0 0.1
  450. Animate OvertimeBG Alpha "255" Linear 0.0 0.1
  451. }
  452.  
  453.  
  454. event HudSnapShotReminderIn
  455. {
  456. Animate ScreenshotPanel Position "c-83 -50" Linear 0.0 0.001
  457. Animate ScreenshotPanel Position "c-83 13" Spline 0.001 0.2
  458. }
  459.  
  460. event HudReplayReminderIn // Places the replay reminder in the same place as the snapshot reminder
  461. {
  462. Animate ReplayReminder Position "c-83 -50" Linear 0.0 0.001
  463. Animate ReplayReminder Position "c-83 13" Spline 0.001 0.2
  464. }
  465.  
  466. event HudReplayReminderIn2 // Puts the panel below the snapshot panel
  467. {
  468. Animate ReplayReminder Position "c-83 -50" Linear 0.0 0.001
  469. Animate ReplayReminder Position "c-83 53" Spline 0.001 0.2
  470. }
  471.  
  472. event HudReplayTipIn
  473. {
  474. Animate ReplayTip Position "10 -100" Linear 0.0 0.001
  475. Animate ReplayTip Position "10 6" Spline 0.001 0.1
  476. }
  477.  
  478. event HudReplayTipOut
  479. {
  480. Animate ReplayTip Position "10 6" Linear 0.0 0.001
  481. Animate ReplayTip Position "10 -100" Spline 0.001 0.1
  482. }
  483.  
  484. event HudTournamentSetupPanelOpen
  485. {
  486. Animate HudTournamentSetup Position "c-127 -35" Linear 0.0 0.001
  487. Animate HudTournamentSetup Position "c-127 50" Spline 0.001 0.2
  488. }
  489.  
  490. event HudTournamentSetupPanelClose
  491. {
  492. Animate HudTournamentSetup Position "c-127 36" Linear 0.0 0.001
  493. Animate HudTournamentSetup Position "c-127 -35" Spline 0.001 0.2
  494. }
  495.  
  496.  
  497. //====================================
  498.  
  499. // Flash the medic charge hud when we have full charge
  500.  
  501. event HudMedicCharged
  502. {
  503. Animate ChargeMeter FgColor "qtcwhite" Linear 0.0 0.1
  504. Animate ChargeMeter FgColor "qtcwhite" Linear 0.09 0.3
  505. Animate ChargeLabel FgColor "qtcwhite" Linear 0.0 0.1
  506. Animate CircleBG FgColor "sbbgb" Linear 0.0 0.1
  507. Animate ChargeLabel FgColor "qtcwhite" Linear 0.1 0.2
  508. Animate ChargeBox alpha "255" Linear 0.0 0.1
  509. Animate ChargeBox alpha "255" Linear 0.1 0.2
  510.  
  511.  
  512. RunEvent HudMedicChargedLoop 0.2
  513. }
  514.  
  515. // call to loop HudHealthBonusPulse
  516. event HudMedicChargedLoop
  517. {
  518. RunEvent HudMedicCharged 0.0
  519. }
  520.  
  521. event HudMedicChargedStop
  522. {
  523. StopEvent HudMedicCharged 0.0
  524. StopEvent HudMedicChargedLoop 0.0
  525.  
  526. Animate ChargeLabel FgColor "230 230 230 255" Linear 0.0 0.0
  527. Animate ChargeMeter FgColor "qtcDARKERwhite" Linear 0.0 0.0
  528. Animate CircleBG FgColor "30 30 30 0" Linear 0.1 0.2
  529.  
  530. }
  531.  
  532. //====================================
  533.  
  534. event VideoCaptionFadeIn
  535. {
  536. Animate VideoCaption Alpha "255" Linear 0.0 0.1
  537. }
  538.  
  539. event VideoCaptionFadeOut
  540. {
  541. Animate VideoCaption Alpha "0" Linear 0.0 0.1
  542. }
  543.  
  544. //====================================
  545.  
  546. // arena
  547.  
  548. event ArenaVsPanelOnShow
  549. {
  550. Animate bluepanel Position "-200 50" Linear 0.0 0.001
  551. Animate redpanel Position "r-200 140" Linear 0.0 0.001
  552. Animate vslabel Alpha "0" Linear 0.0 0.001
  553.  
  554. RunEvent ArenaVsPanelSlideIn 1.0
  555. RunEvent ArenaVsPanelSlideOut 4.8
  556. }
  557.  
  558. event ArenaVsPanelSlideIn
  559. {
  560. Animate bluepanel Position "c-100 50" Spline 0.0 0.2
  561. Animate redpanel Position "c-100 140" Spline 0.0 0.2
  562. Animate vslabel Alpha "255" Linear 0.15 0.2
  563. }
  564.  
  565. event ArenaVsPanelSlideOut
  566. {
  567. Animate bluepanel Position "-200 50" Spline 0.0 0.2
  568. Animate redpanel Position "r-200 140" Spline 0.0 0.2
  569. Animate vslabel Alpha "0" Linear 0.0 0.05
  570. }
  571.  
  572. //===========================================
  573.  
  574. //Cart Alarm Pulse
  575. event HudCartAlarmPulse
  576. {
  577. Animate EscortItemImageAlert Alpha "160" Linear 0.0 0.3
  578. Animate EscortItemImageAlert Alpha "0" Linear 0.6 0.3
  579.  
  580. RunEvent HudCartAlarmPulseLoop 1.2
  581. }
  582.  
  583. event HudCartAlarmPulseLoop
  584. {
  585. RunEvent HudCartAlarmPulse 0.0
  586. }
  587.  
  588. event HudCartAlarmPulseStop
  589. {
  590. StopEvent HudCartAlarmPulse 0.0
  591. StopEvent HudCartAlarmPulseLoop 0.0
  592. }
  593.  
  594. //===========================================
  595.  
  596. // Active Timer BG Pulse
  597. event ActiveTimerBGPulse
  598. {
  599. Animate ActiveTimerBG Alpha "0" Linear 0.1 0.1
  600. Animate ActiveTimerBG Alpha "255" Linear 0.3 0.1
  601.  
  602. Animate ActiveTimerBG Alpha "0" Linear 0.5 0.1
  603. Animate ActiveTimerBG Alpha "255" Linear 0.7 0.1
  604.  
  605. Animate ActiveTimerBG Alpha "0" Linear 0.9 0.1
  606. Animate ActiveTimerBG Alpha "255" Linear 1.1 0.1
  607. }
  608.  
  609. //===========================================
  610.  
  611. event TeamsFullArrowAnimate
  612. {
  613. Animate TeamsFullArrow Position "c-118 165" Linear 0 0
  614. Animate TeamsFullArrow Position "c-118 180" Linear 0 0.4
  615. Animate TeamsFullArrow Position "c-118 165" Linear 0.4 0.4
  616.  
  617. RunEvent TeamsFullArrowAnimateLoop 0.8
  618. }
  619.  
  620. event TeamsFullArrowAnimateLoop
  621. {
  622. RunEvent TeamsFullArrowAnimate 0.0
  623. }
  624.  
  625. event TeamsFullArrowAnimateEnd
  626. {
  627. StopEvent TeamsFullArrowAnimate 0.0
  628. StopEvent TeamsFullArrowAnimateLoop 0.0
  629. }
  630.  
  631. //===========================================
  632.  
  633. event TrainingHudBounce
  634. {
  635. Animate ObjectiveStatusTraining Position "c-160 r187" Linear 0 0
  636. Animate ObjectiveStatusTraining Position "c-160 r127" Bounce 0.0 2.0
  637. }
  638.  
  639. event TrainingPressSpacebarBlink
  640. {
  641. Animate PressSpacebarToContinue Alpha "255" Linear 0.0 0.1
  642. Animate PressSpacebarToContinue Alpha "0" Linear 0.2 0.1
  643.  
  644. Animate PressSpacebarToContinue Alpha "255" Linear 0.4 0.1
  645. Animate PressSpacebarToContinue Alpha "0" Linear 0.6 0.1
  646.  
  647. Animate PressSpacebarToContinue Alpha "255" Linear 0.8 0.1
  648. Animate PressSpacebarToContinue Alpha "0" Linear 1.0 0.1
  649.  
  650. Animate PressSpacebarToContinue Alpha "255" Linear 1.2 0.1
  651.  
  652. RunEvent TrainingPressSpacebarBlinkLoop 3.0
  653. }
  654.  
  655. event TrainingPressSpacebarBlinkLoop
  656. {
  657. RunEvent TrainingPressSpacebarBlink 0.0
  658. }
  659.  
  660. event TrainingPressSpacebarBlinkStop
  661. {
  662. StopEvent TrainingPressSpacebarBlink 0.0
  663. StopEvent TrainingPressSpacebarBlinkLoop 0.0
  664. }
  665.  
  666. //===========================================
  667.  
  668. event IntroMovieContinueBlink
  669. {
  670. Animate continue Alpha "255" Linear 0.0 0.1
  671. Animate continue Alpha "0" Linear 0.2 0.1
  672.  
  673. Animate continue Alpha "255" Linear 0.4 0.1
  674. Animate continue Alpha "0" Linear 0.6 0.1
  675.  
  676. Animate continue Alpha "255" Linear 0.8 0.1
  677. Animate continue Alpha "0" Linear 1.0 0.1
  678.  
  679. Animate continue Alpha "255" Linear 1.2 0.1
  680.  
  681. RunEvent IntroMovieContinueBlinkLoop 2.0
  682. }
  683.  
  684. event IntroMovieContinueBlinkLoop
  685. {
  686. RunEvent IntroMovieContinueBlink 0.0
  687. }
  688.  
  689. event IntroMovieContinueBlinkStop
  690. {
  691. StopEvent IntroMovieContinueBlink 0.0
  692. StopEvent IntroMovieContinueBlinkLoop 0.0
  693. }
  694.  
  695. //===========================================
  696.  
  697. event HasMOTDBlink
  698. {
  699. Animate MOTD_ShowButtonPanel_SB Alpha "255" Linear 0.0 0.1
  700. Animate MOTD_ShowButtonPanel_SB Alpha "0" Linear 0.2 0.1
  701.  
  702. Animate MOTD_ShowButtonPanel_SB Alpha "255" Linear 0.4 0.1
  703. Animate MOTD_ShowButtonPanel_SB Alpha "0" Linear 0.6 0.1
  704.  
  705. Animate MOTD_ShowButtonPanel_SB Alpha "255" Linear 0.8 0.1
  706. Animate MOTD_ShowButtonPanel_SB Alpha "0" Linear 1.0 0.1
  707.  
  708. Animate MOTD_ShowButtonPanel_SB Alpha "255" Linear 1.2 0.1
  709.  
  710. RunEvent HasMOTDBlinkLoop 2.0
  711. }
  712.  
  713. event HasMOTDBlinkLoop
  714. {
  715. RunEvent HasMOTDBlink 0.0
  716. }
  717.  
  718. event HasMOTDBlinkStop
  719. {
  720. StopEvent HasMOTDBlink 0.0
  721. StopEvent HasMOTDBlinkLoop 0.0
  722. Animate MOTD_ShowButtonPanel_SB Alpha "255" Linear 0.0 0.1
  723. }
  724.  
  725. //===========================================
  726.  
  727. event HasNotificationsBlink
  728. {
  729. Animate Notifications_ShowButtonPanel_SB Alpha "255" Linear 0.0 0.1
  730. Animate Notifications_ShowButtonPanel_SB Alpha "0" Linear 0.2 0.1
  731.  
  732. Animate Notifications_ShowButtonPanel_SB Alpha "255" Linear 0.4 0.1
  733. Animate Notifications_ShowButtonPanel_SB Alpha "0" Linear 0.6 0.1
  734.  
  735. Animate Notifications_ShowButtonPanel_SB Alpha "255" Linear 0.8 0.1
  736. Animate Notifications_ShowButtonPanel_SB Alpha "0" Linear 1.0 0.1
  737.  
  738. Animate Notifications_ShowButtonPanel_SB Alpha "255" Linear 1.2 0.1
  739.  
  740. RunEvent HasNotificationsBlinkLoop 2.0
  741. }
  742.  
  743. event HasNotificationsBlinkLoop
  744. {
  745. RunEvent HasNotificationsBlink 0.0
  746. }
  747.  
  748. event HasNotificationsBlinkStop
  749. {
  750. StopEvent HasNotificationsBlink 0.0
  751. StopEvent HasNotificationsBlinkLoop 0.0
  752. Animate Notifications_ShowButtonPanel_SB Alpha "255" Linear 0.0 0.1
  753. }
  754.  
  755. //===========================================
  756.  
  757. event AddToCartBlink
  758. {
  759. Animate CartButton BgColor "TanDark" Linear 0.0 0.01
  760. Animate CartButton BgColor "255 150 0 255" Linear 0.1 0.01
  761.  
  762. Animate CartButton BgColor "TanDark" Linear 0.2 0.01
  763. Animate CartButton BgColor "255 150 0 255" Linear 0.3 0.01
  764.  
  765. Animate CartButton BgColor "TanDark" Linear 0.4 0.01
  766. Animate CartButton BgColor "255 150 0 255" Linear 0.5 0.01
  767.  
  768. Animate CartButton BgColor "TanDark" Linear 0.6 0.01
  769. Animate CartButton BgColor "255 150 0 255" Linear 0.7 0.01
  770.  
  771. Animate CartButton BgColor "TanDark" Linear 0.8 0.01
  772. Animate CartButton BgColor "255 150 0 255" Linear 0.9 0.01
  773.  
  774. Animate CartButton BgColor "TanDark" Linear 1.0 0.01
  775. }
  776.  
  777. //===========================================
  778.  
  779. event NotificationsPresentBlink
  780. {
  781. Animate NotificationsPresentPanel Alpha "255" Linear 0.0 0.1
  782. Animate NotificationsPresentPanel Alpha "0" Linear 0.2 0.1
  783.  
  784. Animate NotificationsPresentPanel Alpha "255" Linear 0.4 0.1
  785. Animate NotificationsPresentPanel Alpha "0" Linear 0.6 0.1
  786.  
  787. Animate NotificationsPresentPanel Alpha "255" Linear 0.8 0.1
  788. Animate NotificationsPresentPanel Alpha "0" Linear 1.0 0.1
  789.  
  790. Animate NotificationsPresentPanel Alpha "255" Linear 1.2 0.1
  791.  
  792. RunEvent NotificationsPresentBlinkLoop 2.0
  793. }
  794.  
  795. event NotificationsPresentBlinkLoop
  796. {
  797. RunEvent NotificationsPresentBlink 0.0
  798. }
  799.  
  800. event NotificationsPresentBlinkStop
  801. {
  802. StopEvent NotificationsPresentBlink 0.0
  803. StopEvent NotificationsPresentBlinkLoop 0.0
  804. Animate NotificationsPresentPanel Alpha "255" Linear 0.0 0.1
  805. }
  806.  
  807. //===========================================
  808.  
  809. event DamagedPlayer
  810. {
  811. // empty
  812. Animate xHairSpread FgColor "255 10 10 255" Linear 0.0 0.0
  813. Animate xHairSpread FgColor "255 10 10 255" Linear 0.15 0.0
  814. Animate xHairSpread FgColor "255 255 255 225" Linear 0.20 0.0
  815.  
  816. // call to loop DamagedPlayerPulse
  817. event DamagedPlayerLoop
  818. {
  819. RunEvent DamagedPlayer 0.6
  820. }
  821.  
  822.  
  823. }
  824.  
  825. //===========================================
  826.  
  827. event SpyWarningFlash
  828. {
  829. Animate EnemyCountImageBG BgColor "RedSolid" Linear 0.0 0.01
  830. Animate EnemyCountImageBG BgColor "TanLight" Linear 0.21 0.01
  831.  
  832. RunEvent SpyWarningFlashLoop 0.42
  833. }
  834.  
  835. event SpyWarningFlashLoop
  836. {
  837. RunEvent SpyWarningFlash 0.0
  838. }
  839.  
  840. event SpyWarningFlashEnd
  841. {
  842. StopEvent SpyWarningFlash 0.0
  843. StopEvent SpyWarningFlashLoop 0.0
  844. }
  845.  
  846. event HudReadyPulse
  847. {
  848. Animate TournamentInstructionsLabel FgColor "TanLight" Linear 0.0 0.1
  849. Animate TournamentInstructionsLabel FgColor "210 210 210 255" Linear 0.3 0.4
  850.  
  851. RunEvent HudReadyPulseLoop 0.5
  852. }
  853.  
  854. event HudReadyPulseLoop
  855. {
  856. RunEvent HudReadyPulse 0.0
  857. }
  858.  
  859. event HudReadyPulseEnd
  860. {
  861. Animate TournamentInstructionsLabel FgColor "TanLight" Linear 0.0 0.1
  862.  
  863. StopEvent HudReadyPulse 0.0
  864. StopEvent HudReadyPulseLoop 0.0
  865. }
  866.  
  867. // Respec in Win
  868. event RespecEarnedPulse
  869. {
  870. Animate RespecTextLabelWin FgColor "TanLight" Linear 0.0 0.1
  871. Animate RespecTextLabelWin FgColor "RedSolid" Linear 0.3 0.4
  872.  
  873. RunEvent RespecEarnedPulseLoop 0.5
  874. }
  875.  
  876. event RespecEarnedPulseLoop
  877. {
  878. RunEvent RespecEarnedPulse 0.0
  879. }
  880.  
  881. event RespecEarnedPulseEnd
  882. {
  883. Animate RespecTextLabelWin FgColor "TanLight" Linear 0.0 0.1
  884.  
  885. StopEvent RespecEarnedPulse 0.0
  886. StopEvent RespecEarnedPulseLoop 0.0
  887. }
  888.  
  889. // Respec on Loss
  890. event RespecEarnedPulseLoss
  891. {
  892. Animate RespecTextLabelLoss FgColor "TanLight" Linear 0.0 0.1
  893. Animate RespecTextLabelLoss FgColor "RedSolid" Linear 0.3 0.4
  894.  
  895. RunEvent RespecEarnedPulseLoopLoss 0.5
  896. }
  897.  
  898. event RespecEarnedPulseLoopLoss
  899. {
  900. RunEvent RespecEarnedPulseLoss 0.0
  901. }
  902.  
  903. event RespecEarnedPulseEndLoss
  904. {
  905. Animate RespecTextLabelLoss FgColor "TanLight" Linear 0.0 0.1
  906. Animate RespecTextLabelLoss FgColor "TanLight" Linear 0.0 0.1
  907.  
  908. StopEvent RespecEarnedPulseLoss 0.0
  909. StopEvent RespecEarnedPulseLoopLoss 0.0
  910. }
  911. event HideStamp
  912. {
  913. SetVisible ApplyStampButton 0 0
  914. }
  915.  
  916. event CollectionCrafting_Intro
  917. {
  918. // Reset
  919. SetVisible ApplyStampButton 0 0
  920. SetVisible Stamp 0 0
  921. Animate Stamp xpos c140 Accel 0 0
  922. Animate DrawingPanel xpos c0 Accel 0 0
  923. Animate DrawingPanel wide 0 Accel 0 0
  924. Animate LetterFront xpos c0 Accel 0 0
  925. Animate LetterFront wide 0 Accel 0 0
  926. Animate LetterBack_Top xpos c-250 Accel 0 0
  927. Animate LetterBack_Top ypos 400 Accel 0 0
  928. Animate LetterBack_Top wide 500 Accel 0 0
  929. Animate LetterBack_Bottom xpos c-250 Accel 0 0
  930. Animate LetterBack_Bottom ypos 400 Accel 0 0
  931. Animate LetterBack_Bottom wide 500 Accel 0 0
  932. Animate LetterBack_Flap xpos c-250 Accel 0 0
  933. Animate LetterBack_Flap ypos 400 Accel 0 0
  934. Animate LetterBack_Flap wide 500 Accel 0 0
  935. Animate LetterBack_Flap tall 0 Deaccel 0.6 0.4
  936. Animate LetterBack_Top ypos 400 Accel 0 0
  937. SetVisible ReturnModel 0 0
  938. Animate SendEvelopeButton ypos 280 Accel 0 0
  939. SetVisible SendEvelopeButton 0 0
  940. SetVisible ResponseTimeout 0 0
  941. SetVisible WaitingForResponse 0 0
  942.  
  943. SetVisible ShowExplanationsButton1 1 0
  944. SetVisible ShowExplanationsButton2 0 0
  945. Animate TradeUpContainer wide 800 Accel 0 0
  946.  
  947. // Slide paper down
  948. Animate TradeUpContainer Position "0 60" Deaccel 0 0.3
  949.  
  950. // Slider BG up
  951. Animate BG Position "0 34" Deaccel 0 0.3
  952.  
  953. // Fade dimmer down
  954. Animate Dimmer Alpha "255" Linear 0 0.4
  955. }
  956.  
  957. event CollectionCrafting_LetterStart
  958. {
  959. // Slide envelope up
  960. FireCommand 0.0 "playsound ui/trade_up_envelope_slide_in.wav"
  961. Animate LetterBack_Bottom ypos 60 Deaccel 0 0.3
  962. Animate LetterBack_Flap ypos 60 Deaccel 0 0.3
  963. Animate LetterBack_Top ypos 60 Deaccel 0 0.3
  964. SetVisible ShowExplanationsButton1 0 0
  965.  
  966. // Close flap
  967. FireCommand 0.3 "playsound ui/trade_up_envelope_fold.wav"
  968. Animate LetterBack_Flap tall 250 Deaccel 0.4 0.2
  969.  
  970. // Start Flip
  971. FireCommand 0.8 "playsound ui/trade_up_envelope_spin.wav"
  972. Animate TradeUpContainer wide 0 Accel 0.8 0
  973. Animate LetterBack_Bottom wide 0 Accel 0.8 0.2
  974. Animate LetterBack_Bottom xpos c0 Accel 0.8 0.2
  975. Animate LetterBack_Flap wide 0 Accel 0.8 0.2
  976. Animate LetterBack_Flap xpos c0 Accel 0.8 0.2
  977. Animate LetterBack_Top wide 0 Accel 0.8 0.2
  978. Animate LetterBack_Top xpos c0 Accel 0.8 0.2
  979.  
  980. // End Flips
  981. Animate LetterFront xpos c-250 Deaccel 1.0 0.2
  982. Animate LetterFront wide 500 Deaccel 1.0 0.2
  983. Animate DrawingPanel xpos c-250 Deaccel 1.0 0.2
  984. Animate DrawingPanel wide 500 Deaccel 1.0 0.2
  985. SetVisible ApplyStampButton 1 1.3
  986. SetVisible ShowExplanationsButton2 1 1.3
  987. }
  988.  
  989. event CollectionCrafting_PlaceStamp
  990. {
  991. SetVisible Stamp 1 0
  992. SetVisible ApplyStampButton 0 0
  993. FireCommand 0 "playsound ui/trade_up_apply_stamp.wav"
  994. }
  995.  
  996. event CollectionCrafting_LetterSend
  997. {
  998. SetVisible ShowExplanationsButton2 0 0
  999. SetVisible SendEvelopeButton 0 0
  1000. Animate Stamp xpos c70 Deaccel 0 0.3
  1001. Animate LetterFront xpos c-320 Deaccel 0 0.3
  1002. Animate DrawingPanel xpos c-320 Deaccel 0 0.3
  1003.  
  1004. RunEventChild BehindItemParticlePanel PlayEnvelopSendParticles 0.3
  1005. Animate Stamp xpos 1120 Accel 0.3 0.2
  1006. Animate LetterFront xpos 1000 Accel 0.3 0.2
  1007. Animate DrawingPanel xpos 1000 Accel 0.3 0.2
  1008. SetVisible CloseButton 0 0
  1009. FireCommand 0.2 "playsound ui/trade_up_envelope_slide_out.wav"
  1010. }
  1011.  
  1012. event PlayNewItemParticles
  1013. {
  1014. FireCommand 0 "start0"
  1015. }
  1016.  
  1017. event PlayCrateSmashParticles
  1018. {
  1019. FireCommand 0 "start1"
  1020. }
  1021.  
  1022. event PlayEnvelopSendParticles
  1023. {
  1024. FireCommand 0 "start2"
  1025. }
  1026.  
  1027. event ShowFoundLabels
  1028. {
  1029. Animate YouTradedForLabel alpha 0 Linear 0 0
  1030. Animate ItemName alpha 0 Linear 0 0
  1031.  
  1032. Animate YouTradedForLabel alpha 255 Linear 3 1
  1033. Animate ItemName alpha 255 Linear 3 1
  1034. }
  1035.  
  1036. event CollectionCrafting_ItemRecieved
  1037. {
  1038. RunEventChild NewItemPanel ShowFoundLabels 0
  1039. FireCommand 0 "playcratesequence1"
  1040. SetVisible NewItemPanel 0 0
  1041. SetVisible ReturnModel 1 0.05
  1042. RunEventChild BehindItemParticlePanel PlayCrateSmashParticles 0.2
  1043.  
  1044. FireCommand 0 "playsound ui/trade_up_crate_smash.wav"
  1045.  
  1046. SetVisible NewItemPanel 1 1.5
  1047. SetVisible CloseButton 1 1.5
  1048.  
  1049. FireCommand 2.1 "playcratesequence2"
  1050. RunEventChild BehindItemParticlePanel PlayNewItemParticles 1.5
  1051.  
  1052. FireCommand 1.0 "playsound ../player/taunt_medic_heroic.wav"
  1053. }
  1054.  
  1055. event CollectionCrafting_OKBlink_Repeatable
  1056. {
  1057. Animate OkButton FgColor Red Linear 0 0.1
  1058. Animate OkButton FgColor TanLight Linear 0.1 0.1
  1059. }
  1060.  
  1061. event CollectionCrafting_OKBlink
  1062. {
  1063. RunEvent CollectionCrafting_OKBlink_Repeatable 0
  1064. RunEvent CollectionCrafting_OKBlink_Repeatable 0.2
  1065. RunEvent CollectionCrafting_OKBlink_Repeatable 0.4
  1066. RunEvent CollectionCrafting_OKBlink_Repeatable 0.6
  1067. }
  1068.  
  1069.  
  1070. event CollectionCrafting_ShowSendButton
  1071. {
  1072. SetVisible SendEvelopeButton 1 0
  1073. Animate SendEvelopeButton ypos 320 Deaccel 0 0.5
  1074. }
  1075.  
  1076. event CollectionCrafting_ShowWaiting
  1077. {
  1078. SetVisible WaitingForResponse 1 0
  1079. }
  1080.  
  1081. event CollectionCrafting_HideWaiting
  1082. {
  1083. SetVisible WaitingForResponse 0 0
  1084. }
  1085.  
  1086. event CollectionCrafting_ShowFailure
  1087. {
  1088. SetVisible ResponseTimeout 1 0
  1089. SetVisible CloseButton 1 0
  1090. }
  1091.  
  1092. //--------------------------------------------------------------------------
  1093. event QuestItem_Identify_Expand
  1094. {
  1095. StopEvent QuestItem_Identify_Collapse 0
  1096. Animate Dimmer wide 285 Bias 0.1 0.0 0.4
  1097. Animate Dimmer xpos 0 Bias 0.1 0.0 0.4
  1098. }
  1099.  
  1100. event QuestItem_Identify_Collapse
  1101. {
  1102. StopEvent QuestItem_Identify_Expand 0
  1103. Animate Dimmer wide 0 Accel 0.4 0.4
  1104. Animate Dimmer xpos 142 Accel 0.4 0.4
  1105. }
  1106.  
  1107. event QuestItem_Complete_Expand
  1108. {
  1109. Animate Dimmer wide 285 Deaccel 0.4 0.1
  1110. Animate Dimmer xpos 0 Deaccel 0.4 0.1
  1111. }
  1112.  
  1113. event QuestItem_Complete_Collapse
  1114. {
  1115. Animate Dimmer wide 0 Accel 0 0.4
  1116. Animate Dimmer xpos 142 Accel 0 0.4
  1117. }
  1118.  
  1119. event QuestItem_Complete_Progress
  1120. {
  1121. Animate Dimmer wide 0 Linear 0 5
  1122. Animate Dimmer xpos 142 Linear 0 5
  1123. }
  1124.  
  1125. //--------------------------------------------------------------------------
  1126. event QuestItem_Expand
  1127. {
  1128. Animate FrontFolderContainer ypos 240 Gain 0.75 0 0.4
  1129. RunEventChild IdentifyButtonContainer QuestItem_Identify_Expand 0
  1130. RunEventChild TurnInContainer QuestItem_Complete_Expand 0
  1131. }
  1132.  
  1133. event QuestItem_Collapse
  1134. {
  1135. Animate FrontFolderContainer ypos 0 Gain 0.75 0 0.4
  1136. RunEventChild IdentifyButtonContainer QuestItem_Identify_Collapse 0
  1137. RunEventChild TurnInContainer QuestItem_Complete_Collapse 0
  1138. }
  1139.  
  1140. event QuestItem_TurningIn
  1141. {
  1142. RunEventChild TurnInContainer QuestItem_Complete_Progress 0
  1143. }
  1144.  
  1145. event QuestItem_Reset
  1146. {
  1147. Animate FrontFolderContainer ypos 0 Linear 0 0
  1148. RunEventChild IdentifyButtonContainer QuestItem_Identify_Collapse 0
  1149. RunEventChild TurnInContainer QuestItem_Complete_Collapse 0
  1150. }
  1151.  
  1152. //--------------------------------------------------------------------------
  1153. event QuestItem_DisableFrontMouse
  1154. {
  1155. SetVisible FrontInputProxyPanel 0 0
  1156. }
  1157.  
  1158. event QuestItem_EnableFrontMouse
  1159. {
  1160. SetVisible FrontInputProxyPanel 1 0
  1161. }
  1162.  
  1163. event QuestItem_Expand_Halloween
  1164. {
  1165. StopEvent QuestItem_Collapse_Halloween 0
  1166.  
  1167. // Immediately disable the mouse proxy so the inactive hint goes away
  1168. RunEventChild FrontFolderContainer QuestItem_DisableFrontMouse 0
  1169.  
  1170. // Slide the sleeve
  1171. Animate SleeveImage xpos 300 Bias 0.2 0.0 0.4
  1172. Animate EncodedStatus xpos 300 Bias 0.2 0.0 0.4
  1173. Animate ReadyToTurnInStatus xpos 300 Bias 0.2 0.0 0.4
  1174. Animate InactiveStatus xpos 300 Bias 0.2 0.0 0.4
  1175.  
  1176. // Once the sleeve is off, then "unroll" the paper
  1177. FireCommand 0.4 "playsound ui/quest_folder_open_halloween.wav"
  1178. RunEventChild IdentifyButtonContainer QuestItem_Identify_Expand 0.4
  1179. RunEventChild TurnInContainer QuestItem_Complete_Expand 0.4
  1180. Animate FrontFolderContainer ypos 240 Gain 0.75 0.4 0.4
  1181. Animate QuestPaperContainer tall 300 Gain 0.75 0.4 0.4
  1182.  
  1183. SetVisible FrontFolderContainer 0 0.8
  1184. }
  1185.  
  1186. event QuestItem_Collapse_Halloween
  1187. {
  1188. StopEvent QuestItem_Expand_Halloween 0
  1189.  
  1190. // Roll up the paper
  1191. Animate FrontFolderContainer ypos 0 Gain 0.75 0 0.4
  1192. Animate QuestPaperContainer tall 70 Gain 0.75 0 0.4
  1193. RunEventChild IdentifyButtonContainer QuestItem_Identify_Collapse 0
  1194. RunEventChild TurnInContainer QuestItem_Complete_Collapse 0
  1195. RunEventChild FrontFolderContainer QuestItem_EnableFrontMouse 0
  1196.  
  1197. // Put the sleeve back
  1198. FireCommand 0.5 "playsound ui/quest_folder_keeper_slide_on_halloween.wav"
  1199.  
  1200. Animate SleeveImage xpos 15 Bias 0.8 0.5 0.2
  1201. Animate ReadyToTurnInStatus xpos 10 Bias 0.8 0.5 0.2
  1202. Animate InactiveStatus xpos 10 Bias 0.8 0.5 0.2
  1203. Animate EncodedStatus xpos 10 Bias 0.8 0.5 0.2
  1204.  
  1205. SetVisible FrontFolderContainer 1 0
  1206. }
  1207.  
  1208. event QuestItem_Reset_Halloween
  1209. {
  1210. StopEvent QuestItem_Expand_Halloween 0
  1211. SetVisible FrontFolderContainer 1 0
  1212. RunEventChild FrontFolderContainer QuestItem_EnableFrontMouse 0
  1213.  
  1214. // Roll up the paper
  1215. Animate FrontFolderContainer ypos 0 Linear 0 0
  1216. Animate QuestPaperContainer tall 70 Linear 0 0
  1217. Animate EncodedStatus xpos 10 Bias 0 0 0
  1218. Animate ReadyToTurnInStatus xpos 10 Bias 0 0 0
  1219. Animate InactiveStatus xpos 10 Bias 0 0 0
  1220.  
  1221. // Put the sleeve back
  1222. Animate SleeveImage xpos 15 Linear 0 0
  1223. }
  1224.  
  1225. //--------------------------------------------------------------------------
  1226. event QuestItem_Front_Selected
  1227. {
  1228. StopEvent QuestItem_Front_OtherSelected 0
  1229. StopEvent QuestItem_Front_NoneSelected 0
  1230.  
  1231. Animate MainContainer ypos 0 Gain 0.75 0 0.4
  1232. }
  1233.  
  1234. event QuestItem_Front_OtherSelected
  1235. {
  1236. StopEvent QuestItem_Front_Selected 0
  1237. StopEvent QuestItem_Front_NoneSelected 0
  1238.  
  1239. Animate MainContainer ypos 300 Gain 0.75 0 0.4
  1240. }
  1241.  
  1242.  
  1243. event QuestItem_Front_NoneSelected
  1244. {
  1245. StopEvent QuestItem_Front_Selected 0
  1246. StopEvent QuestItem_Front_OtherSelected 0
  1247.  
  1248. Animate MainContainer ypos 180 Gain 0.75 0 0.4
  1249. }
  1250.  
  1251. //--------------------------------------------------------------------------
  1252. event QuestItem_Back_Selected
  1253. {
  1254. StopEvent QuestItem_Back_OtherSelected 0
  1255. StopEvent QuestItem_Back_NoneSelected 0
  1256.  
  1257. Animate MainContainer ypos 0 Gain 0.75 0 0.4
  1258. }
  1259.  
  1260. event QuestItem_Back_OtherSelected
  1261. {
  1262. StopEvent QuestItem_Back_Selected 0
  1263. StopEvent QuestItem_Back_NoneSelected 0
  1264.  
  1265. Animate MainContainer ypos 300 Gain 0.75 0 0.8
  1266. }
  1267.  
  1268.  
  1269. event QuestItem_Back_NoneSelected
  1270. {
  1271. StopEvent QuestItem_Back_Selected 0
  1272. StopEvent QuestItem_Back_OtherSelected 0
  1273.  
  1274. Animate MainContainer ypos 100 Gain 0.75 0 0.4
  1275. }
  1276.  
  1277. //--------------------------------------------------------------------------
  1278. event QuestItem_Highlight_On_Halloween
  1279. {
  1280. SetVisible GlowImage 1 0
  1281. Animate GlowImage Alpha 255 Bias 0.8 0 0.2
  1282. }
  1283.  
  1284. event QuestItem_Highlight_Off_Halloween
  1285. {
  1286. Animate GlowImage Alpha 0 Bias 0.8 0 0.2
  1287. }
  1288.  
  1289.  
  1290. //
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement