Prevent AI auto-teleport into buildings?

  1. 6 years ago

    Not sure if this is a BiS thing, an ALiVE thing, or a VCOM thing, but I find that it's annoying that when the OPCOM orders a unit to occupy a town or military base, all the units except for the leader get teleported into nearby buildings and frozen. They are given waypoints by OPCOM, but can't follow them because of the super-hold (nothing can change this stance).

    The problem is that the opposing AI most of the time don't know there is some random dude frozen in a building, so they can never fully occupy the town. So, all the attacking units just stand around idle (OPCOM still thinks they are busy), which eventually leads to a stagnant battlefield.

    -image-

  2. I did some digging on the ALiVE.OS GitHub and found that it is the fnc_groupGarrison script that is causing this. It makes sense as a way to hold an objective, but I'd like for VCOM to handle the local AI in these cases. Is there any way of disabling this script via staticdata or some other snippet?

  3. Friznit

    9 Jun 2017 Administrator

    The disableAI "Path" in fnc_groupGarrison is there to prevent the AI simply leaving the building positions again. With vanilla AI, they'll often end up reforming and standing idly in the street in formation. With VCOM taking over, they typically exit the buildings and are given random waypoint patrols, leaving the area largely undefended. General consensus from players was they prefer to have building positions occupied so there is something for them to clear. If no players are in range, then AI combat is virtualised anyway so there is no impact.

    I don't think there's an easy way to override it apart from branching the code and rewriting that function to suit your own needs.

  4. Ok, thanks for the reply. And thanks for the great work you guys are doing. I think I'm having more fun setting up/testing missions than playing.

    I am trying to create a mission where LOP_CDF is 'invading'/occupying, LOP_US is asymmetric, and rhs_faction_msv is supporting LOP_US with mainly artillery and some infantry. I was hoping VCOM would utilize its code to call in arty support by setting the Virtual AI spawn radius to 10000, so there would not be any units virtualized.

    I like how the AI handles CQB behavior and would want to replace the disable Path with that. I don't know what VCOM does since disable path is run. Maybe it was causing too many problems with it's call to help default being set to high originally, now its at 500 m.

    If I'm feeling adventurous, I might try to test this somehow.

 

or Sign Up to reply!