PDA

View Full Version : Oleg ;), Variable AI Attack Range for Addon CD



XyZspineZyX
11-30-2003, 01:26 AM
Right now AI fighters begin attacking at a constant 7km distance. Can the range at which AI fighters attack enemy aircraft be dependent on variables such as....

AI pilot skill
Haze / poor visiblity
Night

--------------

Like this...No...*not* like this as I am a Noob programmer be sure. /i/smilies/16x16_smiley-wink.gif


AI_Engagement_Range_Default = 10000.00

AI_Engagement_Range = (AI_Engagement_Range_Default) / (4 -- AI_Skill_Level)

If (Visibility = "Blind/Snow") Then
...AI_Engagement_Range = AI_Engagement_Range / 2.0
End if

If (FB_Sun = "below horizon" /i/smilies/16x16_smiley-wink.gif ) Then
...AI_Engagement_Range = AI_Engagement_Range / 4.0
End if


With this Noob attempt here, best possible range is Ace AI engaging at 10km on a clear day--10km may be excessive for most engagements but the code can be worked on--but 10km is *not* excessive for missions against B~17s pulling contrails. Worst possible range is Rookie AI engaging only within 312 meters on bad weather in the dark. Lots of medium possibilities like Ace AI limited to 5km on a day with very poor visiblity.

In FB the AI skill level is between 0 (Rookie) to 3 (Ace) and so dividing the engagement range by 4 minus the skill level would give Ace AI the best opportunity to attack.

In real life sending out Rookies in bad weather in the dark is not worth the risk, and this code would make Rookies very poor in accomplishing any air to air combat mission in such visibility conditions. Rookies would be desperatly flying their plane in bad weather or dark trying not to get lost. That best describes me now, as I feel like a Rookie FB simmer again as I am now trying missions in very poor weather and I am having a bad time but loving the challenge. But the AI still sees me from 7km distance every time. And its worse at night. This is just wrong. /i/smilies/16x16_smiley-sad.gif

In crazyIvan's translation of a IL~2 pilot's diary, they often flew in bad weather that grounded the German Fb109s....but not always. Some of the best German pilots flew special hunting missions against them in bad weather.


Thanks /i/smilies/16x16_smiley-happy.gif

XyZspineZyX
11-30-2003, 01:26 AM
Right now AI fighters begin attacking at a constant 7km distance. Can the range at which AI fighters attack enemy aircraft be dependent on variables such as....

AI pilot skill
Haze / poor visiblity
Night

--------------

Like this...No...*not* like this as I am a Noob programmer be sure. /i/smilies/16x16_smiley-wink.gif


AI_Engagement_Range_Default = 10000.00

AI_Engagement_Range = (AI_Engagement_Range_Default) / (4 -- AI_Skill_Level)

If (Visibility = "Blind/Snow") Then
...AI_Engagement_Range = AI_Engagement_Range / 2.0
End if

If (FB_Sun = "below horizon" /i/smilies/16x16_smiley-wink.gif ) Then
...AI_Engagement_Range = AI_Engagement_Range / 4.0
End if


With this Noob attempt here, best possible range is Ace AI engaging at 10km on a clear day--10km may be excessive for most engagements but the code can be worked on--but 10km is *not* excessive for missions against B~17s pulling contrails. Worst possible range is Rookie AI engaging only within 312 meters on bad weather in the dark. Lots of medium possibilities like Ace AI limited to 5km on a day with very poor visiblity.

In FB the AI skill level is between 0 (Rookie) to 3 (Ace) and so dividing the engagement range by 4 minus the skill level would give Ace AI the best opportunity to attack.

In real life sending out Rookies in bad weather in the dark is not worth the risk, and this code would make Rookies very poor in accomplishing any air to air combat mission in such visibility conditions. Rookies would be desperatly flying their plane in bad weather or dark trying not to get lost. That best describes me now, as I feel like a Rookie FB simmer again as I am now trying missions in very poor weather and I am having a bad time but loving the challenge. But the AI still sees me from 7km distance every time. And its worse at night. This is just wrong. /i/smilies/16x16_smiley-sad.gif

In crazyIvan's translation of a IL~2 pilot's diary, they often flew in bad weather that grounded the German Fb109s....but not always. Some of the best German pilots flew special hunting missions against them in bad weather.


Thanks /i/smilies/16x16_smiley-happy.gif

XyZspineZyX
11-30-2003, 09:58 AM
up /i/smilies/16x16_smiley-wink.gif

XyZspineZyX
11-30-2003, 07:38 PM
down /i/smilies/16x16_smiley-sad.gif

Things are more complex than I thought.

What if Rookies fly formation with Ace? Then Rookies "see" like Ace leader. But if Rookies lose their leader then they see like Rookies again, until rejoining Ace leader. This requires much more complex programming.

AI engagement range could still be easily changed for Night and poor weather though, so...

up /i/smilies/16x16_smiley-wink.gif

XyZspineZyX
12-02-2003, 10:37 AM
I must fix this sticking Bump Thread key. /i/smilies/16x16_smiley-indifferent.gif

XyZspineZyX
12-03-2003, 12:16 AM
Bump for reducing AI visibility range at night.