|
PR:BF2 Community Modding Making or wanting help making your own asset? Check in here |
|
Thread Tools | Display Modes |
2022-08-03, 15:40 | #1 |
Join Date: Dec 2017
Posts: 33
United Kingdom
|
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 |
Last edited by mft004; 2022-08-03 at 15:45..
|
2022-08-04, 01:21 | #2 |
PR:BF2 Developer
|
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. |
|
|
2022-08-04, 11:18 | #3 |
Join Date: Dec 2017
Posts: 33
United Kingdom
|
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! |
|
|