I have been trying to fix the AI in which most of the times when they build an arty piece (lefh or ml20) they don't even bother to fire it once and I have been wondering if it is possible for them to build one most of the times if possible for them considering the commander.
I also wonder if it is possible to prevent them from send their mobile arty (panzerwerfer, katy, priest and sexton) to the front line.
Thanks for any reply.
Question about AI using artillery
2 Jan 2019, 17:32 PM
#1
Posts: 23
2 Jan 2019, 23:51 PM
#2
Posts: 327
You would have to add an entry for the barrage ability in the ai_ability attribs. I think relic didn't bother to add that themselves, so thats why the ai can only use some of the barrage abilities (mortars and maybe the panzerwerfer in my experience). To get it to work, clone the stats of a commander artillery barrage ability onto the new entry.
3 Jan 2019, 07:45 AM
#3
Posts: 23
Thanks for the reply and upon checking out, barrage abilities for both lefh and ml20 was already been there ever since. I tried tweaking the priority of the entry and still if an AI build one it is still doing nothing.
3 Jan 2019, 16:12 PM
#4
Posts: 327
Oh, its if the AI actually builds the artillery piece itself? For that, you would have to set the priority/utility of the squad in the economy group.
4 Jan 2019, 01:27 AM
#5
Posts: 23
Thanks mate i'll try it.
Edit: After several trial games, the AI is now building ML20 frequently, although it doesn't use its barrage ability when its newly built but when its de-crewed and re-crewed again by another AI or the AI that built it, it now uses its barrage ability.
Edit: After several trial games, the AI is now building ML20 frequently, although it doesn't use its barrage ability when its newly built but when its de-crewed and re-crewed again by another AI or the AI that built it, it now uses its barrage ability.
4 Jan 2019, 08:00 AM
#6
Posts: 817 | Subs: 5
I had that exact same issue, they only use it correctly after re-crewing. My theory is that the AI doesn't recognize the howitzer as a squad, but as a structure. While after re-crewing it becomes a team-weapon.
Apparently the AI won't use abilities on structures? Does anyone know an ability in a structure which is used by the AI? then we could use that as an example.
Apparently the AI won't use abilities on structures? Does anyone know an ability in a structure which is used by the AI? then we could use that as an example.
4 Jan 2019, 09:50 AM
#7
Posts: 317
The only ability that is in a building that I can think of is the Russian forward HQs "Rally Defence" but I don't know if AI uses that.
For the usage of the artillery, I would try making a new ability that would be seen only by AI and would be located between the commander abilities. Maybe then the AI will see it and use it.
For the usage of the artillery, I would try making a new ability that would be seen only by AI and would be located between the commander abilities. Maybe then the AI will see it and use it.
4 Jan 2019, 21:37 PM
#8
Posts: 327
I can think of a way to fix this through the ai scripts, similar to CoH1, but CoH2 removed those sometime in 2014 I think. I think you might be out of luck, sadly.
5 Jan 2019, 11:43 AM
#9
Posts: 23
That is unfortunate but then thanks for all the reply.
PAGES (1)
1 user is browsing this thread:
1 guest
Livestreams
84 | |||||
2 | |||||
150 | |||||
17 | |||||
12 | |||||
4 | |||||
4 | |||||
4 | |||||
3 | |||||
2 |
Ladders Top 10
-
#Steam AliasWL%Streak
- 1.831222.789+37
- 2.600215.736+15
- 3.34957.860+14
- 4.1107614.643+8
- 5.305114.728+1
- 6.916405.693-2
- 7.273108.717+24
- 8.722440.621+4
- 9.1041674.607-2
- 10.17146.788+1
Replay highlight
VS
- cblanco ★
- 보드카 중대
- VonManteuffel
- Heartless Jäger
Einhoven Country
Honor it
9
Download
1235
Board Info
1029 users are online:
1029 guests
0 post in the last 24h
8 posts in the last week
36 posts in the last month
8 posts in the last week
36 posts in the last month
Registered members: 49104
Welcome our newest member, zhcnwps
Most online: 2043 users on 29 Oct 2023, 01:04 AM
Welcome our newest member, zhcnwps
Most online: 2043 users on 29 Oct 2023, 01:04 AM