Jump to content

Recommended Posts

Hey folks,

 

i tried to port the arma 2 mp5 sd6 to A3 and i run in couple of problems. First of all the arm animation is really weird. I can't fixed it in the model.cfg.

The next thing is i added a top mount rail to the model. But in ego view it's not there. When i zoom my heady ist in the weapons.

i'm new in this and i hoped to learn from the arma 2 stuff but these are problem which i can't fix my self.

 

hand.png

 

view.png

 

model.cfg

Spoiler

#define BULLET_HIDE(x,from,count) class Bullet##x\
            {\
                type="hide";\
                source="revolving";\
                sourceAddress="mirror";\
                selection=bullet##x;\
                minValue=-1.000000;\
                maxValue= 0.000000;\
                hideValue=((count+x-from-2)/count)+0.00001;\
            };

class CfgSkeletons
{
    class Default;
    class Weapon: Default
    {
        isDiscrete=1;
        skeletonInherit="Default";
        skeletonBones[]=
        {
            "magazine","",
            "trigger","",
        };
    };
    class Rifle: Weapon
    {
        skeletonInherit="Weapon";
        skeletonBones[]=
        {
            "bolt","",
            "bullet_cover","",
            "aimpoint_cover","",
            "aimpoint_cover02","",
            "charging_handle","",
            "misc_cover",""
        };
    };
    class Pistol: Weapon
    {
        skeletonInherit="Weapon";
        skeletonBones[]=
        {
            "slide","",
            "hammer",""
        };
    };
    class MachineGun: Weapon
    {
        skeletonInherit="Weapon";
        skeletonBones[]=
        {
            "ammo_belt","",
            "ammo_belt_bottom","ammo_belt",
            "feedtray_cover","",
            "bolt","",
            "fake_bullet","",
            "bullet001","bullet002",
            "bullet002","bullet003",
            "bullet003","bullet004",
            "bullet004","bullet005",
            "bullet005","bullet006",
            "bullet006","bullet007",
            "bullet007","bullet008",
            "bullet007hide","",
            "bullet008","bullet009",
            "bullet009","bullet010",
            "bullet010","ammo_belt",
            "bullet_cover","",
            "optics","",
            "ammo_belt_cover","feedtray_cover",
            "ammo_belt_cover02","magazine",
            "misc_cover","feedtray_cover",
            "magazine_belt","magazine"
        };
    };
    class StaticWeapon: Default
    {
        isDiscrete=1;
        skeletonInherit="Default";
        skeletonBones[]=
        {
            "OtocVez","",
            "OtocHlaven","OtocVez",
            "OtocHlaven_Shake","OtocHlaven",
            "ammo_belt","OtocHlaven_Shake",
            "magazine","OtocHlaven_Shake",
            "feedtray_cover","OtocHlaven_Shake",
            "bolt","OtocHlaven_Shake",
            "recoil","OtocHlaven_Shake",
            "charging_handle","OtocHlaven_Shake",
            "damagehideVez","OtocVez",
            "damagehideHlaven","OtocHlaven",
            "damagehideRecoil","recoil"
        };
    };
    class StaticMGWeapon: StaticWeapon
    {
        skeletonInherit="StaticWeapon";
        skeletonBones[]=
        {
            "bullet001","bullet002",
            "bullet002","bullet003",
            "bullet003","bullet004",
            "bullet004","bullet005",
            "bullet005","bullet006",
            "bullet006","bullet007",
            "bullet007","bullet008",
            "bullet008","bullet009",
            "bullet009","bullet010",
            "bullet010","bullet011",
            "bullet011","bullet012",
            "bullet012","ammo_belt"
        };
    };
};

class CfgModels
{
    class Default;
    class Optic: Default
    {
        sections[]=
        {
            "zasleh"
        };
    };
    class Weapon: Default
    {
        sections[]=
        {
            "zasleh"
        };
        skeletonName="Weapon";
        class Animations
        {
            class zaslehROT
            {
                type="rotation";
                source="clockMinute";
                sourceAddress="loop";
                selection="test";
                begin="usti hlavne";
                end="konec hlavne";
                memory=1;
                minValue=0.0166665;
                maxValue=0.016666666666666666666666666666667;
                angle0="rad 0";
                angle1="rad 360";
            };
            class magazine_hide
            {
                type="hide";
                source="reloadMagazine";
                sourceAddress="mirror";
                selection="magazine";
                minValue=0.0;
                maxValue=0.4;
                hideValue=0.5;
            };
            class reload_ammobelt_hide: magazine_hide
            {
                selection="ammo_belt";
            };
            class reload_ammobelt_bottom_hide: magazine_hide
            {
                selection="ammo_belt_bottom";
            };
            class ammobelt_hide: magazine_hide
            {
                source="isEmpty";
                selection="ammo_belt";
                minValue=0.000000;
                maxValue=1.000000;
                hideValue=1.000000;
            };
            class ammobelt_bottom_hide: ammobelt_hide
            {
                selection="ammo_belt_bottom";
            };
        };
    };
    class Rifle: Weapon
    {
        skeletonName="Rifle";
        class Animations: Animations
        {
            class magazine_hide:magazine_hide
            {
                sourceAddress="mirror";
                minValue=0.0;
                maxValue=0.56;
                hideValue=0.36;
            };
            class bolt_empty
            {
                type="translation";
                source="isEmpty";
                selection="bolt";
                axis="bolt_axis";
                memory=1;
                minValue=0.000000;
                maxValue=0.500000;
                offset0=0;
                offset1=0.5;
            };
            class bullet_cover
            {
                type="rotation";
                source="reload";
                sourceAddress="mirror";
                selection="bullet_cover";
                axis="bullet_cover_axis";
                memory=1;
                minValue=0.0;
                maxValue=0.5;
                angle0=0;
                angle1=-0.4;
            };
            class bolt_fire_begin
            {
                type="translation";
                source="reload";
                selection="bolt";
                axis="bolt_axis";
                memory=1;
                minValue=0.000000;
                maxValue=0.300000;
                offset0=0;
                offset1=0.5;
            };
            class bolt_fire_end:bolt_fire_begin
            {
                minValue=0.500000;
                maxValue=1.000000;
                offset0=0;
                offset1=-0.5;
            };
            class bolt_reload_begin
            {
                type="translation";
                source="reloadMagazine";
                selection="bolt";
                axis="bolt_axis";
                memory=1;
                minValue=0.1;
                maxValue=0.15;
                offset0=0;
                offset1=0.5;
            };
            class bolt_reload_end:bolt_reload_begin
            {
                minValue=0.980000;
                maxValue=1.000000;
                offset0=0;
                offset1=-0.5;
            };
        };
    };
    class Sniper_Rifle: Weapon
    {
        skeletonName="Rifle";
        class Animations: Animations
        {
            class bullet_cover_reload_begin
            {
                type="translation";
                source="reloadMagazine";
                selection="bullet_cover";
                axis="bolt_axis";
                memory=1;
                minValue=0.2;
                maxValue=0.5;
                offset0=0;
                offset1=2.0;
            };
            class bullet_cover_end:bullet_cover_reload_begin
            {
                minValue=0.7;
                maxValue=0.8;
                offset0=0;
                offset1=-2.0;
            };
            class bolt_reload_begin
            {
                type="translation";
                source="reloadMagazine";
                selection="bolt";
                axis="bolt_axis";
                memory=1;
                minValue=0.2;
                maxValue=0.5;
                offset0=0;
                offset1=1.0;
            };
            class bolt_reload_end:bolt_reload_begin
            {
                minValue=0.7;
                maxValue=0.8;
                offset0=0;
                offset1=-1.0;
            };
            class charging_handle_reload_rotation_begin
            {
                type="rotation";
                source="reloadMagazine";
                selection="charging_handle";
                axis="bolt_axis";
                memory=1;
                minValue=0.0;
                maxValue=0.2;
                angle0=0;
                angle1=-1.0;
            };
            class charging_handle_reload_rotation_end:charging_handle_reload_rotation_begin
            {
                minValue=0.8;
                maxValue=1.0;
                angle0=0;
                angle1=1.0;
            };
            class charging_handle_reload_begin
            {
                type="translation";
                source="reloadMagazine";
                selection="charging_handle";
                axis="bolt_axis";
                memory=1;
                minValue=0.2;
                maxValue=0.5;
                offset0=0;
                offset1=1.0;
            };
            class charging_handle_reload_end:charging_handle_reload_begin
            {
                minValue=0.7;
                maxValue=0.8;
                offset0=0;
                offset1=-1.0;
            };
        };
    };
    class Launcher: Weapon {class Animations{};};
    class Grenade: Weapon {class Animations{};};

    class Pistol: Weapon
    {
        skeletonName="Pistol";
        class Animations: Animations
        {
          class magazine_hide:magazine_hide
            {
                sourceAddress="mirror";
                minValue=0.0;
                maxValue=0.56;
                hideValue=0.36;
            };
            class slide_fire_begin
            {
                type="translation";
                source="reload";
                selection="slide";
                axis="slide_axis";
                minValue=0.000000;
                maxValue=0.500000;
                offset0=0;
                offset1=-0.200000;
            };
            class slide_fire_end:slide_fire_begin
            {
                minValue=0.600000;
                maxValue=1.000000;
                offset0=0;
                offset1=0.200000;
            };
            class hammer_fire_begin
            {
                type="rotation";
                source="reload";
                selection="hammer";
                axis="hammer_axis";
                memory=1;
                minValue=0.000000;
                maxValue=0.500000;
                angle0=0.000000;
                angle1=1.221730;
            };
            class hammer_fire_end:hammer_fire_begin
            {
                minValue=0.600000;
                maxValue=1.000000;
                angle0=0.000000;
                angle1=-1.221730;
            };
            class slide_empty
            {
                type="translation";
                source="isEmpty";
                selection="slide";
                axis="slide_axis";
                minValue=0.990000;
                maxValue=1.000000;
                offset0=0;
                offset1=-0.200000;
            };
            class hammer_empty
            {
                type="rotation";
                source="isEmpty";
                selection="hammer";
                axis="hammer_axis";
                memory=1;
                minValue=0.990000;
                maxValue=1.000000;
                angle0=0.000000;
                angle1=1.221730;
            };
        };
    };
    class MachineGun: Weapon
    {
        skeletonName="MachineGun";
        class Animations: Animations
        {
                  class ammo_belt
              {
                  type="rotation";
                  source="reload";
                  selection="ammo_belt";
                  axis="ammo_belt_axis";
                  memory=1;
                  minValue=0.3;
                  maxValue=1.0;
                  angle0=-0.12;
                      angle1=0.06;
              };
              class ammo_belt_bottom:ammo_belt
              {
                  selection="ammo_belt_bottom";
                  axis="ammo_belt_bottom_axis";
                  minValue=0.3;
                  maxValue=1.0;
                  angle0=-0.15;
                      angle1=-0.5;
              };
              class ammo_belt_shake_01
              {
                  type="translation";
                  source="reload";
                  selection="bullet002";
                  axis="ammo_belt_axis";
                  sourceAddress="mirror";
                  memory=1;
                  minValue=0.0;
                  maxValue=0.5;
                  offset0=0.0;
                      offset1=0.05;
              };

              class ammo_belt_shake_02:ammo_belt_shake_01{selection="bullet003";offset1=0.05;};
                class ammo_belt_shake_03:ammo_belt_shake_01{selection="bullet004";offset1=0.025;};
                class ammo_belt_shake_05:ammo_belt_shake_01{selection="bullet006";offset1=-0.025;};
                class ammo_belt_shake_06:ammo_belt_shake_01{selection="bullet007";offset1=-0.05;};
                class ammo_belt_shake_08:ammo_belt_shake_01{selection="bullet009";offset1=-0.025;};
                class ammo_belt_rotation_shake_01
              {
                  type="rotation";
                  source="reload";
                  selection="bullet001";
                  axis="bullet002_axis";
                  sourceAddress="mirror";
                  memory=1;
                  minValue=0.0;
                  maxValue=0.5;
                  angle0="rad 0";
                     angle1="rad -30";
              };
              class ammo_belt_rotation_shake_02:ammo_belt_rotation_shake_01
              {
                  selection="bullet002";
                  axis="bullet003_axis";
                  angle0="rad 0";
                      angle1="rad 5";
              };
              class ammo_belt_rotation_shake_03:ammo_belt_rotation_shake_01
              {
                  selection="bullet003";
                  axis="bullet004_axis";
                  angle0="rad 0";
                      angle1="rad 25";
              };
              class magazine_shake
              {
                  type="rotationZ";
                  source="reload";
                  selection="magazine";
                  axis="ammo_belt_axis";
                  sourceAddress="mirror";
                  memory=1;
                  minValue=0.0;
                  maxValue=0.5;
                  angle0="rad -0.5";
                      angle1="rad 0.5";
              };
              class magazine_shake02:magazine_shake
              {
                  type="rotationX";
                  minValue=0.0;
                  maxValue=0.25;
                  angle0="rad 0.25";
                      angle1="rad -0.25";
              };
              class magazine_shake03:magazine_shake
              {
                  type="rotationY";
                  minValue=0.0;
                  maxValue=0.5;
                  angle0="rad 0.33";
                      angle1="rad -0.33";
              };
              class ammo_belt_rotation_shake_static_01
              {
                  type="rotation";
                  source="time";
                  selection="bullet004";
                  axis="bullet005_axis";
                  sourceAddress="mirror";
                  memory=1;
                  minValue=0.0;
                  maxValue=3.0;
                  angle0="rad 0";
                      angle1="rad 10";
              };
              class ammo_belt_rotation_shake_static_02:ammo_belt_rotation_shake_static_01
              {
                  selection="bullet003";
                  axis="bullet004_axis";
                  minValue=0.1;
                  maxValue=3.5;
                  angle0="rad 0";
                angle1="rad 5";
            };
            class ammo_belt_rotation_shake_static_03:ammo_belt_rotation_shake_static_01
            {
                selection="bullet002";
                axis="bullet003_axis";
                minValue=0.2;
                maxValue=4.0;
                angle0="rad 0";
                angle1="rad 10";
            };
            BULLET_HIDE(001,10,100)
            BULLET_HIDE(002,10,100)
            BULLET_HIDE(003,10,100)
            BULLET_HIDE(004,10,100)
            BULLET_HIDE(005,10,100)
            BULLET_HIDE(006,10,100)
            BULLET_HIDE(007,10,100)
            BULLET_HIDE(008,10,100)
            BULLET_HIDE(009,10,100)
            BULLET_HIDE(010,10,100)

            class feedtray_cover_up
            {
                type="rotation";
                source="reloadMagazine";
                selection="feedtray_cover";
                axis="feedtray_cover_axis";
                memory=1;
                minValue=0.000000;
                maxValue=0.100000;
                angle0=0.000000;
                angle1=-1.570796;
            };
            class feedtray_cover_down:feedtray_cover_up
            {
                minValue=0.950000;
                maxValue=1.000000;
                angle0=0.000000;
                angle1=1.570796;
            };
            class bolt_begin
            {
                type="translation";
                source="reloadMagazine";
                selection="bolt";
                axis="bolt_axis";
                memory=1;
                minValue=0.150000;
                maxValue=0.200000;
                offset0=0;
                offset1=0.5;
            };
            class bolt_end:bolt_begin
            {
                minValue=0.800000;
                maxValue=0.900000;
                offset0=0;
                offset1=-0.5;
            };
        };
    };
    class StaticWeapon: Default
    {
        sections[]=
        {
            "zasleh","zbytek"
        };
        skeletonName="StaticWeapon";
        class Animations
        {
            class MainTurret
            {
                type="rotationY";
                source="mainTurret";
                selection="OtocVez";
                axis="osaveze";
                animPeriod=0;
                minValue="rad -360";
                maxValue="rad +360";
                angle0="rad -360";
                angle1="rad +360";
            };

            class MainGun
            {
                type="rotationX";
                source="mainGun";
                selection="OtocHlaven";
                axis="osahlavne";
                animPeriod=0;
                minValue="rad -360";
                maxValue="rad +360";
                angle0="rad -360";
                angle1="rad +360";
            };


            // destruct BASE START
            class MainTurret_destructX
            {
                type="rotationX";
                source="damage";
                selection="OtocVez";
                axis="osaveze";
                animPeriod=0;
                minValue=0.99;
                maxValue=1;
                angle0=0;
                angle1="rad -3";
            };
            class MainTurret_destructY:MainTurret_destructX
            {
                type="rotationY";
                angle1="rad +5";
            };
            class MainTurret_destructZ:MainTurret_destructX
            {
                type="rotationZ";
                angle1="rad -5";
            };
            class MainGun_destructX:MainTurret_destructX
            {
                selection="OtocHlaven";
                axis="osahlavne";
                angle1="rad -12";
            };
            class MainGun_destructY:MainGun_destructX
            {
                type="rotationY";
                angle1="rad +2";
            };
            class MainGun_destructZ:MainGun_destructX
            {
                type="rotationZ";
                angle1="rad +5";
            };
            class magazine_destruct:MainTurret_destructX
            {
                type="hide";
                selection="magazine";
                hideValue=0.5;
            };
            class ammo_belt_destruct:magazine_destruct
            {
                selection="ammo_belt";
            };
            class bolt_destruct:magazine_destruct
            {
                selection="bolt";
            };
            class charging_handle_destruct:magazine_destruct
            {
                selection="charging_handle";
            };
            class damagehideVez_destruct:magazine_destruct
            {
                type="hide";
                selection="damagehideVez";
                hideValue=0.9;
            };
            class damagehideHlaven_destruct:damagehideVez_destruct
            {
                selection="damagehideHlaven";
            };
            class damagehideRecoil_destruct:damagehideVez_destruct
            {
                selection="damagehideRecoil";
            };
            // destruct BASE END

            // unknown animation source reloadMagazine
            /*
            class feedtray_cover_up
            {
                type="rotation";
                source="reloadMagazine";
                selection="feedtray_cover";
                axis="feedtray_cover_axis";
                memory=1;
                minValue=0.000000;
                maxValue=0.100000;
                angle0=0.000000;
                angle1=-1.570796;
            };
            class feedtray_cover_down:feedtray_cover_up
            {
                minValue=0.950000;
                maxValue=1.000000;
                angle0=0.000000;
                angle1=1.570796;
            };
            class bolt_begin
            {
                type="translation";
                source="reloadMagazine";
                selection="bolt";
                axis="bolt_axis";
                memory=1;
                minValue=0.150000;
                maxValue=0.200000;
                offset0=0;
                offset1=0.5;
            };
            class bolt_end:bolt_begin
            {
                minValue=0.800000;
                maxValue=0.900000;
                offset0=0;
                offset1=-0.5;
            };*/
        };
    };
    class Cannon: StaticWeapon
    {
        class Animations: Animations
        {
            class recoil_BEGIN
            {
                type="translation";
                source="recoil_source";
                selection="recoil";
                axis="recoil_axis";
                memory=1;
                minValue=0.92;
                maxValue=0.99;
                offset0=0;
                offset1=-2.0;
            };
            class recoil_END:recoil_BEGIN
            {
                minValue=0.99;
                maxValue=1.0;
                offset0=0;
                offset1=2.0;
            };

            // recoils shake START
            class recoil_Shake_HlavenX
            {
                type="rotationX";
                source="recoil_source";
                //sourceAddress="mirror";
                selection="OtocHlaven";
                axis="recoil_axis";
                memory=1;
                minValue=0.900000;
                maxValue=0.950000;
                angle0=0;
                angle1="rad +2.0";
            };
            class recoil_Shake_HlavenX_END:recoil_Shake_HlavenX
            {
                minValue=0.950000;
                maxValue=1.0;
                angle0="rad +2.0";
                angle1=0;
            };
            class recoil_Shake_HlavenY:recoil_Shake_HlavenX
            {
                type="rotationY";
                minValue=0.930000;
                maxValue=0.980000;
                angle1="rad +1.0";
            };
            class recoil_Shake_HlavenY_END:recoil_Shake_HlavenY
            {
                minValue=0.980000;
                maxValue=1.0;
                angle0="rad +1.0";
                angle1=0;
            };
            class recoil_Shake_HlavenZ:recoil_Shake_HlavenX
            {
                type="rotationZ";
                minValue=0.950000;
                maxValue=0.990000;
                angle1="rad -1.5";
            };
            class recoil_Shake_HlavenZ_END:recoil_Shake_HlavenZ
            {
                minValue=0.980000;
                maxValue=1.00000;
                angle0="rad -1.5";
                angle1=0;
            };
            class recoil_Shake_VezX:recoil_Shake_HlavenX
            {
                selection="OtocVez";
                angle1="rad -0.5";
            };
            class recoil_Shake_VezX_END:recoil_Shake_HlavenX_END
            {
                selection="OtocVez";
                angle0="rad -0.5";
                angle1=0;
            };
            class recoil_Shake_VezY:recoil_Shake_HlavenY
            {
                selection="OtocVez";
                angle1="rad -0.25";
            };
            class recoil_Shake_VezY_END:recoil_Shake_HlavenY_END
            {
                selection="OtocVez";
                angle0="rad -0.25";
                angle1=0;
            };
            class recoil_Shake_VezZ:recoil_Shake_HlavenZ
            {
                selection="OtocVez";
                angle1="rad +0.25";
            };
            class recoil_Shake_VezZ_END:recoil_Shake_HlavenZ_END
            {
                selection="OtocVez";
                angle0="rad +0.25";
                angle1=0;
            };
            // recoils shake END
        };
    };
    class satchel: Default {};
    class shell: Default {};
    class granat: Default    {};
    class handgrenade: Default    {};
    class M19_at_proxy: Default    {};
    class TM_62M: Default    {};

    class opt_snip_noflash: Optic {};
    class optika_acog: Optic {};
    class 2Dscope_Acog_4x32: Optic {};
    class optika_aimpoint: Optic {};
    class optika_night: Optic {};
    class optika_rpg: Optic {};
    class optika_sniperw: Optic {};
    class optika_snpiere: Optic {};
    class optika_stinger: Optic {};
    class optika_strela: Optic {};

    class M2_static: StaticWeapon
    {
        class Animations: Animations
        {
            class ammo_belt_rotation
            {
                type="rotationZ";
                source="reload";
                selection="ammo_belt";
                axis="ammo_belt_axis";
                memory=1;
                sourceAddress="loop";
                minValue=0.000000;
                maxValue=1.000000;
                angle0=0.087266;
                angle1=-0.174533;
            };
        };
    };
    class TOW_static: StaticWeapon
    {
    }
    class StaticMGWeapon:StaticWeapon
    {
        skeletonName="StaticMGWeapon";
        class Animations: Animations
        {
            class Ammo_belt_rotation
            {
                type="rotation";
                selection="ammo_belt";
                source="ReloadAnim";
                axis="ammo_belt_axis";
                memory=1;
                sourceAddress="loop";
                minValue=0;
                maxValue=1;
                angle0=0.000000;
                angle1=7.5*3.14159265358/180;
            };
            class Barrel_recoil:ammo_belt_rotation
            {
                type="translation";
                selection="recoil";
                axis="recoil_axis";
                sourceAddress="mirror";
                minValue=0.0;
                maxValue=0.5;
                offset0=0;
                offset1=-0.05;
            };
            class Bolt_recoil:Barrel_recoil
            {
                selection="bolt";
                offset0=0;
                maxValue=0.5;
                offset1=-0.25;
            };
            class Turret_shake:Barrel_recoil
            {
                selection="OtocHlaven_Shake";
                axis="osaveze";
                offset0=0;
                offset1=-0.002;
                maxValue=0.05;
            };
            class Turret_shake_aside:Turret_shake
            {
                axis="osahlavne";
                maxValue=0.05*1.3;
            };
            class Charging_handle_shake:Barrel_recoil
            {
                type="rotation";
                selection="Charging_handle";
                axis="Charging_handle_axis";
                sourceAddress="mirror";
                maxValue=0.005;
                angle0=0.000000;
                angle1=-0.1;
            };
            class Feedtray_cover_up
            {
                type="rotation";
                source="reloadMagazine";
                selection="feedtray_cover";
                axis="feedtray_cover_axis";
                memory=1;
                minValue=0.1000000;
                maxValue=0.130000;
                angle0=0.000000;
                angle1=-1.570796;
            };
            class Feedtray_cover_down:feedtray_cover_up
            {
                minValue=0.860000;
                maxValue=0.900000;
                angle0=0.000000;
                angle1=1.570796;
            };
            class Bolt_reload_begin:Bolt_recoil
            {
                type="translation";
                sourceAddress="clamp";
                source="reloadMagazine";
                minValue=0.00000;
                maxValue=0.0200000;
            };
            class Bolt_reload_end:bolt_reload_begin
            {
                minValue=0.050000;
                maxValue=0.070000;
                offset0=0;
                offset1=+0.25;
            };
            class Charging_handle_reload_begin:Bolt_reload_begin{selection="Charging_handle";};
            class Charging_handle_reload_end:Bolt_reload_end{selection="Charging_handle";};

            class Magazine_hide
            {
                type="hide";
                source="reloadMagazine";
                sourceAddress="mirror";
                selection="magazine";
                minValue=0.0;
                maxValue=0.5;
                hideValue=0.56;
            };
        };
    };
    class m2_mg: StaticMGWeapon
    {
        class Animations: Animations
        {
            class MainGun_destructX:MainGun_destructX
            {
                angle1="rad -25";
            };
            class Ammo_belt_rotation:Ammo_belt_rotation{};
            class Barrel_recoil:Barrel_recoil{};
            class Bolt_recoil:Bolt_recoil{};
            class Turret_shake:Turret_shake{};
            class Turret_shake_aside:Turret_shake_aside{};
            class Charging_handle_shake:Charging_handle_shake{};
            class Feedtray_cover_up:Feedtray_cover_up{};
            class Feedtray_cover_down:Feedtray_cover_down{};
            class Bolt_reload_begin:Bolt_reload_begin{};
            class Bolt_reload_end:Bolt_reload_end{};
            BULLET_HIDE(001,12,100)
            BULLET_HIDE(002,12,100)
            BULLET_HIDE(003,12,100)
            BULLET_HIDE(004,12,100)
            BULLET_HIDE(005,12,100)
            BULLET_HIDE(006,12,100)
            BULLET_HIDE(007,12,100)
            BULLET_HIDE(008,12,100)
            BULLET_HIDE(009,12,100)
            BULLET_HIDE(010,12,100)
            BULLET_HIDE(011,12,100)
            BULLET_HIDE(012,12,100)
        };
    };
    class dshkm_mg: StaticMGWeapon
    {
        class Animations: Animations
        {
            class MainGun_destructX:MainGun_destructX
            {
                angle1="rad +25";
            };
            class Ammo_belt_rotation:Ammo_belt_rotation{};
            class Turret_shake:Turret_shake
            {
                maxValue=0.05*3;
            };
            class Turret_shake_aside:Turret_shake_aside
            {
                maxValue=0.05*1.3*3;
            };
            class Feedtray_cover_up:Feedtray_cover_up{};
            class Feedtray_cover_down:Feedtray_cover_down{};
            BULLET_HIDE(001,4,50)
            BULLET_HIDE(002,4,50)
            BULLET_HIDE(003,4,50)
            BULLET_HIDE(004,4,50)
        };
    };
    class ags_static: StaticWeapon {};
    class searchlight_manual: StaticWeapon {sections[]={"light"};class Animations: Animations{};};
    // CANNONS START
    class D30: Cannon {};
    class M119: Cannon
    {
        class Animations: Animations
        {
            // recoil FIRE ANIM START
            class recoil_BEGIN:recoil_BEGIN
            {
                offset1=-0.3;
            };
            class recoil_END:recoil_END
            {
                offset1=0.3;
            };
        // recoil FIRE ANIM END
        };
    };
    // CANNONS END
    // STATIC WEAPONS END

    // WEAPONS START
    // MACHINEGUNS START
    class PK_MG_proxy: MachineGun
    {
        class Animations: Animations
        {
            // AMMOBELT ANIM START
            class ammo_belt:ammo_belt
            {
                type="translation";
                offset0=0.184;
                offset1=0.0;
            };
            class ammo_belt_bullet007hide_hide:ammo_belt
            {
                type="hide";
                selection="bullet007hide";
                sourceAddress="mirror";
                minValue=-1.0;
                maxValue=0.0;
                hideValue=0.25;
            };
            // AMMOBELT ANIM END

            // fake Bullet START
            class fake_bullet
            {
                type="translation";
                source="reload";
                selection="fake_bullet";
                end="nabojnicestart";
                begin="nabojniceend";
                memory=1;
                minValue=0.0;
                maxValue=0.1;
                offset0=0.0;
                offset1=1.0;
            };
            class fake_bullet_hide
            {
                type="hide";
                source="reload";
                selection="fake_bullet";
                sourceAddress="clamp";
                minValue=0.0;
                maxValue=1.0;
                hideValue=0.1;
            };
            // fake Bullet END

            // SHAKE FIRE ANIM START
            // AMMOBELT SHAKE START
            class ammo_belt_shake_01:ammo_belt_shake_01{axis="bullet001_axis";offset1=0.05;};
            class ammo_belt_shake_02:ammo_belt_shake_02{axis="bullet001_axis";offset1=0.025;};
            class ammo_belt_shake_03:ammo_belt_shake_03{axis="bullet001_axis";offset1=0.05;};
            class ammo_belt_shake_05:ammo_belt_shake_05{axis="bullet001_axis";offset1=0.033;};
            class ammo_belt_shake_06:ammo_belt_shake_06{axis="bullet001_axis";offset1=-0.015;};
            class ammo_belt_shake_08:ammo_belt_shake_08{axis="bullet001_axis";offset1=-0.01;};
            class ammo_belt_rotation_shake_01:ammo_belt_rotation_shake_01{angle1="rad -10";};
            class ammo_belt_rotation_shake_02:ammo_belt_rotation_shake_02{angle1="rad 2";};
            class ammo_belt_rotation_shake_03:ammo_belt_rotation_shake_03{angle1="rad 8";};
            // AMMOBELT SHAKE END
            // SHAKE FIRE ANIM END
            // SHAKE STATIC ammo_belt_shake STATIC ANIM START
            class ammo_belt_rotation_shake_static_01:ammo_belt_rotation_shake_static_01{angle1="rad 1";};
            class ammo_belt_rotation_shake_static_02:ammo_belt_rotation_shake_static_02{angle1="rad 0.5";};
            class ammo_belt_rotation_shake_static_03:ammo_belt_rotation_shake_static_03{angle1="rad 0.5";};
            // SHAKE STATIC ammo_belt_shake STATIC ANIM END

            // magazine_belt START
            class magazine_belt
            {
                type="translation";
                source="reload";
                selection="magazine_belt";
                sourceAddress="mirror";
                axis="magazine_belt_axis";
                memory=1;
                minValue=0.0;
                maxValue=0.5;
                offset0=0.0;
                offset1=0.026;
            };
            // magazine_belt END

            // bullet_cover FIRE ANIM START
            class bullet_cover_UP
            {
                type="rotation";
                source="reload";
                selection="bullet_cover";
                axis="bullet_cover_axis";
                memory=1;
                minValue=0.0;
                maxValue=0.05;
                angle0=0.75;
                angle1=-0.5;

            };
            class bullet_cover_UP_02
            {
                type="rotation";
                source="reload";
                selection="bullet_cover";
                axis="bullet_cover_axis";
                memory=1;
                minValue=0.05;
                maxValue=0.1;
                angle0=0.0;
                angle1=-0.02;
            };
            class bullet_cover_DOWN
            {
                type="rotation";
                source="reload";
                selection="bullet_cover";
                axis="bullet_cover_axis";
                memory=1;
                minValue=0.1;
                maxValue=0.5;
                angle0=0.0;
                angle1=1.27;
            };
            // bullet_cover FIRE ANIM END

            // misc_cover FIRE ANIM START
            class misc_cover_UP
            {
                type="rotation";
                source="reload";
                selection="misc_cover";
                axis="misc_cover_axis";
                memory=1;
                minValue=0.0;
                maxValue=0.25;
                angle0=0.4;
                angle1=0.0;
            };
            class misc_cover_DOWN:misc_cover_UP
            {
                minValue=0.25;
                maxValue=1.0;
                angle0=0.0;
                angle1=0.4;
            };
            // misc_cover FIRE ANIM END

            // ammo_belt_cover EMPTY ANIM START
            /*
            class ammo_belt_cover_EMPTY
            {
                type="rotation";
                source="revolving";
                selection="ammo_belt_cover";
                //sourceAddress="mirror";
                axis="ammo_belt_cover_axis";
                memory=1;
                minValue=0.995;
                maxValue=1.0;
                angle0=0.0;
                angle1=0.5;
            };

            class ammo_belt_cover02_EMPTY
            {
                type="rotation";
                source="revolving";
                selection="ammo_belt_cover02";
                //sourceAddress="mirror";
                axis="ammo_belt_cover02_axis";
                memory=1;
                minValue=0.9;
                maxValue=1.0;
                angle0=0.05;
                angle1=-0.7;
            };
            */
            // ammo_belt_cover EMPTY ANIM END

            // ammo_belt_cover FIRE ANIM START
            class ammo_belt_cover_UP
            {
                type="rotation";
                source="reload";
                selection="ammo_belt_cover";
                axis="ammo_belt_cover_axis";
                memory=1;
                minValue=0.5;
                maxValue=0.7;
                angle0=0.05;
                angle1=-0.05;
            };
            class ammo_belt_cover_DOWN
            {
                type="rotation";
                source="reload";
                selection="ammo_belt_cover";
                axis="ammo_belt_cover_axis";
                memory=1;
                minValue=0.7;
                maxValue=0.9;
                angle0=0.0;
                angle1=0.1;
            };

            class ammo_belt_cover02_DOWN
            {
                type="rotation";
                source="reload";
                selection="ammo_belt_cover02";
                axis="ammo_belt_cover02_axis";
                memory=1;
                minValue=0.3;
                maxValue=0.5;
                angle0=-0.05;
                angle1=0.0;
            };
            class ammo_belt_cover02_UP
            {
                type="rotation";
                source="reload";
                selection="ammo_belt_cover02";
                axis="ammo_belt_cover02_axis";
                memory=1;
                minValue=0.73;
                maxValue=0.9;
                angle0=0.0;
                angle1=-0.05;
            };
            // ammo_belt_cover FIRE ANIM END

            // BULLET EMPTY ANIM START
            class bullet001:bullet001{hideValue=0.91;};
            class bullet002:bullet002{hideValue=0.92;};
            class bullet003:bullet003{hideValue=0.93;};
            class bullet004:bullet004{hideValue=0.94;};
            class bullet005:bullet005{hideValue=0.95;};
            class bullet006:bullet006{hideValue=0.96;};
            class bullet007:bullet007{hideValue=0.97;};
            class bullet008:bullet008{hideValue=0.98;};
            class bullet009:bullet009{hideValue=0.99;};
            class bullet010:bullet010{hideValue=1.0;};
            // BULLET EMPTY ANIM END
        };
    };
    class Pecheneg_MG_proxy: PK_MG_proxy
    {
    class Animations: Animations
        {
            class optics_left
            {
                type="rotation";
                source="reloadMagazine";
                selection="optics";
                axis="optics_axis";
                memory=1;
                minValue=0.000000;
                maxValue=0.100000;
                angle0=0.000000;
                angle1=-1.570796;
            };
            class optics_right:optics_left
            {
                minValue=0.90000;
                maxValue=1.000000;
                angle0=0.000000;
                angle1=1.570796;
            };
            class feedtray_cover_up: optics_left
            {
                selection="feedtray_cover";
                axis="feedtray_cover_axis";
                minValue=0.100000;
                maxValue=0.500000;
            };
            class feedtray_cover_down:feedtray_cover_up
            {
                minValue=0.850000;
                maxValue=0.900000;
            };
        };
    };

    class M240: MachineGun
    {
        class Animations: Animations
        {
            // AMMOBELT ANIM START
            class ammo_belt:ammo_belt
            {
                angle0=-0.436332;
                angle1=-0.15;
            };
            // AMMOBELT ANIM END


