All right,where is the problem.It still crash...
Here is my config:
// 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 hh_minigun_Soldier {units[] = {hh_minigun_Soldier}; weapons[] = {}; requiredVersion = 1.75; };
class m134_minigun {units[] = {m134_minigun}; weapons[] = {}; requiredVersion = 1.75; };
};
class CfgModels
{
class Default{};
class Weapon: Default{};
class minigun: Weapon{};
};
class CfgAmmo
{
class Default {};
class BulletSingle : Default {};
class hh_minigunAmmo: BulletSingle
{
hit=10;
indirectHit=0.4;
indirectHitRange=1.000000;
minRange=4;
minRangeProbab=0.900000;
midRange=200;
midRangeProbab=0.500000;
maxRange=800;
maxRangeProbab=0.050000;
cost=30;
};
};
class CfgWeapons
{
class Default{};
class MGun: Default{};
class MachineGun7_6: MGun{};
class MachineGun7_6Manual: MachineGun7_6{};
class PK: MachineGun7_6Manual{};
class m134_minigun: PK
{
ammo=hh_minigunAmmo;
count=100;
model="\minigun\minigun";
modelOptics="optika_PK";
displayName="M134";
displayNameMagazine="M134 Magazine";
shortNameMagazine="M134";
drySound[]={"weapons\m16dry",0.000316,1};
initSpeed=600;
reloadTime=0.0100000;
magazineReloadTime=0.0500000;
magazines[] = {"m134_mag"};
magazineType = 1024;
autoReload=1;
dispersion=0.0015;
sound[]={"\minigun\minigun.wss",db0,1};
soundContinuous=true;
maxLeadSpeed=865;
picture="\minigun\M134.paa";
revolving="barrels";
revolvingAxis="barrels_axis";
};
class m134_mag: m134_minigun
{
displayNameMagazine = M134 Magazine;
shortNameMagazine = M134mag;
picture="\minigun\M134Ammobox.paa";
};
};
class CfgNonAIVehicles
{
class ProxyWeapon {};
class Proxyhh_minigun: ProxyWeapon {};
};
//Vehicle Settings
class CfgVehicles
{
class All{};
class AllVehicles:All{};
class Land:AllVehicles{};
class Man:Land{};
class Soldier:Man{};
class SoldierWB:Soldier{}
class hh_minigunSoldier: SoldierWB
{
displayName="M134 Machine Gunner";
weapons[]={"m134_minigun"};
magazines[]={"m134_mag","m134_mag","m134_mag","m134_mag","m134_mag"};
};
};