*huh..?*
Does that mean, I don´t have to make the cpp to a bin..?
I thought, I MUST do that.
Else Arma 2 can´t read the config file...
Is that wrong

EDIT:
// HKAerial by X. PETIT
// some basic defines
#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 HKAerial
{
units[]={HKAerial};
weapons[]={HKAerialCannon};
requiredVersion=1;
};
};
class CfgModels
{
class default{};
class Vehicle: default{};
class HKAerial: Vehicle
{
sectionsInherit="Vehicle";
sections[]={"velka vrtule staticka", "velka vrtule blur", "mala vrtule staticka", "mala vrtule blur", "C svetlo", "P svetlo", "L svertlo"};
};
};
class CfgAmmo
{
class Default{};
class BulletSingle: Default{};
class BulletSingle7_6: BulletSingle{};
class BulletSingle12_7: BulletSingle7_6{};
class ExplosiveBullet: BulletSingle{};
class HKAerialCannonMun: ExplosiveBullet
{
hit=100;
indirectHit=20;
indirectHitRange=4;
minRange=20;
minRangeProbab=0.800000;
midRange=500;
midRangeProbab=0.950000;
maxRange=3500;
maxRangeProbab=0.050000;
cost=50;
visibleFire=16.000000;
visibleFireTime=10;
tracerColor[]={0.2,0.2,1,10.10000};
tracerColorR[]={0.2,0.2,1,10.10000};
};
};
class CfgMagazines {
/*extern*/ class VehicleMagazine;
class HKAerialCannon: VehicleMagazine {
scope = 1;
displayName = "HKAerialCannon";
ammo = "HKAerialCannonMun";
//magazines = {"HKAerialCannonMun"};
count = 1200;
initSpeed = 805;
tracersEvery = 1;
maxLeadSpeed = 500;
nameSound = "cannon";
};
};
class CfgWeapons
{
class Default{};
class MGun: Default{};
class MachineGun7_6: MGun{};
class MachineGun12_7: MachineGun7_6{};
class MachineGun30: MachineGun7_6{};
class HKAerialCannon: MachineGun30
{
ammo="HKAerialCannonMun";
//magazines = {"HKAerialCannonMun"};
displayName="HFLaser";
displayNameMagazine="Laser";
shortNameMagazine="Laser"
sound[]={"\HKAerial\Sounds\laserT2g.wav",db+30,1};
reloadSound[]={"",0.0,1};
soundContinous=0;
count=1500;
reloadTime=0.08;
magazineReloadTime=10;
initSpeed=1500;
flash="";
flashsize=0.000000;
dispersion=0.00750;
maxLeadSpeed=900;
aiRateOfFire=0.020;
aiRateOfFireDistance=10000;
autoFire=1;
optics=1;
scope=1;
};
};
class WeaponFireGun
{
cloudletDuration=0;
cloudletGrowUp=0.000000;
cloudletFadeIn=0;
cloudletFadeOut=0.000000;
interval=0.000000;
size=0.000000;
sourceSize=0.000000;
initT=3200;
deltaT=-3000;
};
class WeaponFireMGun: WeaponFireGun{};
class WeaponCloudsGun
{
access=3;
cloudletGrowUp=0.000000;
cloudletFadeIn=0;
cloudletFadeOut=0.000000;
cloudletDuration=0.000000;
cloudletAnimPeriod=0.000000;
cloudletSize=0.000000;
cloudletAlpha=1.000000;
cloudletAccY=0
cloudletMinYSpeed=0
cloudletMaxYSpeed=0
interval=0.000000;
size=0.000000;
sourceSize=0.000000;
};
class WeaponCloudsMGun: WeaponCloudsGun{};
class CfgVehicles
{
class All{};
class AllVehicles: All{};
class Air: AllVehicles{};
class Helicopter: Air{};
class HKAerialBase: Helicopter
{
side=1;
//scope=2;
displayName="HKAerial";
};
class HKAerial: HKAerialBase
{
picture="\HKAerial\icoHKA";
icon="\HKAerial\icnHKA.paa";
crew="USMC_Soldier_Pilot";
scope=2;
side=TWest;
displayName="HK A400w";
type=VAir;
cost=1600000;
vehicleClass="Air";
accuracy=5.0;
audible=4;
camouflage=4;
threat[]={0.6,1.0,0.9};
nightVision=1;
irScanRange=2500;
irScanGround=1;
laserScanner=1;
weapons[]={"HKAerialCannon"};
//magazines[]={"HKAerialCannonMun"};
ammo = "HKAerialCannonMun";
secondaryExplosion=-0.025;
model="\HKAerial\HKAerial.p3d";
hiddenSelections[]={};
rotorBig="vrtule_velka";
rotorBigBlend="vrtule_velka_bl";
rotorSmall="vrtule_mala";
rotorSmallBlend="vrtule_mala_bl";
dammageHalf[]={"\data\uh60_kab_sklo2.paa","\data\uh60_kab_sklo2b.paa"};
dammageFull[]={"\data\uh60_kab_sklo2.paa","\data\uh60_kab_sklo2c.paa"};
insideSoundCoef=0.000800;
soundEngine[]={"\HKAerial\Sounds\xlbn25.wav",db+30,1};
soundEnviron[]={};
maxSpeed=400;
enableSweep=true;
mainRotorSpeed=1.500000;
backRotorSpeed=2.00000;
maxMainRotorDive=0;
maxBackRotorDive=0;
minMainRotorDive=0;
minBackRotorDive=0;
neutralMainRotorDive=0;
neutralBackRotorDive=0;
steerAheadSimul=0.300000;
steerAheadPlan=0.500000;
armor=75;
armorStructural=3.0;
armorHull=1.9;
armorEngine=1.6;
armorAvionics=1.8;
armorVRotor=0.5;
armorHRotor=0.8;
armorMissiles=1.6;
armorGlass=1.8;
transportSoldier=0;
hasGunner=1;
driverIsCommander=1;
driverIsgunner=1;
cargoIsCoDriver[]={false};
driverAction="AH64_Pilot";
gunnerAction="AH64_Gunner";
class ViewPilotBase
{
initFov=0.7; minFov=0.7; maxFov=0.90;
initAngleX=0; minAngleX=-25; maxAngleX=25;
initAngleY=0; minAngleY=-70; maxAngleY=70;
};
class ViewPilot: ViewPilotBase {}
class ViewOptics
{
initAngleX=0; minAngleX=-30; maxAngleX=30;
initAngleY=0; minAngleY=-86; maxAngleY=86;
initFov=0.05; minFov=0.01; maxFov=0.05;
};
driverOpticsColor[]={255,0,0,1};
gunnerOpticsColor[]={0,0,0,1};
driverOpticsModel="optika_heli_gunner";
gunnerOpticsModel="optika_zsu_gunner";
driverCanSee=31;
gunnerCanSee=31;
class TurretBase
{
gunAxis="OsaHlavne";
turretAxis="OsaVeze";
gunBeg="usti hlavne";
gunEnd="konec hlavne";
soundServo[]={};
minElev=-150
maxElev=0
minTurn=-360
maxTurn=360
body="otocVez";
gun="otocHlaven";
};
class Turret: TurretBase{};
class Reflectors
{
class Left
{
color[]={0.8,0.8,1,1};
ambient[]={0.07,0.07,0.07,1};
position="svetlo L";
direction="konec svetla L";
hitpoint="";
selection="svetlo PL";
size=0.5;
brightness=1.0;
};
class Right
{
color[]={0.8,0.8,1,1};
ambient[]={0.07,0.07,0.07,1};
position="svetlo P";
direction="konec svetla P";
hitpoint="";
selection="svetlo PP";
size=0.5;
brightness=1.0;
};
class Middle
{
color[]={0.8,0.8,1,1};
ambient[]={0.07,0.07,0.07,1};
position="svetlo M";
direction="konec svetla M";
hitpoint="";
selection="C svetlo";
size=0.5;
brightness=1.0;
};
};
animated=1;
class Animations
{
class Maingear1
{
type=rotation;
animPeriod=1.0;
selection=s2av;
axis=osa_main2b;
angle0=0;
angle1=0.55;
};
class backgear1
{
type=rotation;
animPeriod=1.0;
selection=s2ar;
axis=osa_back2b;
angle0=0;
angle1=-0.61;
};
class flammen
{
type=rotation;
animPeriod=0.01;
selection=flammen;
axis=osa_flammen;
angle0=0;
angle1=3.141581;
};
class thrust
{
type=rotation;
animPeriod=0.01;
selection=thrust;
axis=osa_flammen;
angle0=0;
angle1=3.141581;
};
class gearlights
{
type=rotation;
animPeriod=0.01;
selection=gearlights;
axis=osa_gearlights;
angle0=0;
angle1=3.141581;
};
class switch
{
type=rotation;
animPeriod=0.35;
selection=switch;
axis=osa_switch;
angle0=0;
angle1=1.396258;
};
};
class UserActions
{
class GearUp
{
displayName = "$STR_ACTION_GEAR_UP";
position = "osa_Nose";
radius = 2;
condition = "getpos this select 2 > 0.5 and this animationPhase ""maingear1"" < 0.5 and this animationPhase ""backgear1"" < 0.5";
statement = "[this, 0] exec ""\HKAerial\Scripts\HKAerialanim2.sqs""";
};
class GearDown
{
displayName = "$STR_ACTION_GEAR_DOWN";
position = "osa_Nose";
radius = 2;
condition = "speed this < 150 and speed this > -150 and this animationPhase ""maingear1"" >= 0.5 and this animationPhase ""backgear1"" >= 0.5";
statement = "[this, 1] exec ""\HKAerial\Scripts\HKAerialanim2.sqs""";
};
class Boost
{
displayName = "Booster";
position = "osa_main1";
radius = 20;
condition = "speed this > 1 and speed this < 300 and getpos this select 2 > 5 and this animationPhase ""maingear1"" >= 0.5";
statement = "[this] exec ""\HKAerial\Scripts\boost.sqs""";
};
};
class EventHandlers
{
Init="if (getpos (_this select 0) select 2 > 2) then {[_this select 0, 0] exec ""\HKAerial\Scripts\HKAerialanim2.sqs"";}";
Engine ="if (_this select 1) then {[_this select 0] exec ""\HKAerial\Scripts\rspecial.sqs""}";
};
};
};
class CfgRadio
{
class HKAerialGearDown
{
sound[]={"\HKAerial\Sounds\Gear.ogg",db+50,1};
name="HKAerialGearDown";
title="GearDown";
};
class HKAerialGearUp
{
sound[]={"\HKAerial\Sounds\Gear.ogg",db+50,1};
name="HKAerialGearUp";
title="Gear Up";
};
class HKAerialPowerUp
{
name="HKAerialPowerUp";
sound[]={\HKAerial\Sounds\xlan1str.ogg, db+20,1};
title="System Ok: All are green! Ready for takeoff!";
};
};
class CfgSounds
{
class Booster
{
name="Booster";
sound[]={"\HKAerial\Sounds\boost.ogg", db+20,1};
titles[]={};
};
class BoosterStop
{
name="BoosterStop";
sound[]={\HKAerial\Sounds\boostout.ogg, db+20,1};
titles[]={};
};
};
Wel, here the cpp code after uncounted tries to fix the problem.
Nothing!
I just get "HFlaser" - but as ammo nothing.
If I change "Machinegun30" to M230, I get at least as ammo 0.