Home   Help Search Login Register  

Author Topic: LST with Animated Front Ramp - Please Help  (Read 1405 times)

0 Members and 1 Guest are viewing this topic.

Offline Raptorsaurus

  • Editors Depot Staff
  • *****
LST with Animated Front Ramp - Please Help
« on: 31 Dec 2004, 20:28:23 »
Wizzywig made this LST with a animated front ramp addon for a mission we are working on (the WIZ_Tomahawk Cruise Missile demo).  Anyway, he did not finish the modeling and so the "roadway" part of the model does not work right.  One should be able to drive a vehicle up and into the LST or drive a vehicle out of it, but the ramp part of the "roadway" does not work.  I've been messing with it since this morning and just can't figure out what is wrong or how to make it work (Scripting I can do OK, but, I am nearly worthless at addon editing).  Anyway, Wizzy seems to have disappeared (anyone know where he is?) so I am left with this incomplete addon with no help to finish it.  So could someone with some addon editing skill please help me out.  The files are attached.

Thanks.

Offline penguinman

  • Contributing Member
  • **
  • Money is worthless, just paper, ink, and threads
Re:LST with Animated Front Ramp - Please Help
« Reply #1 on: 31 Dec 2004, 22:48:38 »
hmm.


here is the config from hwks c-130 which has a ramp in the back

maby that will help if u look at it








// C130 addon v1.0 by HAWK
// Textures from MFS
// animations and scripts by hawk

// 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 hwk_C130
   {
      units[] = {hwk_C130};
      weapons[] = {};
      requiredVersion = 1.91;
   };
};
class CfgModels
{
   class Default{};
   class Vehicle: Default{};
   class C130: Vehicle
      {
         sectionsInherit="Vehicle";
         sections[]=
         {
         "cislo",
         "grupa",
         "side",
         "sektor",
         "clan",
         "podsvit pristroju",
         "poskozeni",
         "L svetlo",
         "P svetlo",
         "zasleh",
         "sklo predni p",
         "sklo predni l",
         "vrtule staticka",
         "vrtule blur"
         };
      };
   class C130g: Vehicle
   {
         sectionsInherit="Vehicle";
         sections[]=
         {
         "cislo",
         "grupa",
         "side",
         "sektor",
         "clan",
         "podsvit pristroju",
         "poskozeni",
         "L svetlo",
         "P svetlo",
         "zasleh",
         "sklo predni p",
         "sklo predni l",
         "vrtule staticka",
         "vrtule blur"
         };
      };
};
class CfgAmmo
{
class Default {};
   class c130_Flare : default
   {
      cost=20;
      model = "empty";
      maxControlRange=0;
      simulationStep=0.05;
      simulation=shotRocket;
      hit=0;indirectHit=0;indirectHitRange=0.001;
      minRange=50;minRangeProbab=0.20;
      midRange=300;midRangeProbab=0.95;
      maxRange=500;maxRangeProbab=0.20;
      soundHit[]={"Explosions\expl3",db-50,2};
      irLock=0;
      laserLock=0;
      dispersion=200.000000;
      sideAirFriction=1.0;
      maneuvrability=0;
      maxSpeed=100;
      initTime=0;
      thrustTime=0;
      thrust=0;
      explosive=0;
   };   
};


class CfgWeapons
{
class Default {};
   class c130_Flare : default   
   {
      ammo=c130_Flare;
      displayName=Flare;
      displayNameMagazine=c130_Flare;
      shortNameMagazine=c130_Flare;
      count=44;
      reloadTime=0.75;
      aiRateOfFire=0.0125;
      aiRateOfFireDistance=300;
      sound[]={"\HWK_c130\flare.ogg",db+80,1.5};
      reloadSound[]={Weapons\missload,db-70,1};
      initSpeed=10;
      magazineReloadTime=1.0;
      autoFire = true;
      burst=1;
   };
      
};

class CfgRadio
{
   class stallwarnsndc130
   {
   name = "";
   sound[]={"\HWK_c130\stallwarn.wav",0.01,1};
   title = ;
   };
   class warnhighsndc130
   {
   sound[]={"\HWK_c130\highwarn.wav",0.01,1};
   name = "";
   title = ;
    };
   class missilewarnsndc130
   {
   sound[]={"\HWK_c130\missile.wav",0.01,1};
   name = "";
   title = ;
    };
   class warnsndc130
   {
   sound[]={"\HWK_c130\warn.wav",0.01,1};
   name = "";
   title = ;
    };   
};
   
class CfgSounds
{
   class enginestartc130
    {
      sound[]={"\HWK_c130\enginestart.ogg",1,1};
      name = "enginestartc130";
   titles[] = {};
    };
   class enginestopc130
   {
   sound[]={"\HWK_c130\enginestop.ogg",1,1};
   name = "enginestopc130";
   titles[] = {};
    };
   class rampasndc130
   {
   sound[]={"\HWK_c130\rampa.ogg",1,1};
   name = "rampasndc130";
   titles[] = {};
    };
   class gearupsndc130
   {
   sound[]={"\HWK_c130\geardn.ogg",1,1};
   name = "gearupsndc130";
   titles[] = {};
    };
   class geardnsndc130
   {
   sound[]={"\HWK_c130\gearup.ogg",1,1};
   name = "geardnsndc130";
   titles[] = {};
    };
   class wheelnsndc130
   {
   sound[]={"\HWK_c130\wheeltouch.wav",1,1};
   name = "wheelnsndc130";
   titles[] = {};
    };
      
};

class CfgVehicles
{
   class All {};
   class AllVehicles: All {};
   class Air: AllVehicles {};
   class Plane: Air {};
   class hwk_C130:Plane
   {
   class EventHandlers
        {
   init = "[vehicle (_this select 0)] exec {\hwk_C130\script\damage.sqs};[vehicle (_this select 0)] exec {\hwk_C130\script\wheeltouch.sqs};[vehicle (_this select 0)] exec {\hwk_C130\script\highwarn.sqs};[vehicle (_this select 0)] exec {\hwk_C130\script\stall.sqs};[vehicle (_this select 0)] exec {\hwk_C130\script\warninglight.sqs};[vehicle (_this select 0)] exec {\hwk_C130\script\ramplight.sqs};[vehicle (_this select 0)] exec {\hwk_C130\script\fuellight.sqs};if !(isengineon (_this Select 0)) then {[_this select 0] exec {\hwk_C130\script\openramp.sqs}} else{[_this select 0] exec {\hwk_C130\script\gearup.sqs}}";
   
   gear = "if (_this Select 1) then {[_this select 0] exec {\hwk_C130\script\geardown.sqs};[_this select 0] exec {\hwk_C130\script\closegas.sqs}} else {[_this select 0] exec {\hwk_C130\script\gearup.sqs}}";
       
   Engine = "if (_this Select 1) then{[_this select 0] exec {\hwk_C130\script\closeramp.sqs};[_this select 0] exec {\hwk_C130\script\enginestart.sqs}}else {[_this select 0] exec {\hwk_C130\script\openramp.sqs};[_this select 0] exec {\hwk_C130\script\enginestop.sqs}}";
   
   GetOut = "[_this select 0] exec {\hwk_C130\script\desantout.sqs}";   
   
   Getin = "[_this select 0] exec {\hwk_C130\script\desantin.sqs}";

   fired ="if ((_this select 1) ==""c130_Flare"") then {[_this Select 0] exec {\HWK_c130\script\flare.sqs};}else {}";
   
   incomingMissile = "if ((_this select 0)==(_this select 0)) then {(_this select 0) vehicleRadio ""missilewarnsndc130"";(_this select 0) fire ""c130_Flare""}";
   
   };
      vehicleClass = "HAWK - Vehicles";
      scope=public;
      crew = SoldierWPilot;
      icon = "\HWK_c130\c130icon.paa";
      picture = \HWK_c130\c130.paa;
      model="\HWK_c130\c130.p3d";
      side=TWest;
      displayName="C-130 Hercules(green)";
      nameSound="plane";
      transportFuel = 100000;
      transportVehiclesCount = 3;
      transportVehiclesMass = 45000;
      transportAmmo = 100000;
      gearRetracting = true;
      animated=1;
      formationX=20;
      formationZ=20;
      formationTime=10;
      precision=200; // vehicle movement precision
      mapSize = 10;
      accuracy=15;
      cost=10000000
         
      hasgunner=1;   
      driverIsCommander=1;
      driverAction=ManActCessnaPilot;
      gunnerAction=ManActCessnaPilot;
      
      insideSoundCoef = 0.01;

      cargoAction[]={ManActCargo};

      transportSoldier = 100;
      nightVision=1;
      typicalCargo[]={};
      ejectSpeed[]={0,0,0};
      getInRadius=1.5;
   
      maxSpeed = 600;
      //landingSpeed = 180;
            
      soundEngine[]={\HWK_c130\engine.wav,db-10,1};
      
      weapons[]={c130_Flare};
      magazines[]={c130_Flare};
      
      wheelSteeringSensitivity = 6.5
      maneuvrability=60;
      flapsFrictionCoef = 2.0
      aileronSensitivity = 0.8;
      elevatorSensitivity = 1.0; // relative elevator sensitivity
      brakeDistance=250;
      noseDownCoef =  0.1; // how much goes nose down during turns
      armor=150;
      irTarget = true;
      fov=0.5;
      type=VAir;

      dammageHalf[]=
      {
         kiowa_sklo.paa,uh60_kab_sklo2B.paa
         
      };
      dammageFull[]=
      {
         kiowa_sklo.paa,uh60_kab_sklo2C.paa
         
      };

      class Reflectors
      {
         class Left
         {
            color[] = {0.8, 0.8, 1.0, 1.0};
            ambient[] = {0.07, 0.07, 0.07, 1.0};
            position = "L svetlo";
            direction = "konec L svetla";
            hitpoint = "L svetlo";
            selection = "L svetlo";
            size = 0.5;
            brightness = 1.0;
         };
         class Right
         {
            color[] = {0.8, 0.8, 1.0, 1.0};
            ambient[] = {0.07, 0.07, 0.07, 1.0};
            position = "P svetlo";
            direction = "konec P svetla";
            hitpoint = "P svetlo";
            selection = "P svetlo";
            size = 0.5;
            brightness = 1.0;
         };
      };
            
      class IndicatorAltRadar
      {
         selection = "alt";
         axis = "osa_alt";
         angle = -360;
         min = 0;
         max = 360;
      };
      class IndicatorAltBaro
      {
         selection = "nm_alt";
         axis = "osa_nm_alt";
         angle = 330;
         min = 0;
         max = 330;
      };
      class IndicatorSpeed
      {
         selection = "mph";
         axis = "osa_mph";
         angle = -350;
         min =  0;
         max = 330;
      };
      class IndicatorVertSpeed
      {
         selection = "vert_speed";
         axis = "osa_vert_speed";
         angle = 330;
         min = 165;
         max = -165;
      };
      class IndicatorCompass
      {
         selection = "kompas";
         axis = "osa_kompas";
         angle = 360;
         min = -3.1415926536;
         max = 3.1415926536;
      };
      class IndicatorWatch
      {
         hour = "hodinova";
         minute = "minutova";
         axis = "osa_time";
         reversed = true;

//--------------------------------------------------------------------
      };
      class IndicatorAltRadar2
      {
         selection = "alt2";
         axis = "osa_alt2";
         angle = -360;
         min = 0;
         max = 360;
      };
      class IndicatorAltBaro2
      {
         selection = "nm_alt2";
         axis = "osa_nm_alt2";
         angle = 330;
         min = 0;
         max = 330;
      };
      class IndicatorSpeed2
      {
         selection = "mph2";
         axis = "osa_mph2";
         angle = -350;
         min = 0;
         max = 330;
      };
      class IndicatorVertSpeed2
      {
         selection = "vert_speed2";
         axis = "osa_vert_speed2";
         angle = 330;
         min = 165;
         max = -165;
      };
      class IndicatorCompass2
      {
         selection = "kompas2";
         axis = "osa_kompas2";
         angle = 360;
         min = -3.1415926536;
         max = 3.1415926536;
      };
      class IndicatorWatch2
      {
         hour = "hodinova2";
         minute = "minutova2";
         axis = "osa_time2";
         reversed = true;
      };

class Animations
   {
   class backgear0
         {
            type="rotation";
            animPeriod=6;
            selection="backgear0";
            axis="osbackgear0";
            angle0=0
            angle1=0.872;
         };
   class backgear1
         {
            type="rotation";
            animPeriod=6;
            selection="backgear1";
            axis="osbackgear1";
            angle0=0
            angle1=0.872;
         };
    class leftkl
         {
            type="rotation";
            animPeriod=2;
            selection="leftkl";
            axis="osleftkl";
            angle0=0
            angle1=-0.523;
         };
    class leftkl1
         {
            type="rotation";
            animPeriod=1.2;
            selection="leftkl1";
            axis="osleftkl1";
            angle0=0
            angle1=3.14;
         };
    class rightkl
         {
            type="rotation";
            animPeriod=2;
            selection="rightkl";
            axis="osrightkl";
            angle0=0
            angle1=0.523;
         };
   class rightkl1
         {
            type="rotation";
            animPeriod=1.2;
            selection="rightkl1";
            axis="osrightkl1";
            angle0=0
            angle1=-3.14;
         };
         class frontkl
         {
            type="rotation";
            animPeriod=2;
            selection="frontkl";
            axis="osfrontkl";
            angle0=0
            angle1=0.195;
         };
   class NoseGear
         {
            type="rotation";
            animPeriod=6;
            selection="front_gear";
            axis="osfront_gear";
            angle0=0
            angle1=1.6;
         };
         class rampa
         {
            type="rotation";
            animPeriod=6;
            selection="rampa";
            axis="osrampa";
            angle0=0;
            angle1=0.66;
         };
         class rampa1
         {
            type="rotation";
            animPeriod=5;
            selection="rampa1";
            axis="osrampa1";
            angle0=0;
            angle1=0.523;
         };
         class door1
         {
            type="rotation";
            animPeriod=4;
            selection="door1";
            axis="osdoor1";
            angle0=0;
            angle1=-2.4;
         };
         class door2
         {
            type="rotation";
            animPeriod=3;
            selection="door2";
            axis="osdoors";
            angle0=0;
            angle1=0.785;
         };
         class door3
         {
            type="rotation";
            animPeriod=3;
            selection="door3";
            axis="osdoors";
            angle0=0;
            angle1=-0.785;
         };
         class trotle1
         {
            type="rotation";
            animPeriod=2;
            selection="trotle1";
            axis="ostrotle";
            angle0=0;
            angle1=1.918;
         };
         class trotle2
         {
            type="rotation";
            animPeriod=2;
            selection="trotle2";
            axis="ostrotle";
            angle0=0;
            angle1=1.918;
         };
         class trotle3
         {
            type="rotation";
            animPeriod=2;
            selection="trotle3";
            axis="ostrotle";
            angle0=0;
            angle1=1.918;
         };
         class trotle4
         {
            type="rotation";
            animPeriod=2;
            selection="trotle4";
            axis="ostrotle";
            angle0=0;
            angle1=1.918;
         };
         class reverseprops
         {
            type="rotation";
            animPeriod=1;
            selection="reverseprops";
            axis="ostrotle";
            angle0=0;
            angle1=-1.7;
         };
            
         

