class

FResidentProfile

Every number the Resident AI decides by, in one .resident asset: the alertness that moves it between stages, how far and how well it hears, how fast its belief about the crew decays, where and how long it searches, and what a scan pulse does to it. The Attention meter raises the floor under its stage, so the whole Substrate growing restless wakes a Resident that heard nothing itself.

Module
AINavigation
Header
#include "AINavigation/ResidentProfile.h"
Namespace
Mowo

Properties

TypeNameDescription
static constexpr int32_tkStageCountDefault static_cast<int32_t>(EResidentStage::Count).
static constexpr int32_tkAttentionStageCountDefault 5.
float AlertThresholds[kStageCount - 1] =Alertness (0..1) at which Curious, Searching and Hunting begin.
floatStageHysteresisA stage is left only once alertness falls this far below its threshold. Default 0.05f.
floatAlertDecayPerSecondDefault 0.06f.
int32_t AttentionFloor[kAttentionStageCount] =The lowest Resident stage each Attention stage 0..4 allows.
floatHearingRadiusHearing carries no line of sight: reach is metres before the room graph takes its share, and a stimulus names its own radius when it knows it. Default 18.0f.
floatSoundAlertGainDefault 0.35f.
floatScanAlertGainDefault 0.6f.
floatDamageAlertGainDefault 1.0f.
floatHearingErrorRadiusMetres a belief set by a barely heard stimulus may be off by. Default 4.0f.
floatSmellRadiusDefault 0.0f.
floatSmellAlertGainDefault 0.2f.
floatConfidenceHalfLifeBelief: where the crew was last sensed, and how sure the Resident is. Default 8.0f.
floatLostConfidenceDefault 0.05f.
floatUncertaintyGrowthDefault 0.8f.
floatBaseUncertaintyDefault 1.0f.
int32_tSearchPointCountSearch: points sampled around the belief, kept only where sound still reaches them from it (the room graph), visited with a pause between. Default 4.
floatSearchMinGainDefault 0.05f.
floatSearchDwellSecondsDefault 3.0f.
floatSearchMaxRadiusDefault 12.0f.
floatArriveDistanceDefault 1.0f.
float StageSpeed[kStageCount] =
EScanResponseScanResponseKindThe scan reaction table row (S3) a pulse that strikes this Resident uses, and how much that pulse alarms it. Default EScanResponse::Jitter.
Vec3ScanDisplacementDefault Vec3(0.0f, 0.0f, 0.0f).
floatScanJitterRadiusDefault 0.75f.
floatScanDelaySecondsDefault 0.5f.
floatScanHitAlertDefault 0.5f.

Public functions

ReturnsNameDescription
FScanResponseMakeScanResponse
EResidentStageStageForAlertness
EResidentStageApplyAttentionFloor
std::stringSerializeToString
boolLoadFromString
boolLoadFromFile
boolSaveToFile
FResidentProfileCreateDefault

Function details

MakeScanResponse

C++
FScanResponse MakeScanResponse() const

StageForAlertness

C++
EResidentStage StageForAlertness(float alertness, EResidentStage current) const

ApplyAttentionFloor

C++
EResidentStage ApplyAttentionFloor(EResidentStage stage, int32_t attentionStage) const

SerializeToString

C++
std::string SerializeToString() const

LoadFromString

C++
bool LoadFromString(const std::string& text)

LoadFromFile

C++
bool LoadFromFile(const std::string& path)

SaveToFile

C++
bool SaveToFile(const std::string& path) const

CreateDefault

C++
static FResidentProfile CreateDefault()
Generated from AINavigation/ResidentProfile.h via ainavigation.json · Dec 5, 2026Version 1.1.0