Soulslike Framework Docs
  • Welcome to Soulslike Framework!
  • Framework Overview
    • About the Framework
    • Features & Systems
    • Before Purchasing
    • Personal Assistance
  • Getting Started
    • Setting up Animations
      • Setup Locomotion Blendspaces
      • Setup Custom Montages
    • Using the Utility Tools
      • Easy Setup Tool
      • Asset Creators
      • Asset Browsers
    • Actor Tags
    • Finding References
  • Workflow
    • Using a Custom Character
    • Creating & Editing Actions
    • Creating & Editing Stats/Attributes
    • Creating & Editing Status Effects
    • Creating & Editing Buffs
    • Creating & Editing Items
      • Creating & Editing Weapons
    • Creating an Enemy
    • Creating Cinematics
  • Animation Notifies
    • Damaging & Combo's
      • Register Attack Notify
      • Weapon Trace Notify
        • AI Weapon Trace Notify
      • Fist Trace Notify
        • AI Fist Trace Notify
      • Area of Effect Damage Notify
      • Spawn Projectile Notify
        • AI Spawn Projectile Notify
    • Defensive
      • Try Guard Notify
      • Hyper Armor Notify
      • Invincibility Frame Notify
    • Feedback
      • Weapon Trail Notify
        • AI Weapon Trail Notify
      • Camera Shake Notify
        • World Camera Shake Notify
      • Launch Field Notify
      • Chaos Field Notify
      • Footstep Notify
    • Miscellaneous
      • Input Buffer Notify
      • Interrupt Montage Notify
      • Camera Sequence Notify
      • Set Movement Mode Notify
      • AI State Notify
      • AI Rotate Towards Target Notify
      • Adjust Stat Notify
  • Components / Managers
    • Player Specific Components
      • Input Buffer
      • Action Manager
      • Combat Manager
      • Interaction Manager
      • Inventory Manager
      • Equipment Manager
      • Ladder Manager
      • Progress Manager
      • Save/Load Manager
      • Radar & Radar Element Components
      • Central Debug Component
    • Shared Components
      • Stat/Attribute Manager
      • Status Effect Manager
      • Weapon Collision Manager
      • Buff Manager
      • Loot Drop Manager
    • AI-Only Components
      • AI Interaction Manager
      • AI Behavior Manager
      • AI Combat Manager
      • AI Boss Manager
  • Extending Functionality
    • Using Motion Warping
    • Custom Saving/Loading
    • Adding New Settings
    • Extending Weapon Animsets
    • Weapon Specific Impact Sounds
    • Resetting Enemies After Resting
Powered by GitBook
On this page
  • How It Works
  • Example Usage

Was this helpful?

  1. Components / Managers
  2. AI-Only Components

AI Combat Manager

PreviousAI Behavior ManagerNextAI Boss Manager

Last updated 3 months ago

Was this helpful?

The AI Combat Manager (AC_AI_CombatManager) component is responsible for handling AI combat interactions, including damage processing, hit reactions, poise/stance breaks, unarmed combat, and death handling. It functions similarly to the Combat Manager used for the player but is specifically designed for AI, ensuring that AI enemies can react to incoming attacks, process damage correctly, and execute appropriate combat behaviors.

It is added to the Soulslike Enemy (B_Soulslike_Enemy) class by default.

How It Works

  • Event Bindings

    • Registers AI combat events, such as OnTakeDamage and OnStatUpdated, to ensure AI responds dynamically to combat situations.

  • Ability Selection

    • The TryGetAbility method (called from BTS_TryGetAbility) is used to retrieve a possible attack Ability while the AI is in Combat state.

  • Damage Handling

    • Listens for incoming damage events and adjusts HP accordingly. If HP falls to zero, it triggers the death logic.

  • Poise System

    • Listens for poise stat changes & manages poise mechanics, triggering a stagger/stun when poise is broken (if Poise falls to zero)

  • Stance Breaks & Hit Reactions

    • Upon taking damage, the HandleHitReaction method checks if Stance is broken, if so, determines the correct hit reaction animation and applies knockback forces based on damage impact.

  • Weapon & Projectile Damage Processing:

    • Handles incoming melee and projectile attacks, applying damage effects accordingly.

  • Unarmed Combat

    • Uses socket-based tracing for unarmed combat.

  • Notify Related Properties

    • Manages defensive properties such as Hyper Armor & Invincibility which can be toggled through notifies.

  • World Healthbar Updates

    • Updates the world UI, displaying AI health changes in real-time, Souls style.

  • Death Handling

    • Initiates the AI death sequence, plays the ragdoll/directional death animation and stops AI controller logic.

Example Usage