FriZY_SK 9 Posted August 30, 2008 Hi all, I have problems with bomb on my bf 109. 1. How can i define position from where bomb will be droped ? (Now its in center of plane ) 2. The bomb on plane will not remove after this bomb is droped (so its still there) I add bomb by using proxy <table border="0" align="center" width="95%" cellpadding="0" cellspacing="0"><tr><td>Code Sample </td></tr><tr><td id="CODE">class CfgWeapons { class MGunCore; class BombLauncher; class MissileLauncher; class FFARLauncher; class CannonCore; ... class FFS_SC250_BombLauncher : BombLauncher { displayName="SC 250 bomb"; magazines[] = {"FFS_1Rnd_SC250Mag"}; aiRateOfFire = 1; // delay between shots at given distance aiRateOfFireDistance = 1; dispersion = 0.008; reloadTime = 5; autoFire = false; minRange = 500; minRangeProbab = 0.9; midRange = 1200; midRangeProbab = 0.95; maxRange = 2000; maxRangeProbab = 0.8; }; }; class CfgMagazines { class VehicleMagazine; class 6Rnd_GBU12_AV8B; ... class FFS_1Rnd_SC250Mag : 6Rnd_GBU12_AV8B { count = 1; ammo = "FFS_1Rnd_SC250"; }; }; class CfgAmmo { class BulletBase; class Bo_GBU12_LGB; ... class FFS_1Rnd_SC250: Bo_GBU12_LGB { hit = 1000; indirectHit = 5000; indirectHitRange = 25; model = "\FFS_bf109\ffs_sc250"; proxyshape = "\FFS_bf109\ffs_sc250"; irLock = false; laserLock = false; cost = 2000; CraterEffects = "BombCrater"; explosionEffects = "BombExplosion"; thrustTime = 0; thrust = 0; }; }; I hope somebody can resolve this my problem. Share this post Link to post Share on other sites
Snake Man 407 Posted August 30, 2008 I have asked the exact same question in PMC Tactical, there is no solution or anyone has posted one. Sorry. Share this post Link to post Share on other sites
roberthammer 582 Posted August 30, 2008 [FF]FriZY: Have a look AV8B_mlod and you will see how are those bombs placed etc I think that bomb position is in fire geometry ,but am not sure. Best will be to check that mlod Share this post Link to post Share on other sites
eble 3 Posted August 30, 2008 First thing you can do is open the BIS sample Av8 and copy/paste one of the LGB proxies, set it where you want your bomb to be on the plane. second you will need something like this: Quote[/b] ]class CfgNonAIVehicles { class ProxyWeapon ; class Proxyffs_sc250: ProxyWeapon { model = "\FFS_bf109\ffs_sc250"; simulation = "maverickweapon"; }; This overides the BIS LGB model with your one, then in game you should see your bomb on the plane and it should work. Now if you want more than one bomb type you will need to script that. Southy Quote[/b] ]{hit = 1000; indirectHit = 5000; indirectHitRange = 25; thats needs changing as the direct hit does less damage than the splash damage unless you want it that way  Share this post Link to post Share on other sites
wld427 1705 Posted August 30, 2008 the important thing to remember is to make sure all the proxies, and ammo class are named EXAXTLY the same. also do not forget the all important confignonAIVehicles section for defining custom proxies. If you want PM me and i can take a look at the whole addon for you and explain any mistakes in that area good luck on your project Eddie Project RACS Share this post Link to post Share on other sites
-FF-Faust 0 Posted August 30, 2008 Thanks guys for your help. It works perfectlly! Quote[/b] ]thats needs changing as the direct hit does less damage than the splash damage unless you want it that way Yea my fault , i have fixed it. ...but we have another problem: AI does not use bombs! how can we fix it? thx Share this post Link to post Share on other sites
FriZY_SK 9 Posted August 31, 2008 Thanks guys. Quote[/b] ]...but we have another problem: AI does not use bombs! how can we fix it? We fixed it. Quote[/b] ]If you want PM me and i can take a look at the whole addon for you and explain any mistakes in that area If we will have problem than i send u PM. Share this post Link to post Share on other sites
eble 3 Posted August 31, 2008 if you want Ai to drop bombs on vehicles etc you will need to add this: Quote[/b] ]class FFS_1Rnd_SC250: Bo_GBU12_LGB{ hit = 1000; indirectHit = 5000; indirectHitRange = 25; model = "\FFS_bf109\ffs_sc250"; proxyshape = "\FFS_bf109\ffs_sc250"; irLock = true; laserLock = false; cost = 2000; CraterEffects = "BombCrater"; explosionEffects = "BombExplosion"; thrustTime = 0; thrust = 0; This will let the ai now target vehicles etc. Southy Share this post Link to post Share on other sites
FriZY_SK 9 Posted September 2, 2008 Quote[/b] ]if you want Ai to drop bombs on vehicles etc you will need to add this:Quote class FFS_1Rnd_SC250: Bo_GBU12_LGB { hit = 1000; indirectHit = 5000; indirectHitRange = 25; model = "\FFS_bf109\ffs_sc250"; proxyshape = "\FFS_bf109\ffs_sc250"; irLock = true; laserLock = false; cost = 2000; CraterEffects = "BombCrater"; explosionEffects = "BombExplosion"; thrustTime = 0; thrust = 0; This will let the ai now target vehicles etc. I have irLock = false; and AI drops bomb. Problem was minRange. That was too much to drop bomb. Quote[/b] ]minRange = 500;minRangeProbab = 0.9; midRange = 1200; midRangeProbab = 0.95; maxRange = 2000; maxRangeProbab = 0.8; Share this post Link to post Share on other sites