   class gasolinerope0
         {
            type="rotation";
            animPeriod=15;
            selection="gasolinerope0";
            axis="osgasolinerope";
            angle0=0
            angle1=0.35;
         };
   class gasolinerope1
         {
            type="rotation";
            animPeriod=15;
            selection="gasolinerope1";
            axis="osgasolinerope";
            angle0=0
           angle1=0.35;
         };
   class gasolinerope2
         {
            type="rotation";
            animPeriod=15;
            selection="gasolinerope2";
            axis="osgasolinerope";
            angle0=0
           angle1=0.35;
         };
   class gasolinerope3
         {
            type="rotation";
            animPeriod=15;
            selection="gasolinerope3";
            axis="osgasolinerope";
            angle0=0
            angle1=0.35;
         };
   class gasolinerope4
         {
            type="rotation";
            animPeriod=15;
            selection="gasolinerope4";
            axis="osgasolinerope";
            angle0=0
            angle1=0.35;
         };
   class gasolinerope5
         {
            type="rotation";
            animPeriod=15;
            selection="gasolinerope5";
            axis="osgasolinerope";
            angle0=0
            angle1=0.35;
         };
   class gasolinerope6
         {
            type="rotation";
            animPeriod=15;
            selection="gasolinerope6";
            axis="osgasolinerope";
            angle0=0
           angle1=0.35;
         };
   class gasolinerope7
         {
            type="rotation";
            animPeriod=15;
            selection="gasolinerope7";
            axis="osgasolinerope";
            angle0=0
            angle1=0.35;
         };
   class gasolinerope8
         {
            type="rotation";
            animPeriod=15;
            selection="gasolinerope8";
            axis="osgasolinerope";
            angle0=0
            angle1=0.35;
         };
   class gasolinerope9
         {
            type="rotation";
            animPeriod=15;
            selection="gasolinerope9";
            axis="osgasolinerope";
            angle0=0
           angle1=0.35;
         };   
   class gasolinerope10
         {
            type="rotation";
            animPeriod=15;
            selection="gasolinerope10";
            axis="osgasolinerope";
            angle0=0
            angle1=0.35;
         };   
   class gasolinerope11
         {
            type="rotation";
            animPeriod=15;
            selection="gasolinerope11";
            axis="osgasolinerope";
            angle0=0
           angle1=0.35;
         };
         class cargoload
               {
                  type="rotation";
                  animPeriod=0.01;
                  selection="something";
                  axis="osrampa";
                  angle0=0
                 angle1=1;
              };
         class relase
               {
                  type="rotation";
                  animPeriod=0.01;
                  selection="relase";
                  axis="osrampa";
                  angle0=0
                 angle1=1;
              };
         class fuellight
               {
                  type="rotation";
                  animPeriod=0.05;
                  selection="fuellight";
                  axis="osfuellight";
                  angle0=0
                 angle1=3.14;
              };
         class ramplight
               {
                  type="rotation";
                  animPeriod=0.05;
                  selection="ramplight";
                  axis="osramplight";
                  angle0=0
                 angle1=3.14;
              };
         class warninglightl
               {
                  type="rotation";
                  animPeriod=0.05;
                  selection="warninglightl";
                  axis="oswarninglightl";
                  angle0=0
                 angle1=3.14;
              };
         class warninglightr
               {
                  type="rotation";
                  animPeriod=0.05;
                  selection="warninglightr";
                  axis="oswarninglightr";
                  angle0=0
                 angle1=3.14;
              };
         class stall
               {
                  type="rotation";
                  animPeriod=0.05;
                  selection="stall";
                  axis="osstall";
                  angle0=0
                 angle1=3.14;
              };
         class hight
               {
                  type="rotation";
                  animPeriod=0.05;
                  selection="hight";
                  axis="oshight";
                  angle0=0
                 angle1=3.14;
              };
         class jumpprepare
               {
                  type="rotation";
                  animPeriod=3;
                  selection="jumpprepare";
                  axis="osjump";
                  angle0=0
                 angle1=3.14;
              };
         class jump
               {
                  type="rotation";
                  animPeriod=0.05;
                  selection="jump";
                  axis="osjump";
                  angle0=0
                 angle1=3.14;
              };
         class r1
               {
                  type="rotation";
                  animPeriod=0.05;
                  selection="r1";
                  axis="osr1";
                  angle0=0
                 angle1=3.14;
              };
         class g1
               {
                  type="rotation";
                  animPeriod=0.05;
                  selection="g1";
                  axis="osg1";
                  angle0=0
                 angle1=3.14;
              };
         class r2
               {
                  type="rotation";
                  animPeriod=0.05;
                  selection="r2";
                  axis="osr2";
                  angle0=0
                 angle1=3.14;
              };
         class g2
               {
                  type="rotation";
                  animPeriod=0.05;
                  selection="g2";
                  axis="osg2";
                  angle0=0
                 angle1=3.14;
              };
         class r3
               {
                  type="rotation";
                  animPeriod=0.05;
                  selection="r3";
                  axis="osr3";
                  angle0=0
                 angle1=3.14;
              };
         class g3
               {
                  type="rotation";
                  animPeriod=0.05;
                  selection="g3";
                  axis="osg3";
                  angle0=0
                 angle1=3.14;
              };
         class engine1
         {
            type="rotation";
            animPeriod=0.01;
            selection="engine1";
            axis="osengine";
            angle0=0;
            angle1=3.14;
         };
         class engine2
         {
            type="rotation";
            animPeriod=0.01;
            selection="engine2";
            axis="osengine";
            angle0=0;
            angle1=3.14;
         };
         class engine3
         {
            type="rotation";
            animPeriod=0.01;
            selection="engine3";
            axis="osengine";
            angle0=0;
            angle1=3.14;
         };
         class engine4
         {
            type="rotation";
            animPeriod=0.01;
            selection="engine4";
            axis="osengine";
            angle0=0;
            angle1=3.14;
         };
         
      
   };