            BULLET_HIDE(001,8,200)
            BULLET_HIDE(002,8,200)
            BULLET_HIDE(003,8,200)
            BULLET_HIDE(004,8,200)
            BULLET_HIDE(005,8,200)
            BULLET_HIDE(006,8,200)
            BULLET_HIDE(007,8,200)
            BULLET_HIDE(008,8,200)


            // SHAKE FIRE ANIM START
            // AMMOBELT SHAKE START
            class ammo_belt_shake_01:ammo_belt_shake_01{axis="bullet001_axis";offset1=0.05;};
            class ammo_belt_shake_02:ammo_belt_shake_02{axis="bullet001_axis";offset1=0.025;};
            class ammo_belt_shake_03:ammo_belt_shake_03{axis="bullet001_axis";offset1=0.05;};
            class ammo_belt_shake_05:ammo_belt_shake_05{axis="bullet001_axis";offset1=0.033;};
            class ammo_belt_shake_06:ammo_belt_shake_06{axis="bullet001_axis";offset1=-0.015;};
            class ammo_belt_shake_08:ammo_belt_shake_08{axis="bullet001_axis";offset1=-0.01;};
            class ammo_belt_rotation_shake_01:ammo_belt_rotation_shake_01{angle1="rad -10";};
            class ammo_belt_rotation_shake_02:ammo_belt_rotation_shake_02{angle1="rad 2";};
            class ammo_belt_rotation_shake_03:ammo_belt_rotation_shake_03{angle1="rad 8";};
            // AMMOBELT SHAKE END
            // SHAKE FIRE ANIM END
            // SHAKE STATIC ammo_belt_shake STATIC ANIM START
            class ammo_belt_rotation_shake_static_01:ammo_belt_rotation_shake_static_01{angle1="rad 1";};
            class ammo_belt_rotation_shake_static_02:ammo_belt_rotation_shake_static_02{angle1="rad 0.5";};
            class ammo_belt_rotation_shake_static_03:ammo_belt_rotation_shake_static_03{angle1="rad 0.5";};
            // SHAKE STATIC ammo_belt_shake STATIC ANIM END
        };
    };
    class M249: MachineGun
    {
        class Animations: Animations
        {
            BULLET_HIDE(001,10,200)
            BULLET_HIDE(002,10,200)
            BULLET_HIDE(003,10,200)
            BULLET_HIDE(004,10,200)
            BULLET_HIDE(005,10,200)
            BULLET_HIDE(006,10,200)
            BULLET_HIDE(007,10,200)
            BULLET_HIDE(008,10,200)
            BULLET_HIDE(009,10,200)
            BULLET_HIDE(010,10,200)
        };
    };
    class Mk_48_Mod_0: MachineGun {};
    // MACHINEGUNS END

    // PISTOLS START
    class M9_Beretta: Pistol {};
    class M9_Beretta_SD: Pistol {};
    class Makarov: Pistol {};
    class Makarov_Silenced: Pistol {};
    // PISTOLS END

    // GRENADES START
    class smokegrenade: Grenade {};
    // GRENADES END

    // RIFLES START
    class M4A1_Aim: Rifle
    {
        class Animations: Animations
        {
        // FIRE ANIM START
        // Aimpoint_cover START
            class Aimpoint_cover
            {
                type="rotation";
                source="reload";
                selection="aimpoint_cover";
                axis="aimpoint_cover_axis";
                sourceAddress="mirror";
                memory=1;
                minValue=0.0;
                maxValue=0.5;
                angle0=0.0;
                angle1=-0.08;
            };
            class Aimpoint_coverX:Aimpoint_cover
            {
                type="rotationX";
                minValue=0.0;
                maxValue=0.25;
                angle0=0.0;
                angle1=-0.02;
            };
            // Aimpoint_cover END
            // Aimpoint_cover02 START
            class Aimpoint_cover02:Aimpoint_cover
            {
                selection="aimpoint_cover02";
                axis="aimpoint_cover02_axis";
            };
            class Aimpoint_cover02X:Aimpoint_coverX
            {
                selection="aimpoint_cover02";
                axis="aimpoint_cover02_axis";
            };
            // Aimpoint_cover02 END
            // BOLT FIRE ANIM START
            class bolt_fire_begin:bolt_fire_begin
            {
                offset0=0;
                offset1=1.2;
            };
            class bolt_fire_end:bolt_fire_end
            {
                offset0=0;
                offset1=-1.2;
            };
            // BOLT FIRE ANIM END
            // FIRE ANIM END
            // RELOAD ANIM START
            class charging_handle_begin
            {
                type="translation";
                source="reloadMagazine";
                selection="charging_handle";
                axis="charging_handle_axis";
                memory=1;
                minValue=0.7;
                maxValue=0.95;
                offset0=0.0;
                offset1=-0.3;
            };
            class charging_handle_end:charging_handle_begin
            {
                minValue=0.95;
                maxValue=1.0;
                offset0=0.0;
                offset1=0.3;
            };
            // RELOAD ANIM END
        };
    };
    class M4A1_Holo_GL_SD_camo: M4A1_Aim {};
    class M4A1_Holo_GL_SD : M4A1_Aim {};
    class M4A1_Holo_GL: M4A1_Aim {};
    class M4A1_Holo_GL_camo: M4A1_Aim {};
    class M4A1_RCO_GL: M4A1_Aim {};
    class M4A1: M4A1_Aim {};
    class M4A1_AIM_SD_camo: M4A1_Aim {};
    class M4A1_AIM_camo: M4A1_Aim {};
    class M4_SPR: M4A1_Aim {};

      class HKM5_a5: Rifle
    {
        class Animations: Animations
        {
            // RELOAD ANIM START
            class charging_handle_begin
            {
                type="translation";
                source="reloadMagazine";
                selection="charging_handle";
                axis="charging_handle_axis";
                memory=1;
                minValue=0.85;
                maxValue=0.95;
                offset0=0.0;
                offset1=0.65;
            };
            class charging_handle_end:charging_handle_begin
            {
                minValue=0.95;
                maxValue=1.0;
                offset0=0.0;
                offset1=-0.65;
            };
            // RELOAD ANIM END
        };
    };
    class MP5SD: HKM5_a5 {};
    class m16_granatomet_proxy: M4A1_Aim {};
    class m16_proxy: M4A1_Aim {};
    // RIFLES END

