Home   Help Search Login Register  

Author Topic: Custom Air to Air Missiles.  (Read 1001 times)

0 Members and 2 Guests are viewing this topic.

Guyver NOD

  • Guest
Custom Air to Air Missiles.
« on: 30 Sep 2004, 20:15:26 »
Does any one know where I can get a tutorial on how to make custom air to air missiles? I found one but it does not work, and I can't find any in the editors depot.

Can some one please help me?

Guyver NOD

  • Guest
Re:Custom Air to Air Missiles.
« Reply #1 on: 04 Oct 2004, 11:25:33 »
ok since it seems no one can help me with the tutorial, perhaps some one could help me find out whats wroung with my config instead? Because when I load my model in game I get the error message:

Error Loading sidewinder.p3d (Magic).

Heres my config:

class CfgPatches
{

   class RedThun
   {
      units[] = {RedThun};
      weapons[] = {};
      requiredVersion = 1.91;
   };
};

class CfgModels
{
   class default {};
   class Air: default {};
   class Helicopter: Air {};
   class Cobra: Helicopter{};
   class RedThun: Cobra {};
   class Weapon: default {};
   class Sidewinder: Weapon {};
};

class   CfgAmmo
{
   class Default {};
   class AT3: Default {};
   class CarlGustav: AT3 {};

   class sidewinder : CarlGustav    
   {
      minRange=100;minRangeProbab=0.8;      
           midRange=500;midRangeProbab=1.0;      
           maxRange=2000;maxRangeProbab=1.0;      
      airLock=1;
      irLock=0;
      initTime=0.5;
      ThrustTime=100;
      thrust=1000;
      maxspeed=1300;
      hit=100;indirectHit=80;indirectHitRange=3;      
      model = "\RedThun\sidewinder.p3d";
      proxyShape="\RedThun\sidewinder.p3d";
      manualControl=0;
      maxControlRange=2000;
      maneuvrability=100.0;
   };
};

class CfgWeapons
{
   class Default{};
      
   class MGun: Default{};
   class MachineGun7_6: MGun{};
   
   class RedThun_MG: MachineGun7_6
   {
      ammo="Bullet30";
      count=500;      
      reloadTime=0.08000;
      autoFire = true;      
   };

   class LAWLauncher: Default {};
   class CarlGustavLauncher : LAWLauncher {};
   class AT3Launcher: CarlGustavLauncher {};
   class HellfireLauncher: AT3Launcher {};
   class MaverickLauncher: HellfireLauncher {};

   class sidewinder_Launcher: MaverickLauncher
   {
      ammo=DKMM_OV10_AIM9L;
      displayName="AIM-9L Sidewinder";
      displayNameMagazine="SidewinderA";
      shortNameMagazine="AIM-9L";
      magazine="sidewinder";
      count=6;
      initspeed=15;   
      model = "\RedThun\sidewinder.p3d";
      proxyShape ="\RedThun\sidewinder.p3d";
      canLock=2;      
      sound[]={Weapons\Missile,db+18,1};
      aiRateOfFire=8;
      aiRateOfFireDistance=3500;
   };
   
   class ZuniLauncher38: AT3Launcher {};
   
   // Unguided Rockets Launcher
   class RedThun_UG : ZuniLauncher38
   {
      opticsZoomMin=0.08;
      opticsZoomMax=0.84;
      scopeWeapon = public;
      scopeMagazine = public;
      displayName="Unguided Rockets";
      displayNameMagazine="UnGRockets";
      shortNameMagazine="UnGRockets";
      count=80;
      reloadTime=0.2;
      initSpeed=0;
      aiRateOfFire=5.0;      
      aiRateOfFireDistance=300;
      minRange=250;minRangeProbab=1;
      midRange=500;midRangeProbab=0.99;
      maxRange=1000;maxRangeProbab=0.95;
   };
};

class CfgNonAIVehicles
{
   class ProxyWeapon {};
   class ProxyArmedPlane_MG: ProxyWeapon {};
   class Proxysidewinder: ProxyWeapon
   {
      model="\RedThun\sidewinder.p3d"; simulation="maverickweapon";
   };
};

class CfgVehicles
{
   class All{};
   class AllVehicles:All{};
   class Air: AllVehicles{};
   class Helicopter: Air{};
   class Cobra: Helicopter{};   

   
   class RedThun: Cobra   
   {
      side=TEast;            
      scope=2;
      displayName="Red Thunder";
      model="\RedThun\RedThun";

      weapons[]={ RedThun_MG, sidewinder_Launcher, RedThun_UG  };
      magazines[]={ RedThun_MG, sidewinder_Launcher, RedThun_UG  };

      nameSound="chopper";
      hasGunner=true;
      crew="SoldierWPilot";
      maxSpeed=300;
      armor=220;
      accuracy=10;
      soundEngine[]={"\RedThun\sounds\motor.wav",db+20,1};
      soundGetIn[]={"\RedThun\sounds\GetIn.wav",db-30,1};
      soundGetOut[]={"\RedThun\sounds\GetOut.wav",db-30,1};
      transportAmmo=0;
      transportWeapon=0;
      simulation=helicopter;
      driverAction = ManActUH60Pilot;
      gunnerAction = ManActAH1Gunner;
      enableSweep=true;
      driverIsCommander=true;
      animated=1;

class Turret
{
   gunAxis = "OsaHlavne";
   turretAxis = "OsaVeze";
   soundServo[]={,db-40,1.0};
   gunBeg = "usti hlavne";
   gunEnd = "konec hlavne";
   minElev=-50; maxElev=+20;
   minTurn=-110; maxTurn=110;
   body = "OtocVez";
   gun = "OtocHlaven";
};
« Last Edit: 04 Oct 2004, 11:29:55 by Guyver NOD »