project reality header
Go Back   Project Reality Forums > PR:BF2 Mod Forums > PR:BF2 Community Modding
01 Nov 2024, 00:00:00 (PRT)
Register Developer Blogs Members List Search Quick Links
PR:BF2 Community Modding Making or wanting help making your own asset? Check in here

Reply
 
Thread Tools Display Modes
Old 2022-08-03, 15:40   #1
mft004

mft004's Avatar
Question Help with vegetation collision mesh concept

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
Attached Images
File Type: jpg tree shields.jpg (163.1 KB, 8 views)
mft004 is offline
Last edited by mft004; 2022-08-03 at 15:45..
Reply With Quote
Old 2022-08-04, 01:21   #2
[R-DEV]​Arab
PR:BF2 Developer
Supporting Member

Arab's Avatar
Default Re: Reaching out and touching somebody

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.

Arab is offline Reply With Quote
Old 2022-08-04, 11:18   #3
mft004

mft004's Avatar
Default Re: Help with vegetation collision mesh concept

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

Thanks again!
mft004 is offline Reply With Quote
Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off



All times are GMT. The time now is 12:30.