Advertisement
Guest User

hud animation help

a guest
Jul 23rd, 2014
704
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.24 KB | None | 0 0
  1. //Health Bonus Pulse
  2. event HudHealthBonusPulse
  3. {
  4. Animate PlayerStatusHealthBonusImage Alpha "255" Linear 0.0 0.2
  5. Animate PlayerStatusHealthBonusImage Alpha "0" Linear 0.2 0.4
  6. Animate PlayerStatusHealthValue fgcolor "HealthBuff" Linear 0.0 0.0
  7.  
  8. RunEvent HudHealthBonusPulseLoop 0.4
  9. }
  10.  
  11. // call to loop HudHealthBonusPulse
  12. event HudHealthBonusPulseLoop
  13. {
  14. RunEvent HudHealthBonusPulse 0.0
  15. }
  16.  
  17. event HudHealthBonusPulseStop
  18. {
  19. StopEvent HudHealthBonusPulse 0.0
  20. StopEvent HudHealthBonusPulseLoop 0.0
  21. Animate PlayerStatusHealthValue fgcolor "HealthNormal" Linear 0.0 0.0
  22. }
  23.  
  24. //===========================================
  25.  
  26. //Health Dying Pulse
  27. event HudHealthDyingPulse
  28. {
  29. Animate PlayerStatusHealthBonusImage Alpha "255" Linear 0.0 0.075
  30. Animate PlayerStatusHealthBonusImage Alpha "0" Linear 0.125 0.075
  31. Animate PlayerStatusHealthValue fgcolor "HealthHurt" Linear 0.0 0.0
  32.  
  33. RunEvent HudHealthDyingPulseLoop 0.25
  34. }
  35.  
  36. // call to loop HudHealthDyingPulse
  37. event HudHealthDyingPulseLoop
  38. {
  39. RunEvent HudHealthDyingPulse 0.0
  40. }
  41.  
  42. event HudHealthDyingPulseStop
  43. {
  44. StopEvent HudHealthDyingPulse 0.0
  45. StopEvent HudHealthDyingPulseLoop 0.0
  46. Animate PlayerStatusHealthValue fgcolor "HealthNormal" Linear 0.0 0.0
  47. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement