Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- class CfgSkeletons
- {
- class sa58
- {
- isDiscrete=0;
- skeletonInherit="";
- skeletonBones[]={
- "trigger", "",
- "magazine", "",
- "bolt", "",
- "rail",""
- };
- };
- };
- class CfgModels
- {
- class Default { sections[] = {}; sectionsInherit=""; };
- class Weapon: default {};
- class sa58: Weapon
- {
- skeletonName="sa58";
- class Animations
- {
- class trigger
- {
- type="rotationZ"; //The type of animation.
- source="reload"; //The controller that provides input.
- selection="trigger"; //The name of the skeleton bone used.
- axis="trigger_axis"; //The name of the axis in the model.
- minValue=0; //The minimum value of the motion range. i.e. The controller input when animation phase is 0.
- maxValue="3"; //The maximum value of the motion range. i.e. The controller input when animation phase is 1.
- angle0="0"; //The starting angle of this animation, where the animation phase is 0.
- angle1="-3"; //The ending angle of this animation, where the animation phase is 1.
- };
- class bolt
- {
- type="translation"; // The type of animation.
- source="reload"; // The controller that provides input.
- selection="bolt"; // The name of the skeleton bone used.
- axis="bolt_axis"; // The name of the axis in the model.
- begin="bolt_axis_begin";
- end="bolt_axis_end";
- minValue=0; //The minimum value of the motion range. i.e. The controller input when animation phase is 0.
- maxValue="1"; //The maximum value of the motion range. i.e. The controller input when animation phase is 1.
- offset0="0";
- offset1="1";
- };
- class bolt_open:bolt
- {
- source="isEmpty"; //The controller that provides input.
- };
- /*
- class magazine_release
- {
- type="translation"; // The type of animation.
- source="reloadMagazine"; // The controller that provides input.
- selection="magazine_release"; // The name of the skeleton bone used.
- axis="magazine_release_axis"; // The name of the axis in the model.
- begin="magazine_release_begin";
- end="magazine_release_end";
- minPhase=0; // Minimum phase of the animation.i.e. Animation phase when the controller value is 0.
- maxPhase=.1; // Maxmimum value of the motion range.i.e. Animation phase when the controller value is 1.
- minValue=0; //The minimum value of the motion range. i.e. The controller input when animation phase is 0.
- maxValue="1"; //The maximum value of the motion range. i.e. The controller input when animation phase is 1.
- offset0="0";
- offset1="1";
- };
- */
- class reload_magazine_hide {
- type="hide";
- source="reloadMagazine";
- selection="magazine";
- hidevalue="0.2";
- };
- /*
- class reload_magazine_release {
- type="rotationZ";
- source="reloadMagazine";
- selection="magazine";
- axis="magazine_axis";
- minValue=0.1;
- maxValue="1";
- angle0="0";
- angle1="rad -2";
- };
- */
- class rail_unhide {
- type="hide";
- source="hasOptics";
- selection="rail";
- animPeriod=0;
- minValue=0;
- maxValue=0.30000001;
- minPhase=0;
- maxPhase=0.30000001;
- hideValue=0;
- unHideValue=0.1;
- sourceAddress="mirror";
- };
- };
- sectionsInherit = "weapon";
- sections[] = {"zasleh"};
- sections[]=
- {
- "zasleh"
- };
- };
- };
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement