Advertisement
Guest User

Untitled

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