Jump to content
Sign in to follow this  
Miroslaw Kowalski

Uniform Texture Wrong

Recommended Posts

Hello,

I'm trying to make police uniforms for my characters but the uniforms always look like this: http://www.fotos-hochladen.net/uploads/201307240000ohsjl6c2qy.jpg (621 kB)

my config looks like this:

#define TEast		0
#define TWest		1
#define TGuerrila		2
#define TCivilian		3
#define TSideUnknown		4
#define TEnemy		5
#define TFriendly		6
#define TLogic		7

#define private		0
#define protected		1
#define public		2

#define true	1
#define false	0

enum
{
DESTRUCTENGINE = 2,
DESTRUCTDEFAULT = 6,
DESTRUCTWRECK = 7,
DESTRUCTTREE = 3,
DESTRUCTTENT = 4,
STABILIZEDINAXISX = 1,
STABILIZEDINAXESXYZ = 4,
STABILIZEDINAXISY = 2,
STABILIZEDINAXESBOTH = 3,
DESTRUCTNO = 0,
STABILIZEDINAXESNONE = 0,
DESTRUCTMAN = 5,
DESTRUCTBUILDING = 1,
};

class DefaultEventhandlers;

class CfgPatches
{
class POLICE_UNIFORMS
{
	units[] = {};
	weapons[] = {};
	requiredVersion = 0.1;
	requiredAddons[] = {"A3_Characters_F"};
	version = 0.1;
};
};

class CfgVehicles
{
class B_Soldier_base_F;

class Police_Officer_F : B_Soldier_base_F
{
	_generalMacro = "B_Soldier_base_F";
	scope = 2;
	side = 2;
	faction = "GREEK_POLICE";
	displayName = "Police Officer";
	nakedUniform = "U_BasicBody";
	uniformClass = "U_Police_Uniform";
	hiddenSelections[] = {"camo"};
	hiddenSelectionsTextures[] = {"\policemod\police_uniform\data\U_Police_Uniform.paa"};

	linkedItems[] = {"ItemMap", "ItemCompass", "ItemWatch", "ItemRadio"};
	respawnLinkedItems[] = {"ItemMap", "ItemCompass", "ItemWatch", "ItemRadio"};
};

class Police_Officer_Armored_F : B_Soldier_base_F
{
	_generalMacro = "B_Soldier_base_F";
	scope = 2;
	side = 2;
	faction = "GREEK_POLICE";
	displayName = "Police Officer (Armored)";
	nakedUniform = "U_BasicBody";
	uniformClass = "U_Police_Uniform";
	hiddenSelections[] = {"camo"};
	hiddenSelectionsTextures[] = {"\policemod\police_uniform\data\U_Police_Uniform.paa"};

	linkedItems[] = {"V_TacVest_blk_POLICE", "ItemMap", "ItemCompass", "ItemWatch", "ItemRadio"};
	respawnLinkedItems[] = {"V_TacVest_blk_POLICE", "ItemMap", "ItemCompass", "ItemWatch", "ItemRadio"};
};
};

class CfgWeapons
{
class Uniform_Base;
class UniformItem;

class U_Police_Uniform : Uniform_Base
{
	scope = 2;
	displayName = "Greek Police Uniform";
	picture = "\policemod\police_uniform\data\UI\icon_U_Police_Uniform.paa";
	model = "\A3\Characters_F\Common\Suitpacks\suitpack_blufor_diver";

	class ItemInfo : UniformItem
	{
		uniformModel = "-";
		uniformClass = "U_Police_Uniform_Base";
		containerClass = "Supply10";
		mass = 60;
	};
};
};

please help me :)

thanks

Buster

Share this post


Link to post
Share on other sites

Are you sure the texture is rotated in the correct direction? Can you post a shot of the .paa, maybe?

Share this post


Link to post
Share on other sites

Sorry at the moment i can't post the texture. I'm online with my mobile. But i can tell so far it has the same layout as the Competitor texture.

Share this post


Link to post
Share on other sites
Sorry at the moment i can't post the texture. I'm online with my mobile. But i can tell so far it has the same layout as the Competitor texture.

Yeh, then it won't work. The model you are using is the blufor soldier, the texture of the competitor has a totally different layout than that.

Share this post


Link to post
Share on other sites

Add this line to your Police_Officer_F and Police_Officer_Armored_F classes

model = "\A3\Characters_F\Civil\c_poloshirtpants.p3d";

You are currently inheriting model = "\A3\characters_F\BLUFOR\b_soldier_01.p3d"; from the B_Soldier_base_F class

Noticed you have GREEK_POLICE faction but no cfgFactionClasses in your config, it should look like this.

class CfgFactionClasses
{
class GREEK_POLICE
{
	displayName = "Greek Police";
	priority = 1;
	side = 2;
};
};

Place it between the CfgPatches and CfgVehicles classes.

Edited by surpher

Share this post


Link to post
Share on other sites

Now it works ;) Thanks. But there are two questions left: why isn't the uniform showing in the inventory? And how can i get the weapon holster like the competitor has? oh and i already wrote a cfgfactions class in another config. but thanks :)

thanks

Buster

Share this post


Link to post
Share on other sites

uniformClass = "U_Police_Uniform_Base"; should be uniformClass = "Police_Officer_F"; and add "V_Rangemaster_belt" to linkedItems[] and respawnlinkedItems[] for the holster.

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  

×