Skip to content

Fix NPC behaviors not appending ent_text#513

Open
Blixibon wants to merge 1 commit intomapbase-source:developfrom
Blixibon:mapbase/feature/npc-behavior-text
Open

Fix NPC behaviors not appending ent_text#513
Blixibon wants to merge 1 commit intomapbase-source:developfrom
Blixibon:mapbase/feature/npc-behavior-text

Conversation

@Blixibon
Copy link
Member

This PR appends CAI_BehaviorBase::DrawDebugTextOverlays to NPC debug text. Previously, NPCs would just print the behavior name, which is identical to the behavior seen in CAI_BehaviorBase::DrawDebugTextOverlays. This suggests that calling CAI_BehaviorBase::DrawDebugTextOverlays is the intended design, and doing so allows derived behaviors to append their own, previously unused debug text. For example, CAI_AssaultBehavior prints the NPC's current assault point, CAI_FollowBehavior prints its follow target, etc.


PR Checklist

  • My PR follows all guidelines in the CONTRIBUTING.md file
  • My PR targets a develop branch OR targets another branch with a specific goal in mind

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