Sorry for making two similar threads. The other was how to install a mutator but it was actually a problem unrelated to installing it. This one is about actual code.
As said in the other thread, I used to host a server with a skin mutator. A friend made the initial code. It replaced the four deathmatch character skins with different, unique combinations of multiskins. No custom textures, just existing DX textures.
It has some problems though, the main one being - it no longer works with miniMTL, I think because miniMTL is always attempting to fix the "skin bug".
Here is the current way the code works:
- Code: Select all
function modifyplayer(pawn p)
{
if (p.IsA('jcdentonmale')||p.IsA('mtljcdenton'))
{
p.Mesh=LodMesh'DeusExCharacters.GM_Trench';
p.Texture=Texture'DeusExItems.Skins.PinkMaskTex';
p.MultiSkins[0]=Texture'DeusExCharacters.Skins.MichaelHamnerTex0';
p.MultiSkins[1]=Texture'DeusExCharacters.Skins.GordonQuickTex2';
..etc..
p.MultiSkins[7]=Texture'DeusExCharacters.Skins.LensesTex3';
}
if (p.IsA('MPmj12')||p.IsA('mtlmj12'))
{
p.Mesh=LodMesh'DeusExCharacters.GM_Trench';
p.Texture=Texture'DeusExItems.Skins.PinkMaskTex';
p.MultiSkins[0]=Texture'DeusExCharacters.Skins.TobyAtanweTex0';
..etc..
p.MultiSkins[7]=Texture'DeusExItems.Skins.BlackMaskTex';
}
if (p.IsA('MPnsf')||p.IsA('mtlnsf'))
{
p.Mesh=LodMesh'DeusExCharacters.mp_jumpsuit';
p.Texture=Texture'DeusExItems.Skins.PinkMaskTex';
p.MultiSkins[0]=Texture'DeusExCharacters.Skins.PaulDentonTex6';
..etc..
}
if (p.IsA('MPunatco')||p.IsA('mtlunatco'))
{
p.Mesh=LodMesh'DeusExCharacters.GM_Trench';
p.Texture=Texture'DeusExItems.Skins.PinkMaskTex';
p.MultiSkins[0]=Texture'DeusExCharacters.Skins.MiscTex1';
..etc..
}
super.ModifyPlayer(p);
}
So, does anyone know how to set up the code so it fixes these issues? :
- Doesn't re-skin at all if hosting miniMTL
- Cannot change character/skin during match. Must leave game and switch character in player setup and rejoin to get new skin.
- Has never worked in TDM, only DM.
It would be insane if this were possible, but this is probably asking too much. I was curious as to whether it would be possible to detect TDM/DM player setup character combinations for more skin possibilities. So like, in a DM game, having your DM logo as JC, and your TEAM logo as NSF, would give you a different set of skins than having your DM logo as JC, and your TEAM logo as UNATCO. Likewise, for TDM, having your team logo as NSF, and your DM logo as JC, would yield a different skin than having your tema logo as NSF, and your DM logo as MJ12.
Last thing is probably not possible. Just a theory, and would be neat to see. Are the former listed issues fixable?
Thanks for any advice!