Jump to content
Sign in to follow this  
Cunico

identityTypes for Helmet's

Recommended Posts

Basically I have this right now on my shemaghs but how do I set it for the helemts. Instead of replacing the goggles I would like it to replace the helmets. Any ideas? I can't find on the web a script like this only for the helmets, but I guess I am just not sure what to look for. I tried .upboing some helmet mods to find what they have but same problem. below is example what I am after only for the helmets.

identityTypes[] = {"NoGlasses",0,"G_NATO_default",0,"G_NATO_casual",0,"G_NATO_pilot",0,"G_NATO_recon",0,"G_NATO_SF",0,"G_NATO_sniper",0,"G_NATO_diver",0,"G_IRAN_default",0,"G_IRAN_diver",0,"G_GUERIL_default",0,"G_HAF_default",0,"G_CIVIL_female",0,"G_CIVIL_male",0};

Share this post


Link to post
Share on other sites

are you searching for a config for helmets, create your own addon and add a new helmet

Kiory's random hat madness! in this addon is are unbinarized helmets

if your trying to give the unit a helmet

addHeadgear or assignItem (if already in inventory)

if you want to see that the item is some kind of helmet

typeOf adn isKindOf

i hope i coud help

Edited by SaltatorMortis

Share this post


Link to post
Share on other sites

I'm not to sure if this is what you are after, but this is what a helmet class would look like.

class cfgWeapons
{
class ItemCore;	// External class reference
class ItemInfo;	// External class reference
class HeadgearItem;// External class reference

class shemagh_neckDes : ItemCore
{
	scope = 2;
	weaponPoolAvailable = 1;
	displayName = "Neck Shemagh - Desert";
	picture = "\spec4_shemaghs\UI\neckDicon.paa";
	model = "\spec4_shemaghs\shemagh_neckD.p3d";
	class ItemInfo : HeadgearItem
	{
		mass = 100;
		uniformModel = "\spec4_shemaghs\shemagh_neckD.p3d";
		modelSides[] = {3, 1};
		armor = 3*0.5;
		passThrough = 0.8;
	};
};
};

Share this post


Link to post
Share on other sites

Hmmmm...not working Surpher. How would you go about adding two? This config is just for one and thats it, but I have two I would like to add maybe thats where I messed it up which I don't know how I did but yeah. Thanks for the replies. As of right now I can't find them in game when using this config, and I'm looking under Everything. So something is not right.

---------- Post added at 00:01 ---------- Previous post was at 23:39 ----------

Basically, I have two differnent Head Wraps but I want both of them to take the identity of the helmet.

Edited by Cunico

Share this post


Link to post
Share on other sites

Here is a full config, I copied your latest shemagh config and add two headgear classes

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 CfgPatches
{
class shemagh_neckD
{
	units[] = {};
	weapons[] = {};
	requiredVersion = 0.1;
	requiredAddons[] = {"A3_Characters_F"};
};
};

class cfgWeapons
{
   class ItemCore;    // External class reference
   class ItemInfo;    // External class reference
   class HeadgearItem;// External class reference

   class shemagh_neckD_helmet : ItemCore
   {
       scope = 2;
       weaponPoolAvailable = 1;
       displayName = "Neck Shemagh - Desert";
       picture = "\shemaghs\UI\neckDicon.paa";
       model = "\shemaghs\shemagh_neckD.p3d";
       class ItemInfo : HeadgearItem
       {
           mass = 100;
           uniformModel = "\shemaghs\shemagh_neckD.p3d";
           modelSides[] = {3, 1};
           armor = 3*0.5;
           passThrough = 0.8;
       };
   };
class shemagh_neckOD_helmet : ItemCore
   {
       scope = 2;
       weaponPoolAvailable = 1;
       displayName = "Neck Shemagh - OD";
       picture = "\shemaghs\UI\neckDicon.paa";
       model = "\shemaghs\shemagh_neckOD.p3d";
       class ItemInfo : HeadgearItem
       {
           mass = 100;
           uniformModel = "\shemaghs\shemagh_neckOD.p3d";
           modelSides[] = {3, 1};
           armor = 3*0.5;
           passThrough = 0.8;
       };
   };
};  

class CfgGlasses
{
class None;
class shemagh_neckD: None
{
	displayname = "Neck Shemagh - Desert";
	model = "\shemaghs\shemagh_neckD.p3d";
	picture = "\shemaghs\UI\neckDicon.paa";
	identityTypes[] = {"NoGlasses",0,"G_NATO_default",0,"G_NATO_casual",0,"G_NATO_pilot",0,"G_NATO_recon",0,"G_NATO_SF",0,"G_NATO_sniper",0,"G_NATO_diver",0,"G_IRAN_default",0,"G_IRAN_diver",0,"G_GUERIL_default",0,"G_HAF_default",0,"G_CIVIL_female",0,"G_CIVIL_male",0};
};
class shemagh_neckOD: shemagh_neckD
{
	displayname = "Neck Shemagh - OD";
	model = "\shemaghs\shemagh_neckOD.p3d";
};
};

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  

×