Jump to content
Sign in to follow this  
saetheer

Unit Addon, Uniform trouble

Recommended Posts

Hey

So my unit addon have broken since the last patch, don't know whats happen as the problem seems to only be present on dedicated servers

One mission works fine in editor, and when hosting the mission from 'multiplayer menu' but hosted on dedicated seems like the issue. No scripts are running that does something with gear/iventory.

My unit config:

    class L_F_SQL : I_Soldier_TL_F
   {
       author = "Saetheer";
       scope = 2;
       faction = "LAMBS";
	displayName = "Teamleader";  
	vehicleClass = "Lambs_Fox";
	uniformclass = "U_I_G_Story_Protagonist_F";
	backpack = "L_C_FTLpack";
       // Weapons
       weapons[] = {"arifle_TRG21_gl_F","hgun_P07_F","Rangefinder","Throw","Put"};
       respawnWeapons[] = {"arifle_TRG21_gl_F","hgun_P07_F","Rangefinder","Throw","Put"};
       // Magazines
	magazines[] = {"30Rnd_556x45_Stanag","30Rnd_556x45_Stanag","30Rnd_556x45_Stanag","30Rnd_556x45_Stanag","30Rnd_556x45_Stanag","30Rnd_556x45_Stanag","30Rnd_556x45_Stanag","30Rnd_556x45_Stanag","1Rnd_HE_Grenade_shell","1Rnd_HE_Grenade_shell","1Rnd_HE_Grenade_shell","16Rnd_9x21_Mag","16Rnd_9x21_Mag","16Rnd_9x21_Mag","SmokeShell","SmokeShell","HandGrenade","HandGrenade","HandGrenade"};
       respawnMagazines[] = {"30Rnd_556x45_Stanag","30Rnd_556x45_Stanag","30Rnd_556x45_Stanag","30Rnd_556x45_Stanag","30Rnd_556x45_Stanag","30Rnd_556x45_Stanag","30Rnd_556x45_Stanag","30Rnd_556x45_Stanag","1Rnd_HE_Grenade_shell","1Rnd_HE_Grenade_shell","1Rnd_HE_Grenade_shell","16Rnd_9x21_Mag","16Rnd_9x21_Mag","16Rnd_9x21_Mag","SmokeShell","SmokeShell","HandGrenade","HandGrenade","HandGrenade"};
       // Items
       linkedItems[] = {"V_PlateCarrierL_CTRG","H_HelmetB_light_black","ItemMap","ItemCompass","ItemGPS","ItemWatch","ACRE_PRC343"};
       respawnLinkedItems[] = {"V_PlateCarrierL_CTRG","H_HelmetB_light_black","ItemMap","ItemCompass","ItemGPS","ItemWatch","ACRE_PRC343"};
   };

snip from cfgFactionClasses

class cfgFactionClasses {
// LAMBS
   class PREFIX 
{
	displayName = "L.A.M.B.S"; 
	flag = "\LAMBS\NoPryl_Logo.paa"; 
	icon = "\LAMBS\NoPryl_Logo.paa"; 
	priority = 1; 
	side = 2; // Independent side
   };
// MODULE
class NO_CATEGORY;
class LAMBS_MODULE: NO_CATEGORY
{
	displayName = "LAMBS Module";
};
};

Now this have earlier work swell but on tuesday noone had Uniforms present, crates with uniforms had to be spawned. Which made me wonder how that could be possible when the uniform U_I_G_Story_Protagonist_F are in fact meant for independent? Appreciate any info anyone could have - let me know if you need more insight into the config

Share this post


Link to post
Share on other sites

U_I_G_Story_Protagonist_F is a BLUFOR uniform and that's why it's not showing up on your independent character.

Share this post


Link to post
Share on other sites

hmm - interesting. But it does not explain why this has worked before... ?

Share this post


Link to post
Share on other sites

I'm not quite sure how it worked beforehand because it's not something i've really looked into but if you want a uniform similar to that one, "U_BG_Guerilla2_1" is a very similar uniform with the exact same shirt but slightly different pants.

Share this post


Link to post
Share on other sites

You're right regarding the similar uniform, but its not perfect, thanks anyway for the tip. It looks like I need to create a "new" uniform and just copy its properties and only give it to another side instead.

Share this post


