Hi guys...I'm building an armed HMMWV but I have many problems with the M134 I've put on the turret...The turret is static and the weapon too, it doesn't fire and the muzzle flash is always visible. I've made another HMMWV with M60 mounted but all works fine...Where's the error?
Here's my config.cpp file...can you help me?
#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
class CfgPatches
{
class maxSOH
{
units[] = {maxSOH};
weapons[] = {};
requiredVersion = 1.70;
};
class maxSOHmg
{
units[] = {maxSOHmg};
weapons[] = {};
requiredVersion = 1.70;
};
class maxSOHm60
{
units[] = {maxSOHm60};
weapons[] = {};
requiredVersion = 1.70;
};
class maxSOHunrmd
{
units[] = {maxSOHunrmd};
weapons[] = {};
requiredVersion = 1.70;
};
};
class CfgModels
{
class Default {};
class Vehicle: Default {};
class Car: Vehicle {};
class maxSOH_mg : Car {};
class maxSOH_m60 : Car {};
class maxSOH_unrmd: Car {};
};
class CfgWeapons
{
class default {};
class MGun: Default {};
class MachineGun7_6: MGun {};
class MachineGun12_7: MachineGun7_6 {};
class MachineGun7_6Manual: MachineGun7_6{};
class PK: MachineGun7_6Manual{};
class maxM60: MachineGun12_7
{
ammo="maxM60";
displayName="M60";
displayNameMagazine="M60";
shortNameMagazine="M60";
sound[]={"\max_sohum\m60.wav",db+90,0.95};
soundContinuous=1;
count=100;
initTime=3,60000;
};
class hh_minigun: PK
{
count=100;
displayName="M134 Minigun";
displayNameMagazine="M134 Magazine";
shortNameMagazine="M134";
drySound[]={"weapons\m16dry",0.000316,1};
ammo=hh_minigunAmmo;
initSpeed=600;
reloadTime=0.0500000;
magazineReloadTime=0.0500000;
autoReload=1;
dispersion=0.0015;
sound[]={"\max_sohum\minigun.wav",db0,1};
soundContinuous=0;
maxLeadSpeed=865;
revolving="barrels";
revolvingAxis="barrels_axis";
};
};
class CfgAmmo
{
class default {};
class MGun: Default {};
class BulletSingle : Default {};
class MachineGun7_6: MGun {};
class MachineGun12_7: MachineGun7_6 {};
class hh_minigunAmmo: MachineGun12_7
{
hit=20;indirectHit=0.1;indirectHitRange=0.1;
minRange=20;minRangeProbab=0.80;
midRange=500;midRangeProbab=0.95;
maxRange=3000;maxRangeProbab=0.05;
cost=50;
};
class maxm60: MachineGun12_7
{
hit=12
indirectHit=7
indirectHitRange=0.300000;
minRange=4
minRangeProbab=0.900000;
midRange=800
midRangeProbab=0.500000;
maxRange=1500
maxRangeProbab=0.050000;
cost=2;
simulation="shotbullet";
simulationStep=0.550000;
initTime=0.260000;
explosive=0
manualControl=0
sideAirFriction=1;
initSpeed=900
visibleFire=406;
audibleFire=300;
visibleFireTime=30
};
};
class CfgVehicles
{
class All {};
class AllVehicles : All {};
class Land : AllVehicles {};
class LandVehicle : Land {};
class Car : LandVehicle {};
class Jeep : Car {};
class jeepMG: Jeep {};
class maxSOH: jeepMG {};
class maxSOHmg: maxSOH
{
displayName= "S.O. HMMWV (M134)";
model=\max_sohum\Minigun_SOH.p3d;
camouflage=5;
picture=\max_sohum\ihmmwv.paa;
armor = 40;
side = 1;
type=VArmor;
cost=100000;
weapons[]={"hh_minigun"};
magazines[]={"hh_minigun","hh_minigun","hh_minigun","hh_minigun","hh_minigun"};
dammageHalf[]=
{
jeep4x4_glass.paa,jeep4x4_glassB.paa,
jeep_kab_sklo1.paa,jeep_kab_sklo1B.paa,
jeep_kab_sklo2.paa,jeep_kab_sklo2B.paa,
scud_sklo.paa,scud_skloB.paa,
scud_sklo2.paa,scud_sklo2B.paa,
scud_sklo3.paa,scud_sklo3B.paa,
scud_sklo4.paa,scud_sklo4B.paa
};
dammageFull[]=
{
jeep4x4_glass.paa,jeep4x4_glassB.paa,
jeep_kab_sklo1.paa,jeep_kab_sklo1B.paa,
jeep_kab_sklo2.paa,jeep_kab_sklo2B.paa,
scud_sklo.paa,scud_skloB.paa,
scud_sklo2.paa,scud_sklo2B.paa,
scud_sklo3.paa,scud_sklo3B.paa,
scud_sklo4.paa,scud_sklo4B.paa
};
armorGlass=0.6;
armorWheels=0.2;
soundEngine[]={\humr\HMMWVengine,db-25,1.25};
typicalCargo[]={Soldier, Soldier, SoldierLAW, Officer};
class TurretBase
{
gunAxis = "OsaHlavne";
turretAxis = "OsaVeze";
soundServo[]={"",1.0};
gunBeg = "usti hlavne";
gunEnd = "konec hlavne";
minElev=-10;
maxElev=+20;
minTurn=-360;
maxTurn=+360;
body = "OtocVez";
gun = "OtocHlaven";
};
driverAction="ManActJeepDriver";
gunnerAction="ManActJeepGunner";
hasCommander=0;
};
class maxSOHm60: maxSOH
{
displayName= "Spec Ops HMMWV (M60)";
model=\max_sohum\max_soh_m60.p3d;
camouflage=5;
picture=\max_sohum\ihmmwv.paa;
armor = 40;
side = 1;
type=VArmor;
cost=100000;
weapons[]={"maxM60"};
magazines[]={"maxM60","maxM60","maxM60","maxM60","maxM60"};
armorGlass=0.6;
armorWheels=0.2;
soundEngine[]={\humr\HMMWVengine,db-25,1.25};
typicalCargo[]={Soldier, Soldier, SoldierLAW, Officer};
class TurretBase
{
gunAxis = "OsaHlavne";
turretAxis = "OsaVeze";
soundServo[]={"",1.0};
gunBeg = "usti hlavne";
gunEnd = "konec hlavne";
minElev=-10;
maxElev=+20;
minTurn=-360;
maxTurn=+360;
body = "OtocVez";
gun = "OtocHlaven";
};
driverAction="ManActJeepDriver";
gunnerAction="ManActJeepGunner";
hasCommander=0;
};
class maxSOHunrmd: Jeep
{
displayName= "Spec Ops HMMWV";
model=\max_sohum\SOH_normal.p3d;
camouflage=5;
picture=\max_sohum\ihmmwv.paa;
armor = 40;
side = 1;
type=VArmor;
cost=100000;
armorGlass=0.6;
armorWheels=0.2;
soundEngine[]={\humr\HMMWVengine,db-25,1.25};
typicalCargo[]={Soldier, Soldier, SoldierLAW, Officer};
driverAction="ManActJeepDriver";
gunnerAction="ManActJeepGunner";
hasCommander=0;
};
};
Thank you!