Help with vegetation collision mesh concept

Making or wanting help making your own asset? Check in here
Post Reply
mft004
Posts: 33
Joined: 2017-12-14 17:37

Help with vegetation collision mesh concept

Post by mft004 »

Hello wizards, I need your guidance again.
As part of my FH2 sub-mod, I was getting tired of bots humping trees in tanks thus taking themselves and the tank out of the battle. So I went ahead and, in the .con file of every single type of vegetation, changed the custom collisionmesh line to have the properties of a walk-through bush, like so:
ObjectTemplate.collisionMesh bushes_1

And voila you can now walk or drive through forests, it's a dream. But there's one niggle to the dream. Now it seems that all plants, be they bushes or trees or stumps, can still deflect bullets and shells - but it's not simply limited to the outline of the plant - that wouldn't be a problem as still semi realistic. No the problem is that there's now a sort of box around the plant which also deflects those projectiles, as seen in the attached picture. It even causes grenades to bounce off that box and back into my face.

So would anyone know the best way to address this? I'm still very happy with the first experiment, to be able to drive through vegetation, it's definitely needed for me and the bots. But is there a collisionmesh type which would allow you firstly to pass through it but also allow projectiles to pass through it?

Many thanks as ever for any thoughts on this.
Kind regards,
Mark
You do not have the required permissions to view the files attached to this post.
Last edited by mft004 on 2022-08-03 15:45, edited 1 time in total.
Arab
PR:BF2 Developer
Posts: 2898
Joined: 2012-05-18 03:37

Re: Reaching out and touching somebody

Post by Arab »

I'd try setting the materials to something that has no material interaction with grenades etc.

Check the MaterialManagerDefine.con file in common folder and try to set the correct material in .con files of each vegetation.
Image
mft004
Posts: 33
Joined: 2017-12-14 17:37

Re: Help with vegetation collision mesh concept

Post by mft004 »

Many thanks Arab, that .con file is a treasure trove : ) Yes Penetrable_Grass did the trick perfectly.

Thanks again!
Post Reply

Return to “PR:BF2 Community Modding”