-
Notifications
You must be signed in to change notification settings - Fork 9
Description
Is your feature related to a problem? Please describe.
Current CQC is a bit naff in that the hallways are always stationary and the enemy units don't have any initiative. This is useful in situations to ensure the enemy doesn't fuck off out of defensive positions but doesn't allow the enemy to participate at all besides shooting.
Describe the solution you'd like
The module would work exactly like stationary units until we get into CQC. The module would then detect players within a random small radius (1-5m) around units (in buildings or bunkers) and allow movement of the ai unit. This would hopefully cause them to move into hallways and try engage the friendlies as we are clearing buildings. Hopefully would add some dynamics to the enemy when clearing instead of stationary units.
Could also add some code that forces the ai to point towards the nearest friendly unit or talking unit (I know we have an implementation of this but it's not exactly consistent) as we constantly open doors only to shoot AI in the back.
Describe alternatives you've considered
This is definitely already partially possible with triggers and the allow movement modules but that takes a bit more finicky playing with triggers and modules and doesn't allow for individual units to move as they detect players near their individual position.
Have the stationary units module have an option to enable CQC mode but having different modules makes the mission editing a bit clearer.
Additional context
CBA_Defend hold chance does a similar thing but units run out of position the instant they hear gunfire which leaves the city empty after a massive firefight at the edge of town.