View Single Post
Old 02-20-23, 03:02 PM   #23
kapuhy
Grey Wolf
 
Join Date: Oct 2010
Location: Poland
Posts: 873
Downloads: 72
Uploads: 3
Default

Hi Muckenberg, thanks for the report. Hopefully I'll get some free time during next weekend to try to experiment with plane characteristics and see how they come into play. For now thing to look into: spitfires, zigzagging, and crashing into sea.

As for second Hurricane continuing, that's a but weird - it should only behave this way if it's out of bombs...

Quote:
Originally Posted by Pascal View Post
It's strange to see some planes crashing into the sea by themselves - well, it's obviously quite unrealistic and it should be possible to simply remove this action from the script (beginner pilot removed)
If only it was so simple... avoiding crashing into water is done by following block of code:

strategy AvoidImpact(Plane)
{
precond
{
Plane:StrafingTooClose()
}
action
{
Plane:AvoidWaterImpact();
}
}


Simple, right? Problem is, we don't know how exactly StrafingTooClose() and AvoidWaterImpact() work. Their code is inside sim.act file which we can't read. So we can only experiment with adding some extra conditions for these functions - but not modify functions themselves.

Edit: only way I was able to eliminate crashing into water completely, was by switching ALL planes to "level bomber" mode and adjusting their minimum height so that they just pass high over target trying to carpet bomb it. With this approach, however, they were so inaccurate they might as well be removed from game to save some fps.
kapuhy is offline   Reply With Quote