Jump to content
Sign in to follow this  
general

custom animation in OFP

Recommended Posts

how do I put my custom animation into ofp?

the names are bankwindow and bankwindow2

Share this post


Link to post
Share on other sites
can't some1 help me sad_o.gif

make a config with the anim names.. pbo the folder with the anims and the config.. extrack it to the addon folder..

ingame:

this switchmove "animname"

Tadaaa biggrin_o.gif

Share this post


Link to post
Share on other sites

Yeah, unfortunately, getting your anim into the game isn't a simple task. I.... almost..... have it figured out, although I still can't seem to get some anims to work. Anyway, you are going to need to make an addon, I'm afraid, since there is no way to just include the anim in your mission pbo. How exactly that is done is... hard to grasp at first, and I'm not sure if there is any tutorial out there on it. Eventually I'm going to write a tutorial myself, but I haven't made the time to do it yet.

Best advise I can give you now is to search the addon config board for previous threads. I know I asked that same question there a while ago. smile_o.gif

Share this post


Link to post
Share on other sites

<table border="0" align="center" width="95%" cellpadding="0" cellspacing="0"><tr><td>Code Sample </td></tr><tr><td id="CODE">

//

// 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\general_attack.rtm

speed= <CHANGE>;

looped=false;

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};

};

};

};

Put this code into a file called config.cpp in a directory named generalszombieanims. The location of the directory is not important, but the name is.

Rename your animation to general_attack.rtm and put the file into the same directory as config.cpp

Change the <SPEED> variable to a negative floating point value, (-2.0) means "execute in 2 seconds"

Share this post


Link to post
Share on other sites

ok I've made a walking animation but when I'm trying to play it,it won't walk it's freezed the the first frame. I want it to walk!

check

this is the the config

Share this post


Link to post
Share on other sites

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
Sign in to follow this  

×