hey this little thing has kept me busy for a few hours now.
2 problems:
1.i get 5 crew men. the fifth is in the same place as the commander(exactly the same place,and he is in command)
2.the loader wont turn with the gun(only the up/down is available)
if you can spot the problem please let me know
thanks in advance.
config
<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 tank_mk3Bones: 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",
"otocvelitele","OtocVez",
"otochlavenvelitele", "otocvelitele",
"otocvelitele2","OtocVez",
"otochlavenvelitele2", "otocvelitele2",
"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 tank_mk3: TANK
{
sectionsInherit = "";
sections[] ={"name","gedud","zasleh", "pas_P","koll1","koll2",&# 34;kolp1","kolp2","koloL1", 4;koloL2","koloL3","koloL4",&# 34;koloL5","koloL6","kolP1",&# 34;koloP1","koloP2","koloP3",& #34;koloP4","koloP5","koloP6", "pravy zadni","pasanimL","pasanimP",& #34;levy zadni","L svetlo", "P svetlo", "HatchCommander","HatchGunner", "HatchDriver", "damageHide", "damageVez" };
skeletonName = "tank_mk3Bones";
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 -35";
maxValue = "rad 50";
angle0 = "rad -35";
angle1 = "rad 50";
};
class otocvelitele
{
type = "rotationY";
source = "obsTurret";
selection = "otocvelitele";
axis = "osavelitele";
memory = true;
sourceAddress = "loop";
minValue = rad -360;
maxValue = rad +360;
angle0 = rad -360;
angle1 = "rad 360";
};
class otochlavenvelitele
{
type = "rotationX";
source = "obsGun";
selection = "otochlavenvelitele";
axis = "osahlavnevelitele";
memory = true;
sourceAddress = "clamp";
minValue = "rad -20";
maxValue = "rad 50";
angle0 = "rad -20";
angle1 = "rad 50";
};
class otocvelitele2
{
type = "rotationY";
source = "obsTurret2";
selection = "otocvelitele2";
axis = "osavelitele2";
memory = true;
sourceAddress = "loop";
minValue = rad -360;
maxValue = rad +360;
angle0 = rad -360;
angle1 = "rad 360";
};
class otochlavenvelitele2
{
type = "rotationX";
source = "obsGun2";
selection = "otochlavenvelitele2";
axis = "osahlavnevelitele2";
memory = true;
sourceAddress = "clamp";
minValue = "rad -20";
maxValue = "rad 50";
angle0 = "rad -20";
angle1 = "rad 50";
};
class HatchGunner
{
type = "rotationX";
source = "HatchGunner";
selection="poklop_gunner";
axis="osa_poklop_gunner";
minValue = 0;
maxValue = 1;
angle0 = 0;
angle1= rad 140;
};
class HatchDriver
{
type = "rotationY";
source = "HatchDriver";
selection="poklop_driver";
axis="osa_poklop_driver";
minValue = 0;
maxValue = 1;
angle0 = 0;
angle1= rad -107;
};
class HatchCommander
{
type = "rotationy";
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 tank_mk3koloL1
{
type = "rotationX";
source = "wheelL";
selection = "kolol1";
axis = "";
memory = true;
sourceAddress = "loop";
minValue = 0;
maxValue = 1;
angle0 = 0;
angle1 = "rad -360";
};
class tank_mk3koloL2 : tank_mk3koloL1
{
selection = "kolol2";
};
class tank_mk3koloL3 : tank_mk3koloL1
{
selection = "kolol3";
};
class tank_mk3koloL4 : tank_mk3koloL1
{
selection = "kolol4";
};
class tank_mk3koloL5 : tank_mk3koloL1
{
selection = "kolol5";
};
class tank_mk3koloL6 : tank_mk3koloL1
{
selection = "kolol6";
};
class tank_mk3koloL7 : tank_mk3koloL1
{
selection = "kolol7";
};
class tank_mk3koloL8 : tank_mk3koloL1
{
selection = "kolol8";
};
class tank_mk3koloL9 : tank_mk3koloL1
{
selection = "kolol9";
};
class tank_mk3koll1 : tank_mk3koloL1
{
selection = "koll1";
};
class tank_mk3koll2 : tank_mk3koloL1
{
selection = "koll2";
};
class tank_mk3kolop1
{
type = "rotationX";
source = "wheelr";
selection = "kolop1";
axis = "";
memory = true;
sourceAddress = "loop";
minValue = 0;
maxValue = 1;
angle0 = 0;
angle1 = "rad -360";
};
class tank_mk3kolop2 : tank_mk3kolop1
{
selection = "kolop2";
};
class tank_mk3kolop3 : tank_mk3kolop1
{
selection = "kolop3";
};
class tank_mk3kolop4 : tank_mk3kolop1
{
selection = "kolop4";
};
class tank_mk3kolop5 : tank_mk3kolop1
{
selection = "kolop5";
};
class tank_mk3kolop6 : tank_mk3kolop1
{
selection = "kolop6";
};
class tank_mk3kolop7 : tank_mk3kolop1
{
selection = "kolop7";
};
class tank_mk3kolop8 : tank_mk3kolop1
{
selection = "kolop8";
};
class tank_mk3kolop9 : tank_mk3kolop1
{
selection = "kolop9";
};
class tank_mk3kolp1 :tank_mk3kolop1
{
selection = "kolp1";
};
class tank_mk3kolp2 : tank_mk3kolop1
{
selection = "kolp2";
};
class tank_mk3DrivingWheel
{
type = "rotationZ";
source = "drivingWheel";
selection = "volant";
axis = "osavolantkon";
memory = true;
sourceAddress = "mirror";
minValue = -1;
maxValue = 1;
angle0 = "rad -35";
angle1 = "rad 35";
};
};
};
};
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 tank_mk3:Tank
{
displayName = " tank mk3";
model = "\tank_mk3\tank_mk3.p3d";
selectionLeftOffset = "pasanimL";
selectionRightOffset = "pasanimP";
scope= 2;
side = 1;
crew = "sfc_soilder";
typicalCargo[] = {"sfc_soilder", "sfc_soilder", "sfc_soilder"};
accuracy = 0.7;
mapSize= 11;
armor= 1300;
maxSpeed= 70;
hiddenSelections[] = {};
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\m etal_door2", 0.01, 1};
soundGetOut[] = {"\ca\Tracked\Data\Sound\m etal_door2", 0.00316228, 1};
soundEnviron[] = {"\ca\Tracked\Data\Sound\M 1A2_track_v2", 5.01187, 1};
soundEngine[] = {"\ca\Tracked\Data\Sound\B rdm_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 = 1;
memoryPointDriverOutOptics = "driver_outview";
class Library
{
libTextDesc="T."
};
class Turrets : Turrets {
class MainTurret : MainTurret {
gunnerAction = "Abrams_Gunner";
gunnerInAction = "Abrams_Gunner";
weapons[] = {};
body = "otocvez";
gun = "otochlaven";
primaryGunner=1;
hasGunner = 1;
soundServo[] = {"\ca\Weapons\Data\Sound\g un_elevate", 0.00316228, 1.0};
magazines[] = {};
forceHideGunner = 1;
GunnerForceOptics = 1;
gunnerOpticsModel = "\ca\Tracked\optika_tank_gunner 4;;
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 = 1;
minElev = -25;
maxElev = 60;
initElev = 0;
proxyType="CPCommander";
proxyIndex=1;
minTurn = -95;
maxTurn = 10;
initTurn = 0;
weapons[] = {};
magazines[] = {};
outGunnerMayFire = 1;
inGunnerMayFire = 0;
gunnerAction = "T72_CommanderOUT";
gunnerInAction = "T72_CommanderOUT";
gunnerOpticsModel = "\ca\weapons\optika_empty";
class ViewOptics {
initAngleX = 0;
minAngleX = -30;
maxAngleX = 30;
initAngleY = 0;
minAngleY = -100;
maxAngleY = 100;
initFov = 0.8;
minFov = 0.8;
maxFov = 0.8;
};
};
};
class loaderTurret : MainTurret {
gunBeg = "gun_muzzle2";
gunEnd = "gun_chamber2";
body = "otocvelitele2";
gun = "otochlavenvelitele2";
animationSourceBody="obsTurret2";
animationSourceGun="obsGun2";
animationSourceHatch = "hatchGunner";
forceHideGunner = 0;
GunnerForceOptics = 0;
proxyType="CPGunner";
proxyIndex=2;
minElev = -25;
maxElev = 60;
initElev = 0;
hasGunner = 1;
minTurn = 95;
maxTurn = 10;
initTurn = 0;
weapons[] = {};
magazines[] = {};
outGunnerMayFire = 1;
inGunnerMayFire = 0;
gunnerAction = "T72_CommanderOUT";
gunnerInAction = "T72_CommanderOUT";
gunnerOpticsModel = "\ca\weapons\optika_empty";
class ViewOptics {
initAngleX = 0;
minAngleX = -30;
maxAngleX = 30;
initAngleY = 0;
minAngleY = -100;
maxAngleY = 100;
initFov = 0.8;
minFov = 0.8;
maxFov = 0.8;
};
};
};
};
[/QUOTE]
cfg skeleton
<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 tank_mk3Bones: 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",
"otocvelitele","OtocVez",
"otochlavenvelitele", "otocvelitele",
"otocvelitele2","OtocVez",
"otochlavenvelitele2", "otocvelitele2",
"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 tank_mk3: TANK
{
sectionsInherit = "";
sections[] ={"name","gedud","zasleh", "pas_P","koll1","koll2",&# 34;kolp1","kolp2","koloL1", 4;koloL2","koloL3","koloL4",&# 34;koloL5","koloL6","kolP1",&# 34;koloP1","koloP2","koloP3",& #34;koloP4","koloP5","koloP6", "pravy zadni","pasanimL","pasanimP",& #34;levy zadni","L svetlo", "P svetlo", "HatchCommander","HatchGunner", "HatchDriver", "damageHide", "damageVez" };
skeletonName = "tank_mk3Bones";
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 -35";
maxValue = "rad 50";
angle0 = "rad -35";
angle1 = "rad 50";
};
class otocvelitele
{
type = "rotationY";
source = "obsTurret";
selection = "otocvelitele";
axis = "osavelitele";
memory = true;
sourceAddress = "loop";
minValue = rad -360;
maxValue = rad +360;
angle0 = rad -360;
angle1 = "rad 360";
};
class otochlavenvelitele
{
type = "rotationX";
source = "obsGun";
selection = "otochlavenvelitele";
axis = "osahlavnevelitele";
memory = true;
sourceAddress = "clamp";
minValue = "rad -20";
maxValue = "rad 50";
angle0 = "rad -20";
angle1 = "rad 50";
};
class otocvelitele2
{
type = "rotationY";
source = "obsTurret2";
selection = "otocvelitele2";
axis = "osavelitele2";
memory = true;
sourceAddress = "loop";
minValue = rad -360;
maxValue = rad +360;
angle0 = rad -360;
angle1 = "rad 360";
};
class otochlavenvelitele2
{
type = "rotationX";
source = "obsGun2";
selection = "otochlavenvelitele2";
axis = "osahlavnevelitele2";
memory = true;
sourceAddress = "clamp";
minValue = "rad -20";
maxValue = "rad 50";
angle0 = "rad -20";
angle1 = "rad 50";
};
class HatchGunner
{
type = "rotationX";
source = "HatchGunner";
selection="poklop_gunner";
axis="osa_poklop_gunner";
minValue = 0;
maxValue = 1;
angle0 = 0;
angle1= rad 140;
};
class HatchDriver
{
type = "rotationY";
source = "HatchDriver";
selection="poklop_driver";
axis="osa_poklop_driver";
minValue = 0;
maxValue = 1;
angle0 = 0;
angle1= rad -107;
};
class HatchCommander
{
type = "rotationy";
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 tank_mk3koloL1
{
type = "rotationX";
source = "wheelL";
selection = "kolol1";
axis = "";
memory = true;
sourceAddress = "loop";
minValue = 0;
maxValue = 1;
angle0 = 0;
angle1 = "rad -360";
};
class tank_mk3koloL2 : tank_mk3koloL1
{
selection = "kolol2";
};
class tank_mk3koloL3 : tank_mk3koloL1
{
selection = "kolol3";
};
class tank_mk3koloL4 : tank_mk3koloL1
{
selection = "kolol4";
};
class tank_mk3koloL5 : tank_mk3koloL1
{
selection = "kolol5";
};
class tank_mk3koloL6 : tank_mk3koloL1
{
selection = "kolol6";
};
class tank_mk3koloL7 : tank_mk3koloL1
{
selection = "kolol7";
};
class tank_mk3koloL8 : tank_mk3koloL1
{
selection = "kolol8";
};
class tank_mk3koloL9 : tank_mk3koloL1
{
selection = "kolol9";
};
class tank_mk3koll1 : tank_mk3koloL1
{
selection = "koll1";
};
class tank_mk3koll2 : tank_mk3koloL1
{
selection = "koll2";
};
class tank_mk3kolop1
{
type = "rotationX";
source = "wheelr";
selection = "kolop1";
axis = "";
memory = true;
sourceAddress = "loop";
minValue = 0;
maxValue = 1;
angle0 = 0;
angle1 = "rad -360";
};
class tank_mk3kolop2 : tank_mk3kolop1
{
selection = "kolop2";
};
class tank_mk3kolop3 : tank_mk3kolop1
{
selection = "kolop3";
};
class tank_mk3kolop4 : tank_mk3kolop1
{
selection = "kolop4";
};
class tank_mk3kolop5 : tank_mk3kolop1
{
selection = "kolop5";
};
class tank_mk3kolop6 : tank_mk3kolop1
{
selection = "kolop6";
};
class tank_mk3kolop7 : tank_mk3kolop1
{
selection = "kolop7";
};
class tank_mk3kolop8 : tank_mk3kolop1
{
selection = "kolop8";
};
class tank_mk3kolop9 : tank_mk3kolop1
{
selection = "kolop9";
};
class tank_mk3kolp1 :tank_mk3kolop1
{
selection = "kolp1";
};
class tank_mk3kolp2 : tank_mk3kolop1
{
selection = "kolp2";
};
class tank_mk3DrivingWheel
{
type = "rotationZ";
source = "drivingWheel";
selection = "volant";
axis = "osavolantkon";
memory = true;
sourceAddress = "mirror";
minValue = -1;
maxValue = 1;
angle0 = "rad -35";
angle1 = "rad 35";
};
};
};
};[/QUOTE]
HOME
Reply With Quote
***I'd be very interrested in your solution if you managed to solve your problem ***

