OFPEC Forum
Addons & Mods Depot => OFP - Addons & Mods General => Topic started by: sussmori on 11 Sep 2002, 04:19:18
-
Hi,
I have a Panzerfaust CPP i'm working on, which had rather low effective range and I've been frustrated trying to lower the speed of the LAW (which it is based on).
I changed the rocket (ammo) speed:
thrustTime=0.400000  ÂÂ
thrust=150
maxSpeed=50
And the launcher speed (weapon):
initSpeed=50
But neither seem to change the speed of the rocket, ie. it flies for kilometers ???
Does anyone have an idea?
-
Try lowering the thrust and thrusttime to 0 and see how far it goes, then raise them incrementally to get the desired effect.
SelectThis
-
I tried this, but it doesn't seem to do anything
-
hmmm, weird
the thrustTime, and thrust should be able to lower/raise the speed...! It does on my on my little 440mm LAW...
-
Why's this not working then ?
class CfgAmmo
{
class default {};
class AT3: Default {};
class LAW : AT3 {};
class Panzerfaustammo : LAW {
model="\kpanzerfaust\PanzerfaustRocket";
hit=640;
soundHit[]={"\Panzerfaust\boom.wav",38.622778,0.85};
thrustTime=0.200000;
thrust=50;
maxSpeed=350;
initTime=0.1;
indirectHit=280;
indirectHitRange=3.100000;
soundFly[]={"objects\noise",0.023100,2};
};
};
class CfgWeapons
{
class Default {};
class LAWLauncher: Default {}
class PanzerfaustLauncher: LAWLauncher
{
modelOptics="optika_AT4_Spigot_B";
model="\kpanzerfaust\Panzerfauste";
modelSpecial="\kpanzerfaust\Panzerfaust";
modelMagazine="\kpanzerfaust\Panzerfaustrocket";
displayName="Panzerfaust";
displayNameMagazine="Pz";
shortNameMagazine="Pz";
magazines[]={"PanzerfaustLauncherMag"};
ammo="Panzerfaustammo";
picture="\kpanzerfaust\gearV1.paa";
magazineType="3 * 256";
sound[]={"\kpanzerfaust\launch.wav",0.250000,1};
reloadMagazineSound[]={"\kpanzerfaust\reload.wav",0.000316,1};
};
class PanzerfaustLauncherMag: PanzerfaustLauncher
{
picture="\kpanzerfaust\gearV2.paa";
};
};
-
A few things to try:
add
scopeWeapon = public;
scopeMagazine = private;
to the Launcher defns and
scopeWeapon = private;
scopeMagazine = public;
to the mag defns and move the ammo line to the mag defn.
also close off the
class LAWLauncher: Default {}
with a ;
ie
class LAWLauncher: Default {};
SelectThis
-
I did what you suggested, but it did not change anything. Still the same problem, the rocket travels slow ..but it continues for ever.
The weird thing is that the same thrust time and thrust on a modified LAW works fine.
class CfgAmmo
{
class default {};
class AT3: Default {};
class LAW : AT3 {};
class Panzerfaust30 : LAW {
model="\kpanzerfaust\PanzerfaustRocket";
hit=640;
soundHit[]={"\Panzerfaust\boom.wav",38.622778,0.85};
thrustTime=0.100000;
thrust=500;
maxSpeed=25;
initTime=0.1;
indirectHit=280;
indirectHitRange=3.100000;
soundFly[]={"objects\noise",0.023100,2};
};
};
class CfgWeapons
{
class Default {};
class LAWLauncher: Default {};
class Panzerfaust30Launcher: LAWLauncher
{
scopeWeapon = public;
scopeMagazine = private;
modelOptics="\kozl\optika_kozlice";
optics=1;
opticsZoomMin=0.350000;
opticsZoomMax=0.350000;
model="\kpanzerfaust\Panzerfauste";
modelSpecial="\kpanzerfaust\Panzerfaust";
modelMagazine="\kpanzerfaust\Panzerfaustrocket";
displayName="Panzerfaust30";
displayNameMagazine="Pz";
shortNameMagazine="Pz";
magazines[]={"Panzerfaust30LauncherMag"};
picture="\kpanzerfaust\gearV1.paa";
magazineType="3 * 256";
sound[]={"\kpanzerfaust\launch.wav",0.250000,1};
reloadMagazineSound[]={"\kpanzerfaust\reload.wav",0.000316,1};
};
class Panzerfaust30LauncherMag: Panzerfaust30Launcher
{
scopeWeapon = private;
scopeMagazine = public;
picture="\kpanzerfaust\gearV2.paa";
ammo="Panzerfaust30";
};
};
-
Speed and range is different in OFP.
Maybe the LAW and RPG rockets are programmed to run out of fuel and start dropping after a certain distance not time?
Just an idea.
-
Or perhaps because the new rocket model used was not given a weight value and thus it never drops?
-
hmm, that's even better. I think you've found the solution mate.
-
Yep that was the prob...must give the rocket a mass
Btw a LAW has mass 4.5 for anyone that's interested
-
man setmass .1; man domove cliff1; man jump...moon gravity