Ok, let's start.
1) first create a folder and name it whate ever you like
2) class CfgVehicles {
class All; // External class reference
class Strategic; // External class reference
class Land; // External class reference
class ReammoBox; // External class reference
class AmmoBoxWest;
class WeaponBoxWest;
class My_WeaponBox : AmmoBoxWest {
model = "\ca\Weapons\hromada_beden.p3d";
displayName = $STR_DN_AMMO_CRATES_HWM; \\if you have a stringtable cfg or displayName = "My ammo box"; write inside the "" your desired name
vehicleclass = "My Ammo class"; \\\ or vehicleClass = "Ammo"; if you want to be in the same drop down menu in the editor as BIS ones
class TransportMagazines {
class MagC1 {
magazine = "HWM_HKG3Mag";
count = 200;
};
add here other magazine classes
.......
Keep not magazine name should be the appropriate magazine name defined in CfgMagazines.hpp };
class TransportWeapons {
class WeapC1 {
weapon = "HWM_HKG3A3";
count = 20;
};
add here other weapon classes
.......
Keep not magazine name should be the appropriate magazine name defined in CfgWeapons.hpp };
};
};
General notes.
1)your class name give your desired name
2)the vehicles class watch the comment above
3)in each class you add in classTransportWeapons or TransportMagazines should have different name according to this example class WeapC1 the other should be WeapC2 the other WeapC3 etc..save this as CfgVehicles.hpp
3) if you want to creat a pbo only with your ammo boxes the you need to add this too.
class CfgPatches {
class My pbo name{
//write here your pbo name units[] = {};
weapons[] = {"My_WeaponBox"};
//write here the class name of your ammo box requiredVersion = 0.1;
requiredAddons[] = {"CAData", "CA_Anims_Char", "HWM_Core"};
};
};
save this file as CfgPatches.cpp
4)this is if you want to create you custom vehicle class (for the editor drop down menu)
class CfgVehicleClasses {
class My Ammo class {
//write here you previously vehicle class name withouth the "" displayName = "This is my Custom Ammo boxes";
write here a name that you want to apear in the editor unde empty->name };
};
save this as CfgVehicleClasses.hpp
5) #define true 1
#define false 0
#define VSoft 0
#define VArmor 1
#define VAir 2
#define private 0
#define protected 1
#define public 2
#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 ReadAndWrite 0
#define ReadAndCreate 1
#define ReadOnly 2
#define ReadOnlyVerified 3
#define LockNo 0
#define LockCadet 1
#define LockYes 2
#include "CfgVehicleClasses.hpp"
#include "CfgVehicles.hpp"
#include "CfgPatches.hpp"
copy the previously exactly as is and name it confg.cpp
6) pbo your folder and give it a go..