Better circumstantial criteria for followup responses #275
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Adds the following criteria to followup responses:
dist_from_issuer
— The distance to the issuer of the original response. This already existed onany
type responses, but it will now exist for all followups.is_speaking
— Whether or not the person speaking the followup is already speaking.followup_allowed_to_speak
— Whether or not the speaker's AI would allow this followup to play as a regular response concept. This includes whether the speaker is already speaking.followup_target_type
— The method in which this speaker was selected for a followup response (i.e. whether it was specifically targeting the NPC, whether it was dispatched to all NPCs, or whether it was dispatched to one of any NPCs)These criteria are meant to provide better control over when followups play in relation to HL2's existing speech AI without restricting the behavior that has existed since they were added.
Note that
followup_allowed_to_speak
currently only applies to entities derived fromCAI_PlayerAlly
.PR Checklist
develop
branch OR targets another branch with a specific goal in mind