Advertisement
Guest User

Untitled

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