Global Constants

To edit global constants in OpenCAGE navigate to View > Configuration Editors > Core Game > Global Constants.

From here you will be presented with a variety of options which apply across various core systems in the game.

Changes are saved as you make them, and the game reads them each time it loads a level. With Live Link connected, every change also shows in the running game as you make it, as the line at the bottom of the editor says.

Read on to see a list of available properties with information about each.

The Global Constants editor in OpenCAGE.

Squads

  • Min Time Between Squad Shots float Minimum: 0.1 Maximum: 10
    • Defines the minimum and maximum for the minimum time NPCs within a squad take between shooting.

Suspicious Items

  • Time Between Suspicious Reaction Loop float Minimum: 0.1 Maximum: 10
    • Defines the minimum and maximum for the minimum time an NPC takes before looping its reaction to a suspicious item.

UI_Icon

  • Interaction Distance Threshold float Minimum: 0 Maximum: 999
    • Defines the distance at which UI_Icon entities are out of interaction range.
  • Glow Colour colour
    • Defines the colour to use when highlighting objects (for UI_Icon and GenericHighlightEntity). Click Set Colour to pick a colour, then set its alpha with the slider below (picking a colour puts the slider back to full).
  • Glow Rate float Minimum: 0 Maximum: 10
    • Defines the rate at which the glow pulses.
  • Glow Power float Minimum: 0 Maximum: 10
    • Defines the power of the glow.

Stealth Light Meter

The light meter is one of a variety of 'stealth' systems. Characters contain three sensors placed on the ground, hip, and head. An average luminance value is calculated based on these three points and checked against the thresholds defined below to determine the character's brightness - either dark, partially lit, or fully lit. This brightness is then used to determine the impact on the visibility threshold for enemies seeking the character, defined by the enemy's viewcone which contains the character.

    • Timeout When Detected float Minimum: 0 Maximum: 100
      • Defines the time to disable the light meter for after being detected.
    • Full Dark Threshold float Minimum: 0 Maximum: 1
      • If the light meter's luminance is below this threshold, it is considered 'dark'.
    • Full Light Threshold float Minimum: 0 Maximum: 1
      • If the light meter's luminance is below this threshold but above full dark, it's considered 'partially lit'. If it's over this value it's considered 'fully lit'.