I am having trouble getting a pistol i'm trying to implement to animate. I'm not quite sure what i'm missing regarding my model.cfg.
the weapon recoils and rotates during reload animation, but the slide does not move, nor does the trigger and magazine when their respective animations should be played. could use some help.
model.cfg:
class CfgSkeletons
{
class Skeleton
{
isDiscrete=0;
skeletonInherit="";
skeletonBones[]={"recoil", "", "bolt", "recoil", "magazine", "recoil", "trigger", "recoil", "bolt_axis", "recoil", "magazine_axis", "recoil", "trigger_axis", "recoil", ""};
};
};
class CfgModels
{
class czp10c
{
htMin=0;
htMax=0;
afMax=0;
mfMax=0;
mFact=0;
tBody=0;
skeletonName="Skeleton";
sectionsInherit="";
sections[]={"bolt", "recoil", "magazine", "trigger"};
class Animations
{
class magazine_reloadmag_hide
{
type="hide";
source="reloadmagazine";
selection="magazine";
sourceAddress="clamp";
minPhase=0;
maxPhase=1;
minValue=0;
maxValue=1;
memory=0;
hideValue=0.248;
unHideValue=0.64;
};
class magazine_reloadmag_move_1
{
type="translation";
source="reloadmagazine";
selection="magazine";
axis="magazine_axis";
sourceAddress="clamp";
minPhase=0.2;
maxPhase=0.248;
minValue=0.2;
maxValue=0.248;
memory=0;
offset0=0;
offset1=1.5;
};
class magazine_reloadmag_move_2
{
type="translation";
source="reloadmagazine";
selection="magazine";
axis="magazine_axis";
sourceAddress="clamp";
minPhase=0.62;
maxPhase=0.68;
minValue=0.62;
maxValue=0.68;
memory=0;
offset0=0;
offset1=-1.5;
};
class trigger_reload_rot
{
type="rotation";
source="reload";
selection="trigger";
axis="trigger_axis";
sourceAddress="clamp";
minPhase=0.5;
maxPhase=1;
minValue=0.5;
maxValue=1;
memory=0;
angle0=0;
angle1=0.6981317;
};
class bolt_reload_move
{
type="translation";
source="reload";
selection="bolt";
axis="bolt_axis";
sourceAddress="clamp";
minPhase=0;
maxPhase=1;
minValue=0;
maxValue=1;
memory=0;
offset0=0;
offset1=-0.2;
};
class bolt_empty_move
{
type="translation";
source="isempty";
selection="bolt";
axis="bolt_axis";
sourceAddress="clamp";
minPhase=0;
maxPhase=1;
minValue=0;
maxValue=1;
memory=0;
offset0=0;
offset1=-0.2;
};
class recoil_reload_rot_1
{
type="rotation";
source="reload";
selection="recoil";
axis="recoil_axis";
sourceAddress="clamp";
minPhase=0.97;
maxPhase=1;
minValue=0.97;
maxValue=1;
memory=0;
angle0=0;
angle1=-0.08726647;
};
class recoil_reload_rot_2
{
type="rotation";
source="reload";
selection="recoil";
axis="recoil_axis";
sourceAddress="clamp";
minPhase=0.82;
maxPhase=0.97;
minValue=0.82;
maxValue=0.97;
memory=0;
angle0=0;
angle1=-0.04363323;
};
class recoil_reload_rot_3
{
type="rotation";
source="reload";
selection="recoil";
axis="recoil_axis";
sourceAddress="clamp";
minPhase=0.5;
maxPhase=0.82;
minValue=0.5;
maxValue=0.82;
memory=0;
angle0=0;
angle1=0.08726647;
};
class recoil_reload_rot_4
{
type="rotation";
source="reload";
selection="recoil";
axis="recoil_axis";
sourceAddress="clamp";
minPhase=0.25;
maxPhase=0.5;
minValue=0.25;
maxValue=0.5;
memory=0;
angle0=0;
angle1=0.02617994;
};
class recoil_reload_rot_5
{
type="rotation";
source="reload";
selection="recoil";
axis="recoil_axis";
sourceAddress="clamp";
minPhase=0;
maxPhase=0.25;
minValue=0;
maxValue=0.25;
memory=0;
angle0=0;
angle1=0.01745329;
};
};
};
};