Jump to content
Sign in to follow this  
FriZY_SK

BombLauncher problem

Recommended Posts

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

[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 smile_o.gif

Share this post


Link to post
Share on other sites

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  smile_o.gif

Share this post


Link to post
Share on other sites

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

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 smile_o.gif , 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

Thanks guys.

Quote[/b] ]...but we have another problem: AI does not use bombs! how can we fix it?

We fixed it. yay.gif

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

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
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

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
Sign in to follow this  

×