official-antistasi-community / A3-Antistasi

Antistasi Community Version - work in progress - Discord https://discord.com/invite/TYDwCRKnKX
https://antistasi.de
Other
226 stars 156 forks source link

[Feature Request]: Get Convoy Vehicles to Follow Each Other #398

Open Spoffy opened 4 years ago

Spoffy commented 4 years ago

Because of the FSM implementation, the build in convoy separation doesn't work. We'll need another FSM to "follow vehicle" in order to build proper convoys.

wurzel0701 commented 4 years ago

Can't it be integrated into the current FSM? Give it a "_previousVehicle" parameter and slow the vehicle down if it comes to close to it and speed the vehicle once the distance is too large

Spoffy commented 4 years ago

It could, but I'd rather have a seperate FSM for it - they logically separate concepts. One is following a path, the other is following a vehicle.

By keeping them de-coupled, we help ourselves be flexible in the future.

wurzel0701 commented 4 years ago

How about doing a convoyFSM, which reduced the code which need to be executed?

wurzel0701 commented 4 years ago

@Spoffy you think this can be done in 2.3 AI or postponed to 2.4?