Skip to content

Client: toggle to disable ambient NPC population#64

Merged
Kheartz merged 1 commit into
mainfrom
ambient-npc-toggle
Jun 28, 2026
Merged

Client: toggle to disable ambient NPC population#64
Kheartz merged 1 commit into
mainfrom
ambient-npc-toggle

Conversation

@Kheartz

@Kheartz Kheartz commented Jun 28, 2026

Copy link
Copy Markdown
Collaborator

Hook UPopulationManager's per-frame tick (PopulationManagerTick / FUN_14316dd90) and skip it to disable all ambient NPC fleshing. With it off the manager never requests flesh, so NPCs never spawn. AOB in game_layout.h with an RVA fallback; exposed via Hooks::SetAmbientPopulation for a future /npc command; Defaults off (empty world).

Hook UPopulationManager's per-frame tick (PopulationManagerTick / FUN_14316dd90) and skip it to disable all ambient NPC fleshing. With it off the manager never requests flesh, so NPCs never spawn (no footsteps/dialogue) with no loader deadlock and no crash, unlike blocking SpawnActor or despawning fleshed actors. AOB in game_layout.h with an RVA fallback; exposed via Hooks::SetAmbientPopulation for a future /npc command; Defaults off (empty world).
@Kheartz Kheartz merged commit 1745f58 into main Jun 28, 2026
2 checks passed
@Kheartz Kheartz deleted the ambient-npc-toggle branch June 28, 2026 06:33
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant