Hi, its me, Fastjack.
TBH., i never tinkered in a bigstyle with materials and also never used it in the BF2 editor.
Sofar i know, you need an collisionmesh for projectils to get bullets stopped or to get their powerniveau decreased. Materials with the right setup are also mandatory but maybe the Devs know a bit more about this.
This mesh has an material with some attributes like :
Material.active 16
Material.name "Bushes_leaves"
Material.type 0
Material.friction 0
Material.elasticity 0
Material.resistance 0.01
Material.damageLoss 0
Material.penetrationDeviation 0
Material.overrideNeverPenetrate 1
Material.isSeeThrough 1 wtf is or means this? Sounds nearly for an solution but i believe it stand for something complete different, engine-wise.
AI-wise, i ask me what ITVegetation means? Someone ever saw an tree or bush with object.ai in a bf1942 mod?
Once i posted a Solution to nerf the x-ray botvision. Ignore red text in QUOTE
Fastjack wrote:The most problems with bots firing through vegetation on some maps (Lashkar excample) are the weapon.ai.
The weapons.ai telling the bots when they start to fire (distance) if they see a target, how close they walkup to the target in firingmode and what distance they stop walkup to the target and when shots getting more accurate.
If you play a map like Ramiel, the current weapon.ai isn"t a problem (as excample bots start firing at 200 meters). Its an open map with no woods (you can see from far distance the bots and the bots see you).
But ....
If you have the same weapon.ai on lashkar, bots also start to fire at a range at 200 meters but you aren"t able to shoot back because every 10 meters is a tree and bushes and you cannot see them.
Possible solution:
Create mapbased weapon.ai for coop based on shooting range.
Clone a weapon 3times and give Weapon.ai for 100meter, 150meter, 200meter (or other values, depends on ...)
Also, create kits with weapon.ai ranges for 100meter, 150 meters, 200 meters and add them to the layer. But is many work.
Or .... and better trick.
Every coop faction kit get his own weapons: AK47sp, M4A1sp etc. and all weapons having their own ai.template.
Dont integrate the new weapons.ai into the mod, put every used weapon.ai into the map, so you can adjust the values based on the map.
So you can have a M4A1sp_ai with firing range 300 meters on Ramiel and a M4A1sp_ai with a range of 80 meters on lashkar.