class

FAttentionSystem

Attention (AJAX's threat meter): how much the Substrate has noticed the crew's scanning. The HOST owns the number. Every scan any player fires adds its band weight — times the Fill multiplier for a full-sphere Fill, times the tripod multiplier for a mounted scanner — and it decays over time.

Module
Game
Header
#include "Gameplay/AttentionSystem.h"
Namespace
Mowo

Audit N10: the host keeps it in 16.16 fixed point, advanced at 10 Hz so every build and every frame rate lands on the same bits, and ships it to clients as a u8 at 2 Hz. A client only ever displays the last value it was sent; it never computes its own.

Properties

TypeNameDescription
static constexpr uint16_tkNetEventIdDefault 0xFE20.
static constexpr floatkStepSecondsDefault 0.1f.
static constexpr floatkSendSecondsDefault 0.5f.
static constexpr const char*kAudioParameterPublished to FAudioParameters every Tick: the normalised value (0..1) and the stage, so ambience beds, submixes and MetaSound inputs bind to Attention without gameplay code driving them. Default "Attention".
static constexpr const char*kAudioStageParameterDefault "AttentionStage".

Public functions

ReturnsNameDescription
FAttentionSystem&Get
voidSetProfile
const FAttentionProfile&GetProfile
voidAddEmissionHost (or offline) only; a client call is ignored.
voidAddShot
voidAddRaw
voidTick
voidReset
floatGetAttention
floatGetNormalized
int32_tGetStage
floatGetStageProgress0..1 across the current stage (1 at the top stage's threshold).
floatGetBreathingAmplitude
floatGetBreathingPeriod
uint8_tQuantizeThe wire form: attention as a fraction of MaxAttention in 0..255.
voidApplyQuantized
int32_tGetFixed
boolIsAuthority
voidPublishAudioParameters

Function details

Get

C++
static FAttentionSystem& Get()

SetProfile

C++
void SetProfile(const FAttentionProfile& profile)

GetProfile

C++
const FAttentionProfile& GetProfile() const

AddEmission

C++
void AddEmission(const std::string& band, bool fill, bool tripod, float intensity)

Host (or offline) only; a client call is ignored.

AddShot

C++
void AddShot(const FLidarShot& shot)

AddRaw

C++
void AddRaw(float amount)

Tick

C++
void Tick(float deltaSeconds)

Reset

C++
void Reset()

GetAttention

C++
float GetAttention() const

GetNormalized

C++
float GetNormalized() const

GetStage

C++
int32_t GetStage() const

GetStageProgress

C++
float GetStageProgress() const

0..1 across the current stage (1 at the top stage's threshold).

GetBreathingAmplitude

C++
float GetBreathingAmplitude() const

GetBreathingPeriod

C++
float GetBreathingPeriod() const

Quantize

C++
uint8_t Quantize() const

The wire form: attention as a fraction of MaxAttention in 0..255.

ApplyQuantized

C++
void ApplyQuantized(uint8_t value)

GetFixed

C++
int32_t GetFixed() const

IsAuthority

C++
bool IsAuthority() const

PublishAudioParameters

C++
void PublishAudioParameters() const
Generated from Gameplay/AttentionSystem.h via game.json · Nov 5, 2026Version 1.0.0