      class UserActions
      {
         class reverseprops
         {
            displayName="THRUST REVERSE ON";
            position="ostrotle";
            radius=2;
            condition="(this animationPhase ""NoseGear"" == 0) and (isengineon this) and (speed this < 250) and (this animationPhase ""reverseprops"" == 0)";
            statement="this animate[""reverseprops"",1];[this] exec {\hwk_C130\script\reverseprops.sqs}";
         };
         class unreverseprops
         {
            displayName="THRUST REVERSE OFF";
            position="ostrotle";
            radius=2;
            condition="(this animationPhase ""reverseprops"" > 0)";
            statement="this animate[""reverseprops"",0]";
         };


         class Opendoor1
         {
            displayName="Open door 1";
            position="osdoor1";
            radius=3;
            condition="(speed this < 15) and (this animationPhase ""door1"" < 0.5) and ((getpos this select 2) < 1)";
            statement="this animate[""door1"",1]";
         };
         
         class Closedoor1
         {
            displayName="Close door 1";
            position="osdoors";
            radius=3.5;
            condition="this animationPhase ""door1"" >= 0.5";
            statement="this animate[""door1"",0]";
         };
         class Opendoor2
         {
            displayName="Open door 2";
            position="osdoors";
            radius=3.5;
            condition="this animationPhase ""door2"" < 0.5";
            statement="this animate[""door2"",1]";
         };
         
         class Closedoor2
         {
            displayName="Close door 2";
            position="osdoors";
            radius=3.5;
            condition="this animationPhase ""door2"" >= 0.5";
            statement="this animate[""door2"",0]";
         };
         class Opendoor3
         {
            displayName="Open door 3";
            position="osdoors";
            radius=3.5;
            condition="this animationPhase ""door3"" < 0.5";
            statement="this animate[""door3"",1]";
         };
         
         class Closedoor3
         {
            displayName="Close door 3";
            position="osdoors";
            radius=3.5;
            condition="this animationPhase ""door3"" >= 0.5";
            statement="this animate[""door3"",0]";
         };
         class Opensrampa
         {
            displayName="Open cargo ramp";
            position="osrampa";
            radius=16;
            condition="this animationPhase ""rampa"" < 0.5";
            statement="[this] exec {\hwk_C130\script\openramp.sqs}";
         };

         class Closerampa
         {
            displayName="Close cargo ramp";
            position="osrampa";
            radius=16;
            condition="this animationPhase ""rampa"" >= 0.5";
            statement="[this] exec {\hwk_C130\script\closeramp.sqs}";
         };
         class paracargo
         {
            displayName = "Parachute cargo";
            position="osrampa";
            radius=16;
            condition = "this animationPhase ""cargoload"" > 0";
            statement = "this animate [""relase"",1]";
         };
         class loadcargo
         {
            displayName = "Load cargo";
            position="posvehicle";
            radius=4;
            condition = "((vehicle player != vehicle this) and (vehicle player != player) and (speed vehicle this < 5) and (this animationPhase ""cargoload"" < 1))";
            statement = "[this,player] exec {\HWK_c130\script\cargoload.sqs}";
         };
         //class opengasolinerope
         //{
         //   displayName = "Deploy fuel hose";
         //   position="ostrotle";
         //   radius=2;
         //   condition = "((speed this > 15) and (isengineon this) and (this animationPhase ""gasolinerope0"" < 0.5))";
         //   statement = "[this] exec {\HWK_c130\script\opengas.sqs}";
         //};
         //class closegasolinerope
         //{
         //   displayName = "Retract fuel hose";
         //   position="ostrotle";
         //   radius=2;
         //   condition = "((speed this > 15) and (isengineon this) and (this animationPhase ""gasolinerope0"" > 0.5))";
         ///   statement = "[this] exec {\HWK_c130\script\closegas.sqs}";
         //};
         //class Tankair
         //{
         //   displayName = "Initiate refuel";
         //   position="gasolinerope0";
         //   radius=50;
         //   condition = "((player distance this < 200) and (vehicle player != vehicle this) and (vehicle player != player) and (isengineon this) and ((getpos this select 2) > 20))";
         //   statement = "[this,player,(group this),(group player)] exec {\HWK_c130\script\initrefuel.sqs}";
         //};
         
      };
   };
   class hwk_C130g:
« Last Edit: 31 Dec 2004, 22:50:00 by penguinman »

Offline penguinman

  • Contributing Member
  • **
  • Money is worthless, just paper, ink, and threads
Re:LST with Animated Front Ramp - Please Help
« Reply #2 on: 31 Dec 2004, 22:51:25 »
heres the script that opens the c-130 cargo ramp


_vehicle = _this select 0

   ? (_vehicle animationphase "rampa" > 0.5) :exit
   ? (speed _vehicle> 15):_vehicle say "rampasndc130";_vehicle animate ["rampa",0.7];_vehicle animate ["rampa1",1];exit
   _vehicle say "rampasndc130"
   _vehicle animate ["rampa",1]
   _vehicle animate ["rampa1",1]
   ? !(isengineon _vehicle):_vehicle animate ["door1",1];_vehicle animate ["door2",1];_vehicle animate ["door3",1];
exit

Offline penguinman

  • Contributing Member
  • **
  • Money is worthless, just paper, ink, and threads
Re:LST with Animated Front Ramp - Please Help
« Reply #3 on: 31 Dec 2004, 22:53:58 »
i dont know what u need but i would post the door itself but it wont let me attach it

Offline Raptorsaurus

  • Editors Depot Staff
  • *****
Re:LST with Animated Front Ramp - Please Help
« Reply #4 on: 01 Jan 2005, 00:43:09 »
Thanks Penguin,

Actually, I did examine that config (among others for addons that have ramps), but I think my problem is in the .P3d file, not in the config.cpp (but I could be wrong, since I am also not very  knowlegabel with config.cpp (better than .p3D modeling though).

After messing with the .P3d file for while I was able to drive off the LST to about half way down the ramp before falling through, but then I did more changes and messed it up so bad that I had to revert to the original backup that I made.  At that point I realized that I better ask for help (so I came here to the most reliable place for help that I know).

Offline oyman

  • Members
  • *
  • king of pings
Re:LST with Animated Front Ramp - Please Help
« Reply #5 on: 01 Jan 2005, 01:04:35 »
ofp has a limitation of how far you can make the model go, i think it is 64 meters before you model starts screwing up, and this Lst ramp is out of that range

Offline Raptorsaurus

  • Editors Depot Staff
  • *****
Re:LST with Animated Front Ramp - Please Help
« Reply #6 on: 01 Jan 2005, 01:15:17 »
Well, that would explain it.  A vehicle falls through the ramp at just about 64 M from the LST center point.  Maybe if I make the center point closer to the ramp it will work?  If so, how do I do that (I am pretty much clueless at modeling).

Offline oyman

  • Members
  • *
  • king of pings
Re:LST with Animated Front Ramp - Please Help
« Reply #7 on: 01 Jan 2005, 02:28:26 »
the only real way of fixing this problem is breaking the ship up into parts in oxygen and then attach them via scripts