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
| Type | Name | Description |
|---|---|---|
static constexpr int32_t | kStageCount | Default static_cast<int32_t>(EResidentStage::Count). |
static constexpr int32_t | kAttentionStageCount | Default 5. |
float AlertThresholds[kStageCount - 1] = | Alertness (0..1) at which Curious, Searching and Hunting begin. | |
float | StageHysteresis | A stage is left only once alertness falls this far below its threshold. Default 0.05f. |
float | AlertDecayPerSecond | Default 0.06f. |
int32_t AttentionFloor[kAttentionStageCount] = | The lowest Resident stage each Attention stage 0..4 allows. | |
float | HearingRadius | Hearing 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. |
float | SoundAlertGain | Default 0.35f. |
float | ScanAlertGain | Default 0.6f. |
float | DamageAlertGain | Default 1.0f. |
float | HearingErrorRadius | Metres a belief set by a barely heard stimulus may be off by. Default 4.0f. |
float | SmellRadius | Default 0.0f. |
float | SmellAlertGain | Default 0.2f. |
float | ConfidenceHalfLife | Belief: where the crew was last sensed, and how sure the Resident is. Default 8.0f. |
float | LostConfidence | Default 0.05f. |
float | UncertaintyGrowth | Default 0.8f. |
float | BaseUncertainty | Default 1.0f. |
int32_t | SearchPointCount | Search: points sampled around the belief, kept only where sound still reaches them from it (the room graph), visited with a pause between. Default 4. |
float | SearchMinGain | Default 0.05f. |
float | SearchDwellSeconds | Default 3.0f. |
float | SearchMaxRadius | Default 12.0f. |
float | ArriveDistance | Default 1.0f. |
float StageSpeed[kStageCount] = | ||
EScanResponse | ScanResponseKind | The scan reaction table row (S3) a pulse that strikes this Resident uses, and how much that pulse alarms it. Default EScanResponse::Jitter. |
Vec3 | ScanDisplacement | Default Vec3(0.0f, 0.0f, 0.0f). |
float | ScanJitterRadius | Default 0.75f. |
float | ScanDelaySeconds | Default 0.5f. |
float | ScanHitAlert | Default 0.5f. |
Public functions
| Returns | Name | Description |
|---|---|---|
FScanResponse | MakeScanResponse | |
EResidentStage | StageForAlertness | |
EResidentStage | ApplyAttentionFloor | |
std::string | SerializeToString | |
bool | LoadFromString | |
bool | LoadFromFile | |
bool | SaveToFile | |
FResidentProfile | CreateDefault |
Function details
MakeScanResponse
C++
FScanResponse MakeScanResponse() constStageForAlertness
C++
EResidentStage StageForAlertness(float alertness, EResidentStage current) constApplyAttentionFloor
C++
EResidentStage ApplyAttentionFloor(EResidentStage stage, int32_t attentionStage) constSerializeToString
C++
std::string SerializeToString() constLoadFromString
C++
bool LoadFromString(const std::string& text)LoadFromFile
C++
bool LoadFromFile(const std::string& path)SaveToFile
C++
bool SaveToFile(const std::string& path) constCreateDefault
C++
static FResidentProfile CreateDefault()Generated from AINavigation/ResidentProfile.h via ainavigation.json · Dec 5, 2026Version 1.1.0