Skip to content

Weapon Animations Framework

commy2 edited this page Dec 10, 2017 · 5 revisions
//requiredAddons A3_Anims_F_Config_Sdr

class CfgMovesBasic {
    class ManActions {
        CBA_GestureFireLRR = "CBA_GestureFireLRR";
    };
    class Actions {
        class NoActions: ManActions {
            CBA_GestureFireLRR[] = {"CBA_GestureFireLRR", "Gesture"};
        };
    };
};

class CfgGesturesMale {
    class States {
        class GestureReloadBase;
        class CBA_GestureFireLRR: GestureReloadBase {
            file = "a3\anims_f\data\anim\sdr\gst\gesturefirelrr.rtm";
            speed = -2.33;
            rightHandIKCurve[] = {0, 1, 0.08, 0, 0.92, 0, 1, 1};
        };
    };
};

class CfgWeapons {
    class Rifle_Long_Base_F;
    class LRR_base_F: Rifle_Long_Base_F {
        class EventHandlers {
            fired = "_this call CBA_fnc_weaponEvents";
        };
        class CBA_weaponEvents {
            handAction = "CBA_GestureFireLRR";
            sound = "";
            soundLocation = "RightHandMiddle1";
            onEmpty = 0;
        };
    };
};