DragoFire
Nov 23 2002, 21:09
I've struck a problem with my second model of the A-6E that has a differrent payload to the first.
I've changed the Proxy's in the plane's model file P3D and the CPP seems fine. But when you load a mission with it in it, this attackPlane has no weapons.
The Weapon models are in the same place as in the first A-6E's and are referanced the same way.
Here's the weapon section of the CPP;
</span><table border="0" align="center" width="95%" cellpadding="3" cellspacing="1"><tr><td>Code Sample </td></tr><tr><td id="CODE">
class cfgammo
{ class Default {};
class AT3: Default {};
class Hellfire: AT3 {};
class CarlGustav: AT3 {};
class Mk_82: default //500 lbs
{ hit= 1400;
indirectHit= 450;
indirectHitRange= 8;
minRange= 300;
minRangeProbab= 0.50;
midRange= 800;
midRangeProbab= 0.95;
maxRange= 2000;
maxRangeProbab= 0.50;
soundHit[]= {\LaserGuided\expl2,db40,1};
soundFly[]= {"\DrF_Intruder\bmbfall.ogg",db-30,1.5};
cost= 5000;
model= "\DrF_Intruder\mk_82.p3d";
proxyShape= "\DrF_Intruder\mk_82.p3d";
irLock= 1;
laserLock= 0;
maxControlRange= 20000;
maneuvrability= 15.0;
sideAirFriction= 0.20;
simulation= shotMissile;
maxSpeed= 100;
initTime= 1000;
thrustTime= 0;
thrust= 0;
};
class MK_81: MK_82
{ hit= 900;
indirectHit= 250;
indirectHitRange= 5;
cost= 3000;
model= "\DrF_Intruder\mk_81.p3d";
proxyShape= "\DrF_Intruder\mk_81.p3d";
};
class MK_83: MK_82
{ hit= 1800;
indirectHit= 500;
indirectHitRange= 12;
cost= 7000;
model= "\DrF_Intruder\mk_83.p3d";
proxyShape= "\DrF_Intruder\mk_83.p3d";
};
class MK_84: MK_82
{ hit= 3600;
indirectHit= 1000;
indirectHitRange= 24;
cost= 14000;
model= "\DrF_Intruder\mk_84.p3d";
proxyShape= "\DrF_Intruder\mk_84.p3d";
};
};
class cfgweapons
{ class Default {};
class LAWLauncher: Default {};
class CarlGustavLauncher: LAWLauncher {};
class AT3Launcher: CarlGustavLauncher {};
class HellfireLauncher: AT3Launcher {};
class MaverickLauncher: HellfireLauncher {};
class Mk_82_2: HellfireLauncher
{displayName= "Mk82 500LBS";
displayNameMagazine= "Mk82";
shortNameMagazine= "Mk82";
ammo= mk82;
model= "\DrF_Intruder\mk_82.p3d";
proxyShape= "\DrF_Intruder\mk_82.p3d";
magazine= "mk82";
magazines[]= {Mk_82_2, Mk_82_6, Mk_82_12, Mk_82_24, Mk_82_28, MK_81_2, Mk_81_6, MK_81_12, Mk_81_24,MK_81_28, Mk_83_2, Mk_83_3, Mk_83_6, Mk_83_8, Mk_83_10, Mk_83_13, MK_84_1, Mk_84_2, Mk_84_3, Mk_84_4, Mk_84_5};
magazineReloadTime= 0.1;
count= 2;
initSpeed= 0;
canLock= 2;
burst= 1;
aiRateOfFire= 8.0;
aiRateOfFireDistance= 3500;
optics= 1;
sound[]= {"\sound\weapons\AK74dry",db-50,1.0};
reloadTime= 0.15;
autoFire = 1;
recoil= empty;};
class MK_82_6: MK_82_2 {count= 6;};
class MK_82_12: MK_82_2 {count= 12;};
class MK_82_24: MK_82_2 {count= 24;};
class MK_82_28: MK_82_2 {count= 28;};
class MK_81_2: MK_82_2 {displayName= "Mk81 250LBS";
displayNameMagazine= "Mk81";
shortNameMagazine= "Mk81";
ammo= mk81;
model= "\DrF_Intruder\mk_81.p3d";
proxyShape= "\DrF_Intruder\mk_81.p3d";
magazine= "mk81";
count= 2;};
class MK_81_6: MK_81_2 {count= 6;};
class MK_81_12: MK_81_2 {count= 12;};
class MK_81_24: MK_81_2 {count= 24;};
class MK_81_28: MK_81_2 {count= 28;};
class MK_83_2: MK_82_2 {displayName= "Mk83 1000LBS";
displayNameMagazine= "Mk83";
shortNameMagazine= "Mk83";
ammo= mk83;
model= "\DrF_Intruder\mk_83.p3d";
proxyShape= "\DrF_Intruder\mk_83.p3d";
magazine= "mk83";
count= 2;};
class MK_83_3: MK_83_2 {count= 3;};
class MK_83_6: MK_83_2 {count= 6;};
class MK_83_8: MK_83_2 {count= 8;};
class MK_83_10: MK_83_2 {count= 10;};
class MK_83_13: MK_83_2 {count= 13;};
class MK_84_1: MK_82_2 {displayName= "Mk84 2000LBS";
displayNameMagazine= "Mk84";
shortNameMagazine= "Mk84";
ammo= mk84;
model= "\DrF_Intruder\mk_84.p3d";
proxyShape= "\DrF_Intruder\mk_84.p3d";
magazine= "mk84";
count= 1;};
class MK_84_2: MK_84_1 {count= 2;};
class MK_84_3: MK_84_1 {count= 3;};
class MK_84_4: MK_84_1 {count= 4;};
class MK_84_5: MK_84_1 {count= 5;};
};
[/QUOTE]<span id='postcolor'>
Here's the CfgNonAIVehicles;
</span><table border="0" align="center" width="95%" cellpadding="3" cellspacing="1"><tr><td>Code Sample </td></tr><tr><td id="CODE">
class CfgNonAIVehicles
{ class ProxyWeapon {};
class Proxymk_81: ProxyWeapon {model= "\DrF_Intruder\mk_81.p3d"; simulation= "maverickweapon";}
class Proxymk_82: ProxyWeapon {model= "\DrF_Intruder\mk_82.p3d"; simulation= "maverickweapon";}
class Proxymk_83: ProxyWeapon {model= "\DrF_Intruder\mk_83.p3d"; simulation= "maverickweapon";}
class Proxymk_84: ProxyWeapon {model= "\DrF_Intruder\mk_84.p3d"; simulation= "maverickweapon";}
};
[/QUOTE]<span id='postcolor'>
And here's the CfgVehicle section;
</span><table border="0" align="center" width="95%" cellpadding="3" cellspacing="1"><tr><td>Code Sample </td></tr><tr><td id="CODE">
class DrF_A6E_ATG: A10 // working version
{scope= 2;
model= "\DrF_Intruder\Intruder_ATGtest.P3D";
displayName= "A-6E Intruder Bomber";
weapons[]= {Mk_81_28};
magazines[]= {Mk_81_28};
};
class DrF_A6E_HB: DrF_A6E_ATG //nonworking version
{displayName= "A-6E Intruder Hvy Bomber";
model= "\DrF_Intruder\Intruder_ATGtest.P3D";
weapons[]= {mk_84_5};
magazines[]= {mk_84_5};
};
[/QUOTE]<span id='postcolor'>
Many idea welcomed.
DragoFire
I've changed the Proxy's in the plane's model file P3D and the CPP seems fine. But when you load a mission with it in it, this attackPlane has no weapons.
The Weapon models are in the same place as in the first A-6E's and are referanced the same way.
Here's the weapon section of the CPP;
</span><table border="0" align="center" width="95%" cellpadding="3" cellspacing="1"><tr><td>Code Sample </td></tr><tr><td id="CODE">
class cfgammo
{ class Default {};
class AT3: Default {};
class Hellfire: AT3 {};
class CarlGustav: AT3 {};
class Mk_82: default //500 lbs
{ hit= 1400;
indirectHit= 450;
indirectHitRange= 8;
minRange= 300;
minRangeProbab= 0.50;
midRange= 800;
midRangeProbab= 0.95;
maxRange= 2000;
maxRangeProbab= 0.50;
soundHit[]= {\LaserGuided\expl2,db40,1};
soundFly[]= {"\DrF_Intruder\bmbfall.ogg",db-30,1.5};
cost= 5000;
model= "\DrF_Intruder\mk_82.p3d";
proxyShape= "\DrF_Intruder\mk_82.p3d";
irLock= 1;
laserLock= 0;
maxControlRange= 20000;
maneuvrability= 15.0;
sideAirFriction= 0.20;
simulation= shotMissile;
maxSpeed= 100;
initTime= 1000;
thrustTime= 0;
thrust= 0;
};
class MK_81: MK_82
{ hit= 900;
indirectHit= 250;
indirectHitRange= 5;
cost= 3000;
model= "\DrF_Intruder\mk_81.p3d";
proxyShape= "\DrF_Intruder\mk_81.p3d";
};
class MK_83: MK_82
{ hit= 1800;
indirectHit= 500;
indirectHitRange= 12;
cost= 7000;
model= "\DrF_Intruder\mk_83.p3d";
proxyShape= "\DrF_Intruder\mk_83.p3d";
};
class MK_84: MK_82
{ hit= 3600;
indirectHit= 1000;
indirectHitRange= 24;
cost= 14000;
model= "\DrF_Intruder\mk_84.p3d";
proxyShape= "\DrF_Intruder\mk_84.p3d";
};
};
class cfgweapons
{ class Default {};
class LAWLauncher: Default {};
class CarlGustavLauncher: LAWLauncher {};
class AT3Launcher: CarlGustavLauncher {};
class HellfireLauncher: AT3Launcher {};
class MaverickLauncher: HellfireLauncher {};
class Mk_82_2: HellfireLauncher
{displayName= "Mk82 500LBS";
displayNameMagazine= "Mk82";
shortNameMagazine= "Mk82";
ammo= mk82;
model= "\DrF_Intruder\mk_82.p3d";
proxyShape= "\DrF_Intruder\mk_82.p3d";
magazine= "mk82";
magazines[]= {Mk_82_2, Mk_82_6, Mk_82_12, Mk_82_24, Mk_82_28, MK_81_2, Mk_81_6, MK_81_12, Mk_81_24,MK_81_28, Mk_83_2, Mk_83_3, Mk_83_6, Mk_83_8, Mk_83_10, Mk_83_13, MK_84_1, Mk_84_2, Mk_84_3, Mk_84_4, Mk_84_5};
magazineReloadTime= 0.1;
count= 2;
initSpeed= 0;
canLock= 2;
burst= 1;
aiRateOfFire= 8.0;
aiRateOfFireDistance= 3500;
optics= 1;
sound[]= {"\sound\weapons\AK74dry",db-50,1.0};
reloadTime= 0.15;
autoFire = 1;
recoil= empty;};
class MK_82_6: MK_82_2 {count= 6;};
class MK_82_12: MK_82_2 {count= 12;};
class MK_82_24: MK_82_2 {count= 24;};
class MK_82_28: MK_82_2 {count= 28;};
class MK_81_2: MK_82_2 {displayName= "Mk81 250LBS";
displayNameMagazine= "Mk81";
shortNameMagazine= "Mk81";
ammo= mk81;
model= "\DrF_Intruder\mk_81.p3d";
proxyShape= "\DrF_Intruder\mk_81.p3d";
magazine= "mk81";
count= 2;};
class MK_81_6: MK_81_2 {count= 6;};
class MK_81_12: MK_81_2 {count= 12;};
class MK_81_24: MK_81_2 {count= 24;};
class MK_81_28: MK_81_2 {count= 28;};
class MK_83_2: MK_82_2 {displayName= "Mk83 1000LBS";
displayNameMagazine= "Mk83";
shortNameMagazine= "Mk83";
ammo= mk83;
model= "\DrF_Intruder\mk_83.p3d";
proxyShape= "\DrF_Intruder\mk_83.p3d";
magazine= "mk83";
count= 2;};
class MK_83_3: MK_83_2 {count= 3;};
class MK_83_6: MK_83_2 {count= 6;};
class MK_83_8: MK_83_2 {count= 8;};
class MK_83_10: MK_83_2 {count= 10;};
class MK_83_13: MK_83_2 {count= 13;};
class MK_84_1: MK_82_2 {displayName= "Mk84 2000LBS";
displayNameMagazine= "Mk84";
shortNameMagazine= "Mk84";
ammo= mk84;
model= "\DrF_Intruder\mk_84.p3d";
proxyShape= "\DrF_Intruder\mk_84.p3d";
magazine= "mk84";
count= 1;};
class MK_84_2: MK_84_1 {count= 2;};
class MK_84_3: MK_84_1 {count= 3;};
class MK_84_4: MK_84_1 {count= 4;};
class MK_84_5: MK_84_1 {count= 5;};
};
[/QUOTE]<span id='postcolor'>
Here's the CfgNonAIVehicles;
</span><table border="0" align="center" width="95%" cellpadding="3" cellspacing="1"><tr><td>Code Sample </td></tr><tr><td id="CODE">
class CfgNonAIVehicles
{ class ProxyWeapon {};
class Proxymk_81: ProxyWeapon {model= "\DrF_Intruder\mk_81.p3d"; simulation= "maverickweapon";}
class Proxymk_82: ProxyWeapon {model= "\DrF_Intruder\mk_82.p3d"; simulation= "maverickweapon";}
class Proxymk_83: ProxyWeapon {model= "\DrF_Intruder\mk_83.p3d"; simulation= "maverickweapon";}
class Proxymk_84: ProxyWeapon {model= "\DrF_Intruder\mk_84.p3d"; simulation= "maverickweapon";}
};
[/QUOTE]<span id='postcolor'>
And here's the CfgVehicle section;
</span><table border="0" align="center" width="95%" cellpadding="3" cellspacing="1"><tr><td>Code Sample </td></tr><tr><td id="CODE">
class DrF_A6E_ATG: A10 // working version
{scope= 2;
model= "\DrF_Intruder\Intruder_ATGtest.P3D";
displayName= "A-6E Intruder Bomber";
weapons[]= {Mk_81_28};
magazines[]= {Mk_81_28};
};
class DrF_A6E_HB: DrF_A6E_ATG //nonworking version
{displayName= "A-6E Intruder Hvy Bomber";
model= "\DrF_Intruder\Intruder_ATGtest.P3D";
weapons[]= {mk_84_5};
magazines[]= {mk_84_5};
};
[/QUOTE]<span id='postcolor'>
Many idea welcomed.
DragoFire