Page MenuHomeFeedback Tracker

Unable to retexture female facemask
Assigned, UrgentPublic

Description

I'm experimenting with making the improvised rag clothing paintable, and I found that all objects are fairly easy made paintable.
The female characters however can not display the changed PAA color retexture. It always reverts to the default texture, only facemask has this issue.

I added:

		hiddenSelections[]=
		{
			"camoGround",
			"camoMale",
			"camoFemale",
			"personality"
		};

and added new colored version to:

		hiddenSelectionsTextures[]=
		{
			"dz\characters\masks\data\FaceCover_Improvised_**//randomcolor//**_co.paa",
			"dz\characters\masks\data\FaceCover_Improvised_**//randomcolor//**_co.paa",
			"dz\characters\masks\data\FaceCover_Improvised_**//randomcolor//**_co.paa"
		};

but it never works only for female characters ...

Details

Severity
Major
Resolution
Open
Reproducibility
Always
Operating System
Windows 7
Category
General
Steps To Reproduce

Make a different color face mask and apply retexture to the item. It works for male characters, but not for female characters.

Event Timeline

gjvdheuvel added a comment.EditedMay 29 2022, 11:37 AM

The painted model works on male, shows correct color in hand and on the ground too.
Just when I put it on a female character, it shows the old texture.

I tried adding this

		EntityAI mask = FindAttachmentBySlotName("Mask");				

		int maskselection = 0;
		int maskselection_hide = 0;
		string masktexture = "";
		string show_this_mask = "";
		string hide_this_mask = "";

		if (FindAttachmentBySlotName("Mask"))
		{
			if (ConfigGetBool("woman"))
			{
				show_this_mask = "camoFemale";
				hide_this_mask = "camoFemaleBig";
			}
			else
			{
				show_this_mask = "camoMale";
				hide_this_mask = "camoMaleBig";					
			}

			maskselection = mask.GetHiddenSelectionIndex(show_this_mask);
			maskselection_hide = mask.GetHiddenSelectionIndex(hide_this_mask);
			mask.SetObjectTexture( maskselection, masktexture );
			mask.SetObjectTexture( maskselection_hide, "" );
		}

To playerbase.c to force the swap but it didn't work

Geez changed the task status from New to Assigned.May 31 2022, 2:23 PM

In 1.18 Experimental it seems to work ...