Skip to content

[FEATURE] Expose managed NPC awareness events #244

Description

@ifBars

What would you like to see?

Expose the native NPC awareness callbacks through managed S1API events:

  • drug dealing, general crime, petty crime, curfew violations, and suspicious players noticed
  • gunshots and explosions heard
  • hit by vehicle

Player and vehicle arguments should use existing S1API wrappers. Noise arguments should use a small read-only snapshot containing origin, range, type, source, and whether the origin is in the sewer.

Why would this help?

Law, stealth, ambient reaction, quest, and NPC behavior mods currently need native UnityEvents or Harmony patches to observe what an NPC notices.

Extra Context (Optional)

All eight native events still exist in current Mono and IL2CPP assemblies. Keep this API observation-only; it should not alter native NPC responses.

Metadata

Metadata

Assignees

No one assigned

    Labels

    LowVery minor issue, non gameplay hindering, fix all high prio firstenhancementNew feature or request

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions