This is just a quick post to let anybody who cares know that I have in fact found a way to dynamically load in the HDTP textures if they are present, but default to the original textures otherwise. This means that Shifter will support HDTP with minimal effort required on the user's part. (You need to put the HDTP .utx files in your C:\DeusEx\Textures folder for my method to work)
For any of you other modders who would like to know exactly how I did it, here's the code I added to GuntherHermann.uc:
Code: Select all
simulated function PreBeginPlay()
{
local mesh lMesh;
local int i;
Super.PreBeginPlay();
lMesh = mesh(DynamicLoadObject("HDTPcharacters.HDTPGunther", class'mesh'));
if(lMesh != None)
{
Texture = None;
for(i = 0; i < 8; i++)
{
MultiSkins[i] = None;
}
Mesh = lMesh;
}
else
{
Texture = Default.Texture;
Mesh = Default.Mesh;
for(i = 0; i < 8; i++)
{
MultiSkins[i] = Default.MultiSkins[i];
}
}
}
Anywho, cheers!