Home   Help Search Login Register  

Author Topic: V-22 Osprey Config - Help  (Read 1237 times)

0 Members and 1 Guest are viewing this topic.

Offline TYsiEK

  • Members
  • *
  • OFP Rocks
    • Official TYsiEK Page
V-22 Osprey Config - Help
« on: 01 Jan 2003, 16:28:11 »
Hi @ll . I have problems with my config.cpp . I have defined new animation in rtm but it's not working. I have no error messages. Just if i press ChangeRotor action the engines will not rotate :( .
This is my .cpp :


// some basic defines
#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

// type scope
#define private 0
#define protected 1
#define public 2

class CfgPatches
{
   class T_Osprey
   {
      units[] = {T_Osprey};
      weapons[] = {};
      requiredVersion = 1.91;
   };
};

#define SPEED_STATIC 1e10

class CfgMovesMC
{
   class Default {};
   class States
   {
      class Ospreyr11: Default
      {
         file="\T_Osprey\ospreyr1.rtm";
         speed=SPEED_STATIC;
         looped=0;
      };
      class Ospreyr22: Default
      {
         file="\T_Osprey\ospreyr2.rtm";
         speed=SPEED_STATIC;
         looped=0;
      };
   };
};


class CfgVehicles
{
   class All {};
   class AllVehicles: All {};
   class Air: AllVehicles {};
   class Helicopter: Air {};
   class T_Osprey: Helicopter
   {
      vehicleClass = "Air";
      Side=1;
      crew="SoldierWPilot";
      accuracy=0.30;
      DisplayName = "T_Osprey";
      mainRotorSpeed=5.000000;
      backRotorSpeed=5.000000;
      typicalCargo[]={"Soldier","Soldier","SoldierLAW","SoldierLAW"};
      scope=2;

      driverAction="ManActUH60Pilot";

      gunnerAction="ManActUH60Pilot";

      gunnerUsesPilotView=1;
      soundEngine[]={"\T_Osprey\osprey.wss",0.316228,1};
      Model="\T_Osprey\osprey.p3d";
      transportSoldier = 25;
      maxSpeed=500;
      armor=110;
      weapons[]={};
      magazines[]={};
      nameSound="blackhawk";
      fov=0.5;
      cost=10000000;
      type=VAir;
      threat[]={0.1, 0.8, 1.0};

      animated=true;

      class Animations
      {
         class doors
         {
            type="rotation";
            animPeriod=3;
            selection="doors";
            axis="doorsoska";
            angle0=0.100000;
            angle1=0.000000;
         };
         class aramp
         {
            type="rotation";
            animPeriod=3;
            selection="theramp";
            axis="rampaxis";
            angle0=0.000000;
            angle1=0.600000;
         };
      };
      class UserActions
      {
         class ChangeRotorEngine1
         {
            displayName="ChangeRotor";
            position="ChangeRotor";
            radius=18100;
            condition="this animationPhase ""T_Osprey"" >= 0.5";
            statement="this animate [""Ospreyr22"", 1] ; this animate [""Ospreyr11"", 1]";
         };
         class ChangeRotorEngine2
         {
            displayName="ChangeRotorBack";
            position="ChangeRotor";
            radius=18100;
            condition="this animationPhase ""T_Osprey"" < 0.5";
            statement="this animate [""Ospreyr22"", 1] ; this animate [""Ospreyr11"", 1]";
         };
         class Open
         {
            displayName="OpenDoors";
            position="doors";
            radius=2.5;
            condition="this animationPhase ""doors"" < 0.5";
            statement="this animate [""doors"", 1]";
         };
         class Close
         {
            displayName="CloseDoors";
            position="doors";
            radius=2.5;
            condition="this animationPhase ""doors"" >= 0.5";
            statement="this animate [""doors"", 0]";
         };
         class Openramp
         {
            displayName="OpenRamp";
            position="doors";
            radius=2.5;
            condition="this animationPhase ""aramp"" < 0.5";
            statement="this animate [""aramp"", 1]";
         };
         class Closeramp
         {
            displayName="CloseRamp";
            position="doors";
            radius=2.5;
            condition="this animationPhase ""aramp"" >= 0.5";
            statement="this animate [""aramp"", 0]";
         };
      };
   };
};

BoNeCoLLeCToR

  • Guest
Re:V-22 Osprey Config - Help
« Reply #1 on: 02 Jan 2003, 02:55:26 »
Damn I wished that I was able to help you m8 but I suck at this cpp thing hope someone will help you come on cpp gods where are you STT you there...........

Offline TYsiEK

  • Members
  • *
  • OFP Rocks
    • Official TYsiEK Page
Re:V-22 Osprey Config - Help
« Reply #2 on: 04 Jan 2003, 11:14:23 »
I see very good add-on makers on this forum.
At forum from very very big OFP EDITING CENTER Page
« Last Edit: 04 Jan 2003, 11:19:38 by TYsiEK »

s2wilkin

  • Guest
Re:V-22 Osprey Config - Help
« Reply #3 on: 04 Mar 2003, 15:27:57 »
  I don't know much about addons so this might not help but I was thinking about it and mabey you could make it so that the "flaps down" action will rotate the engine nacelles.  There is a F-14 that when you use the "flaps down" action the wings move forward.  I hope you do get it worked out because I was hoping someone would make a V-22
« Last Edit: 04 Mar 2003, 15:30:24 by s2wilkin »