2015-05-13 04:33:03 +00:00
|
|
|
//model.cfg
|
|
|
|
|
|
|
|
class CfgSkeletons
|
|
|
|
{
|
|
|
|
class Default
|
|
|
|
{
|
|
|
|
isDiscrete = 1;
|
|
|
|
skeletonInherit = "";
|
|
|
|
skeletonBones[] = {};
|
|
|
|
};
|
|
|
|
|
|
|
|
class test_anim_skeleton : Default {
|
|
|
|
skeletonBones[] =
|
|
|
|
{
|
2015-05-16 00:22:43 +00:00
|
|
|
"a_pos","",
|
2015-05-13 04:33:03 +00:00
|
|
|
"pedestal","",
|
|
|
|
"turret","pedestal",
|
|
|
|
"rotation_drum","turret",
|
|
|
|
"barrel","rotation_drum"
|
|
|
|
};
|
|
|
|
pivotsModel = "";
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
|
|
|
class CfgModels
|
|
|
|
{
|
|
|
|
class Default
|
|
|
|
{
|
|
|
|
sectionsInherit = "";
|
|
|
|
sections[] = {};
|
|
|
|
};
|
|
|
|
|
|
|
|
class anim_test : Default {
|
|
|
|
sectionsInherit = "";
|
|
|
|
sections[] =
|
|
|
|
{
|
|
|
|
};
|
|
|
|
skeletonName = "test_anim_skeleton";
|
|
|
|
|
|
|
|
class Animations
|
|
|
|
{
|
|
|
|
class turret
|
|
|
|
{
|
|
|
|
type = "rotationY";
|
|
|
|
axis = "turret_rotation_axis";
|
|
|
|
source = "turret";
|
|
|
|
selection = "turret";
|
|
|
|
animPeriod = 0.0001;
|
2015-05-16 00:22:43 +00:00
|
|
|
minValue = "0";
|
|
|
|
maxValue = "4";
|
|
|
|
angle0 = "0";
|
|
|
|
angle1 = "rad 360";
|
|
|
|
sourceAddress = "loop";
|
|
|
|
};
|
|
|
|
/*
|
|
|
|
class a_pos
|
|
|
|
{
|
|
|
|
type = "rotationY";
|
|
|
|
axis = "turret_rotation_axis";
|
|
|
|
source = "a_pos";
|
|
|
|
selection = "a_pos";
|
|
|
|
animPeriod = 0.0001;
|
|
|
|
minValue = "0";
|
|
|
|
maxValue = "4";
|
|
|
|
angle0 = "0";
|
2015-05-13 04:33:03 +00:00
|
|
|
angle1 = "rad 360";
|
|
|
|
sourceAddress = "loop";
|
|
|
|
};
|
|
|
|
|
|
|
|
class rotation_drum {
|
|
|
|
type = "rotationX";
|
|
|
|
source = "rotation_drum";
|
|
|
|
selection = "rotation_drum";
|
|
|
|
axis = "barrel_elevation_axis";
|
|
|
|
animPeriod = 0.0001;
|
2015-05-16 00:22:43 +00:00
|
|
|
minValue = "0";
|
|
|
|
maxValue = "4";
|
|
|
|
angle0 = "0";
|
2015-05-13 04:33:03 +00:00
|
|
|
angle1 = "rad 360";
|
|
|
|
sourceAddress = "loop";
|
|
|
|
};
|
|
|
|
class barrel_recoil
|
|
|
|
{
|
2015-05-16 00:22:43 +00:00
|
|
|
type = "translationZ";
|
2015-05-13 04:33:03 +00:00
|
|
|
source = "barrel_recoil";
|
|
|
|
selection = "barrel";
|
|
|
|
axis = "barrel_recoil_axis";
|
|
|
|
offset0 = 0;
|
|
|
|
offset1 = -2;
|
|
|
|
animPeriod = 0.0001;
|
2015-05-16 00:22:43 +00:00
|
|
|
minValue = 0;
|
|
|
|
maxValue = 0.5;
|
2015-05-13 04:33:03 +00:00
|
|
|
sourceAddress = "mirror";
|
|
|
|
};
|
|
|
|
|
2015-05-16 00:22:43 +00:00
|
|
|
class barrel_hide
|
|
|
|
{
|
|
|
|
type = "hide";
|
|
|
|
source = "barrel_hide";
|
|
|
|
selection = "barrel";
|
|
|
|
axis = "barrel_recoil_axis";
|
|
|
|
hideValue = 0.5;
|
|
|
|
minValue = "0";
|
|
|
|
maxValue = "1";
|
|
|
|
sourceAddress = "mirror";
|
|
|
|
};
|
|
|
|
*/
|
2015-05-13 04:33:03 +00:00
|
|
|
};
|
|
|
|
};
|
|
|
|
};
|