Hi,
I have simple question, when I put my custom ammo box in addon folder, cars configured with "class car_sedan" got gunner place, and here is link where you can download that addon:
HK MP5 + HK MP5 SD
http://dodownload.filefront.com/9844507//cc0a1eaf2ef6636065e14b675fe2b9845ffba46550ab3a0b437e4d4efc4fdeef2e5ca6f2ffd11da8 and here is config file
#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 true 1
#define false 0
// type scope
#define private 0
#define protected 1
#define public 2
#define WeaponNoSlot 0// dummy weapons
#define WeaponSlotPrimary 1// primary weapons
#define WeaponSlotSecondary 16// secondary weapons
#define WeaponSlotItem 256// items
#define WeaponSlotBinocular 4096// binocular
#define WeaponHardMounted 65536
//------------------------------------------------------------------------------------
class CfgPatches
{
class CAWeapons
{
units[] = {};
weapons[] = {"BriefcaseMP5"};
requiredAddons[] = {};
requiredVersion = 1.00;
};
};
//------------------------------------------------------------------------------------
class CfgSkeletons
{
class BriefcaseMP5
{
isDiscrete=1;
skeletonInherit = "";
skeletonBones[]=
{
"poklopac","",
"case","",
"otvarac","",
"zbran","",
};
};
};
//------------------------------------------------------------------------------------
class CfgModels
{
class BriefcaseMP5_1
{
sectionsInherit = "";
sections[] ={"poklopac","box","otvarac","zbran"};
skeletonName = "BriefcaseMP5";
class Animations
{
class Open_Box
{
type = "rotation";
source = "opbt";
animPeriod = 1;
selection = "poklopac";
axis = "osa_poklopac";
memory = true;
minValue = 0;
maxValue = 1;
angle0 = 0;
angle1 = "rad -120";
};
};
};
class BriefcaseMP5 : BriefcaseMP5_1{};
};
//------------------------------------------------------------------------------------
class CfgVehicles
{
class Strategic;
class ReammoBox: Strategic
{
animated = 1;
scope = 1;
displayName = "$STR_DN_AMMO_CRATES";
nameSound = "ammocrate";
accuracy = 0.200000;
typicalCargo = {};
vehicleClass = "Ammo";
destrType = "DestructEngine";
transportMaxWeapons = 5000;
transportMaxMagazines = 20000;
transportAmmo = 0;
transportRepair = 0;
transportFuel = 0;
supplyRadius = 1.400000;
cost = 0;
armor = 200;
mapSize = 2.000000;
};
class BriefcaseMP5: ReammoBox
{
scope = 2;
icon = "\BriefcaseMP5\data\icomap_ammo_CA.paa";
class AnimationSources
{
class opbt
{
source = "user";
animPeriod = 1;
initPhase = 0;
};
};
class UserActions
{
class OpenBox
{
displayName = "Open briefcase";
onlyForPlayer = false;
position = "otvarac";
radius = 3
condition = "this animationPhase ""Open_Box"" == 0";
statement = "this animate [""Open_Box"",1]";
};
class CloseBox
{
displayName = "Close briefcase";
onlyForPlayer = false;
position = "otvarac";
radius = 3
condition = "this animationPhase ""Open_Box"" == 1";
statement = "this animate [""Open_Box"",0]";
};
};
accuracy = 1000;
model = "\BriefcaseMP5\BriefcaseMP5.p3d";
displayName = "Briefcase (H&K MP5)";
class TransportMagazines
{
class _xx_30Rnd_9x19_specmp5
{
magazine = "30Rnd_9x19_specmp5";
count = 4;
};
};
class TransportWeapons
{
class _xx_mp5special
{
weapon = "mp5special";
count = 1;
};
};
};
};
//------------------------------------------------------------------------------------