wld427 1705 Posted February 17, 2008 my turret wont turn...... EDITED Share this post Link to post Share on other sites
RN Malboeuf 12 Posted February 17, 2008 search biki for model.cfg Share this post Link to post Share on other sites
UNN 0 Posted February 17, 2008 What err....."Astanid" is trying to say is, you now have an additional config section for animations. How to animate a model Share this post Link to post Share on other sites
wld427 1705 Posted March 7, 2008 ok now i have the "CfgSkeletons" but my turret still will not turn. Could you please take a look at my configs and help? Thsi is not my model or config. I am "kit bashing" to educate myself. if you figure out what i am doing wrog please explain. Thanks EDDIE Quote[/b] ]#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 T55   {    units[] = {T55}; VehicleClass = Armored; }; }; #include <cfgmagazine.h> #include <cfgWeapons.h> #include <cfgAmmo.h> #include <CfgSkeletons.h> class CfgVehicles { class Land; // External class reference class LandVehicle : Land { class NewTurret; // External class reference class ViewOptics; // External class reference }; class Tank : LandVehicle { weapons[] = {}; magazines[] = {}; class Turrets { class MainTurret : NewTurret { class Turrets { class CommanderOptics : NewTurret { }; }; }; }; class ViewOptics : ViewOptics { }; }; class T55 : Tank { displayName = "T55"; model = "\T55\VTE_t55.p3d"; selectionLeftOffset = "pasanimL"; selectionRightOffset = "pasanimP"; scope= 2; side = 0; crew = "SoldierECrew"; typicalCargo[] = {}; accuracy = 0.7; picture = "\M60A3\data\pic_m60.paa"; Icon = "\M60A3\data\M60_ico.paa"; mapSize= 11; armor= 650; maxSpeed= 48; forceHideGunner = 0; hiddenSelections[] = {"n1, n2, n3"}; transportSoldier = false; class TransportMagazines {}; transportAmmo = 0; supplyRadius = 1.7; canFloat = 0; threat[] = {0.8, 0.7, 0.2}; cost = 3000000; class Exhausts { class Exhaust1 { position = "vyfuk start"; direction = "vyfuk konec"; effect = "ExhaustsEffectBig"; }; }; soundGetIn[] = {"\ca\Tracked\Data\Sound\metal_door2", 0.01, 1}; soundGetOut[] = {"\ca\Tracked\Data\Sound\metal_door2", 0.00316228, 1}; soundEnviron[] = {"\ca\Tracked\Data\Sound\M1A2_track_v2", 5.01187, 1}; soundEngine[] = {"\ca\Tracked\Data\Sound\Brdm_engine_3", 7.94328, 0.9}; insideSoundCoef = 0.2; driverAction = "Abrams_DriverOut"; driverInAction = "Abrams_Driver"; animationSourceHatch = "hatchDriver"; memoryPointTrack1L = "Stopa ll"; memoryPointTrack1R = "Stopa lr"; memoryPointTrack2L = "Stopa rl"; memoryPointTrack2R = "Stopa rr"; driverForceOptics = 0; forceHideCommander = 0; memoryPointDriverOutOptics = "driver_outview"; class Library {  libTextDesc="The T55 served as the primary Warsaw Pact main battle tank of the Cold War. The T55 series tanks continue to serve as front-line MBTs in more than twenty countries." }; class Damage { tex[] = {}; mat[] = {}; }; class Turrets : Turrets { class MainTurret : MainTurret { gunnerAction = "Abrams_Gunner"; gunnerInAction = "Abrams_Gunner"; animationSourceHatch = "hatchGunner"; weapons[] = {"100mm_D10T", "M240_veh"}; body = "otocvez"; gun = "otochlaven"; hasGunner = 1; soundServo[] = {"\ca\Weapons\Data\Sound\gun_elevate", 0.00316228, 1.0}; magazines[] = {"20_HE", "20_HEAT", "1200Rnd_762x51_M240"}; forceHideGunner = 0; GunnerForceOptics = 0; gunnerOpticsModel = "\ca\Tracked\optika_tank_gunner"; minElev = -9; maxElev = 20; initElev = 0; class ViewOptics { initAngleX = 0; minAngleX = -30; maxAngleX = 30; initAngleY = 0; minAngleY = -100; maxAngleY = 100; initFov = 0.166; minFov = 0.025; maxFov = 0.333; }; class Turrets : Turrets { class CommanderOptics : CommanderOptics { gunBeg = "gun_muzzle"; gunEnd = "gun_chamber"; body = "otocvelitele"; gun = "otochlavenvelitele"; GunnerForceOptics = 0; minElev = -25; maxElev = 60; initElev = 0; minTurn = -360; maxTurn = 360; initTurn = 0; weapons[] = {"M2"}; magazines[] = {"100Rnd_127x99_M2", "100Rnd_127x99_M2"}; outGunnerMayFire = 1; inGunnerMayFire = 1; gunnerAction = "T72_CommanderOUT"; gunnerInAction = "Abrams_Commander"; soundServo[] = {"\ca\Weapons\Data\Sound\gun_elevate2", 0.000316228, 1.0}; gunnerOpticsModel = "\ca\Tracked\optika_M1A1_commander"; }; }; }; }; }; And now my CfgSkeleton <table border="0" align="center" width="95%" cellpadding="0" cellspacing="0"><tr><td>Code Sample </td></tr><tr><td id="CODE">class CfgSkeletons {  class Tank; //Define base class.  class T55Bones: Tank  { isDiscrete=1; skeletonInherit = ""; //Inherit all bones from class Car. skeletonBones[]= { "levy predni","", "levy dalsi","", "levy prostredni","", "levy zadni","", "pravy predni","", "pravy dalsi","", "pravy prostredni","", "pravy zadni","", "damageHide","", "OtocVez","", "OtocHlaven","OtocVez", "damageVez","OtocVez", "Poklop_Gunner","OtocVez", "Poklop_Commander","OtocVez", "poklop_Driver","", "kolol1","", "kolol2","", "kolol3","", "kolol4","", "kolol5","", "kolol6","", "kolol7","", "kolol8","", "kolol9","", "koll1","", "koll2","", "kolop1","", "kolop2","", "kolop3","", "kolop4","", "kolop5","", "kolop6","", "kolop7","", "kolop8","", "kolop9","", "kolp1","", "kolp2","" };  }; }; class CfgModels {  class Tank; //Declare base class.  class T55: TANK  { sectionsInherit = "";           sections[] ={"pas_P","koll1","koll2","kolp1","kolp2","koloL1","koloL2","koloL3","koloL4","koloL5","koloL6","kolP1","koloP1","koloP2","koloP3","koloP4","koloP5","koloP6","pravy zadni","pasanimL","pasanimP","levy zadni","L svetlo", "P svetlo", "HatchCommander","HatchGunner", "HatchDriver", "damageHide", "damageVez" }; skeletonName = "T55Bones"; class Animations { class OtocVez {    type = "rotationY";    source = "mainTurret"; selection = "OtocVez"; axis = "OsaVeze"; memory = true; sourceAddress = "loop"; minValue = rad -360;          maxValue = rad +360;           angle0 = rad -360;    angle1 = "rad 360";  }; class OtocHlaven {    type = "rotationX";    source = "mainGun"; selection = "OtocHlaven"; axis = "OsaHlavne"; memory = true; sourceAddress = "clamp"; minValue = "rad -4.5";          maxValue = "rad 35";           angle0 = "rad -5.5";    angle1 = "rad 35";  }; class HatchGunner { type = "rotationX";    source = "HatchGunner"; selection="poklop_gunner"; axis="osa_poklop_gunner"; minValue = 0;          maxValue = 1;           angle0 = 0;    angle1= rad -120; }; class HatchDriver { type = "rotationY";    source = "HatchDriver"; selection="poklop_driver"; axis="osa_poklop_driver"; minValue = 0;          maxValue = 1;           angle0 = 0;    angle1= rad -90; }; class HatchCommander { type = "rotationX";    source = "HatchCommander"; selection="poklop_commander"; axis="osa_poklop_commander"; minValue = 0;          maxValue = 1;           angle0 = 0;    angle1= rad -120; }; class damageHide { type="hide"; source="damage"; selection="damageHide"; }; class damageVez { type="hide"; source="damage"; selection="damageVez"; };  class BMDkoloL1 {    type = "rotationX";    source = "wheelL"; selection = "kolol1"; axis = ""; memory = true; sourceAddress = "loop"; minValue = 0;          maxValue = 1;           angle0 = 0;    angle1 = "rad -360";  }; class bmdkoloL2 :BMDkoloL1 { selection = "kolol2"; }; class bmdkoloL3 :BMDkoloL1 { selection = "kolol3"; }; class bmdkoloL4 :BMDkoloL1 { selection = "kolol4"; }; class bmdkoloL5 :BMDkoloL1 { selection = "kolol5"; }; class bmdkoloL6 :BMDkoloL1 { selection = "kolol6"; }; class bmdkoloL7 :BMDkoloL1 { selection = "kolol7"; }; class bmdkoloL8 :BMDkoloL1 { selection = "kolol8"; }; class bmdkoloL9 :BMDkoloL1 { selection = "kolol9"; }; class bmdkoll1 :BMDkoloL1 { selection = "koll1"; }; class bmdkoll2 :BMDkoloL1 { selection = "koll2"; };  class BMDkolop1 {    type = "rotationX";    source = "wheelr"; selection = "kolop1"; axis = ""; memory = true; sourceAddress = "loop"; minValue = 0;          maxValue = 1;           angle0 = 0;    angle1 = "rad -360";  }; class bmdkolop2 :BMDkolop1 { selection = "kolop2"; }; class bmdkolop3 :BMDkolop1 { selection = "kolop3"; }; class bmdkolop4 :BMDkolop1 { selection = "kolop4"; }; class bmdkolop5 :BMDkolop1 { selection = "kolop5"; }; class bmdkolop6 :BMDkolop1 { selection = "kolop6"; }; class bmdkolop7 :BMDkolop1 { selection = "kolop7"; }; class bmdkolop8 :BMDkolop1 { selection = "kolop8"; }; class bmdkolop9 :BMDkolop1 { selection = "kolop9"; }; class bmdkolp1 :BMDkolop1 { selection = "kolp1"; }; class bmdkolp2 :BMDkolop1 { selection = "kolp2"; };  class bmdDrivingWheel {    type = "rotationZ";    source = "drivingWheel"; selection = "volant"; axis = "osavolantkon"; memory = true; sourceAddress = "mirror"; minValue = -1;          maxValue = 1;           angle0 = "rad -35";    angle1 = "rad 35";  }; };   }; }; Share this post Link to post Share on other sites