#These look like the best things since
1 messages ยท Page 1 of 1 (latest)
I see, I thought that might be the mod. Thanks
Interesting.
Is there a specific reason why you give each A.I. it's own group?
To prevent them from using their "Return to formation" behavior and leaving the garrison position?
Also they need to spawn inside of the building to get it work?
Is there a specific reason why you give each A.I. it's own group?
To prevent them from using their "Return to formation" behavior and leaving the garrison position?
Yeah, that's exactly why. Every A.I. also gets its own defend waypoint with a small radius. I bet it could be somehow done with a single group and a waypoint with a custom BT, but I haven't gone into BT modding so far, so this was the easiest solution for me. Ofc we could collaborate if you would like to come up with such a BT ๐
Also they need to spawn inside of the building to get it work?
Not sure what you're implying. I'm literally just trying to replicate the instant garrison module from Zeus Enhanced/Achilles
Well the "Return to formation" behavior can be bypassed pretty easy.
The behavior tree is called "Idle_ReturnToFormation.bt".
Instead of using the group formation position you simply use the garrison position so A.I. will always stay where they are.
Thing is you would also need to modify combat move and investigate behavior.
I'm already doing something very similar with the "Hold position" of CRX.
Like keeping A.I. at a specific position all the time.
What i mean with spawn inside of the building.
Back in A2/A3 A.I. would garrison buildings if within 100m to a building.
So you could place them close to a building and they would move into the closest building and occupy different positions instead of teleporting.
Sure if you like me to get involved i'm up to the task. ๐
Yeah, search building is a different feature. That should rather be a waypoint than a context action tbh.
As for the BT, what I can provide for you as input from my side is the array of positions to occupy and the preferred directions to watch.
Sure that's all it need's.
So you like to keep them in their original group?
Yeah, that would be great. They just shouldn't be able to move around more than like in a radius than 3 m or something like that. Hence, move a bit in the building, but not being able to leave it.
That's what I was aiming for with the individual defend waypoints
Yeah should be doable. ๐
The WIP branch is here: https://github.com/zen-mod/GME_AR/tree/feature/garrison/addons/GME
The two key classes are the building pos query and context action:
Okay thank's. ๐
I will check and try to get something done at the weekend.
You like me to use git or should i create a new project and you take what you need?
Up to you. You can make a fork and PR or just send the modified project as a zip
Okay.
Guess i will go zip. ๐
Either way don't forget to add yourself to AUTHORS.txt, so we finally have a first contributor ๐
Will do. ๐
Is the garrison mod still forcing AI into odd positions? Has it been fixed?
They can still end up at bad positions, but it has been considerably improved already.
Best see for yourself ๐