Link to post
Share on other sites

Anyone know why this dont work in unit config?

 modelSides[] = {3,2,1,0};

It dont give access to side specific uniforms.

Appreciate any help

Share this post


Link to post
Share on other sites
Anyone know why this dont work in unit config?

 modelSides[] = {3,2,1,0};

It dont give access to side specific uniforms.

Appreciate any help

It does, my Unlocked_Uniforms addon is based on that.

Share this post


Link to post
Share on other sites

Hello Pepe,

I have the same issue, but your fix does not work for me. Running with your Unlocked Uniforms , I am unable to give OPFOR and RESISTANCE any BLUFOR uniforms through a new addon. All the basic ones, like U_BG_Guerilla3_2, U_BG_Guerilla1_1 and so on. I enclose a config below, but I don't think I've erred very greatly. They end up using some routine OPFOR guerilla stuff instead of what I need.

class CfgPatches
{
class 16aa_condor_inf
{
	units[]={};
	weapons[]={};
	requiredVersion=1;
	requiredAddons[]=
	{
		"A3_Weapons_F",
		"A3_Characters_F_BLUFOR",
		"A3_Characters_F_INDEP",
		"A3_Weapons_F_beta",
		"Unlocked_Uniforms"
	};
};
};



class CfgVehicleClasses
{
class 16aa_condor_InfantryClass
{
	displayName="Men";
	priority=3;
};
};

class cfgFactionClasses
{
class 16aa_alawfaction
{
	displayName="Alawite";
	icon="";
	priority=10;
	side=0;
};
};

class CfgVehicles
{
// BI Soldier bases.
class B_G_Soldier_M_F;
class B_G_Soldier_SL_F;
class B_G_Soldier_TL_F;
class B_G_Soldier_AR_F;
class B_G_Soldier_LAT_F;
class B_G_Soldier_F;

// Alawite use base classes.
class 16aa_Soldier_SL : B_G_Soldier_SL_F
{
	side=0;
	faction="16aa_alawfaction";
	backpack="";
	vehicleclass="16aa_condor_InfantryClass";
	author="";
	_generalMacro="16aa_Soldier_SL";
	displayName="Section Leader";
	weapons[]=
	{
		"arifle_mas_akm",
		"Throw",
		"Put",
		"Binocular"
	};
	respawnWeapons[]=
	{
		"arifle_mas_akm",
		"Throw",
		"Put",
		"Binocular"
	};
	magazines[]=
	{
		"30Rnd_mas_762x39_mag"
	};
	respawnMagazines[]=
	{
		"30Rnd_mas_762x39_mag"
	};
	linkedItems[]=
	{
		"V_I_G_resistanceLeader_F",
		"ItemMap",
		"ItemCompass",
		"ItemWatch",
		"ItemRadio"
	};
	respawnLinkedItems[]=
	{
		"V_I_G_resistanceLeader_F",
		"ItemMap",
		"ItemCompass",
		"ItemWatch",
		"ItemRadio"
	};
	uniformClass="U_BG_Guerilla1_1";
};

// "R1" as in "Regular 1"
class 16aa_Soldier_R1 : B_G_Soldier_F
{
	side=0;
	faction="16aa_alawfaction";
	backpack="";
	vehicleclass="16aa_condor_InfantryClass";
	author="";
	_generalMacro="16aa_Soldier_R1";
	displayName="Rifleman 1";
	weapons[]=
	{
		"arifle_mas_akm",
		"Throw",
		"Put",
		"Binocular"
	};
	respawnWeapons[]=
	{
		"arifle_mas_akm",
		"Throw",
		"Put",
		"Binocular"
	};
	magazines[]=
	{
		"30Rnd_mas_762x39_mag"
	};
	respawnMagazines[]=
	{
		"30Rnd_mas_762x39_mag"
	};
	linkedItems[]=
	{
		"V_I_G_resistanceLeader_F",
		"ItemMap",
		"ItemCompass",
		"ItemWatch",
		"ItemRadio"
	};
	respawnLinkedItems[]=
	{
		"V_I_G_resistanceLeader_F",
		"ItemMap",
		"ItemCompass",
		"ItemWatch",
		"ItemRadio"
	};
	uniformClass="U_BG_Guerilla2_1";
};

};

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  

×