-
Notifications
You must be signed in to change notification settings - Fork 10
Example Ammo Crates config
Tupolov edited this page Nov 27, 2017
·
2 revisions
#define public 2
#define mag_xx(a,b) class _xx_##a {magazine = CUP_##a; count = b;}
#define weap_xx(a,b) class _xx_##a {weapon = CUP_##a; count = b;}
#define item_xx(a,b) class _xx_##a {name = a; count = b;}
class cfgVehicles
{
class CUP_ReammoBox_EP1;
class CUP_ReammoBox;
/* Russian Ammo Boxes */
class CUP_RUBasicAmmunitionBox: CUP_ReammoBox
{
author = "$STR_CUP_AUTHOR_STRING";
scope = 2;
//accuracy = 1000;
displayName = $STR_CUP_BasicAmmoRU;
model = "\CUP\Weapons\CUP_Weapons_AmmoBoxes\CUP_RUBasicAmmo.p3d";
class TransportMagazines
{
mag_xx(30Rnd_762x39_AK47_M,100);
mag_xx(30Rnd_545x39_AK_M,400);
mag_xx(30Rnd_TE1_Green_Tracer_545x39_AK_M,400);
//mag_xx(30Rnd_545x39_AK_MSD_M,20);
mag_xx(8Rnd_9x18_Makarov_M,50);
mag_xx(8Rnd_9x18_MakarovSD_M,20);
mag_xx(64Rnd_9x19_Bizon_M,50);
mag_xx(64Rnd_Green_Tracer_9x19_Bizon_M,50);
mag_xx(64Rnd_Red_Tracer_9x19_Bizon_M,50);
mag_xx(64Rnd_White_Tracer_9x19_Bizon_M,50);
mag_xx(64Rnd_Yellow_Tracer_9x19_Bizon_M,50);
//mag_xx(64Rnd_9x19_SD_Bizon_M,20);
mag_xx(1Rnd_HE_GP25_M,80);
mag_xx(FlareWhite_GP25_M,2);
mag_xx(FlareGreen_GP25_M,2);
mag_xx(FlareRed_GP25_M,2);
mag_xx(FlareYellow_GP25_M,2);
mag_xx(100Rnd_TE4_LRT4_762x54_PK_Tracer_Green_M,100);
mag_xx(5Rnd_127x108_KSVK_M,30);
mag_xx(8Rnd_B_Saiga12_74Slug_M,50);
mag_xx(10Rnd_762x54_SVD_M,50);
mag_xx(20Rnd_9x39_SP5_VSS_M,20);
mag_xx(10Rnd_9x39_SP5_VSS_M,20);
mag_xx(75Rnd_TE4_LRT4_Green_Tracer_545x39_RPK_M,100);
// mag_xx(HandGrenade_East,50);
mag_xx(HandGrenade_RGD5,50);
mag_xx(HandGrenade_RGO,50);
mag_xx(PG7V_M,15);
mag_xx(PG7VR_M,5);
mag_xx(RPG18_M,10);
mag_xx(1Rnd_SmokeRed_GP25_M,2);
mag_xx(1Rnd_SmokeGreen_GP25_M,2);
mag_xx(1Rnd_SmokeYellow_GP25_M,2);
mag_xx(1Rnd_Smoke_GP25_M,2);
mag_xx(IlumFlareWhite_GP25_M, 5);
mag_xx(IlumFlareRed_GP25_M, 5);
mag_xx(IlumFlareGreen_GP25_M, 5);
//mag_xx(SmokeShellRed,2);
//mag_xx(SmokeShellGreen,2);
//mag_xx(SmokeShellYellow,2);
//mag_xx(SmokeShell,5);
};
class TransportWeapons
{
weap_xx(AK_47_M,4);
weap_xx(AK_74,4);
};
class TransportItems
{
item_xx(CUP_optic_PSO_1,5);
item_xx(CUP_optic_Kobra,5);
};
/* ACE CARGO : */
ace_cargo_size = 2; // Cargo space the object takes
ace_cargo_canLoad = 1; // Enables the object to be loaded (1-yes, 0-no)
ace_dragging_canDrag = 1; // Can be dragged (0-no, 1-yes)
ace_dragging_dragPosition[] = {0, 1.3, 0}; // Offset of the model from the body while dragging (same as attachTo)
ace_dragging_dragDirection = 90; // Model direction while dragging (same as setDir after attachTo)
ace_dragging_canCarry = 1; // Can be carried (0-no, 1-yes)
ace_dragging_carryPosition[] = {0, 1.2, 1}; // Offset of the model from the body while dragging (same as attachTo)
ace_dragging_carryDirection = 0; // Model direction while dragging (same as setDir after attachTo)
};
class CUP_RUBasicWeaponsBox: CUP_RUBasicAmmunitionBox
{
author = "$STR_CUP_AUTHOR_STRING";
displayname = $STR_CUP_BasicWeaponsRU;
model = "CUP\Weapons\CUP_Weapons_AmmoBoxes\CUP_RUBasicWeapons.p3d";
class TransportMagazines
{
mag_xx(30Rnd_762x39_AK47_M,80);
mag_xx(30Rnd_545x39_AK_M,250);
mag_xx(30Rnd_TE1_Green_Tracer_545x39_AK_M,250);
mag_xx(8Rnd_9x18_Makarov_M,100);
mag_xx(64Rnd_9x19_Bizon_M,40);
mag_xx(1Rnd_HE_GP25_M,80);
mag_xx(FlareWhite_GP25_M,2);
mag_xx(FlareGreen_GP25_M,2);
mag_xx(FlareRed_GP25_M,2);
mag_xx(FlareYellow_GP25_M,2);
mag_xx(1Rnd_SmokeRed_GP25_M,2);
mag_xx(1Rnd_SmokeGreen_GP25_M,2);
mag_xx(1Rnd_SmokeYellow_GP25_M,2);
mag_xx(1Rnd_Smoke_GP25_M,2);
mag_xx(IlumFlareWhite_GP25_M, 5);
mag_xx(IlumFlareRed_GP25_M, 5);
mag_xx(IlumFlareGreen_GP25_M, 5);
// mag_xx(HandGrenade_East,50);
mag_xx(HandGrenade_RGD5,50);
mag_xx(HandGrenade_RGO,50);
};
class TransportWeapons
{
weap_xx(AK_47_M,4);
weap_xx(AK_47_S,4);
weap_xx(AK_74,4);
weap_xx(AK_74_GL,2);
weap_xx(AKS_74_kobra,2);
weap_xx(AK_107_GL_kobra,2);
weap_xx(AK_107_GL_pso,2);
weap_xx(AK_107_kobra,4);
weap_xx(AK_107_pso,2);
weap_xx(AKS_74_pso,2);
weap_xx(AKS_74_U,4);
weap_xx(bizon,4);
weap_xx(Makarov,10);
// New
weap_xx(AK_107,2);
weap_xx(AKS_74,2);
};
class TransportItems
{
item_xx(CUP_optic_PSO_1,5);
item_xx(CUP_optic_Kobra,5);
item_xx(CUP_muzzle_PBS4,5);
item_xx(CUP_muzzle_Bizon,5);
};
/* ACE CARGO : */
ace_cargo_size = 8; // Cargo space the object takes
ace_cargo_canLoad = 1; // Enables the object to be loaded (1-yes, 0-no)
ace_dragging_canDrag = 0; // Can be dragged (0-no, 1-yes)
ace_dragging_canCarry = 0; // Can be carried (0-no, 1-yes)
};
class CUP_RUSpecialWeaponsBox: CUP_RUBasicAmmunitionBox
{
author = "$STR_CUP_AUTHOR_STRING";
displayname = $STR_CUP_SpecialWeaponsRU;
model = "CUP\Weapons\CUP_Weapons_AmmoBoxes\CUP_RUSpecialWeapons.p3d";
class TransportMagazines
{
mag_xx(100Rnd_TE4_LRT4_762x54_PK_Tracer_Green_M,30);
mag_xx(5Rnd_127x108_KSVK_M,20);
mag_xx(8Rnd_B_Saiga12_74Slug_M,40);
mag_xx(10Rnd_762x54_SVD_M,40);
mag_xx(30Rnd_545x39_AK_M,250);
mag_xx(8Rnd_9x18_Makarov_M,60);
mag_xx(8Rnd_9x18_MakarovSD_M,20);
mag_xx(10Rnd_9x39_SP5_VSS_M,20);
mag_xx(75Rnd_TE4_LRT4_Green_Tracer_545x39_RPK_M,40);
mag_xx(64Rnd_9x19_Bizon_M,40);
};
class TransportWeapons
{
weap_xx(PK,4);
weap_xx(ksvk,2);
weap_xx(Saiga12K,4);
weap_xx(SVD,4);
weap_xx(SVD_CAMO,2);
weap_xx(RPK_74,4);
weap_xx(srifle_VSSVintorez,2);
weap_xx(bizon_silenced,4);
weap_xx(AKS_74_UN_kobra,2);
weap_xx(MakarovSD,8);
weap_xx(Pecheneg,2);
};
class TransportItems
{
item_xx(CUP_optic_PSO_1,5);
item_xx(CUP_optic_PSO_3,2);
item_xx(CUP_optic_Kobra,5);
item_xx(CUP_muzzle_PBS4,5);
item_xx(CUP_optic_GOSHAWK,1);
item_xx(CUP_optic_NSPU,1);
item_xx(CUP_muzzle_Bizon,5);
item_xx(CUP_optic_PechenegScope,2);
};
/* ACE CARGO : */
ace_cargo_size = 8; // Cargo space the object takes
ace_cargo_canLoad = 1; // Enables the object to be loaded (1-yes, 0-no)
ace_dragging_canDrag = 0; // Can be dragged (0-no, 1-yes)
ace_dragging_canCarry = 0; // Can be carried (0-no, 1-yes)
};
class CUP_RULaunchersBox: CUP_RUBasicAmmunitionBox
{
author = "$STR_CUP_AUTHOR_STRING";
displayname = $STR_CUP_LaunchersRU;
model = "\CUP\Weapons\CUP_Weapons_AmmoBoxes\CUP_RULaunchers.p3d";
class TransportMagazines
{
mag_xx(Strela_2_M,3);
mag_xx(PG7V_M,15);
mag_xx(PG7VR_M,5);
mag_xx(PG7VL_M,10);
mag_xx(OG7_M,10);
mag_xx(Igla_M,1);
mag_xx(RPG18_M,15);
mag_xx(AT13_M,1);
};
class TransportWeapons
{
weap_xx(launch_9K32Strela,3);
weap_xx(RPG7V,3);
weap_xx(Igla,1);
weap_xx(RPG18,3);
weap_xx(MetisLauncher,1);
};
/* ACE CARGO : */
ace_cargo_size = 4; // Cargo space the object takes
ace_cargo_canLoad = 1; // Enables the object to be loaded (1-yes, 0-no)
ace_dragging_canDrag = 1; // Can be dragged (0-no, 1-yes)
ace_dragging_dragPosition[] = {0, 1.8, 0}; // Offset of the model from the body while dragging (same as attachTo)
ace_dragging_dragDirection = 90; // Model direction while dragging (same as setDir after attachTo)
ace_dragging_canCarry = 0; // Can be carried (0-no, 1-yes)
};
class CUP_RUOrdnanceBox: CUP_RUBasicAmmunitionBox
{
author = "$STR_CUP_AUTHOR_STRING";
displayname = $STR_CUP_ExplosivesRU;
model = "\CUP\Weapons\CUP_Weapons_AmmoBoxes\CUP_RUOrdnance.p3d";
class TransportMagazines
{
mag_xx(MineE_M,10);
mag_xx(PipeBomb_M,20);
// mag_xx(HandGrenade_East,30);
mag_xx(HandGrenade_RGD5,30);
mag_xx(HandGrenade_RGO,30);
};
class TransportWeapons{};
/* ACE CARGO : */
ace_cargo_size = 4; // Cargo space the object takes
ace_cargo_canLoad = 1; // Enables the object to be loaded (1-yes, 0-no)
ace_dragging_canDrag = 1; // Can be dragged (0-no, 1-yes)
ace_dragging_dragPosition[] = {0, 1.8, 0}; // Offset of the model from the body while dragging (same as attachTo)
ace_dragging_dragDirection = 90; // Model direction while dragging (same as setDir after attachTo)
ace_dragging_canCarry = 0; // Can be carried (0-no, 1-yes)
};
class CUP_RUVehicleBox: CUP_RUBasicAmmunitionBox
{
author = "$STR_CUP_AUTHOR_STRING";
displayname = $STR_CUP_VehicleAmmoRU;
model = "\CUP\Weapons\CUP_Weapons_AmmoBoxes\CUP_RUVehicleAmmo.p3d";
class TransportMagazines
{
mag_xx(100Rnd_TE4_LRT4_762x54_PK_Tracer_Green_M,50);
};
class TransportWeapons{};
transportAmmo = 100000;
supplyRadius = 3;
/* ACE CARGO : */
ace_cargo_size = 20; // Cargo space the object takes
ace_cargo_canLoad = 1; // Enables the object to be loaded (1-yes, 0-no)
ace_dragging_canDrag = 0; // Can be dragged (0-no, 1-yes)
ace_dragging_canCarry = 0; // Can be carried (0-no, 1-yes)
};