Home   Help Search Login Register  

Author Topic: Lowering LAW speed  (Read 2284 times)

0 Members and 3 Guests are viewing this topic.

sussmori

  • Guest
Lowering LAW speed
« 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?
« Last Edit: 11 Sep 2002, 11:35:34 by sussmori »

Offline SelectThis

  • Former Staff
  • ****
  • .
Re:Lowering LAW speed
« Reply #1 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

sussmori

  • Guest
Re:Lowering LAW speed
« Reply #2 on: 11 Sep 2002, 13:40:07 »
I tried this, but it doesn't seem to do anything
« Last Edit: 11 Sep 2002, 13:47:29 by sussmori »

CrunchyFrog

  • Guest
Re:Lowering LAW speed
« Reply #3 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...

sussmori

  • Guest
Re:Lowering LAW speed
« Reply #4 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";
   };

};

Offline SelectThis

  • Former Staff
  • ****
  • .
Re:Lowering LAW speed
« Reply #5 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

sussmori

  • Guest
Re:Lowering LAW speed
« Reply #6 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";
   };

};

Offline KTottE

  • Former Staff
  • ****
Re:Lowering LAW speed
« Reply #7 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.
"Life is not a journey to the grave with the intention of arriving safely in a pretty and well preserved body, but rather to skid in broadside, thoroughly used up, totally worn out, and loudly proclaiming 'WOW What a Ride!'"

sussmori

  • Guest
Re:Lowering LAW speed
« Reply #8 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?

Offline KTottE

  • Former Staff
  • ****
Re:Lowering LAW speed
« Reply #9 on: 13 Sep 2002, 10:03:40 »
hmm, that's even better. I think you've found the solution mate.
"Life is not a journey to the grave with the intention of arriving safely in a pretty and well preserved body, but rather to skid in broadside, thoroughly used up, totally worn out, and loudly proclaiming 'WOW What a Ride!'"

sussmori

  • Guest
Re:Lowering LAW speed
« Reply #10 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

3XTR3ME

  • Guest
Re:Lowering LAW speed
« Reply #11 on: 15 Sep 2002, 22:09:26 »
man setmass .1; man domove cliff1; man jump...moon gravity