Jump to content
Sign in to follow this  
Bkp

New items crate

Recommended Posts

Hello,

I want to make a new crate with the radios from ACRE

So far I made this:

config.cpp:

#define private 0

#define protected 1

#define public 2

#define true 1

#define false 0

enum {

STABILIZEDINAXISX = 1,

STABILIZEDINAXISY = 2,

STABILIZEDINAXESBOTH = 3,

STABILIZEDINAXESNONE = 0,

};

class CfgPatches {

class ACRE_radios {

units[] = {};

weapons[] = {};

requiredVersion = 1.02;

requiredAddons[] = {};

};

};

class CfgVehicles {

class USSpecialWeaponsBox; // External class reference

class ReammoBox; // External class reference

class ReammoBox_EP1 : ReammoBox {

expansion = 1;

};

class Bag_Base_EP1; // External class reference

class Acre_RadioBox : USSpecialWeaponsBox {

displayName = "Acre Radio Box";

class TransportWeapons {

class _xx_ACRE_PRC148 {

weapon = "ACRE_PRC148";

count = 20;

};

class _xx_ACRE_PRC148_UHF {

weapon = "ACRE_PRC148_UHF";

count = 20;

};

class _xx_ACRE_PRC119 {

weapon = "ACRE_PRC119";

count = 20;

};

class _xx_ACRE_PRC117F {

weapon = "ACRE_PRC117F";

count = 20;

};

};

};

};

+ $PBOPREFIX$ file:

acrebox

and made from those two a .pbo file called "acrebox"

But it won't appear in the editor

Share this post


Link to post
Share on other sites

Nevermind I managed to do this myself:

#define private 0

#define protected 1

#define public 2

#define true 1

#define false 0

enum {

STABILIZEDINAXISX = 1,

STABILIZEDINAXISY = 2,

STABILIZEDINAXESBOTH = 3,

STABILIZEDINAXESNONE = 0,

};

class CfgPatches {

class ACRE_radios {

units[] = {};

weapons[] = {};

requiredVersion = 1.02;

requiredAddons[] = {};

};

};

class CfgVehicles {

class USBasicWeapons_EP1; // External class reference

class Acre_Radiobox : USBasicWeapons_EP1 {

displayName = "Radio Crate";

model = "\ca\weapons\AmmoBoxes\USBasicWeapons.p3d";

vehicleClass = "Ammo";

class TransportWeapons {

class _xx_ACRE_PRC148 {

weapon = "ACRE_PRC148";

count = 20;

};

class _xx_ACRE_PRC148_UHF {

weapon = "ACRE_PRC148_UHF";

count = 20;

};

class _xx_ACRE_PRC119 {

weapon = "ACRE_PRC119";

count = 20;

};

class _xx_ACRE_PRC117F {

weapon = "ACRE_PRC117F";

count = 20;

};

};

};

};

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  

×