Jump to content
Sign in to follow this  
legion7698

Hidden selection issues

Recommended Posts

Hey All,

I've been playing around with hidden selections and am having problems getting them to work. I've followed everything I can to get them to work Including FAB's tutorial. So I'm assuming its my config as I cant see what else will be causing the issue so if someone can have a look and let me know what the problem is then that would be brill.

regards,

LEGION7698.

// some basic defines
#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 true 1
#define false 0

// type scope
#define private 0
#define protected 1
#define public 2

#define WeaponNoSlot				0// dummy weapons
#define WeaponSlotPrimary		1// primary weapons
#define WeaponSlotSecondary	16// secondary weapons
#define WeaponSlotItem			256// items
#define WeaponSlotBinocular	4096// binocular
#define WeaponHardMounted		65536

class CfgPatches
{

class RCmen
	{
	units[]={"RC_Rifleman"};
	weapons[]={};
	requiredAddons[]= {BIS_Resistance};
	requiredVersion=1.85;
	};
};


class CfgModels
{

class Default
	{
               sections[]={"Helmet","Hat"};
	sectionsInherit="";
	};

class Head:Default
	{
	sections[]={"osobnost","brejle"};
	};

class Man:Default
	{
	sections[]={"head injury","body injury","l arm injury","r arm injury","p arm injury","l leg injury","r leg injury","p leg injury","medic","hlava","krk","zasleh"};
	sectionsInherit="Head";
	};

class RC_Rifleman:Man 
	{
	sections[]={"head injury","body injury","l arm injury","r arm injury","p arm injury","l leg injury","r leg injury","p leg injury","medic","hlava","krk","zasleh","zadni svetlo","facenull"};
	sectionsInherit="Head";		
	};


class RC_Rifleman2:RC_Rifleman 
	{
	sections[]={"head injury","body injury","l arm injury","r arm injury","p arm injury","l leg injury","r leg injury","p leg injury","medic","hlava","krk","zasleh","zadni svetlo","facenull"};
	sectionsInherit="Head";		
	};

class RC_GPMGgunner:RC_Rifleman2
	{
	sections[]={"head injury","body injury","l arm injury","r arm injury","p arm injury","l leg injury","r leg injury","p leg injury","medic","hlava","krk","zasleh","zadni svetlo","facenull"};
	sectionsInherit="Head";		
	};

class RC_LSWgunner:RC_GPMGgunner 
	{
	sections[]={"head injury","body injury","l arm injury","r arm injury","p arm injury","l leg injury","r leg injury","p leg injury","medic","hlava","krk","zasleh","zadni svetlo","facenull"};
	sectionsInherit="Head";		
	};
class RC_Grenadier:RC_LSWgunner
	{
	sections[]={"head injury","body injury","l arm injury","r arm injury","p arm injury","l leg injury","r leg injury","p leg injury","medic","hlava","krk","zasleh","zadni svetlo","facenull"};
	sectionsInherit="Head";		
	};
class RC_AT:RC_Grenadier 
	{
	sections[]={"head injury","body injury","l arm injury","r arm injury","p arm injury","l leg injury","r leg injury","p leg injury","medic","hlava","krk","zasleh","zadni svetlo","facenull"};
	sectionsInherit="Head";		
	};
class RC_NCO:RC_AT
	{
	sections[]={"head injury","body injury","l arm injury","r arm injury","p arm injury","l leg injury","r leg injury","p leg injury","medic","hlava","krk","zasleh","zadni svetlo","facenull"};
	sectionsInherit="Head";		
	};
class RC_Officer:RC_NCO
	{
	sections[]={"head injury","body injury","l arm injury","r arm injury","p arm injury","l leg injury","r leg injury","p leg injury","medic","hlava","krk","zasleh","zadni svetlo","facenull"};
	sectionsInherit="Head";		
	};
};

class CfgVehicles
{

class All
	{
	};

class AllVehicles:All
	{
	};

class Land:AllVehicles
	{
	};

class Man:Land
	{
	};

class Soldier:Man
	{
	};

class SoldierWB:Soldier
	{
	};
class SoldierWMedic: SoldierWB{};

///////////////////////////////////////////////////////Rifleman/////////////////////////////////////////////

class RC_Rifleman:SoldierWB
	{
	model="\RCmen\RC_Rifleman.p3d";
	displayName="Rifleman";
               vehicleclass="RAVCRU Men";
	hiddenSelections[]={"Hat"};
	scope=2;
	side=1;
	camouflage=0.700000;
	armor = 5;
	armorStructural = 2.0;
	armorHead = 0.7;
	armorBody = 5.5;
	armorHands = 0.5;
	armorLegs = 0.5;
	weapons[]={"RC_SA80","Throw","Put","NVGoggles"};
       	magazines[]={"JAM_W556_30mag","JAM_W556_30mag","JAM_W556_30mag","JAM_W556_30mag","JAM_W556_30mag","JAM_W556_30mag","HandGrenade","HandGrenade","HandGrenade"};
	};

///////////////////////////////////////////////////////Rifleman Upgraded SA80/////////////////////////////////////////////

class RC_Rifleman2:RC_Rifleman
	{
	model="\RCmen\RC_Rifleman.p3d";
	displayName="Rifleman upgraded";
               vehicleclass="RAVCRU Men";
	hiddenSelections[]={"medic","Hat"};
	scope=2;
	side=1;
	camouflage=0.700000;
	armor = 5;
	armorStructural = 2.0;
	armorHead = 0.7;
	armorBody = 5.5;
	armorHands = 0.5;
	armorLegs = 0.5;
	weapons[]={"RC_SA80U","Throw","Put","NVGoggles"};
        magazines[]={"JAM_W556_30mag","JAM_W556_30mag","JAM_W556_30mag","JAM_W556_30mag","JAM_W556_30mag","JAM_W556_30mag","HandGrenade","HandGrenade","HandGrenade"};

	};

///////////////////////////////////////////////////////GPMG gunner/////////////////////////////////////////////

class RC_GPMGgunner:RC_Rifleman2
	{
	model="\RCmen\RC_Rifleman.p3d";
	displayName="GPMG gunner";
               vehicleclass="RAVCRU Men";
	hiddenSelections[]={"medic","Hat"};
	scope=2;
	side=1;
	camouflage=0.700000;
	armor = 5;
	armorStructural = 2.0;
	armorHead = 0.7;
	armorBody = 5.5;
	armorHands = 0.5;
	armorLegs = 0.5;
	weapons[]={"RC_GPMG","Throw","Put","NVGoggles"};
       	magazines[]={"JAM_W762M_100mag","JAM_W762M_100mag","JAM_W762M_100mag","JAM_W762M_100mag","JAM_W762M_100mag","JAM_W762M_100mag","JAM_W762M_100mag","JAM_W762M_100mag"};

};

///////////////////////////////////////////////////////LSW gunner/////////////////////////////////////////////

class RC_LSWgunner:RC_GPMGgunner
	{
	model="\RCmen\RC_Rifleman.p3d";
	displayName="LSW gunner";
               vehicleclass="RAVCRU Men";
	hiddenSelections[]={"medic","Hat"};
	scope=2;
	side=1;
	camouflage=0.700000;
	armor = 5;
	armorStructural = 2.0;
	armorHead = 0.7;
	armorBody = 5.5;
	armorHands = 0.5;
	armorLegs = 0.5;
	weapons[]={"RC_LSW","Throw","Put","NVGoggles"};	
               magazines[]={"JAM_W556_L86_30mag","JAM_W556_L86_30mag","JAM_W556_L86_30mag","JAM_W556_L86_30mag","JAM_W556_L86_30mag","JAM_W556_L86_30mag","JAM_W556_L86_30mag","JAM_W556_L86_30mag","JAM_W556_L86_30mag","JAM_W556_L86_30mag"};

	};

///////////////////////////////////////////////////////Grenadier/////////////////////////////////////////////

class RC_Grenadier:RC_LSWgunner
	{
	model="\RCmen\RC_Rifleman.p3d";
	displayName="Grenadier";
               vehicleclass="RAVCRU Men";
	hiddenSelections[]={"medic","Hat"};
	scope=2;
	side=1;
	camouflage=0.700000;
	armor = 5;
	armorStructural = 2.0;
	armorHead = 0.7;
	armorBody = 5.5;
	armorHands = 0.5;
	armorLegs = 0.5;
	weapons[]={"RC_SA80UGL","Throw","Put","NVGoggles"};	
               magazines[]={"JAM_W556_30mag","JAM_W556_30mag","JAM_W556_30mag","JAM_W556_30mag","JAM_W556_30mag","JAM_W556_30mag","JAM_M433belt"};

	};

///////////////////////////////////////////////////////AT gunner/////////////////////////////////////////////

class RC_AT:RC_Grenadier
	{
	model="\RCmen\RC_Rifleman.p3d";
	displayName="LAW Rifleman";
               vehicleclass="RAVCRU Men";
	hiddenSelections[]={"medic","Hat"};
	scope=2;
	side=1;
	camouflage=0.700000;
	armor = 5;
	armorStructural = 2.0;
	armorHead = 0.7;
	armorBody = 5.5;
	armorHands = 0.5;
	armorLegs = 0.5;
	weapons[]={"RC_SA80","Throw","Put","JAM_AT4Launcher","NVGoggles"};
       	magazines[]={"JAM_W556_30mag","JAM_W556_30mag","JAM_W556_30mag","JAM_W556_30mag","JAM_W556_30mag","JAM_W556_30mag","JAM_AT4ALLRocket","JAM_AT4ALLRocket"};

	};

///////////////////////////////////////////////////////Officer/////////////////////////////////////////////

class RC_Officer:RC_AT
	{
	model="\RCmen\RC_Rifleman.p3d";
	displayName="Officer";
               vehicleclass="RAVCRU Men";
	hiddenSelections[]={"medic","Hat"};
	scope=2;
	side=1;
	camouflage=0.700000;
	armor = 5;
	armorStructural = 2.0;
	armorHead = 0.7;
	armorBody = 5.5;
	armorHands = 0.5;
	armorLegs = 0.5;
	weapons[]={"RC_SA80U","Throw","Put","NVGoggles","Binocular"};
       	magazines[]={"JAM_W556_30mag","JAM_W556_30mag","JAM_W556_30mag","JAM_W556_30mag","JAM_W556_30mag","JAM_W556_30mag","SmokeShell","SmokeShell","SmokeShell","SmokeShell"};

	};

///////////////////////////////////////////////////////Non Commisioned Officer - NCO/////////////////////////////////////////////

class RC_NCO:RC_Officer
	{
	model="\RCmen\RC_Rifleman.p3d";
	displayName="NCO";
               vehicleclass="RAVCRU Men";
	hiddenSelections[]={"medic","Hat"};
	scope=2;
	side=1;
	camouflage=0.700000;
	armor = 5;
	armorStructural = 2.0;
	armorHead = 0.7;
	armorBody = 5.5;
	armorHands = 0.5;
	armorLegs = 0.5;
	weapons[]={"RC_SA80","Throw","Put","NVGoggles","Binocular"};
       	magazines[]={"JAM_W556_30mag","JAM_W556_30mag","JAM_W556_30mag","JAM_W556_30mag","JAM_W556_30mag","JAM_W556_30mag","SmokeShell","SmokeShell","SmokeShell","SmokeShell"};

	};

///////////////////////////////////////////////////////Medic/////////////////////////////////////////////

class RC_Medic:soldierWmedic
	{
	model="\RCmen\RC_Rifleman.p3d";
	displayName="Combat Med Tech";
               vehicleclass="RAVCRU Men";
	hiddenSelections[]={"medic","Hat"};
	scope=2;
	side=1;
	camouflage=0.700000;
	armor = 5;
	armorStructural = 2.0;
	armorHead = 0.7;
	armorBody = 5.5;
	armorHands = 0.5;
	armorLegs = 0.5;
	weapons[]={"RC_SA80","Throw","Put","NVGoggles"};
       	magazines[]={"JAM_W556_30mag","JAM_W556_30mag","JAM_W556_30mag","JAM_W556_30mag","JAM_W556_30mag","JAM_W556_30mag","SmokeShell","SmokeShell","SmokeShell","SmokeShell"};

	};

///////////////////////////////////////////////////////Sniper/////////////////////////////////////////////

class RC_SNIPER:RC_NCO
	{
	model="\RCmen\RC_Rifleman.p3d";
	displayName="Sniper";
               vehicleclass="RAVCRU Men";
	hiddenSelections[]={"medic","Helmet"};
	scope=2;
	side=1;
	camouflage=0.700000;
	armor = 5;
	armorStructural = 2.0;
	armorHead = 0.7;
	armorBody = 5.5;
	armorHands = 0.5;
	armorLegs = 0.5;
	weapons[]={"RC_L115A3","Throw","Put","NVGoggles","Binocular"};
       	magazines[]={"JAM_W338Lap_5SDmag","JAM_W338Lap_5SDmag","JAM_W338Lap_5SDmag","JAM_W338Lap_5SDmag","JAM_W338Lap_5SDmag","JAM_W338Lap_5SDmag"};

	};

///////////////////////////////////////////////////////Assistant gunner (tripod)/////////////////////////////////////////////

class RC_GUNNERASSIST:RC_SNIPER
	{
	model="\RCmen\RC_Rifleman.p3d";
	displayName="Assistant Gunner (Tripod)";
               vehicleclass="RAVCRU Men";
	hiddenSelections[]={"medic","Hat"};
	scope=2;
	side=1;
	camouflage=0.700000;
	armor = 5;
	armorStructural = 2.0;
	armorHead = 0.7;
	armorBody = 5.5;
	armorHands = 0.5;
	armorLegs = 0.5;
	weapons[]={"RC_SA80","Throw","Put","NVGoggles","Binocular","RC_TRIFOLD"};
       	magazines[]={"JAM_W556_30mag","JAM_W556_30mag","JAM_W556_30mag","JAM_W556_30mag","JAM_W556_30mag","JAM_W556_30mag"};

class eventhandlers
	{
	init=" [_this Select 0]  exec {\RCmen\scripts\TRIPODDEPLOY.sqs}"; 	
	};

	};

///////////////////////////////////////////////////////GMG gunner/////////////////////////////////////////////

class RC_GMGGUNNER:RC_GUNNERASSIST
	{
	model="\RCmen\RC_Rifleman.p3d";
	displayName="Rifleman (Folded GMG)";
               vehicleclass="RAVCRU Men";
	hiddenSelections[]={"medic","Hat"};
	scope=2;
	side=1;
	camouflage=0.700000;
	armor = 5;
	armorStructural = 2.0;
	armorHead = 0.7;
	armorBody = 5.5;
	armorHands = 0.5;
	armorLegs = 0.5;
	weapons[]={"RC_SA80","Throw","Put","NVGoggles","Binocular","RC_GMGFOLD"};
       	magazines[]={"JAM_W556_30mag","JAM_W556_30mag","JAM_W556_30mag","JAM_W556_30mag","RC_GMGBELT2","RC_GMGBELT2","RC_GMGBELT2","RC_GMGBELT2","RC_GMGBELT2","RC_GMGBELT2"};

	};

Share this post


Link to post
Share on other sites

I notice in your CfgVehicles section that your soldiers have a hidden selection "Hat", some have "medic" and "Hat"

But in your CfgModels section, there is none of your models that have this Hat selection defined, while they have "medic" defined.

Try to add the Hat selection too in there.

Maybe that's the source of your trouble.

Share this post


Link to post
Share on other sites

Hey Sanctuary,

Thanks for the help. I didn't think I had to put it in that bit.

Regards,

LEGION7698.

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  

×