OFPEC Forum

Addons & Mods Depot => OFP - Addons & Mods General => Topic started by: sussmori on 11 Sep 2002, 04:19:18

Title: Lowering LAW speed
Post 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?
Title: Re:Lowering LAW speed
Post by: SelectThis on 11 Sep 2002, 11:42:42
Try lowering the thrust and thrusttime to 0 and see how far it goes, then raise them incrementally to get the desired effect.

SelectThis
Title: Re:Lowering LAW speed
Post by: sussmori on 11 Sep 2002, 13:40:07
I tried this, but it doesn't seem to do anything
Title: Re:Lowering LAW speed
Post by: CrunchyFrog on 11 Sep 2002, 14:38:39
hmmm, weird

the thrustTime, and thrust should be able to lower/raise the speed...! It does on my on my little 440mm LAW...
Title: Re:Lowering LAW speed
Post by: sussmori on 11 Sep 2002, 14:42:10
Why's this not working then ?

Code: [Select]
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";
   };

};
Title: Re:Lowering LAW speed
Post by: SelectThis on 11 Sep 2002, 16:30:27
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
Title: Re:Lowering LAW speed
Post by: sussmori on 12 Sep 2002, 06:07:41
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.

Code: [Select]
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";
   };

};
Title: Re:Lowering LAW speed
Post by: KTottE on 12 Sep 2002, 19:20:02
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.
Title: Re:Lowering LAW speed
Post by: sussmori on 13 Sep 2002, 01:43:14
Or perhaps because the new rocket model used was not given a weight value and thus it never drops?
Title: Re:Lowering LAW speed
Post by: KTottE on 13 Sep 2002, 10:03:40
hmm, that's even better. I think you've found the solution mate.
Title: Re:Lowering LAW speed
Post by: sussmori on 13 Sep 2002, 16:42:50
Yep that was the prob...must give the rocket a mass

Btw a LAW has mass 4.5 for anyone that's interested
Title: Re:Lowering LAW speed
Post by: 3XTR3ME on 15 Sep 2002, 22:09:26
man setmass .1; man domove cliff1; man jump...moon gravity