Hi guys,
I have little problem with LAW, RPG NH-75 and RPG7 in my mod.
When AI engages a tank they are shoot too high and it turnes them completely useless against enemy armor.
I've checked this via intro in editor : placed soldier with launcher and used his view by setting control by player and tank about 100 meters in front. And every time he tries to shoot a tank he aims too high.
What is going on?
heres the part of config
is something wrong here?
cfgAmmo
class LAW:AT3
{
hit=450;
indirectHit=50;
indirectHitRange=2.5;
minRange=20;
minRangeProbab=0.5;
midRange=175;
midRangeProbab=0.95;
maxRange=1000;
maxRangeProbab=0.1;
model="LAW";
simulation="shotRocket";
simulationStep=0.05;
cost=5000;
soundHit[]={"Explosions\explosion_at3",31.6227779,1};
soundFly[]={"objects\noise",0.0001,4};
maxSpeed=145;
irLock=1;
manualControl=1;
maxControlRange=0;
initTime=0;
thrustTime=0.2;
thrust=2000;
maneuvrability=0;
};
class RPG:LAW
{
hit=435;
maxSpeed=115;
minRange=20;
minRangeProbab=0.5;
midRange=175;
midRangeProbab=0.95;
maxRange=920;
model="RPG";
};
class RPG75:LAW
{
hit=452;
maxSpeed=189;
minRange=20;
minRangeProbab=0.5;
midRange=300;
midRangeProbab=0.95;
maxRange=100;
model="RPG";
};
cfgWeapons
class LAWLauncher:Default
{
scopeWeapon=2;
scopeMagazine=2;
weaponType=16;
magazineType="2 * 256";
valueWeapon=10;
valueMagazine=5;
model="law_proxy";
modelOptics="optika_LAW";
ammo="LAW";
displayName="M72 LAW";
displayNameMagazine="$STR_MN_LAW";
shortNameMagazine="$STR_SN_LAW";
count=1;
magazineReloadTime=12;
reloadTime=0.5;
sound[]={"Weapons\at_launch",0.01,1};
reloadMagazineSound[]={"Weapons\at_load",0.0003162,1};
initSpeed=145;
canLock=0;
reloadAction=manactreloadat;
autoReload=0;
ffMagnitude=0.1;
ffFrequency=1;
ffCount=1;
recoil="LAWSingle";
aiRateOfFire=10.0;
aiRateOfFireDistance=500;
optics=1;
primary=0;
opticsZoomMin=0.15;
opticsZoomMax=0.15;
distanceZoomMin=150;
distanceZoomMax=150;
uiPicture="islaw";
dexterity=0.5;
};
class RPGLauncher:LAWLauncher
{
model="\FRM_weap\rpg7_proxy.p3d";
modelSpecial="\FRM_weap\rpg7_r_proxy.p3d";
modelmagazine="\FRM_misc\mags\pg7_mag";
modelOptics="optika_RPG";
ammo="RPG";
initSpeed=25;
displayName="RPG-7";
displayNameMagazine="PG-7";
shortNameMagazine="PG-7";
};
class RPG75Launcher:LAWLauncher
{
model="rpg7_proxy";
modelOptics="optika_RPG";
ammo="RPG75";
initSpeed=115;
displayName="$STR_DN_RPG";
displayNameMagazine="$STR_MN_RPG";
shortNameMagazine="$STR_SN_RPG";
};
Ok i know that this question is propably too difficult to answer forr You, so i tried to solve this problem by myself. I was editing thrust and thrustTime several times and i've get to a point where AI shoots correct (they were taking a gravity correction byt rockets didn't fall down properly) but ie. LAW slows down to almost 0m/s after travelling max 500 meters and after that explodes in the air.Is it because of wrong proportions of thrust , thrustTime and mass in geometry lod of the rocket model?
Thanks for your help guys. I've fixed it by myself. I'm plannig to release this mod it has some features i've never seen before, but according to activity of the OFPEC community i wonder does it have any sense.