Jump to content
Sign in to follow this  
bardamu

Config related to modeling prob

Recommended Posts

Hi all need help again biggrin_o.gif

How do you set the confing and O2 properties for a fence like this so that it behave like regular BIS one;a tank can crush it but not a human.

Here's a pic

fence01.jpg

I put it under the Fence class and the mass in O2 is set at 200 Kgs.Like that a tank pass through it.

I guess this prob is related with the config for the addon,maybe i have to set a property in the config file like for objects anim but i don't know which one.

So if anyone can help...

bardamu

Share this post


Link to post
Share on other sites

In GEO LOD press Alt + P

The right click in the new window and select 'new'

class value fence

dammage value fence

try that

Share this post


Link to post
Share on other sites

i tried with these properties:

dammage tree

map fence

But the fence doesn't bend like BIS ones,its only crushed and destroyed...

i also set the points properties in O2 to fence but it only collapse in game and dont lay down like regular fences in ofp.

Any idea?

bardamu

Share this post


Link to post
Share on other sites

i sorted it out it was a config prob indeed biggrin_o.gif

I just had destrType="DestructTree" in cfg and now it works great.

NB:thanx for the properties tip.

Go on blues.gif

bardamu

Share this post


Link to post
Share on other sites
Guest

You should make sure that the named properties values are the same as any config values. For example if you have destructtype=tree then you should as have dammage=tree. Unbinarized OFP will use the config value, Binarized, it will use the O2 value (at least, this is what I've always found). So make sure you are consistant, and it should all be fine. BTW dammage=fence I don't think is a real value. Watch the output of Binarize carefully if you are going to use that value.

Share this post


Link to post
Share on other sites

Thx a lot Leone

i used dammage = tree in O2 properties and destrType="DestructTree" in the config.

At the moment it works fine. smile_o.gif

Share this post


Link to post
Share on other sites
Guest

The other little thing you can do (saves time on big configs) is have these defines up the top of your config:

Quote[/b] ]//type destrType

#define DESTRUCTNO 0

#define DESTRUCTBUILDING 1

#define DESTRUCTENGINE 2

#define DESTRUCTTREE 3

#define DESTRUCTTENT 4

#define DESTRUCTMAN 5

#define DESTRUCTDEFAULT 6

then just have:

Quote[/b] ]destrType=0;

or whatever number you need.

smile_o.gif

Share this post


Link to post
Share on other sites

hi have a very similar problem with my streetlamp i definied it as CfgNonAiVehicle and put there destrType=Tree<-not wrote this way.I also put in the model class streetlamp,dammage tree but it will not fall over if you drive over it,tanks could drive through it

Share this post


Link to post
Share on other sites
Guest

That's (as far as I know) because it is defined as cfgNonAIVehicles. You'll have to define it differently to get it to work. Have a look at the OFPEC forums for more info. smile_o.gif

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  

×