Jump to content
SwissArmy1984

How do I increase the combat engagement distance of AI?

Recommended Posts

Hi,

 

with a buddy of mine, we've been testing how far the AI react and fire at a player unit.  We've found that the AI don't engage beyond 750 meters, and it doesn't matter what kind of weapon they have.  This is ridiculous.  If the AI have any sniper weapons, DMRs, or machine guns (all with scopes, of course), they should easily engage beyond the 750 meters.

 

A few years ago 'L_etranger' put up his "Duckhunting" mod in Armaholic that supposedly increased the engagement range of AI by modifying the config of the weapons to increase their range.  With all the Arma updates since, this no longer works.

 

Maximizing the AISkills does NOT work either.

 

Is there ANY WAY to increase the distance at which AI engage enemy, whether enemy AI or players?

 

Any help would be appreciated.

Share this post


Link to post
Share on other sites
48 minutes ago, SwissArmy1984 said:

Hi,

 

with a buddy of mine, we've been testing how far the AI react and fire at a player unit.  We've found that the AI don't engage beyond 750 meters, and it doesn't matter what kind of weapon they have.  This is ridiculous.  If the AI have any sniper weapons, DMRs, or machine guns (all with scopes, of course), they should easily engage beyond the 750 meters.

 

A few years ago 'L_etranger' put up his "Duckhunting" mod in Armaholic that supposedly increased the engagement range of AI by modifying the config of the weapons to increase their range.  With all the Arma updates since, this no longer works.

 

Maximizing the AISkills does NOT work either.

 

Is there ANY WAY to increase the distance at which AI engage enemy, whether enemy AI or players?

 

Any help would be appreciated.

 

Vanilla AI with .50cal rifles can engage up to 2km.

Static weapons might engage even further.

Unless you further elaborate on the specific situation where you want an engagement to happen one can just speculate.

 

A typical engagement range of 300m at most seems more authentic.

 

Most factors that affect AI engagement range are daytime, weather and of course target knowledge, can't shoot something you haven't spotted yet.

 

Cheers

Share this post


Link to post
Share on other sites

So, we have an Exile server.  The AI units on there don't engage targets beyond 750 meters, no matter what weapon they're using.  The AI units are in missions created by DMS.  It would be realistic for them to at least shoot with whatever appropriate weapons they have (sniper rifles, DMRs, and other machine guns in 7.62 or greater) to engage beyond 750 meters if they have a line of sight.  At a bare minimum for suppressive fire.  None of this is happening.  The "Duckhunting" mod from Armaholic doesn't work.

Share this post


Link to post
Share on other sites

Have you tested the kwowsAbout values for for AI?   As grump says, they won't fire if they haven't spotted the enemy yet.  If that is your case, then you can write triggers to reveal units to AI at further distances (if they have line of sight, and are watching that direction).

  • Like 1

Share this post


Link to post
Share on other sites
26 minutes ago, johnnyboy said:

Have you tested the kwowsAbout values for for AI?   As grump says, they won't fire if they haven't spotted the enemy yet.  If that is your case, then you can write triggers to reveal units to AI at further distances (if they have line of sight, and are watching that direction).

It's also possible to use a fired eventhandler and reveal the firer to every unit within a certain distance, changes things up a bit.

 

Cheers

  • Like 1

Share this post


Link to post
Share on other sites
39 minutes ago, johnnyboy said:

Have you tested the kwowsAbout values for for AI?   As grump says, they won't fire if they haven't spotted the enemy yet.  If that is your case, then you can write triggers to reveal units to AI at further distances (if they have line of sight, and are watching that direction).

We've tested this extensively in exposed situations.  We've also set the AI to max AI Skills.  No change.  They look at you, but they don't shoot.  Even the static MGs don't outside of 750m.

Share this post


Link to post
Share on other sites
Just now, SwissArmy1984 said:

We've tested this extensively in exposed situations.  We've also set the AI to max AI Skills.  No change.  They look at you, but they don't shoot.  Even the static MGs don't outside of 750m.

What/how were you testing?

 

Cheers

Share this post


Link to post
Share on other sites

The Exile server is the  TNA Lythium map Exile server.  It uses DMS for mission generation.  We've done dozens of tests engaging the mission AI from open line of sight positions.  The AI don't engage beyond 750m.  We're trying to find a way to modify things so the AI will at least attempt to engage (with the appropriate weapons) at whatever distance the player engages them.

 

 

{TNA}Exile LYTHIUM PVE    server name

 

We have 3 TNA servers using three different maps where this problem repeats itself.

Share this post


Link to post
Share on other sites

The only data element I have found referenced that could potentially affect the engagement distance is the following, taken from the "CfgWeapons Config Reference" of the Bohemia Arma 3 Wiki (quoting from the page):

 

min/mid/maxRange...

Class

ArmaModeClass

Type

Integer

Description

Together with range and rangeProbab values, defines probability to use this weapon for AI units at given distance.

For OFP these parameters were specified in cfgAmmo, rendering all rifles the same.

 

Where is this ArmaModeClass?  I looked at the CfgWeapons listings in the Eden Editor and could find no reference to it.

 

Anyone know and have experience with this?  Any help is greatly appreciated.

Share this post


Link to post
Share on other sites

Update: so we did some more testing and it seems that the problem is coming from the Exile mod itself, specifically the server files.  Normal Arma WILL have AI engage you at long distances based on the CfgWeapons data of the specific weapon + optics (if any) combination.

 

Couldn't find any parameters in the Exile server files, though, that creates this 750 meter limitation.  Question has been moved to the Exilemod forums in the General Discussion and Problem - Serverside sections.

Share this post


Link to post
Share on other sites

Have you checked what the view distance on the server is? Some mods or scripts reduce this - have often occasionally seen something like if: (isDedicated) then { setViewDistance 500; };  being run from scripts in the mission.

  • Like 1

Share this post


Link to post
Share on other sites

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now

×