Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- static function bool ReplaceLoadingScreen(PlayerController pcl, string MapName)
- {
- local Object O;
- local UT2K4ServerLoading LoadingScreenObj;
- local Texture LoadingScreenTex;
- foreach pcl.AllObjects(class'Object', O)
- {
- if((LoadingScreenObj == none) && O.Class == class'UT2K4ServerLoading')
- {
- LoadingScreenObj = UT2K4ServerLoading(O);
- break;
- }
- }
- LoadingScreenTex = Texture(DynamicLoadObject("3SPNv3223TR.LS.loading" $ string(Rand(7) + 1), class'Texture', true));
- if((LoadingScreenObj != none) && LoadingScreenTex != none)
- {
- DrawOpImage(LoadingScreenObj.Operations[0]).Image = LoadingScreenTex;
- return true;
- }
- return false;
- }
Advertisement
Add Comment
Please, Sign In to add comment