DXMP skin mutator that works with DXMTL152b1 and miniMTL?

Talk about any Deus Ex game modification here, e.g. maps, package or a total conversion.

Moderator: Forum Guards

DXMP skin mutator that works with DXMTL152b1 and miniMTL?

Postby WeeCrab » Mon Jan 25, 10 2:23 am

Hi,

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!
Last edited by WeeCrab on Mon Jan 25, 10 2:25 am, edited 1 time in total.
WeeCrab
Newbie
 
Posts: 43
Joined: Wed Jul 29, 09 6:10 am

Postby ~DJ~ » Mon Jan 25, 10 2:58 am

If miniMTL has a tick/timer that replaces or fix the textures.. your only hope is to.. not use miniMTL.

Anyway, maybe someone else can come up with other ideas, but I don't know much about miniMTL.. so yeah, don't be sad :$
User avatar
~DJ~
Forum Super Hero
 
Posts: 3766
Joined: Tue May 22, 07 12:23 pm

Postby WeeCrab » Fri Feb 12, 10 5:08 am

Sorry for the late reply. Again, thanks for the replies, DJ. :)
I may have to just not use it as you say.

Do you have any idea how to get the skin replacing function working for TDM? the code I pasted earlier works, but it seems to only work for DM. and let's say miniMTL is not used? (only normal MTL)
Last edited by WeeCrab on Fri Feb 12, 10 5:08 am, edited 1 time in total.
WeeCrab
Newbie
 
Posts: 43
Joined: Wed Jul 29, 09 6:10 am

Postby Dae » Fri Feb 12, 10 2:42 pm

WeeCrab wrote:p.IsA('mtlunatco'))

wasn't it mtlmpunatco?

(I'm not sure, just something tells me it was)
User avatar
Dae
Alpha
 
Posts: 12086
Joined: Sat Sep 06, 03 4:40 pm


Return to Modifications

Who is online

Users browsing this forum: No registered users and 25 guests