Warning: include(/var/www/html/forum/Sources/../../../includes/depot_files/OFPEC_get_header_image.inc.php): failed to open stream: No such file or directory in /var/www/html/forum/Sources/Load.php(2272) : eval()'d code on line 146

Warning: include(): Failed opening '/var/www/html/forum/Sources/../../../includes/depot_files/OFPEC_get_header_image.inc.php' for inclusion (include_path='.:/usr/local/lib/php') in /var/www/html/forum/Sources/Load.php(2272) : eval()'d code on line 146

Notice: Undefined index: OFPEC in /var/www/html/forum/Sources/Load.php(2272) : eval()'d code on line 152

Notice: Trying to access array offset on value of type null in /var/www/html/forum/Sources/Load.php(2272) : eval()'d code on line 152

Notice: Trying to access array offset on value of type null in /var/www/html/forum/Sources/Load.php(2272) : eval()'d code on line 152
    Home   Help Login Register  

Author Topic: getting animations to play on attack  (Read 1313 times)

0 Members and 1 Guest are viewing this topic.

Offline Ding

  • Contributing Member
  • **
  • Jurassic Park
getting animations to play on attack
« on: 21 Dec 2004, 09:31:35 »
Hi, :)

I am making an addon and i would like some help please,
in the config what is the command to play an animation on attack (when clicking) and where in the config it should go. I serched the site but dident find anything, i know this is possible but i dont know how, i hope you people can please help me :D .

thankyou,
ding
"If I remain lost and die on a cross, atleast I wasn't born in a manger"

Lean Bear

  • Guest
Re:getting animations to play on attack
« Reply #1 on: 21 Dec 2004, 14:12:12 »
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};
      };
   };
};