Home   Help Search Login Register  

Author Topic: about plane config  (Read 1928 times)

0 Members and 1 Guest are viewing this topic.

Offline hellfire168

  • Members
  • *
about plane config
« on: 28 Dec 2007, 13:40:30 »
i download a su 29 addon 

    in TV like red bull air racing that su29 is powerful,agility.in game she is too weak slow so i want modify her, i find there is only a .cpp file useful. i open it up & editer but i cant find out how to modify. check this :



#define private      0
#define protected      1
#define public      2

#define TEast      0
#define TWest      1
#define TGuerrila      2
#define TCivilian      3
#define TSideUnknown      4
#define TEnemy      5
#define TFriendly      6
#define TLogic      7

#define true   1
#define false   0

class CfgPatches {
   class su29 {
      units[] = {};
      weapons[] = {};
   };
};

class CfgSkeletons {
   class Plane;   // External class reference
   
   class su29Bones : Plane {
      isDiscrete = 1;
      skeletonInherit = "";
      skeletonBones[] = {"rudder", "", "wheels", "", "aileronT_right", "", "aileronT_left", "", "elevator left", "", "elevator right", "", "vrtule 0", ""};
   };
};

class cfgModels {
   class Plane;   // External class reference
   
   class su29 : Plane {
      skeletonName = "su29Bones";
      sectionsInherit = "";
      sections[] = {"vrtule staticka", "vrtule blur"};
      
      class Animations {
         class RightProp {
            type = "rotation";
            source = "rotor";
            selection = "vrtule 0";
            axis = "osa_vrtule 0";
            angle0 = 0;
            angle1 = 2 * 3.1415;
         };
         
         class RC_rotate_Wheels {
            type = "rotationX";
            source = "wheel";
            selection = "wheels";
            axis = "";
            memory = 1;
            sourceAddress = "loop";
            minValue = 0;
            maxValue = 1;
            angle0 = 0;
            angle1 = "rad -360";
         };
         
         class RC_Rudder {
            type = "rotation";
            source = "rudder";
            selection = "rudder";
            axis = "osa_rudder";
            memory = 1;
            sourceAddress = "clamp";
            minValue = -1;
            maxValue = 1;
            angle0 = "rad 25";
            angle1 = "rad -25";
         };
         
         class RC_ElevLeft {
            type = "rotation";
            source = "elevator";
            selection = "elevator right";
            axis = "osa_elevator right";
            memory = 1;
            sourceAddress = "clamp";
            minValue = -1;
            maxValue = 1;
            angle0 = "rad 35";
            angle1 = "rad -35";
         };
         
         class RC_ElevRight {
            type = "rotation";
            source = "elevator";
            selection = "elevator left";
            axis = "osa_elevator left";
            memory = 1;
            sourceAddress = "clamp";
            minValue = -1;
            maxValue = 1;
            angle0 = "rad -35";
            angle1 = "rad 35";
         };
         
         class RC_aileronTleft {
            type = "rotation";
            source = "aileron";
            selection = "aileronT_left";
            axis = "osa_aileronT_left";
            memory = 1;
            sourceAddress = "clamp";
            minValue = -1;
            maxValue = 1;
            angle0 = "rad 75";
            angle1 = "rad -75";
         };
         
         class RC_aileronTRight {
            type = "rotation";
            source = "aileron";
            selection = "aileronT_right";
            axis = "osa_aileronT_right";
            memory = 1;
            sourceAddress = "clamp";
            minValue = -1;
            maxValue = 1;
            angle0 = "rad 75";
            angle1 = "rad -75";
         };
      };
   };
};

class CfgVehicles {
   class All {};
   
   class AllVehicles : All {};
   
   class Air : AllVehicles {};
   
   class Plane : Air {};
   
   class su29 : Plane {
      scope = public;
      model = "\su29\su29";
      displayName = "Sukhoi SU-29";
      side = TCivilian;
      transportSoldier = 1;
      crew = "Civilian10";
      driverAction = "Mi17_Pilot";
      cargoAction[] = {"Mi17_Pilot", "MH6_Cargo01", "MH6_Cargo02", "MH6_Cargo01", "MH6_Cargo02", "MH6_Cargo01", "MH6_Cargo02", "MH6_Cargo01", "MH6_Cargo02"};
      Icon = "\su29\Icon.paa";
      picture = "\su29\Icon.paa";
      accuracy = 0.3;   // accuracy needed to recognize type of this target
      gearRetracting = false;
      nameSound = "plane";
      soundEngine[] = {"\su29\Engine.wav", 4, 1.2};
      soundEnviron[] = {"Objects\noise", db-60, 1.0};
      soundServo[] = {"Vehicles\gun_elevate", db-40, 0.4};
      maneuvrability = 9.0;
      maxSpeed = 90;   // max speed on level road, km/h
      armor = 100;
      ejectSpeed[] = {0, 0, 0};
      flapsFrictionCoef = 0.1;
      cost = 1000;
      type = "VAir";
      
      // threat (VSoft, VArmor, VAir), how threatening vehicle is to unit types
      threat[] = {0.1, 1, 0.7};

      aileronSensitivity = 1.0;   // relative aileron sensitivity
      elevatorSensitivity = 0.8;   // relative elevator sensitivity
      noseDownCoef = 1.00;   // how much goes nose down during turns
      landingAoa = 7*3.1415/180;
      brakeDistance = 400;   // vehicle movement precision
      steerAheadSimul = 1.0;
      steerAheadPlan = 2.0;
      extCameraPosition[] = {0, 3, -12};
      weapons[] = {};
      magazines[] = {};
   };
};


i try to modify maxspeed = 1000 but it not in evidence

help me  i wanna modify it   

is it relate to plane class or engine? help

Offline Gnat

  • Addons Depot
  • Moderator
  • *****
  • I Bite!
    • Gnats
Re: about plane config
« Reply #1 on: 28 Dec 2007, 14:30:03 »
Agility is more related to the weighting etc in the p3d model, but the maxspeed change should have made *some* difference .... if you changed the config correctly.

Offline hellfire168

  • Members
  • *
Re: about plane config
« Reply #2 on: 28 Dec 2007, 15:14:16 »
ya  i  got it ,i try to modify maxspeed & it is work .the plane's maxspeed was increased but it still feel weak.
i will try modify the weight.

another question : can propeller define for jet ?  i mean what  the different  between jet & propeller .how to define.

 propeller engine can make more powerfull? thx

Offline Gnat

  • Addons Depot
  • Moderator
  • *****
  • I Bite!
    • Gnats
Re: about plane config
« Reply #3 on: 30 Dec 2007, 03:00:10 »
Not aware of any difference between "jet" and "prop", the game makes no difference "motor" wise, but just spins objects in the model you ask to be spun. Even the AV8 has a "prop" ...... look into the intake.
Whats the weight of the model? maybe its to heavy.
Also play with landingSpeed.

Offline Nixer6

  • Members
  • *
Re: about plane config
« Reply #4 on: 26 Jan 2008, 05:17:03 »
What would be really nice is if somebody could fix the canopy glass in the airplane, it makes it unflyable to me.. It certainly is nowhere near as agile as a real aerobatic aircraft, especially a hotshot like that little SU.

Not as bad as the DC=3 though.  :) Sorry I am no help, but like Gnat said, everything I have read says that the agility is corralted to the power to weight ration. Did changing the aieleron or rudder inputs do anything
Why do I have to be a Rocket Scientist to make a good mission?