mGm_Lizard

LoadingScreens.uc

Nov 16th, 2016
102
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. static function bool ReplaceLoadingScreen(PlayerController pcl, string MapName)
  2. {
  3.     local Object O;
  4.     local UT2K4ServerLoading LoadingScreenObj;
  5.     local Texture LoadingScreenTex;
  6.  
  7.     foreach pcl.AllObjects(class'Object', O)
  8.     {
  9.         if((LoadingScreenObj == none) && O.Class == class'UT2K4ServerLoading')
  10.         {
  11.             LoadingScreenObj = UT2K4ServerLoading(O);
  12.             break;
  13.         }        
  14.     }    
  15.     LoadingScreenTex = Texture(DynamicLoadObject("3SPNv3223TR.LS.loading" $ string(Rand(7) + 1), class'Texture', true));
  16.     if((LoadingScreenObj != none) && LoadingScreenTex != none)
  17.     {
  18.         DrawOpImage(LoadingScreenObj.Operations[0]).Image = LoadingScreenTex;
  19.         return true;
  20.     }
  21.     return false;
  22. }
Advertisement
Add Comment
Please, Sign In to add comment