mwpowellhtx / KP-Liberation

The work on GreuhZbugs Liberation Mission for Arma 3 continues...
GNU General Public License v3.0
7 stars 1 forks source link

[Logistics] [0007] Setup ambushed mission and connect with logistics state machine #51

Closed mwpowellhtx closed 1 year ago

mwpowellhtx commented 3 years ago

Basic Information

Mission version: v0.98.dev-s8 Map used: Altis

Individual Things

Following on, ambushed logistics lines may occur during the en route state onStateEntered. This potentially occurs when civilian reputation is sufficiently negative, or hostile, towards friendly forces.

When condition is met, ambush occurs, the transports are created at or near the nearest road marker or open space, and crates dropped onto the field as well. Then, of course, the hostile civilian resistance is setup to patrol the area. All contingent on the civilian reputation in terms of their strength, skill, etc.

The logistics line is frozen in ambushed status until the mission is resolved one way or another. Crates will be periodically removed from the target area. Additionally, transports may be progressively damaged during the same period. Resolution happens when all crates are fully destroyed, or players intervene to neutralize the hostile resistance.

Transports may remain for a period of time in whatever form they are left in when the mission is resolved. Subject to the same transient vehicle life cycle heuristics as the rest of the mission; i.e. may be GC'ed after a period of time, etc, etc, etc.

Open to details being negotiated differently, but this is the basic vision for the mission, logistics status, etc.

mwpowellhtx commented 1 year ago

Added logamb secondary objective. Entry point is the trigger function, in which case semaphore is evaluated whether additional children may be supported.

On the front side, we evaluate whether canBeAmbushed, which takes into consideration things CBA such as:

  1. Ambush interval expiry
  2. CBA settings such as Routes can be blocked, blocked routes can be ambushed, friendly zone ambushes
  3. Whether the current LINE in question is considered 'high value' i.e. there are no other lines with a higher storage value
  4. There are roads in proximity which may support the ambush
  5. Last but not least, there is civilian hostility sufficient to justify whether ambush may occur
mwpowellhtx commented 1 year ago

Concluding the effort, or at least introducing a viable rough cut first draft:

Mission version: v0.98.dev-s31

mwpowellhtx commented 1 year ago

Couple of remaining items to follow up on, but will file issues on this separately.

  1. Correct patrol deployment for transports

We also want to keep an eye on objective completion conditions. We think we have sorted them out in the current draft, but we can always learn new things under various play testing scenarios.

Closing for now, will follow up in separate issues as the need arises.