Translations for our friends around the world.

Author Topic: Trees and DCS  (Read 3300 times)

0 Members and 1 Guest are viewing this topic.

Offline Asid

  • HAVOC
  • *
  • Posts: 26290
Trees and DCS
« on: December 30, 2015, 01:03:36 PM »
Interesting way to deal with the invisible trees in DCS

Quote
There was a similar thread that discovered a couple flags that appeared to be set to false by default (also after every update they get reset to false); these flags appear to affect the AI ground units LOS vs other ground units (doesn't work against air units). It worked in 1.2.x and I checked it out in 1.5.x and it still seems to be working, so give it a try.

If you look in the following folder in your DCS installation path:

..\Eagle Dynamics\DCS World OpenBeta\Scripts\AI

Edit the following lua script file: Detection.lua

You will see the following section near the top:

visual_detection = {
terrain_LOS_test = true,
Earth_curvature_LOS_test = true,
objects_LOS_test = false,
trees_LOS_test = false,

If you set the last two flags to true, AI units will not detect you if you are behind buildings (objects_LOS_test = true), or if you are behind/within blocks of trees (trees_LOS_test = true). This latter flag appears to treat a whole block of trees as one large object that can't been seen through. It also allows you to hide in the trees and move to the edge of the tree "block" and fire from within. Once you move outside of some invisible line on the edge the AI units will then detect you and fire on you.

Hopefully they will continue to support this "feature" in 2.0 until they fix it the proper way, which I presume would be to treat smaller sets of trees as individual objects that can't be seen through. Until then, this work around is much better when working against AI. Before I found that thread I was very discouraged playing CA vs AI.

Have fun!

Original thread: http://forums.eagle.ru/showpost.php?s=f6f26dbc73bf5064e83a8f3c98866bbe&p=2611464&postcount=5
funny
0
informative
0
Thanks
0
No reactions
No reactions
No reactions

I stand against Racism, Bigotry and Bullying

Offline Lusik

  • HAVOC
  • *
  • Posts: 1036
Re: Trees and DCS
« Reply #1 on: December 30, 2015, 03:21:57 PM »
Thanks Asid. I'll give it a try later.


Sent from my iPhone using Tapatalk
funny
0
informative
0
Thanks
0
No reactions
No reactions
No reactions

Tags: