This really depends on the addon you are making, but you will need this in you config: (note - the following is for a melee weapon)
class CfgPatches
{
class YourAddonName
{
units[] = {};
weapons[] = {YourWeaponName};
requiredVersion = 1.75;
};
class NewMove
{
units[] = {};
weapons[] = {};
requiredVersion = 1.10;
};
};
class CfgMovesMC
{
class Default {};
class CombatStrokeGun: Default {};
class States
{
class YourAnimClassName: CombatStrokeGun
{
file=\YourAddonFolderName\YourAnimName.rtm;
speed=-3;
looped=false;
soundEnabled=false;
duty = RestDuty;
interpolationSpeed=1;
connectFrom[]={Combat,1};
connectTo[]={Combat,1};
};
};
};