Jump to content
Official BF Editor Forums

Can there be a timer on ai in planes


Recommended Posts


one more question from me before I give this fine board some peace.

With my sub-mod I have slower-than-usual WW2-era planes flying about and for the most part the ai does a great job with dogfights and ground target attacks. But at random points in games I look at the minimap and see some planes stuck in mid-air, spinning at that location and they would stay stuck that way til the end of the game; when I fly to that position myself I can't see them either. I've made a little video of it (

) as someone in the PR community suggested it but so far they have no idea. In this recorded game the shenanigans start at about 24:20, three planes on the east edge of the map get stuck about the same time. Perhaps it's linked with my changes in the speed of the planes and my reduction of the gravity modifier, or perhaps it's map-related. This particular map is Fh2's Keren, which in its vanilla form had one or two scout planes flying about so if there's some sort of mapping required for planes then I'm guessing that's all in place.

Wouldn't matter if it was just a bug with the minimap icons but I'm pretty sure the bot is still stuck with that plane hence one less soldier on that team and slowing the flow of battle, also preventing a new plane from spawning. So I'm wondering if the next best thing is to have some sort of timer for the ai where after a certain number of minutes in the air they give up the ghost and respawn, to help keep things fresh. Ultimately though I'll put up with it if there's no fix, as there's a bigger need for less speed given the small size of bf2 maps, relative to say War Thunder or Fighter Ace 2 / 3.5.

Edited by mft004
Link to comment
Share on other sites

7 minutes ago, mft004 said:

when I fly to that position myself I can't see them either

just guessing, but are they really super high up, and that's why you can't see them?

if you fly high enough the plane's physics go wonky, the plane just spins and tumbles without moving very far, and the only way to get down again is to shut off the throttle and wait until you fall down into stable air again. (the ai pilots never shut the throttle off)

in all of my maps, at the very end of the map's init.con if have this line:

physics.airDensityZeroAtHeight 2500

...which tames the bad-physics thing a lot

try it and see if it changes anything. if it does, it's worth adding to every map

FH2 maps probably already have it, but it's worth checking

Link to comment
Share on other sites

Just checked and yes they were high up! Glad to finally find them at last. It was as if they were inside a water wheel, with their tail caught between the paddles whilst the nose stuck close to the hub of the wheel.


For the physics.airDensityZeroAtHeight line, a value of 2500 didn't work for me, but 5000 did! I remember what I did now. I didn't want firearm bullets to sway in a breeze so I deleted the two windmanager lines from the end of the init.con of each map, but in doing so also deleted the airDensity line not realising why that was there!

Many thanks again, stuff like this really makes the game more playable and replayable. And thanks for the Mustang, such a pretty bird.

Edited by mft004
Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.


  • Create New...