Civilian Presence – Arma 3

From Bohemia Interactive Community
Jump to navigation Jump to search
m (Add SP/MP precision to the page and link to devBranch changelog forum post)
m (added editing category)
Line 76: Line 76:
* In situations where there is an insufficient number of cover points, especially in the outer parts of the area, AI might run away from danger, then calm down and move back searching for cover point. Then, on the way back, it gets too close to the danger it will start to flee again. This is obviously not ideal situation, so pay attention to proper placement of the cover point and use Debug mode to see where unit is heading and how terrified is.
* In situations where there is an insufficient number of cover points, especially in the outer parts of the area, AI might run away from danger, then calm down and move back searching for cover point. Then, on the way back, it gets too close to the danger it will start to flee again. This is obviously not ideal situation, so pay attention to proper placement of the cover point and use Debug mode to see where unit is heading and how terrified is.
* It is strongly suggested to make the outer modules Terminal, to prevent the above mentioned bouncing effect.
* It is strongly suggested to make the outer modules Terminal, to prevent the above mentioned bouncing effect.
[[Category: Arma 3: Editing]]

Revision as of 13:35, 25 April 2019

Introduction

Civilian Presence (CP) is a supplementary system introduced in DLC Tac-Ops. Its goal is to enrich combat experience in urban areas without hindering overall game performance.

It was designed and scripted with performance in mind, and because of that, the behavior of civilian units created by CP is simple:

  • If there is no danger, the civilians walk randomly between user predefined waypoints.
  • In case of near danger, civilians run away, trying to avoid danger sources on the way.
  • In case of low / distant danger, civilians try to hide in user predefined cover points.

General notes about CP

  • Works in both singleplayer and multiplayer environments (since Arma 3 1.82.143761, SP only before that).
  • Is built on top of the (engine controlled) danger event system - has low performance profile, but AI ability to recognize imminent danger is sometimes bit delayed
  • Is area based - there can be multiple instances of CP system running on the map.
  • Can be controlled by triggers - each instance of CP can be turned ON /OFF on demand.
  • Can be greatly customized through module attributes and module setup / placement.
  • Automatically avoids spawning and despawning of units in player's vicinity, especially if the position is in direct line of sight.
  • Type of civilian units spawned is automatically determined according to terrain used.


The CP system consists of 3 types of modules:

Civilian Presence Module

This is the core module that provides global definition of system behavior in a given area.
Settings for 'Civilian Presence' module

Module settings

Each of the module settings has its own brief in-game description in the tooltip.

Code On Unit Created / Deleted
These 2 attributes allow the for definition of custom code that gets called when unit is spawned / despawned by the CP system.
Civilian Count
Defines how many civilian units should be created and handled by the CP in the area. If there are more units, the extra units get continuously despawned until the unit count reaches the value and vice versa.
Use Panic Action
Allows for use of panic action on the handled civilian units. Because panic state animations do not always working well, this is an optional setting. Try what works best for your scenario and use case.
Use Agents
Controls if agents (units with limited simulation) should be used instead of standard units. Agents are less performance demanding, but not all of the unit related script commands works with them. If you experience such issues, turn this option OFF.
Debug
Turn on visual in-game debug. If this option is ON, you will see overlay debug indicators on CP units and waypoints / cover points while running the scenario. The overlay contains information about each unit position, destination and threat level (how afraid unit currently is) and each waypoint placement and it's capacity.

Module setup

  • Place 1 Civilian Presence module per area.
  • Resize the module to cover the whole area you want to populate / handle by the CP system.
  • If you want to turn ON & OFF the system in the area, synchronize the module with a trigger (ideally with Repeatable flag checked).
    • When trigger is activated, the CP gets activated and will start to populate are with civilian units.
    • When trigger is deactivated, the CP will start to shutdown, continuously removing handled civilians. When last civilian gets removed, the whole CP for the area gets deactivated.

Civilian Presence Spawnpoint Module

This module determines the positions where civilian units can spawn. Each time CP system is activated, one civilian unit is automatically create on each of the Civilian Presence Spawnpoint module in the area.

Module settings

None.

Module setup

  • Place as many of Civilian Presence Spawnpoint modules in the area (defined by Civilian Presence module), but at least one.
  • Try to place modules on spots that are obscured by nearby objects so they are not visible from afar. If there is line of sight on any player on a spawnpoint, such spawnpoint is blocked and no unit is be able to spawn on it.
  • Civilian Presence Spawnpoint module can be in building.

Civilian Presence Position Module

Module provides a waypoint / cover point for CP units. Its settings and especially placement is crucial for CP system to achieve a good effect.
Settings for 'Civilian Presence Position' module

Module settings

Each of the module settings has its own brief in-game description in the tooltip.

Type
Controls type of the position module.
  • Cover - position will be used only if unit feels endangered and the threat is low, usually far away. Unit will move there and stay there until either the danger is gone, when it will safely walk away or, if the danger gets close, then it will flee.
  • Waypoint - position will be used only if a unit feels safe. Unit will walk there and after a while will randomly pick another waypoint and move there.
  • Cover & Waypoint - position is a combination of both above mentioned position types. Such position will be used
Capacity
Maximum number of civilian units that can fit in. If the max. capacity is reached, remaining civilians will pick another position.
Use Closest Building
Setting controls if civilian units should use the module position or rather the position of a nearby building instead. If you want a building to serve as the position, use this option. The maximum distance for the building to get paired with the module is 50m.
Is Terminal
Controls if a unit should be despawned when the position is reached. Use this option if you want to achieve an effect, where units will be fleeing from the area. Standard despawning rules apply (distance & line of sight).

Module setup

  • Place any number of Civilian Presence Position modules in the area (defined by Civilian Presence module), but at least two.
  • Make sure there is enough of Civilian Presence Position modules that can serve as Waypoint and Cover, so units can properly move during both danger and safe times.
  • Because the threat level and AI behavior is dependent of distance to danger sources (usually enemies, gunfire sounds, etc.) and the time elapsed from when the danger was registered (enemy was seen, gunfire was heard, etc.), it is crucial the Civilian Presence Position modules are properly placed.
  • In situations where there is an insufficient number of cover points, especially in the outer parts of the area, AI might run away from danger, then calm down and move back searching for cover point. Then, on the way back, it gets too close to the danger it will start to flee again. This is obviously not ideal situation, so pay attention to proper placement of the cover point and use Debug mode to see where unit is heading and how terrified is.
  • It is strongly suggested to make the outer modules Terminal, to prevent the above mentioned bouncing effect.