Skip to content

Fix: Act Library acts interrupted by player actions - #46

Merged
shadow578 merged 6 commits into
mainfrom
fix/act-library-ignore-everything-else
Jul 12, 2026
Merged

Fix: Act Library acts interrupted by player actions#46
shadow578 merged 6 commits into
mainfrom
fix/act-library-ignore-everything-else

Conversation

@shadow578

@shadow578 shadow578 commented Jul 12, 2026

Copy link
Copy Markdown
Owner

makes it so act libary / player follow effects can fully override actor behaviour.
this makes it such that e.g. the camera man effect no longer has the actor getting scared.
this is done by setting the situtation type prop of the drama situation / sMatch prop of (follow player) behavior accordingly.

depends on shadow578/ZHMChaosModCompanion#4

Checklist

  • I consent to automatic PR review by GitHub Copilot.
  • I added attributon (if applicable)
  • I updated documentation (if applicable)

@shadow578
shadow578 marked this pull request as ready for review July 12, 2026 12:08
@shadow578
shadow578 requested a review from Copilot July 12, 2026 12:08

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR updates the companion/actor-follow helper bindings and Act Library bindings so NPC “acts” and follow behaviors can be run at a higher priority and be less likely to be interrupted by player-driven AI events (e.g., distractions/illegal actions).

Changes:

  • Replaced the old SAIModifierRoleBinding with a new SAIModifierBinding and added helper methods to start/stop “follow player” in an “ignore everything” mode.
  • Added m_eSituationType to several Act Library bindings and set dance acts to ESA_OVR_ALL to prevent interruption by other behaviors.
  • Refactored debug UI for Act Library, added a new follow-player debug effect, and parameterized the “actors follow player” effect into normal vs “ignore all else” variants.

Reviewed changes

Copilot reviewed 15 out of 15 changed files in this pull request and generated 10 comments.

Show a summary per file
File Description
src/Entity/Bindings/SFollowPlayerHelperBinding.h Switches to SAIModifierBinding, adds follow “ignore everything” helpers and extra tuning properties.
src/Entity/Bindings/SAIModifierRoleBinding.h Removes the old, narrower AI modifier role binding.
src/Entity/Bindings/SAIModifierBinding.h Introduces unified AI modifier binding covering actor/role modifier properties.
src/Entity/Bindings/ActLibrary/SStandWaitingActEntityBinding.h Adds m_eSituationType to control act priority/availability.
src/Entity/Bindings/ActLibrary/SStandDanceMatActEntityBinding.h Adds m_eSituationType to control act priority/availability.
src/Entity/Bindings/ActLibrary/SLambicDanceActEntityBinding.h Adds m_eSituationType to control act priority/availability.
src/Entity/Bindings/ActLibrary/SFlamingoDanceActEntityBinding.h Adds m_eSituationType to control act priority/availability.
src/Entity/BehaviorTreeMatch.h Adds constants for BT match-node names used by legacy/spsystem behaviors.
src/Effects/Dbg/ZActorFollowPlayerDbgEffect.h Adds a debug-only effect wrapper for testing follow-helper behavior.
src/Effects/Dbg/ZActorFollowPlayerDbgEffect.cpp Implements debug UI for selecting an actor and driving follow-helper settings/actions.
src/Effects/Dbg/ZActLibraryDbgEffect.cpp Refactors debug UI with shared helpers and adds situation-type selection where supported.
src/Effects/Camera/ZFollowingActorCameraEffect.cpp Uses the new “ignore everything” follow mode for the camera-follow actor.
src/Effects/Actors/ZActorsFollowPlayerEffect.h Adds parameterization for normal vs “ignore all else” variants and updates naming/duration/display.
src/Effects/Actors/ZActorsFollowPlayerEffect.cpp Uses new AIModifier binding and registers two parameterized effect variants.
src/Effects/Actors/ZActorsDanceEffect.cpp Sets Act Library situation type to ESA_OVR_ALL before starting dance acts.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread src/Effects/Camera/ZFollowingActorCameraEffect.cpp
Comment thread src/Entity/Bindings/SFollowPlayerHelperBinding.h
Comment thread src/Entity/Bindings/SFollowPlayerHelperBinding.h
Comment thread src/Entity/Bindings/ActLibrary/SStandWaitingActEntityBinding.h
Comment thread src/Entity/Bindings/ActLibrary/SStandDanceMatActEntityBinding.h
Comment thread src/Entity/Bindings/ActLibrary/SLambicDanceActEntityBinding.h
Comment thread src/Entity/Bindings/ActLibrary/SFlamingoDanceActEntityBinding.h
Comment thread src/Entity/BehaviorTreeMatch.h
Comment thread src/Effects/Actors/ZActorsFollowPlayerEffect.cpp
Comment thread src/Effects/Actors/ZActorsFollowPlayerEffect.cpp
@shadow578
shadow578 merged commit 0fa65e6 into main Jul 12, 2026
1 check passed
@shadow578
shadow578 deleted the fix/act-library-ignore-everything-else branch July 12, 2026 13:42
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.

2 participants