Jump to content
Sign in to follow this  
BomosBoy

Head/Face like in Player Profile Menu

Recommended Posts

The post (from 2013: https://forums.bistudio.com/topic/145140-help-with-ct-object/) was the only thing i found to my problem but it has no solution. So i want to ask again.

 

I have searched through many many source scripts from BI. But the only references i found are:

1) ui_f config.hpp RscDisplayLogin

2) ui_f/scripts/gui RscDisplayLogin.sqf

 

But in none of these scripts included a reference to scripts, which for example, change the texture, etc of a selected head/face.

Not even the controls of config.hpp have a onButtonClick / Action script.

 

Has someone an idea how to create a simple head and change the texture or the head itself via script?

(Like in the Player Profile Menu)

 

Here are the code snippets of the config.hpp:

	class objects
	{
		class Head: RscObject
		{
			model="\A3\ui_f\objects\face_preview";
			modelWoman="\A3\ui_f\objects\face_preview";
			idc=109;
			type=80;
			x="35 * 					(			((safezoneW / safezoneH) min 1.2) / 40) + 		(safezoneX + (safezoneW - 					((safezoneW / safezoneH) min 1.2))/2)";
			y="7 * 					(			(			((safezoneW / safezoneH) min 1.2) / 1.2) / 25) + 		(safezoneY + (safezoneH - 					(			((safezoneW / safezoneH) min 1.2) / 1.2))/2)";
			z=0.28;
			xBack=0.75;
			yBack=0.89999998;
			zBack=0.25;
			scale=0.20999999;
			direction[]={0,0,1};
			up[]={0,1,0};
			faceType="Man_A3";
			selectionLBrow="lBrow";
			selectionMBrow="mBrow";
			selectionRBrow="rBrow";
			selectionLMouth="lMouth";
			selectionMMouth="mMouth";
			selectionRMouth="rMouth";
			selectionEyelid="eyelids";
			selectionLip="LLip";
			boneHead="head";
			boneLEye="l_eye";
			boneREye="r_eye";
			boneLEyelidUp="eye_upl";
			boneREyelidUp="eye_upr";
			boneLEyelidDown="eye_lwl";
			boneREyelidDown="eye_lwr";
			boneLPupil="l_pupila";
			boneRPupil="r_pupila";
			selectionPersonality="personality";
			selectionGlasses="eyelids";
		};
	};

and

		class CA_FaceValue: RscCombo
		{
			idc=106;
			rows=3;
			x="22 * 					(			((safezoneW / safezoneH) min 1.2) / 40) + 		(safezoneX + (safezoneW - 					((safezoneW / safezoneH) min 1.2))/2)";
			y="4 * 					(			(			((safezoneW / safezoneH) min 1.2) / 1.2) / 25) + 		(safezoneY + (safezoneH - 					(			((safezoneW / safezoneH) min 1.2) / 1.2))/2)";
			w="9 * 					(			((safezoneW / safezoneH) min 1.2) / 40)";
			h="1 * 					(			(			((safezoneW / safezoneH) min 1.2) / 1.2) / 25)";
		};

Share this post


Link to post
Share on other sites

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
Sign in to follow this  

×