Hello everyone. I'm new in coding and I was about to create a mod to retexture a vest skin. The model I wanna retexture is the "V_PlateCarrierSpec_rgr".
I inspired my code from other posts in the forum.
Here is my full config.cpp :
/// Vest_Camo_Base config ///
class cfgWeapons
{
class ItemCore;
class VestItem;
class Vest_Camo_Base: ItemCore
{
class ItemInfo;
};
class LRI_Vest : Vest_Camo_Base
{
author = "xorellioin";
scope = public;
displayName="LRI VEST";
weaponPoolAvailable = 1;
allowedSlots[] = {901}; // This means the vest can be put into a backpack.
picture = "\A3\Characters_F_Mark\Data\UI\icon_carrier_spec_rig_grn.paa";
model = "\A3\Characters_F\BLUFOR\equip_b_carrier_spec_rig.p3d";
hiddenSelectionsTextures[] = {"\A3\Characters_F_Mark\BLUFOR\Data\carrier_gl_rig_blk_co.paa"};
class ItemInfo: VestItem
{
uniformModel = "\A3\Characters_F\BLUFOR\equip_b_carrier_spec_rig.p3d";
containerClass = Supply100;
mass = 120;
class HitpointsProtectionInfo
{
class Neck
{
hitpointName="HitNeck";
armor=8;
passThrough=0.5;
};
class Arms
{
hitpointName="HitArms";
armor=8;
passThrough=0.5;
};
class Chest
{
hitpointName="HitChest";
armor=24;
passThrough=0.1;
};
class Diaphragm
{
hitpointName="HitDiaphragm";
armor=24;
passThrough=0.1;
};
class Abdomen
{
hitpointName="HitAbdomen";
armor=24;
passThrough=0.1;
};
class Body
{
hitpointName="HitBody";
passThrough=0.1;
};
};
};
};
};
My idea was that I maybe forgot something in class ItemInfo or before the CfgWeapons class.
What's wrong with it ? When I open the game a message appear : No entry 'bin\config.bin/CfgWeapons/ItemInfo.scope' and I can't find it in the arsenal.
Thx for help.
Apologize my English.