Jump to content
Sign in to follow this  
[aps]gnat

Make Addon using copy of BIS unit

Recommended Posts

Trying to make non-auto retracting undercarriage version of the BIS planes (Su34s, for carrier service)

When I did this in OFP, it was simply a config, no other files required.

In ArmA a bit more is needed

1) I can see a way around copying and renaming the P3D file

2) User triggered animations don't seem to work

Anyone suggest the best way to "copy" and customize a BIS addon without overwriting.

Pointing to some already existing example community addons would help too.

Demo, just trying to user animate one part of the landing gear ... not working

Note the P3D copy is named Su34N

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

class CfgPatches

{

class GNT_Su34N // Naval Version

{

units[] = {"Su34N"};

weapons[] = {};

requiredVersion = 0.10;

requiredAddons[] = {CAAir3};

};

};

class CfgSkeletons

{

class Plane;

class Su34NSkeleton: Plane

{

isDiscrete=0;

skeletonInherit="Plane";

skeletonBones[]=

{

......... Exact Copy of all Su34 Bones definition

};

};

};

class Rotation;

class CfgModels

{

class Plane;

class Su34N: Plane

{

skeletonName="Su34NSkeleton";

class Animations

{

......... Exact Copy of all Su34 Animation definition

......... But trying trying to re-define a couple (ie Landing Gear)

// class FrontGear: Rotation

// {

// source="gear";

// selection="gear_1_1";

// axis="gear_1_1_axis";

// maxValue=0.800000;

// angle1=1.780236;

// };

class FrontGear: Rotation

{

source="GearX";

selection="gear_1_1";

axis="gear_1_1_axis";

angle1=1.780236;

};

};

};

};

class CfgVehicles

{

class Su34;

class Su34N: Su34

{

displayName = "Su34 Naval";

gearRetracting = false;

class AnimationSources

{

class GearX

{

source=user;

animPeriod= 7.5;

};

};

class UserActions

{

class Gx1

{

displayName="Gear Up";

position="compass_3_axis";

radius=5;

onlyForPlayer = 0;

condition="(this animationPhase ""FrontGear"" == 0)";

statement="this animate [""FrontGear"",1]";

};

class Gx2

{

displayName="Gear Down";

position="compass_3_axis";

radius=5;

onlyForPlayer = 0;

condition="(this animationPhase ""FrontGear"" == 1)";

statement="this animate [""FrontGear"",0]";

};

};

};

};

Share this post


Link to post
Share on other sites

If you want new anims you have to make new model.cfg and copy the model. With this 'new' model you can create your own class

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  

×