Home   Help Search Login Register  

Author Topic: animation if freezed ingame (config)  (Read 496 times)

0 Members and 1 Guest are viewing this topic.

maccollo

  • Guest
animation if freezed ingame (config)
« on: 13 Nov 2004, 08:24:16 »
I've made some anims for the zombie mod. eating running walking grabbing grabbed.
When I'm trying to play the anim it's freezed at the first frame. it's terrible! I've been working with this for 2 weeks :( but I think, or I hope it's the config. can some1 take a look?

the config

//
// YOUR CUSTOM ANIMATION
// By Scott Tunstall.
//

class CfgPatches
{
   class General_Anims
   {
       units[]= {};
       weapons[] = {};
       requiredVersion = 1.96;
       requiredAddons[]={};
  };
};


class CfgMovesMC
{
   class Default {};
   class DefaultDie: Default {};
   class StandBase: Default {};

   class States
   {
       class General_Attack: StandBase
       {
           actions=Standactions;
           file=\generalszombieanims\walkingzombie.rtm
           speed=  <-4.0>;
           looped=true;
           soundEnabled=true;
           soundOverride = "";
           duty = RestDuty;
           interpolationSpeed=0.1;
           connectFrom[]={Stand, 1, StandVar2, 1, StandVar3, 1};
           connectTo[]={Stand, 1, StandVar2, 1, StandVar3, 1};
           interpolateTo[]={StandDying,0.1,StandDyingVer2,0.1};
       };
   };
};
« Last Edit: 13 Nov 2004, 16:38:42 by maccollo »

Offline General Barron

  • Former Staff
  • ****
  • Semper Fi!
Re:animation if freezed ingame (config)
« Reply #1 on: 13 Nov 2004, 23:08:02 »
This should really be in the addon editing board, but oh well  ::). Anyway, I'm not the best with anim configs (most of mine get stuck on the last frame...), but so far I notice something wrong.

speed=  <-4.0>;

There shouldn't be any < > around that number. Actually I'm surprised that you don't get an error message when you boot up OFP, so that may not be all of the problem... but try removing those brackets.
HANDSIGNALS COMMAND SYSTEM-- A realistic squad-control modification for OFP
kexp.org-- The best radio station in the world, right here at home! Listen to John Richards!

maccollo

  • Guest
Re:animation if freezed ingame (config)
« Reply #2 on: 14 Nov 2004, 02:14:09 »
tnx that suluted it. I discoverd 2 more problem tough. when the zombie is walking uphill it's getting compressed. when it's repeting itself after evry second step it's going back to the starting posision.

(didn't know if I should put this in here or in addon editing. have only posted on the BIS forum. they don't have that board)

Lean Bear

  • Guest
Re:animation if freezed ingame (config)
« Reply #3 on: 21 Dec 2004, 17:05:01 »
As your anim is a moving (walking, in this case) animation, you might first want to etend your inhertinece slightly with something like this: (I've also added and corrected other mistakes - in bold)

class CfgMovesMC
{
  class Default {};
  class DefaultDie: Default {};
  class StandBase: Default {};

  class States
  {
      class StandWalkF: StandBase
      class General_Attack: StandWalkF
      {
          actions = Standactions;
          file=\generalszombieanims\walkingzombie.rtm
          speed=  -4.0;
          looped=true;
          soundEnabled=true;
          soundOverride = "";
          duty = WalkDuty;
          relSpeedMin=0.7; // The normal speeds for
          relSpeedMax=1.0; // walking
          interpolationSpeed=0.1;
          connectFrom[]={Stand, 1, StandVar2, 1, StandVar3, 1};
          connectTo[]={Stand, 1, StandVar2, 1, StandVar3, 1};
          interpolateTo[]={StandDying,0.1,StandDyingVer2,0.1};
      };
  };
};

You might want

You'll also need the following lines in your cfgPatches:

  class NewMove
   {
      units[] = {};
      weapons[] = {};
      requiredVersion = 1.10;
   };


I hope this helps.
« Last Edit: 21 Dec 2004, 17:06:42 by Lean Bear »