home *** CD-ROM | disk | FTP | other *** search
/ GameStar 2006 January / Gamestar_80_2006-01_dvd.iso / DVDStar / Akce / Half-Life2 / hl2as_beta7_full.exe / scripts / HudAnimations.txt < prev    next >
Encoding:
Text File  |  2005-07-06  |  18.0 KB  |  641 lines

  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. //
  23. //    RunEvent <event name> <start time>
  24. //        starts another even running at the specified time
  25. //
  26. //    StopEvent <event name> <start time>
  27. //        stops another event that is current running at the specified time
  28. //
  29. //    StopAnimation <panel name> <variable> <start time>
  30. //        stops all animations refering to the specified variable in the specified panel
  31. //
  32. //    StopPanelAnimations <panel name> <start time>
  33. //        stops all active animations operating on the specified panel
  34. //
  35. //
  36. // Useful game console commands:
  37. //    cl_Animationinfo <hudelement name> or <panelname> 
  38. //        displays all the animatable variables for the hud element
  39. //
  40.  
  41.  
  42. event LevelInit
  43. {
  44. }
  45.  
  46. event FadeOutTeamLine
  47. {
  48.     // make the display visible
  49.     Animate TeamDisplay Alpha         "0"        Linear 0.0 0.25
  50. }
  51.  
  52. event FadeInTeamLine
  53. {
  54.     // make the display visible
  55.     Animate TeamDisplay Alpha         "255"        Linear 0.0 0.5
  56. }
  57.  
  58. event OpenWeaponSelectionMenu
  59. {
  60.     StopEvent CloseWeaponSelectionMenu    0.0
  61.     StopEvent WeaponPickup                0.0
  62.     StopEvent FadeOutWeaponSelectionMenu    0.0
  63.  
  64.     // make the display visible
  65.     Animate HudWeaponSelection Alpha         "128"        Linear 0.0 0.1
  66.     Animate HudWeaponSelection SelectionAlpha     "255"        Linear 0.0 0.1
  67.     Animate HudWeaponSelection FgColor        "FgColor"    Linear 0.0 0.1
  68.     Animate HudWeaponSelection TextColor        "BrightFg"    Linear 0.0 0.1
  69.     Animate HudWeaponSelection TextScan        "1"         Linear 0.0 0.1
  70. }
  71.  
  72. event CloseWeaponSelectionMenu
  73. {
  74.     // hide the whole thing near immediately
  75.     Animate HudWeaponSelection FgColor        "0 0 0 0"    Linear 0.0 0.1
  76.     Animate HudWeaponSelection TextColor        "0 0 0 0"    Linear 0.0 0.1
  77.     Animate HudWeaponSelection Alpha        "0"         Linear 0.0 0.1
  78.     Animate HudWeaponSelection SelectionAlpha     "0"         Linear 0.0 0.1
  79. }
  80.  
  81. event FadeOutWeaponSelectionMenu
  82. {
  83.     // slowly hide the whole thing
  84.     Animate HudWeaponSelection FgColor        "0 0 0 0"    Linear 0.0 1.5
  85.     Animate HudWeaponSelection TextColor        "0 0 0 0"    Linear 0.0 1.5
  86.     Animate HudWeaponSelection Alpha        "0"         Linear 0.0 1.5
  87.     Animate HudWeaponSelection SelectionAlpha     "0"         Linear 0.0 1.5
  88. }
  89.  
  90. event SuitAuxPowerMax
  91. {
  92.     // hide the suit power
  93.     Animate HudSuitPower BgColor        "0 0 0 0"        Linear 0.0 0.4
  94.     Animate HudSuitPower AuxPowerColor    "0 0 0 0"        Linear 0.0 0.4
  95. }
  96.  
  97. event SuitAuxPowerNotMax
  98. {
  99.     // show suit power
  100.     Animate HudSuitPower BgColor        "BgColor"        Linear 0.0 0.4
  101.     Animate HudSuitPower AuxPowerColor    "255 220 0 220"        Linear 0.0 0.4
  102. }
  103.  
  104. event SuitAuxPowerDecreasedBelow25
  105. {
  106.     // make color red
  107.     Animate HudSuitPower AuxPowerColor    "255 0 0 220"        Linear 0.0 0.4
  108. }
  109.  
  110. event SuitAuxPowerIncreasedAbove25
  111. {
  112.     // make colr bright
  113.     Animate HudSuitPower AuxPowerColor    "255 220 0 220"        Linear 0.0 0.4
  114. }
  115.  
  116. event SuitAuxPowerNoItemsActive
  117. {
  118.     // resize the aux power to be the smallest size
  119.     Animate HudSuitPower Size            "102 26"            Linear 0.0 0.4
  120.     Animate HudSuitPower Position        "16 400"            Linear 0.0 0.4
  121. //    Animate HudSuitPower text_xpos        "8"                    Linear 0.0 0.4
  122. //    Animate HudSuitPower text_ypos        "15"                Linear 0.0 0.4
  123. }
  124.  
  125. event SuitAuxPowerOneItemActive
  126. {
  127.     // resize the aux power to fit one item
  128.     Animate HudSuitPower Size            "102 36"            Linear 0.0 0.4
  129.     Animate HudSuitPower Position        "16 390"            Linear 0.0 0.4
  130. }
  131.  
  132. event SuitAuxPowerTwoItemsActive
  133. {
  134.     // resize the aux power to fit two items
  135.     Animate HudSuitPower Size            "102 46"            Linear 0.0 0.4
  136.     Animate HudSuitPower Position        "16 380"            Linear 0.0 0.4
  137. }
  138.  
  139. event SuitAuxPowerThreeItemsActive
  140. {
  141.     // resize the aux power to fit three items
  142.     Animate HudSuitPower Size            "102 56"            Linear 0.0 0.4
  143.     Animate HudSuitPower Position        "16 370"            Linear 0.0 0.4
  144. }
  145.  
  146. event SuitFlashlightOn
  147. {
  148.     Animate HudFlashlight TextColor        "255 220 0 255"    Linear 0.0 0.1
  149.     Animate HudFlashlight TextColor        "255 220 0 160"    Deaccel 0.1 0.75
  150.     Animate HudFlashlight BgColor        "BgColor"    Linear 0.0 0.75
  151. }
  152.  
  153. event SuitFlashlightOff
  154. {
  155.     StopEvent SuitFlashlightOn    0.0
  156.     Animate HudFlashlight TextColor        "0 0 0 0"    Linear 0.0 0.4
  157.     Animate HudFlashlight BgColor        "0 0 0 0"    Linear 0.0 0.4
  158. }
  159.  
  160. event HudTakeDamageFront
  161. {
  162. }
  163.  
  164. event HudTakeDamageLeft
  165. {
  166.     Animate HudDamageIndicator DmgColorLeft        "255 88 0 200"    Linear 0.0 0.0
  167.     Animate HudDamageIndicator DmgColorLeft        "255 0 0 200"    Linear 0.0 0.3
  168.     Animate HudDamageIndicator DmgColorLeft        "255 0 0 0"    Deaccel 0.3 0.5
  169. }
  170.  
  171. event HudTakeDamageRight
  172. {
  173.     Animate HudDamageIndicator DmgColorRight        "255 88 0 200"    Linear 0.0 0.0
  174.     Animate HudDamageIndicator DmgColorRight        "255 0 0 200"    Linear 0.0 0.3
  175.     Animate HudDamageIndicator DmgColorRight        "255 0 0 0"    Deaccel 0.3 0.5
  176. }
  177.  
  178. event HudTakeDamageBehind
  179. {
  180.     RunEvent HudTakeDamageLeft    0.0
  181.     RunEvent HudTakeDamageRight    0.0
  182. }
  183.  
  184. event HudTakeDamageHighLeft
  185. {
  186.     Animate HudDamageIndicator DmgHighColorLeft    "255 88 0 255"    Linear 0.0 0.0
  187.     Animate HudDamageIndicator DmgHighColorLeft    "255 0 0 200"    Linear 0.0 0.4
  188.     Animate HudDamageIndicator DmgHighColorLeft    "255 0 0 0"    Deaccel 0.4 2.4
  189. }
  190.  
  191. event HudTakeDamageHighRight
  192. {
  193.     Animate HudDamageIndicator DmgHighColorRight    "255 88 0 255"    Linear 0.0 0.0
  194.     Animate HudDamageIndicator DmgHighColorRight    "255 0 0 200"    Linear 0.0 0.4
  195.     Animate HudDamageIndicator DmgHighColorRight    "255 0 0 0"    Deaccel    0.4 2.4
  196. }
  197.  
  198. event HudTakeDamageHigh
  199. {
  200.     Animate HudDamageIndicator DmgFullscreenColor    "255 88 0 200"    Linear 0.0 0.0
  201.     Animate HudDamageIndicator DmgFullscreenColor    "255 0 0 200"    Linear 0.0 0.4
  202.     Animate HudDamageIndicator DmgFullscreenColor    "255 0 0 0"    Deaccel 0.4 2.4
  203. }
  204.  
  205. event HudTakeDamageDrown
  206. {
  207.     RunEvent HudTakeDamageBehind 0.0
  208. }
  209.  
  210. event HudTakeDamagePoison
  211. {
  212.     Animate HudDamageIndicator DmgFullscreenColor    "255 236 128 240"    Linear 0.0 0.0
  213.     Animate HudDamageIndicator DmgFullscreenColor    "255 236 128 0"        Deaccel 0.4 0.8
  214. }
  215.  
  216. event HudTakeDamageBurn
  217. {
  218.     Animate HudDamageIndicator DmgFullscreenColor    "255 0 0 200"    Linear 0.0 0.0
  219.     Animate HudDamageIndicator DmgFullscreenColor    "255 0 0 0"    Deaccel 0.2 0.4
  220. }
  221.  
  222. event HudTakeDamageRadiation
  223. {
  224.     Animate HudDamageIndicator DmgFullscreenColor    "255 255 255 128"    Deaccel 0.0 0.1
  225.     Animate HudDamageIndicator DmgFullscreenColor    "255 255 255 0"        Deaccel 0.1 0.4
  226.     RunEvent HudTakeDamageBehind 0.0
  227. }
  228.  
  229. event HudPlayerDeath
  230. {
  231.     StopEvent    HealthLoop  0.0
  232.     StopEvent    HealthPulse 0.0
  233.  
  234.     Animate HudDamageIndicator DmgFullscreenColor    "255 0 0 8"        Deaccel 0.1 0.2
  235.     Animate HudDamageIndicator DmgFullscreenColor    "255 0 0 48"        Deaccel 0.3 4.0
  236. }
  237.  
  238. event HealthIncreasedAbove20
  239. {
  240.     StopEvent    HealthLoop  0.0
  241.     StopEvent    HealthPulse 0.0
  242.     StopEvent    HealthLow   0.0
  243.  
  244.     Animate    HudHealth    BgColor    "BgColor"    Linear    0.0    0.0
  245.     
  246.     Animate    HudHealth    TextColor "FgColor" Linear 0.0 0.04
  247.     Animate    HudHealth    FgColor   "FgColor" Linear 0.0 0.03
  248.     
  249.     Animate    HudHealth        Blur        "3"            Linear    0.0        0.1
  250.     Animate    HudHealth        Blur        "0"            Deaccel    0.1        2.0
  251. }
  252.  
  253. event HealthIncreasedBelow20
  254. {
  255.     Animate HudHealth    FgColor        "BrightFg"    Linear    0.0        0.25
  256.     Animate HudHealth    FgColor        "FgColor"        Linear    0.3        0.75
  257.     
  258.     Animate HudHealth        Blur        "3"            Linear    0.0        0.1
  259.     Animate HudHealth        Blur        "0"            Deaccel    0.1        2.0
  260. }
  261.  
  262. event SuitPowerIncreasedAbove20
  263. {
  264.     StopEvent    SuitLoop 0.0
  265.     StopEvent    SuitPulse 0.0
  266.     StopEvent    SuitPowerZero    0.0
  267.  
  268.     Animate    HudSuit     Alpha        "255"            Linear 0.0 0.0
  269.  
  270.     Animate    HudSuit        BgColor        "BgColor"    Linear    0.0    0.0
  271.     
  272.     Animate    HudSuit     TextColor    "FgColor"    Linear 0.0 0.05
  273.     Animate    HudSuit        FgColor        "FgColor"    Linear 0.0 0.05
  274.     
  275.     Animate    HudSuit        Blur        "3"            Linear    0.0        0.1
  276.     Animate    HudSuit        Blur        "0"            Deaccel    0.1        2.0
  277. }
  278.  
  279.  
  280. event SuitPowerIncreasedBelow20
  281. {
  282.     StopEvent        SuitPowerZero    0.0
  283.     Animate    HudSuit     Alpha        "255"            Linear 0.0 0.0
  284.  
  285.     Animate HudSuit        FgColor        "BrightFg"    Linear    0.0        0.25
  286.     Animate HudSuit        FgColor        "FgColor"    Linear    0.3        0.75
  287.     
  288.     Animate HudSuit        Blur        "3"            Linear    0.0        0.1
  289.     Animate HudSuit        Blur        "0"            Deaccel    0.1        2.0
  290. }
  291.  
  292. event SuitPowerZero
  293. {
  294.     StopEvent    SuitLoop 0.0
  295.     StopEvent    SuitPulse 0.0
  296.     StopEvent    SuitArmorLow 0.0
  297.     StopEvent    SuitDamageTaken 0.0
  298.  
  299.     Animate    HudSuit Alpha        "0"            Linear 0.0 0.4
  300. }
  301.  
  302. event TestMovement
  303. {
  304.     Animate HudHealth    Position    "256 120"    Linear    0.0        2.0
  305.     Animate HudHealth    Size        "128 24"    Linear    0.0        1.5
  306. }
  307.  
  308. event HealthDamageTaken
  309. {
  310.     Animate HudHealth    FgColor        "BrightFg"    Linear    0.0        0.25
  311.     Animate HudHealth    FgColor        "FgColor"        Linear    0.3        0.75
  312.     
  313.     Animate HudHealth        Blur        "3"            Linear    0.0        0.1
  314.     Animate HudHealth        Blur        "0"            Deaccel    0.1        2.0
  315.     
  316.     Animate HudHealth TextColor        "BrightFg"    Linear    0.0        0.1
  317.     Animate HudHealth    TextColor        "FgColor"        Deaccel    0.1        1.2
  318. }
  319.  
  320. event SuitDamageTaken
  321. {
  322.     Animate HudSuit        FgColor    "BrightFg"    Linear    0.0        0.25
  323.     Animate HudSuit        FgColor    "FgColor"        Linear    0.3        0.75
  324.     
  325.     Animate HudSuit        Blur        "3"            Linear    0.0        0.1
  326.     Animate HudSuit        Blur        "0"            Deaccel    0.1        2.0
  327.     
  328.     Animate HudSuit        TextColor    "BrightFg"    Linear    0.0        0.1
  329.     Animate HudSuit        TextColor    "FgColor"        Deaccel    0.1        1.2
  330. }
  331.  
  332. // health has been damaged to below 20%
  333. event HealthLow
  334. {
  335.     StopEvent HealthDamageTaken    0.0
  336.     StopEvent HealthPulse    0.0
  337.     StopEvent HealthLoop    0.0    
  338.     
  339.     Animate HudHealth    BgColor        "DamagedBg"        Linear    0.0        0.1
  340.     Animate HudHealth    BgColor        "BgColor"        Deaccel    0.1        1.75
  341.     
  342.     Animate HudHealth    FgColor        "BrightFg"    Linear    0.0        0.2
  343.     Animate HudHealth    FgColor        "DamagedFg"        Linear    0.2        1.2
  344.     
  345.     Animate HudHealth TextColor        "BrightFg"    Linear    0.0        0.1
  346.     Animate HudHealth    TextColor        "DamagedFg"        Linear    0.1        1.2
  347.     
  348.     Animate HudHealth        Blur        "5"            Linear    0.0        0.1
  349.     Animate HudHealth        Blur        "3"            Deaccel    0.1        0.9
  350.  
  351.     RunEvent HealthPulse    1.0
  352. }
  353.  
  354. event HealthPulse
  355. {
  356.     Animate HudHealth        Blur        "5"            Linear    0.0        0.1
  357.     Animate HudHealth        Blur        "2"            Deaccel    0.1        0.8
  358.     Animate HudHealth        TextColor    "BrightDamagedFg"    Linear    0.0        0.1
  359.     Animate HudHealth        TextColor    "DamagedFg"        Deaccel    0.1        0.8
  360.     Animate HudHealth        BgColor    "100 0 0 80"        Linear    0.0        0.1
  361.     Animate HudHealth        BgColor    "BgColor"        Deaccel    0.1        0.8
  362.  
  363.     RunEvent HealthLoop    0.8
  364. }
  365.  
  366. // call to loop HealthPulse
  367. event HealthLoop
  368. {
  369.     RunEvent HealthPulse 0.0
  370. }
  371.  
  372.  
  373. // suit armor has been damaged to below 20%
  374. event SuitArmorLow
  375. {
  376.     StopEvent SuitDamageTaken 0.0
  377.     StopEvent SuitPulse    0.0
  378.     StopEvent SuitLoop    0.0
  379.  
  380. //    removing this effect -- matching it to the event for normal suit damage
  381. //    so, there will be no special indication (redness, flashing)
  382. //    in the hud that the suit armor is low
  383.     
  384. //    Animate HudSuit    BgColor        "DamagedBg"        Linear    0.0        0.1
  385. //    Animate HudSuit    BgColor        "BgColor"        Deaccel    0.1        1.75
  386.     
  387.     Animate HudSuit        FgColor    "BrightFg"    Linear    0.0        0.25
  388.     Animate HudSuit        FgColor    "FgColor"        Linear    0.3        0.75
  389.     
  390.     Animate HudSuit        Blur        "3"            Linear    0.0        0.1
  391.     Animate HudSuit        Blur        "0"            Deaccel    0.1        2.0
  392.     
  393.     Animate HudSuit        TextColor    "BrightFg"    Linear    0.0        0.1
  394.     Animate HudSuit        TextColor    "FgColor"        Deaccel    0.1        1.2
  395.     
  396. //    RunEvent SuitPulse    1.0
  397. }
  398.  
  399. event SuitPulse
  400. //    this even no longer gets called
  401. {
  402.     Animate HudSuit        Blur        "5"            Linear    0.0        0.1
  403.     Animate HudSuit        Blur        "2"            Deaccel    0.1        0.8
  404.     Animate HudSuit        TextColor    "BrightDamagedFg"    Linear    0.0        0.1
  405.     Animate HudSuit        TextColor    "DamagedFg"        Deaccel    0.1        0.8
  406.     Animate HudSuit        BgColor    "100 0 0 80"    Linear    0.0        0.1
  407.     Animate HudSuit        BgColor    "BgColor"        Deaccel    0.1        0.8
  408.     RunEvent SuitLoop    0.8
  409. }
  410.  
  411. event SuitLoop
  412. {
  413. //    this event no longer gets called
  414.     RunEvent SuitPulse 0.0
  415. }
  416.  
  417. // ammo has been picked up
  418. event AmmoIncreased
  419. {
  420.     Animate HudAmmo        FgColor    "BrightFg"        Linear    0.0    0.15
  421.     Animate HudAmmo        FgColor    "FgColor"        Deaccel    0.15    1.5
  422.     Animate HudAmmo        Blur        "5"            Linear    0.0    0.0 
  423.     Animate HudAmmo        Blur        "0"            Accel        0.01    1.5 
  424. }
  425.  
  426. // ammo has been decreased, but there is still some remaining
  427. event AmmoDecreased
  428. {
  429.     StopEvent AmmoIncreased    0.0
  430.     
  431.     Animate HudAmmo        Blur        "7"            Linear    0.0    0.0
  432.     Animate HudAmmo        Blur        "0"            Deaccel    0.1    1.5
  433.     
  434.     Animate HudAmmo        TextColor    "BrightFg"        Linear    0.0    0.1
  435.     Animate HudAmmo        TextColor    "FgColor"        Deaccel    0.1    0.75
  436. }
  437.  
  438. // primary ammo is zero
  439. event AmmoEmpty
  440. {
  441.     Animate Hudammo    FgColor        "BrightDamagedFg"    Linear    0.0    0.2
  442.     Animate Hudammo    FgColor        "DamagedFg"        Accel        0.2    1.2        
  443. }
  444.  
  445. // ammo2 is the total ammo for a weapon that uses clip ammo
  446. event Ammo2Increased
  447. {
  448.     Animate Hudammo    ammo2color        "BrightFg"        Linear    0.0    0.2
  449.     Animate Hudammo    ammo2color        "FgColor"        Accel        0.2    1.2        
  450. }
  451.  
  452. // total ammo has been decreased, but there is still some remaining
  453. event Ammo2Decreased
  454. {
  455.     Animate Hudammo    ammo2color        "BrightFg"        Linear    0.0    0.2
  456.     Animate Hudammo    ammo2color        "FgColor"        Accel        0.2    1.2        
  457. }
  458.  
  459. // total ammo is zero
  460. event Ammo2Empty
  461. {
  462.     Animate Hudammo    ammo2color        "BrightDamagedFg"    Linear    0.0    0.2
  463.     Animate Hudammo    ammo2color        "DamagedFg"        Accel        0.2    1.2        
  464. }
  465.  
  466. event AmmoSecondaryIncreased
  467. {
  468.     Animate HudAmmoSecondary        FgColor    "BrightFg"        Linear    0.0    0.15
  469.     Animate HudAmmoSecondary        FgColor    "FgColor"        Deaccel    0.15    1.5
  470.     Animate HudAmmoSecondary        Blur        "5"            Linear    0.0    0.0 
  471.     Animate HudAmmoSecondary        Blur        "0"            Accel        0.01    1.5     
  472. }
  473.  
  474. event AmmoSecondaryDecreased
  475. {
  476.     StopEvent AmmoSecondaryIncreased    0.0
  477.     
  478.     Animate HudAmmoSecondary        Blur        "7"            Linear    0.0    0.0
  479.     Animate HudAmmoSecondary        Blur        "0"            Deaccel    0.1    1.5
  480.     
  481.     Animate HudAmmoSecondary        TextColor    "BrightFg"        Linear    0.0    0.1
  482.     Animate HudAmmoSecondary        TextColor    "FgColor"        Deaccel    0.1    0.75
  483. }
  484.  
  485. event AmmoSecondaryEmpty
  486. {
  487.     Animate HudAmmoSecondary        FgColor        "BrightDamagedFg"    Linear    0.0    0.2
  488.     Animate HudAmmoSecondary        FgColor        "DamagedFg"        Accel        0.2    1.2
  489.     Animate HudAmmoSecondary        Blur        "7"            Linear    0.0    0.0
  490.     Animate HudAmmoSecondary        Blur        "0"            Deaccel    0.1    1.5
  491.  
  492. }
  493.  
  494. // current weapon has been changed
  495. event WeaponChanged
  496. {
  497.     Animate HudAmmo        BgColor        "250 220 0 80"    Linear    0.0        0.1
  498.     Animate HudAmmo        BgColor        "BgColor"        Deaccel    0.1        1.0
  499.     Animate HudAmmo        FgColor        "BrightFg"        Linear    0.0        0.1
  500.     Animate HudAmmo        FgColor        "FgColor"        Linear    0.2        1.5
  501. }
  502.  
  503. // ran if we just changed to a weapon that needs clip ammo
  504. event WeaponUsesClips
  505. {
  506.     Animate HudAmmo        Position    "r150 432"    Deaccel    0.0        0.4
  507.     Animate HudAmmo        Size        "132 36"    Deaccel    0.0        0.4
  508. }
  509.  
  510. // ran if we just changed to a weapon that does not use clip ammo
  511. event WeaponDoesNotUseClips
  512. {
  513.     Animate HudAmmo        Position    "r118 432"    Deaccel    0.0        0.4
  514.     Animate HudAmmo        Size        "100 36"    Deaccel    0.0        0.4
  515. }
  516.  
  517. event WeaponUsesSecondaryAmmo
  518. {
  519.     StopAnimation     HudAmmo Position 0.0
  520.     StopAnimation     HudAmmo Size 0.0
  521.     StopPanelAnimations HudAmmoSecondary 0.0
  522.  
  523.     Animate HudAmmoSecondary    BgColor        "250 220 0 60"    Linear    0.0        0.1
  524.     Animate HudAmmoSecondary    BgColor        "BgColor"        Deaccel    0.1        1.0
  525.     Animate HudAmmoSecondary    FgColor        "BrightFg"    Linear    0.0        0.1
  526.     Animate HudAmmoSecondary    FgColor        "FgColor"        Linear    0.2        1.5
  527.     Animate HudAmmoSecondary    Alpha        255        Linear    0.0        0.1
  528.  
  529.     Animate HudAmmo        Position    "r222 432"    Deaccel    0.0        0.5
  530.     Animate HudAmmo        Size        "132 36"    Deaccel    0.0        0.4
  531. }
  532.  
  533. event WeaponDoesNotUseSecondaryAmmo
  534. {
  535.     StopPanelAnimations    HudAmmoSecondary     0.0
  536.     Animate HudAmmoSecondary    FgColor        "0 0 0 0"    Linear    0.0        0.4
  537.     Animate HudAmmoSecondary    BgColor        "0 0 0 0"    Linear    0.0        0.4
  538.     Animate HudAmmoSecondary    Alpha        0        Linear    0.0        0.1
  539. }
  540.  
  541. event CraneMagnetFlash
  542. {
  543.     Animate HudCraneMagnet TextColor    "255 220 0 255"    Linear 0.0 0.1
  544.     Animate HudCraneMagnet TextColor    "255 220 0 160"    Deaccel 0.1 0.3
  545.     Animate HudCraneMagnet TextColor    "255 170 0 220"    Deaccel 0.4 0.3
  546.     Animate HudCraneMagnet TextColor    "255 220 0 255"    Linear 0.8 0.2
  547. }
  548.  
  549. event HintMessageShow
  550. {
  551.     // show the hints
  552.     Animate HudHintDisplay Alpha    255 Linear 0.0 0.5
  553.  
  554.     // flash text
  555.     Animate HudHintDisplay FgColor    "FgColor"     Linear 0.0 0.01
  556.     Animate HudHintDisplay FgColor    "255 220 0 255" Linear 0.5 0.2
  557.     Animate HudHintDisplay FgColor    "FgColor"     Linear 0.7 0.2
  558.     Animate HudHintDisplay FgColor    "255 220 0 255" Linear 1.5 0.2
  559.     Animate HudHintDisplay FgColor    "FgColor"     Linear 1.7 0.2
  560.  
  561.     // hide the panel after a while    
  562.     Animate HudHintDisplay Alpha    0 Linear 12.0 1.0
  563. }
  564.  
  565. event HintMessageHide
  566. {
  567.     Animate HudHintDisplay Alpha    0 Linear 0.0 0.5
  568. }
  569.  
  570. event SquadMemberAdded
  571. {
  572.     StopEvent    SquadMemberDied        0.0
  573.     StopEvent    SquadMemberLeft        0.0
  574.  
  575.     // add in the squad member, brighter then normal color
  576.     Animate HudSquadStatus LastMemberColor    "255 220 0 255" Linear 0.0 0.3
  577.     Animate HudSquadStatus LastMemberColor    "255 220 0 160" Linear 0.3 0.3
  578. }
  579.  
  580. event SquadMemberLeft
  581. {
  582.     StopEvent    SquadMemberDied        0.0
  583.     StopEvent    SquadMemberAdded    0.0
  584.  
  585.     // fade out the icon
  586.     Animate HudSquadStatus LastMemberColor    "255 220 0 0"    Linear 0.0 0.5
  587. }
  588.  
  589. event SquadMemberDied
  590. {
  591.     StopEvent    SquadMemberAdded    0.0
  592.     StopEvent    SquadMemberLeft        0.0
  593.  
  594.     // flash red, hold, then disappear
  595.     Animate HudSquadStatus    LastMemberColor    "255 0 0 255"    Linear 0.0 0.5
  596.     Animate HudSquadStatus    LastMemberColor    "255 0 0 0"        Linear 2.0 2.0
  597. }
  598.  
  599. event SquadMembersFollowing
  600. {
  601.     StopEvent    SquadMembersStationed    0.0
  602.     Animate        HudSquadStatus    SquadTextColor    "255 220 0 255"        Linear 0.0 0.2
  603.     Animate        HudSquadStatus    SquadTextColor    "255 220 0 160"        Linear 0.2 0.4
  604. }
  605.  
  606. event SquadMembersStationed
  607. {
  608.     StopEvent    SquadMembersFollowing    0.0
  609.     Animate        HudSquadStatus    SquadTextColor    "255 220 0 160"            Linear 0.5 0.5
  610. }
  611.  
  612. event PoisonDamageTaken
  613. {
  614.     Animate     HudPoisonDamageIndicator     Alpha    255 Linear 0.0 1.0
  615.     RunEvent PoisonLoop    0.0
  616. }
  617.  
  618. event PoisonDamageCured
  619. {
  620.     StopEvent     PoisonDamageTaken    0.0
  621.     StopEvent     PoisonLoop        0.0
  622.     StopEvent     PoisonPulse        0.0
  623.     Animate     HudPoisonDamageIndicator     Alpha    0 Linear 0.0 1.0
  624. }
  625.  
  626. event PoisonPulse
  627. {
  628.     Animate HudPoisonDamageIndicator    TextColor    "BrightFg"        Linear    0.0        0.1
  629.     Animate HudPoisonDamageIndicator    TextColor    "FgColor"        Deaccel    0.1        0.8
  630.     Animate HudPoisonDamageIndicator    BgColor        "100 0 0 80"        Linear    0.0        0.1
  631.     Animate HudPoisonDamageIndicator    BgColor        "BgColor"        Deaccel    0.1        0.8
  632.  
  633.     RunEvent PoisonLoop    0.8
  634. }
  635.  
  636. // call to loop PoisonLoop
  637. event PoisonLoop
  638. {
  639.     RunEvent PoisonPulse 0.0
  640. }
  641.