Advertisement
Guest User

AegisHUD

a guest
Mar 19th, 2013
156
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. class AegisHUD extends UTHUDBase;
  2.  
  3. //Reference the actual SWF container
  4. var AegisGFxHUD HudMovie;
  5. var AegisPlayerController PO;
  6.  
  7. singular event Destroyed ()
  8. {
  9.     // if there is no flash file to play for the HUD
  10.     if (HudMovie != none)
  11.     {
  12.         //get rid of the memory usage of HudMovie
  13.         HudMovie.Close(true);
  14.         HudMovie = none;
  15.     }
  16.    
  17. }
  18.  
  19. //Called after game loaded - initialize
  20. simulated function PostBeginPlay()
  21. {
  22.     super.PostBeginPlay();
  23.    
  24.     //create a AegisGFxHUD for HudMovie
  25.     HudMovie = new class'AegisGFxHUD';
  26.     //play the HUD movie for the player
  27.     HudMovie.PlayerOwner = PO;
  28.     //used so you can pause the game
  29.     HudMovie.SetTimingMode(TM_Real);
  30.     //Call HudMovie's initialize function
  31.     HudMovie.Init2(HudMovie.PlayerOwner);
  32. }
  33.  
  34. //Called every tick the HUD should be updated
  35. event PostRender()
  36. {
  37.     HudMovie.TickHUD();
  38. }
  39.  
  40. DefaultProperties
  41. {
  42. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement