Enfyrneaux
23rd Oct 2005, 02:51 AM
Apologies in advance to Abosolut for my backseat coding...
Add the following code in DA2-ServerLoading.uc (in red):
...
simulated function SetImage()
{
local string str;
local material mat;
str = StripMap(MapName)$"OBJ";
if ( str == "" )
Warn("Invalid value for "$str);
else mat = DLOTexture("DA2Objectives."$str);
if ( mat == None )
mat = DLOTexture($MapName"."$str);
if ( mat == None )
mat = Material'DA2Objectives.Fallback';
//log("Unable to find any valid objective image or custom map used. Using fallback.");
DrawOpImage(Operations[0]).Image = mat;
AddImage(Material'DA2GUI.logoMainMenu', 0.068, 0.0432, 0.171, 0.256); // [zeh]
DrawOpText(Operations[1]).Text = "Loading "$StripMap(MapName)$"...";
}
...
...if this works (i.e. I didn't screw up my string concantenation syntax), custom maps can have loading screens without modifying DA2Objectives.utx or whatever :p
Add the following code in DA2-ServerLoading.uc (in red):
...
simulated function SetImage()
{
local string str;
local material mat;
str = StripMap(MapName)$"OBJ";
if ( str == "" )
Warn("Invalid value for "$str);
else mat = DLOTexture("DA2Objectives."$str);
if ( mat == None )
mat = DLOTexture($MapName"."$str);
if ( mat == None )
mat = Material'DA2Objectives.Fallback';
//log("Unable to find any valid objective image or custom map used. Using fallback.");
DrawOpImage(Operations[0]).Image = mat;
AddImage(Material'DA2GUI.logoMainMenu', 0.068, 0.0432, 0.171, 0.256); // [zeh]
DrawOpText(Operations[1]).Text = "Loading "$StripMap(MapName)$"...";
}
...
...if this works (i.e. I didn't screw up my string concantenation syntax), custom maps can have loading screens without modifying DA2Objectives.utx or whatever :p