Hello everyone. Lately i started make my first retexture mod (for education), but when i tried to load my unit into the Editor, i get an error
about wrong "uniformClass". This unit appears with equipment and looks like a regular CSAT soldier, but it didnt have a uniform. Unfortunately, i can't understand the game well, and cant find solution.
#include "BIS_AddonInfo.hpp"
class CfgPatches
{
class KAF_Config
{
units[] = {"Custom_uniform_mod";};
weapons[] = {};
requiredVersion = 0.1;
requiredAddons[] = {"A3_Characters_F"};
};
};
class cfgFactionClasses
{
class KAF
{
displayName = "KAF";
priority = 7;
side = 2;
};
};
class cfgVehicles
{
class I_soldier_F; //base unit
class Rifleman : I_soldier_F {
author = "Nortomo"; //aouthor
_generalMacro = "I_soldier_F"; //idk
threat[] = {0.8, 0.1, 0.1}; //priority target for bots infantry and no armored vehicles/ifv's, apc, tanks, armed vehicles/aerial vehicles
scope = 2; //availible in editor or not
displayName = "Rifleman"; //definetily yes
identityTypes[] = {"LanguageGRE_F", "Head_Asian", "G_HAF_default"}; //bcz chinese is not sound like kalmyk
genericNames = "NATOMen"; //names of soldiers
faction = "KAF"; //Kalmyk armed forces
model = "\a3\characters_f\OPFOR\o_soldier_01.p3d"; //model of csat uniform
uniformClass = "KLM_uniform"; //something wrong
hiddenSelections[] = {"Camo", "Insignia"};
hiddenSelectionsTextures[] = {"KAF\Data\clothing_KLMgreen_CO.paa"}; //, "KAF\Data\clothing_KLMsand_co.paa"
weapons[] = {"arifle_MX_Black_Hamr_pointer_F", "hgun_Rook40_F", "Throw", "Put"};
respawnWeapons[] = {"arifle_MX_Black_Hamr_pointer_F", "hgun_Rook40_F", "Throw", "Put"};
Items[] = {"FirstAidKit", "FirstAidKit"};
respawnItems[] = {"FirstAidKit", "FirstAidKit"};
magazines[] = {"30Rnd_65x39_caseless_black_mag", "30Rnd_65x39_caseless_black_mag", "30Rnd_65x39_caseless_black_mag", "30Rnd_65x39_caseless_black_mag", "30Rnd_65x39_caseless_black_mag", "30Rnd_65x39_caseless_black_mag", "16Rnd_9x21_Mag", "16Rnd_9x21_Mag", "16Rnd_9x21_Mag", "HandGrenade", "SmokeShell","SmokeShellGreen", "Chemlight_yellow", "Chemlight_yellow"};
respawnMagazines[] = {"30Rnd_65x39_caseless_black_mag", "30Rnd_65x39_caseless_black_mag", "30Rnd_65x39_caseless_black_mag", "30Rnd_65x39_caseless_black_mag", "30Rnd_65x39_caseless_black_mag", "30Rnd_65x39_caseless_black_mag", "16Rnd_9x21_Mag", "16Rnd_9x21_Mag", "16Rnd_9x21_Mag", "HandGrenade", "SmokeShell","SmokeShellGreen", "Chemlight_yellow", "Chemlight_yellow"};
linkedItems[] = {"V_PlateCarrier1_blk", "H_HelmetAggressor_F", "O_NVGoggles_grn_F", "ItamMap", "ItemCompass", "itemWatch", "ItemRadio"};
respawnLinkedItems[] = {"V_PlateCarrier1_blk", "H_HelmetAggressor_F", "O_NVGoggles_grn_F", "ItamMap", "ItemCompass", "itemWatch", "ItemRadio"};
};
//other units
};
class cfgWeapons
{
class ItemCore;
class UniformItem;
class Uniform_Base : ItemCore
{
class ItemInfo; //why
};
class KLM_uniform : Uniform_Base
{
scope = 2;
displayName = "Kalmyk green uniform";
picture = "KAF\ui\ui_klm_uniform.paa"; //wrong pic
model = "\A3\characters_f\OPFOR\o_soldier_01.p3d";
class ItemInfo : UniformItem { //aaaaaa
uniformcClass = "Rifleman";
containerClass = "Supply50";
mass = 50;
};
};
And when i type "arifle_MX_Black_Hamr_F" error appears too, but i don't want laser pointer.
Im so sorry for overcomments in code.