Home   Help Search Login Register  

Author Topic: Problem with config.cpp  (Read 1171 times)

0 Members and 1 Guest are viewing this topic.

juxie

  • Guest
Problem with config.cpp
« on: 10 Jun 2005, 08:30:28 »
I have this config:

Code: [Select]
class CfgPatches
   {

   class boat
      {
      units[]={"Boat"};
      weapons[]={};
      requiredVersion=1.4;
      };
   };

class CfgModels
{
   class Default
   {
      sections[] = {};
      sectionsInherit="";
   };

   // some generic model requirements
   class Head: Default
   {
      sections[] =
      {
         "osobnost",
         "brejle"
      };
   };
   class Man: Default
   {
      sections[] =
      {
         "head injury","body injury",
         "l arm injury","r arm injury","p arm injury",
         "l leg injury","r leg injury","p leg injury",
         "medic",
         "hlava",
         "krk",
         "zasleh"
      };
      sectionsInherit=Head;
   };
   class Vehicle: Default
   {
      sections[] =
      {
         "cislo",
         "grupa",
         "side",
         "sektor",
         "clan",
         "podsvit pristroju",
         "poskozeni",
         "L svetlo",
         "P svetlo",
         "zasleh"
      };
   };

   // ships
   class Ship
   {
      sectionsInherit="Vehicle";
      sections[]=
      {
         "zadni svetlo"
      };
   };

   class BoatSMM: Ship{};
};

class CfgVehicles
   {

   class All{};

   class AllVehicles:All{};

   class Ship:AllVehicles{};

   class SmallShip:Ship{};

   class BoatW: SmallShip{};

   class Boat:BoatW
      {
      scope=2;
      vehicleClass="MyBoat";
      displayName="Boat";
      accuracy=0.5;
      armor=50;
      brakeDistance=5;
      fuelCapacity=100;
      crew="Army";
      model="\boat\boat.p3d";
      maxSpeed=70;
      driverAction="ManActTruck5tDriver";
      cargoAction[]={"ManActCargo"};
      transportSoldier=5;
      weapons[]={};
      magazines[]={};
      hasGunner=0;
      hasCommander=0;
      hasDriver=1;
      driverIsCommander=1;
      };
   };

somehow the boat doesn't move..
Any idea what's wrong?

Offline oyman

  • Members
  • *
  • king of pings
Re:Problem with config.cpp
« Reply #1 on: 10 Jun 2005, 15:50:51 »
does your model have a geometry LOD?

Offline Planck

  • Honoured
  • Former Staff
  • ****
  • I'm never wrong ....I'm just not always right !
Re:Problem with config.cpp
« Reply #2 on: 10 Jun 2005, 19:17:47 »
Going by this line:

model="\boat\boat.p3d";

in cfgVehicles........

This line:

class BoatSMM: Ship{};

in cfgModels, should possibly be:

class boat: Ship{};


Planck
I know a little about a lot, and a lot about a little.