OFPEC Forum

Addons & Mods Depot => OFP - Addons & Mods General => Topic started by: TMan10K on 12 Oct 2003, 00:56:34

Title: Custom anims and usage
Post by: TMan10K on 12 Oct 2003, 00:56:34
I have 2 questions:-

* I've made some animations for my FN P90, and I've stuck them in the config file and they work ingame, but I can't move. Is it possible to somehow implement this into the walking, running animations e.t.c, or do I have to make all new anims for every move on OFP just for my P90?

(The following is from Teacup's reply #27 on http://www.ofpec.com/yabbse/index.php?board=13;action=display;threadid=4694;start=15 )

Code: [Select]
class CfgMovesMC
{
   class Default {};
   class DefaultDie: Default {};
      class StandBase: Default {};

   class States
   {
      class yourAnim: StandBase
      {
         actions = StandTalkActions;
         file=\yourAddonFolder\yourRTM.rtm;
         speed = -12.0;
         looped=false;
         soundEnabled=false;
         duty = RestDuty;
         interpolationSpeed=2;
         connectFrom[]={Stand, 1, StandVar2, 1, StandVar3, 1};
         connectTo[]={Stand, 1, StandVar2, 1, StandVar3, 1};
                  interpolateTo[]={StandDying,0.1,StandDyingVer2,0.1};                  
      };
   };
};

I have done this but I cannot move, so I am guessing that I need to replace Stand e.t.c with a movement.

* Is it possible to move the gun proxy in OFPAnim, so I can have my P90 in the right place, and is it possible to see my P90 in OFPAnim?

Thanks, TMan10K
Title: Re:Custom anims and usage
Post by: Unnamed on 12 Oct 2003, 03:37:44
Hi,

This post has a quite a few examples:

http://www.ofpec.com/yabbse/index.php?board=13;action=display;threadid=9578 (http://www.ofpec.com/yabbse/index.php?board=13;action=display;threadid=9578)

Let us know how you get on.
Title: Re:Custom anims and usage
Post by: TMan10K on 12 Oct 2003, 16:52:22
The animations work, but I want them to be usable, or is this impossible and I'm stuck with the hardcoded ones?
I want to have my own walking, running ones e.t.c, but seeing as no-one else has done this, I am assuming it is not possible.

If you don't undertsand what I'm getting at, I am trying to make animations which the player can control, like running, aiming e.t.c.
Title: Re:Custom anims and usage
Post by: Unnamed on 12 Oct 2003, 23:15:35
Ohh..I though there were more than just standing anims in the post I gave you to, should have double checked.

As there are precious little examples posted by others when it comes to anims, you may have to figure it out yourself. A good place to start would be to look at how the defualt OFP move anims are defined.

But again, let us know how you get on. The more info on this subject, the better.
Title: Re:Custom anims and usage
Post by: TMan10K on 13 Oct 2003, 00:27:28
I've extracted the animations from Anim.pbo, and this has everything. I have been looking through a few, and I thought it would be a bit helpful to list a few, so if people need an anim, they can look here rather than wading through a big fat list of Czech.  ;)

I may update this list every now and then when I find more.

Crouching Reload               - klEknaBIJ.rtm
Prone Reload      - PLIZENINABIJ.rtm
Stand -> Binocs      - sDALEK.rtm
Binocs -> Stand      - sDALEK2.rtm
Crouch -> Stand      - klekdostani.rtm

Title: Re:Custom anims and usage
Post by: Unnamed on 13 Oct 2003, 22:04:20
You may want to keep an eye on this?

http://www.flashpoint1985.com/cgi-bin/ikonboard311/ikonboard.cgi?s=1eb4638d4c49479fbfb76f9eded52b8e;act=ST;f=54;t=34187;st=0 (http://www.flashpoint1985.com/cgi-bin/ikonboard311/ikonboard.cgi?s=1eb4638d4c49479fbfb76f9eded52b8e;act=ST;f=54;t=34187;st=0)

There is talk of a tutorial comming soon  ::)