Jump to content
Sign in to follow this  
brad7

Defining texture path

Recommended Posts

I have tried to use hidden selections with a helmet but the helmet appears without a texture i have put sections[] = {"KevlarHelmet"}; in the model.cfg but i dont know what to put in the config or how to define a path for the original texture...

 enum {
 //  = 2,	// Error parsing: Empty enum name
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 CfgPatches {
class BritishHelmet {
	units[] = {};
	weapons[] = {};
	requiredVersion = 0.1;
	requiredAddons[] = {};
};
};


class cfgWeapons {
class ItemCore;
class HeadgearItem;
class ItemInfo;

class BritishHelmet : ItemCore {
	scope = 2;
	weaponPoolAvailable = 1;
	displayName = "British Kevlar Helmet";
	picture = "\A3\characters_f\Data\UI\icon_H_HelmetB_CA.paa";
	model = "\KevlarHelmet\BritishHelmet";

	class ItemInfo : HeadgearItem {
		mass = 100;
		uniformModel = "\KevlarHelmet\BritishHelmet";
		modelSides[] = {3, 1};
		armor = 3*0.5;
		passThrough = 0.8;
	};
};

class BritishHelmetGoggles : ItemCore {
	scope = 2;
	weaponPoolAvailable = 1;
	displayName = "British Kevlar Helmet (Goggles)";
	picture = "\A3\characters_f\Data\UI\icon_H_HelmetB_CA.paa";
	model = "\KevlarHelmet\BritishHelmetGoggles";

	class ItemInfo : HeadgearItem {
		mass = 100;
		uniformModel = "\KevlarHelmet\BritishHelmetGoggles";
		modelSides[] = {3, 1};
		armor = 3*0.5; 

Share this post


Link to post
Share on other sites

hiddenselectionstextures[] = {"\PboName\Texturename.paa"};

Stick that in the relevant classes with the relevant texture paths in the same location as your 'model', 'picture' and 'displayname' entries are.

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  

×