Arma 3 Scripting

Arma 3: CfgRecoils

  • Also known as cfgRecoils, recoil

Topic · Markdown · JSON · original wiki page

Note

For earlier recoil versions, see ArmA: Armed Assault: CfgRecoils.

Samples

Recoil

Camera shakes are derived from the overall magnitude of each recoil impulse forces.

class CfgRecoils
{
    class my_awesome_recoil
    {
        muzzleOuter[]    = { 0.3, 1.0, 0.3, 0.2 }; // x, y, a, b
        kickBack[]    = { 0.03, 0.06 };
        permanent    = 0.1;
        temporary    = 0.01;
    };
};

Weapon

class CfgWeapons
{
    class MyRifle
    {
        recoil = "my_awesome_recoil";
    };
};

Config

class CfgWeaponHandling
{
    class Recoil
    {
        kickVisual    = 0.3;    // multiplier for extra camera-only movement for weapon kickback
        impulseCoef    = 1;    // common coefficient for weapon-based recoil configuration values, increase to make all recoils stronger, decrease to make them all weaker
        prone        = 1.25;    // coefficient of recoil forces while in prone (this is further multiplied by weapon resting coefficients)
    };
};

Basic suggestions