Home   Help Search Login Register  

Author Topic: Config problem  (Read 1549 times)

0 Members and 1 Guest are viewing this topic.

Offline hamis

  • Members
  • *
  • I'm a llama!
Config problem
« on: 09 Jun 2008, 07:57:16 »
Well,what's wrong with this replacement config:
Code: [Select]
class CfgPatches {
class Brdm2_replacement {
units[] = {};
weapons[] = {};
requiredAddons[] = {"CAData","CACharacters","CAWeapons","CASounds"};
};
};

class CfgVehicles
{
class Land;
class LandVehicle: Land
{
 class NewTurret;
 class ViewOptics;
 class ViewPilot;
 class HeadLimits;
};
class Car: LandVehicle{};
class StrykerBase : Car {};

class Brdm2 : StrykerBase {
scope = public;

vehicleClass = "Armored";
model = "\CWM_Vehicles\SD_Btr80.p3d";
Picture = "\CWM_Vehicles_cfg\icons\BTRIcon.paa";
Icon = "\CWM_Vehicles_cfg\icons\BTRIcon_MAP.paa";
displayName = "BTR-80";
mapSize = 8;
side=0;
terrainCoef = 0.5;

maxspeed = 80;
damperSize = 0.1; // max. damper amplitude
damperForce = 1; // larger number more stiffness dampers
turnCoef = 4.0;
steerAheadSimul = 0.6;
       steerAheadPlan = 0.5;
crew = "SoldierECrew";
nameSound = "APC";
weapons[] = {};
magazines[] = {};
armor = 180;
driverOpticsModel = "";
soundEngine[] = {"\CWM_Vehicles_cfg\Sounds\BTRengine", db10, 1};
hiddenSelections[]={"n1","n2","n3","n4","n5","n6"



,"pruh"};
memoryPointTrackFLL = "Stopa  PLL";
memoryPointTrackFLR = "Stopa PLP";
memoryPointTrackBLL = "Stopa ZLL";
memoryPointTrackBLR = "Stopa ZLP";
memoryPointTrackFRL = "Stopa PPL";
memoryPointTrackFRR = "Stopa PPP";
memoryPointTrackBRL = "Stopa ZPL";
memoryPointTrackBRR = "Stopa ZPP";
memoryPointsGetInDriver = "pos driver";
memoryPointsGetInDriverDir = "zamerny";
memoryPointsGetInCommander = "pos cargo";
memoryPointsGetInCommanderDir = "pos cargo";
memoryPointsGetInCargo = "pos cargo";
memoryPointsGetInCargoDir = "zamerny";
memoryPointsGetInCoDriver = "pos cargo";
memoryPointsGetInCoDriverDir = "zamerny";
selectionBrakeLights = "light_brake";
selectionBackLights = "none";
type = VArmor;
cost = 100000;
class Exhausts
{
class Exhaust1
{
position = "vyfuk start";
direction = "vyfuk konec";
effect = "ExhaustsEffect";
};

class Exhaust2 : Exhaust1
{
position = "vyfuk start 2";
direction = "vyfuk konec 2";
};
};
class Reflectors
{
class Left
{
color[] = {0.9, 0.8, 0.8, 1.0};
ambient[] = {0.1, 0.1, 0.1, 1.0};
position = "L svetlo";
direction = "konec L svetla";
hitpoint = "L svetlo";
selection = "L svetlo";
size = 0.5;
brightness = 0.5;
};

class Right
{
color[] = {0.9, 0.8, 0.8, 1.0};
ambient[] = {0.1, 0.1, 0.1, 1.0};
position = "P svetlo";
direction = "konec P svetla";
hitpoint = "P svetlo";
selection = "P svetlo";
size = 0.5;
brightness = 0.5;
};
};
typicalCargo[] = {"SoldierEB", "SoldierEB", "SoldierEAT", "SoldierEBOfficer"};
transportSoldier = 11;
canfloat = true;
castDriverShadow = true;
driverAction = "HMMWV_Driver";
cargoAction[] = {"HMMWV_Cargo01", "HMMWV_Cargo01", "UAZ_Cargo01"};
canLock = LockNo;
unitInfoType = "UnitInfoSoldier";
dammageFull[] = {"\CWM_Vehicles\BTR80\t\bok.paa", "\CWM_Vehicles\BTR80\t\bokd.paa","\CWM_Vehicles\BTR80\t\camu.paa", "\CWM_Vehicles\BTR80\t\camud.paa","\CWM_Vehicles\BTR80\t\zad.paa", "\CWM_Vehicles\BTR80\t\zadd.paa","\CWM_Vehicles\BTR80\t\verh.paa", "\CWM_Vehicles\BTR80\t\verhd.paa","\CWM_Vehicles\BTR80\t\zadsh.paa", "\CWM_Vehicles\BTR80\t\zadshd.paa","\CWM_Vehicles\BTR80\t\verh2.paa", "\CWM_Vehicles\BTR80\t\verh2d.paa","\CWM_Vehicles\BTR80\t\k1.paa", "\CWM_Vehicles\BTR80\t\verhd.paa"};
class AnimationSources
{
class  Dvere1 // Should be the same as your selection name.
{
source = "user"; //The controller is defined as a user animation.
animPeriod = 1;  //The animation period used for this controller.
initPhase=0;     //Initial phase when object is created. 0 = CLOSED
};
};
class NewTurret;
   class ViewOptics;
   class Turrets
              {
    class CommanderOptics: NewTurret
    {
     class ViewOptics;
     class ViewGunner;
      };
     };
    };
class MainTurret : Newturret
{
body = "mainTurret";
gun = "mainGun";
hasGunner = true;
gunBeg = "usti hlavne"; // endpoint of the gun
gunEnd = "konec hlavne"; // chamber of the gun
weapons[] = {KPVT, PKT};
soundServo[] = {"\ca\wheeled\Data\Sound\servo4", db-52, 1.0};
magazines[] = {"500Rnd_145x115_KPVT", "1500Rnd_762x54_PKT"};
gunnerAction = "BRDM2_Gunner";
gunnerOpticsModel = "\ca\wheeled\optika_BRDM";
gunnerForceOptics = true;

class ViewOptics
{
initAngleX = 5;
minAngleX = -30;
maxAngleX = 30;
initAngleY = 0;
minAngleY = 0;
maxAngleY = 0;
initFov = 0.4;
minFov = 0.4;
maxFov = 0.4;
};
};
};
class EventHandlers
{
Init = "_this exec ""\CWM_Vehicles_cfg\BTR80\btr80rand.sqs"",[_this select 0, 3] exec ""\CWM_Vehicles_cfg\BTR80\btr80anim.sqs""";
fired ="_this exec ""\CWM_Vehicles_cfg\BTR80\fired.sqs""";

};
class UserActions
{
class OpenDoors
{
displayName="Open Windows";
position="osa_dvere1";
radius=3.500000;
onlyForPlayer= false;
condition="this animationPhase ""Dvere1"" < 0.5 AND (PLAYER == driver this)";
statement="this animate [""Dvere1"", 1]";
};
class CloseDoors
{
displayName="Close Windows";
position="osa_dvere1";
radius=3.500000;
onlyForPlayer= false;
condition="this animationPhase ""Dvere1"" >= 0.5 AND (PLAYER == driver this)";
statement="this animate [""Dvere1"", 0]";
};
};
// threat (VSoft, VArmor, VAir), how threatening vehicle is to unit types
threat[] = {0.5, 0.1, 0.5};
};

I get "undefined baseclass newturret" msg. ???

Offline Gnat

  • Addons Depot
  • Moderator
  • *****
  • I Bite!
    • Gnats
Re: Config problem
« Reply #1 on: 11 Jun 2008, 15:31:19 »
Not sure .... but below works for me;
Quote
class CfgVehicles
{
   class Ship;
   class GNTShip1 : Ship
      {
      class NewTurret;
      class Turrets;
         irScanRangeMin=500;
         irScanRangeMax=10000;
      class viewpilot;
      class viewgunner;
      };

   class GNTKrivak: GNTShip1
   {
.............
............
      class Turrets {
         class MainTurret : NewTurret {
            body = "main1turret";
            gun = "main1gun";
.............
..............