Jump to content

Sign in to follow this  
x3kj

Model cfg, inheriting from 2 classes

Recommended Posts

Hi, can somebody tell me if its possible for a class to inherit from 2 CfgSkeleton classes / combine two skeleton parents into one ?

What i want to do is basically a setup for many different variants of a vehicle chassis.

Chassis Version A has a front mg turret

Chassis Version B is identical to A but has an additional, independant front mg turret with a hatch etc. So Chassis B inherits erything from A and has additional stuff.

Next i want to define a Configuration with a Big Mainturret on top of the vehicle

Turret Variant 1 is a Mainturret with a normal Tank Gun

Turret Variant 2 is a Mainturret with a multi barrel Autocannon

I want to produce 4 variants of this: 1A,1B,2A,2B

With single-inherit only i would have to define Variant 1A, and 2A (inherit from Chassis A) Then i'd have define the same for Chassis B, writing all the same stuff i wrote in Turret Variant 1A 2A, just with B inheritance. This is just an example, ideally there would be an additional variant "layer" and many more option in each "layer", resulting in massive additional definitions.

Is there a way around that?

Edited by Fennek

Share this post


Link to post
Share on other sites

Define ALL skeleton bones for one main class, then use that in every model.

It does not matter that you dont use some of the bones or Animations in every model, ArmA doesn't care.

Share this post


Link to post
Share on other sites

ok thanks, that's a relief ;)

Share this post


Link to post
Share on other sites

Is it possible to use

#include "doesbelonghere.hpp"

in a model.cfg as well? Or does it work only in .cpp/.hpp configs?

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  

×