    // SNIPER RIFLES START
    class M24_green: Sniper_Rifle {};
    class M40A3 : Sniper_Rifle {};
    class SVD_dragunov_proxy: Sniper_Rifle {};
    class svd_camo:SVD_dragunov_proxy{};
    // SNIPER RIFLES END

    // LAUNCHERS START
    class JavelinLauncher: Launcher {};
    class M136Launcher: Launcher {};
    class RPG7_Launcher: Launcher {};
    class stinger_launcher: Launcher {};
    class strela_launcher: Launcher {};
    class TOW_vehiclemount: Launcher {};
    // LAUNCHERS END

    // mozna budou k nicemu a pujdou smazat START
    class 9K32_Strela_Proxy: Weapon    {class Animations{};};
    class ags30: Weapon    {};
    class M2_vehiclemount: Weapon {};
    class MK19_vehiclemount: Weapon {};
    class soflam: Weapon {class Animations{};};
    // mozna budou k nicemu a pujdou smazat END
    // WEAPONS END
};

 

  • Like 1

Share this post


Link to post
Share on other sites

I fixed the stuff with the top mount and head in weapon by my self. The ViewPilot has not the correct model.

Share this post


Link to post
Share on other sites
55 minutes ago, fortune144 said:

I fixed the stuff

 

Hello there fortune144 !

 

In my opinion since you are porting arma 2 content , you should take a config from an arma 3 ( SMG_05_F ) and the work with the changes needed.

if you do this you want have problems or the animations  issues.

 

I was doing the same once , I don't remember if this cfg was working, (it probably should be ok ) but have a look:

Spoiler

class CfgPatches
{
    class A3_Weapons_F_Exp_FLOROS_SMGs_SMG_05
    {
        addonRootClass="A3_Weapons_F_Exp";
        requiredAddons[]=
        {
            "A3_Weapons_F_Exp"
        };
        requiredVersion=0.1;
        units[]={};
        weapons[]=
        {
            "FLOROS_SMG_05_F"
        };
    };
};
class Mode_SemiAuto;
class Mode_FullAuto;
class MuzzleSlot;
class CowsSlot;
class PointerSlot;
class CfgWeapons
{
    class Rifle_Base_F;
    class Rifle_Short_Base_F: Rifle_Base_F
    {
        class WeaponSlotsInfo;
        class GunParticles;
    };
    class SMG_05_base_F: Rifle_Short_Base_F
    {
        author="$STR_A3_Bohemia_Interactive";
        _generalMacro="SMG_05_base_F";
        scope=0;
        displayName="$STR_A3_CfgWeapons_SMG_05_base_F0";
        descriptionShort="$STR_A3_CfgWeapons_SMG_05_base_F1";
        model="\FLOROS_SMG_05\SMG_05_F.p3d";
        picture="\FLOROS_SMG_05\Data\UI\icon_SMG_05_F_X_CA.paa";
        hiddenSelections[]=
        {
            "camo_1",
            "camo_2"
        };
        hiddenSelectionsTextures[]=
        {
            "\FLOROS_SMG_05\data\smg_05_f_co.paa",
            "\FLOROS_SMG_05\data\smg_05_f_acc_co.paa"
        };
        handAnim[]=
        {
            "OFP2_ManSkeleton",
            "\FLOROS_SMG_05\Data\Anim\SMG_05.rtm"
        };
        reloadAction="GestureReloadSMG_05";
        magazines[]=
        {
            "30Rnd_9x21_Mag_SMG_02",
            "30Rnd_9x21_Mag_SMG_02_Tracer_Red",
            "30Rnd_9x21_Mag_SMG_02_Tracer_Yellow",
            "30Rnd_9x21_Mag_SMG_02_Tracer_Green"
        };
        htMin=3;
        htMax=380;
        inertia=0.2;
        aimTransitionSpeed=1.4;
        dexterity=1.8;
        initSpeed=375;
        recoil="recoil_smg_05";
        maxZeroing=200;
        cursor="smg";
        class Library
        {
            libTextDesc="$STR_A3_CfgWeapons_SMG_05_base_F_Library0";
        };
        class WeaponSlotsInfo: WeaponSlotsInfo
        {
            class MuzzleSlot: MuzzleSlot
            {
                linkProxy="\A3\data_f\proxies\weapon_slots\MUZZLE";
                compatibleItems[]=
                {
                    "muzzle_snds_l"
                };
                iconPosition[]={0.050000001,0.34999999};
                iconScale=0.2;
            };
            class CowsSlot: CowsSlot
            {
                iconPosition[]={0.44999999,0.28};
                iconScale=0.2;
            };
            class PointerSlot: PointerSlot
            {
                iconPosition[]={0.25,0.34999999};
                iconScale=0.25;
            };
            class UnderBarrelSlot
            {
            };
            mass=40;
        };
        distanceZoomMin=300;
        distanceZoomMax=300;
        modes[]=
        {
            "Single",
            "FullAuto"
        };
        class Single: Mode_SemiAuto
        {
            reloadTime=0.067000002;
            dispersion=0.00174;
            minRange=2;
            minRangeProbab=0.30000001;
            midRange=80;
            midRangeProbab=0.69999999;
            maxRange=120;
            maxRangeProbab=0.050000001;
        };
        class FullAuto: Mode_FullAuto
        {
            reloadTime=0.067000002;
            dispersion=0.00174;
            minRange=0;
            minRangeProbab=0.89999998;
            midRange=12;
            midRangeProbab=0.69999999;
            maxRange=25;
            maxRangeProbab=0.1;
            aiRateOfFire=1e-006;
            aiRateOfFireDistance=25;
        };
    };
    class FLOROS_SMG_05_F: SMG_05_base_F
    {
        author="FLOROS";
        _generalMacro="FLOROS_SMG_05_F";
        baseWeapon="FLOROS_SMG_05_F";
        scope=2;
    };
};

 

Share this post


Link to post
Share on other sites
Quote

take a config from an arma 3 ( SMG_05_F )

It's a good base and works perfect. thank you

  • Like 1

Share this post


Link to post
Share on other sites

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now

×