Jump to content
Sign in to follow this  
Kydoimos

Invisible Headgear / Vest

Recommended Posts

Hi all,

I'm a newbie to creating Addon content, but I've put together my first config. The paths are correct and the uniform is showing - but the vest and headgear are invisible! Any ideas? Here's what I've got so far (it's a WIP, so the icon images aren't correct):

Thanks in advance, guys!

class CfgPatches
{
class CSAT_Russian
{
 units[]={};
 weapons[]={};
 requiredVersion=0.1;
 requiredAddons[]=
 {
  "A3_Characters_F_OPFOR"
 };
};
};
class CfgVehicles
{
class O_Soldier_base_F;
class OR_Soldier_F: O_Soldier_base_F
{
 _generalMacro="OR_Soldier_F";
 scope=2;
 displayName="Uniform Test Soldier";
 nakedUniform="U_BasicBody";
 uniformClass="U_OR_CombatUniform_Hex";
 hiddenSelections[]=
 {
  "Camo1",
  "camo2",
  "insignia"
 };
 hiddenSelectionsTextures[]=
 {
  "\Russian_CSAT\Data\U_OR_CombatUniform_Hex.paa",
  "\Russian_CSAT\Data\U_OR_CombatUniform_Tech.paa"
 };
 linkedItems[]=
 {
  "Vest_V_TacVest_Russian",
  "Headgear_H_HelmetOR_ocamo",
  "NVGoggles_OPFOR",
  "ItemMap",
  "ItemCompass",
  "ItemWatch",
  "ItemRadio"
 };
 respawnLinkedItems[]=
 {
  "Vest_V_TacVest_Russian",
  "Headgear_H_HelmetOR_ocamo",
  "NVGoggles_OPFOR",
  "ItemMap",
  "ItemCompass",
  "ItemWatch",
  "ItemRadio"
 };
};
};
class cfgWeapons
{
class Uniform_Base;
class UniformItem;
class U_OR_CombatUniform_Hex: Uniform_Base
{
 scope=2;
 displayName="Fatigues (Hex) [CSAT]";
 picture="\A3\characters_f\data\ui\icon_U_B_CombatUniform_mcam_ca.paa";
 model="\A3\Weapons_f\dummyweapon.p3d";
 class ItemInfo: UniformItem
 {
  uniformModel="-";
  uniformClass="OR_Soldier_F";
  containerClass="Supply20";
  mass=80;
 };
};
class ItemCore;
class HeadgearItem;
class Headgear_H_HelmetOR_ocamo: ItemCore
{
 scope=2;
 weaponPoolAvailable=1;
 displayName="Protector Helmet (Hex)";
 picture="\A3\characters_f\Data\UI\icon_H_HelmetB_CA.paa";
 model="\A3\Weapons_F\DummyHeadgear.p3d";
 hiddenSelections[]=
 {
  "camo"
 };
 hiddenSelectionsTextures[]=
 {
  "\Russian_CSAT\Data\U_OR_CombatUniform_Tech.paa"
 };
 class ItemInfo: HeadgearItem
 {
  mass=100;
  uniformModel="\A3\Weapons_F\DummyHeadgear.p3d";
  modelSides[]={3,0};
  armor="3*0.5";
  passThrough=0.80000001;
  hiddenSelections[]=
  {
   "camo"
  };
 };
};
class Vest_Camo_Base;
class VestItem;
class Vest_V_TacVest_Russian: Vest_Camo_Base
{
 scope=2;
 displayName="Tactical Vest (Green)";
 picture="\A3\characters_f\Data\UI\icon_V_plate_carrier_1_CA.paa";
 model="\A3\Weapons_F\DummyVest.p3d";
 hiddenSelections[]=
 {
  "camo"
 };
 hiddenSelectionsTextures[]=
 {
  "\Russian_CSAT\Data\Vest_V_TacVest_Russian.paa"
 };
 class ItemInfo: VestItem
 {
  uniformModel="\A3\Weapons_F\DummyVest.p3d";
  containerClass="Supply100";
  mass=50;
  armor="5*0.5";
  passThrough=0.69999999;
  hiddenSelections[]=
  {
   "camo"
  };
 };
};
};

Share this post


Link to post
Share on other sites

Try removing a \ from the front of your invisible texture paths. Arma is finicky.

You might want to move this thread to the editing section, too.

Edited by TheEvanCat

Share this post


Link to post
Share on other sites

@TheEvanCat - thanks, matey! Very helpful! I'll give it a go! Sorry about posting in the wrong place - I was just itching to post something in the addon/mod section :D But yes, should be in the editing bit - cheers!

---------- Post added at 22:02 ---------- Previous post was at 22:01 ----------

Weird that the path to the uniform works with the '\' in front of it - but could be a strange 'Arma' thing - I'll give it a whirl!

Share this post


Link to post
Share on other sites

Why are you using the DummyHeadgear.p3d and DummyVest.p3d files? That is probably why they're invisible as I'm fairly sure those models are empty...Its a miracle the uniform "works" given its use of the 'DummyWeapon.p3d' model...

EDIT: Also, leave the \ in for the texture path.

Edited by Jackal326

Share this post


Link to post
Share on other sites

@Jackal326 - ah! Ok! I pulled those from the config file, must have been looking at the wrong bit! Cheers, I'll try that! Thanks!

---------- Post added at 09:40 ---------- Previous post was at 09:19 ----------

@Jackal326 - thanks man, worked like a charm!

Share this post


Link to post
Share on other sites

If you're just re-texing something (without having your own model) I find it better to inherit from a concrete class instead of these (sort of) abstract superclasses. So if you want to re-do the CSAT fatigue you just derive your mod uniform directly from the orginal uniform class and not from Uniform_Base.

Share this post


Link to post
Share on other sites

Ironically the "dummy" Items have models - they are just lacking textures. And hiddenselections. So they wind up invisible.

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  

×