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. Shared Components

Weapon Collision Manager

PreviousStatus Effect ManagerNextBuff Manager

Last updated 3 months ago

Was this helpful?

The Weapon Collision Manager (AC_CollisionManager) is a component that dynamically handles collision tracing, hit detection, and damage processing for weapons. Tracing is enabled or disabled at runtime through the Weapon Trace Notify, ensuring collision checks occur only during specific animation frames.

It is added to the parent Weapon Item Actor class by default (B_Item_Weapon).

How It Works

  1. Initialization:

    • On BeginPlay, the component:

      • Reads the Trace Sockets for the start and end positions of the weapon trace.

      • Configures Trace Radius and Trace Types.

      • Sets up the tracing logic but keeps it paused by default.

  2. Animation Notify State (ANS_WeaponTrace):

    • ANS_WeaponTrace is used within weapon animations (e.g., attack swings) to toggle tracing:

      • Enable: Starts weapon tracing by unpausing the Event Tick.

      • Disable: Pauses weapon tracing to stop unnecessary checks.

  3. Collision Tracing (On Event Tick):

    • When tracing is enabled:

      • Performs a Multi-Sphere Trace using the socket positions and substepping to combat framerate dependency.

      • If a valid target is detected, the OnActorTraced event fires, passing hit data for processing.

  4. Damage and Effects:

    • The OnActorTraced logic handles:

      • Damage Calculation: Uses weapon stats and modifiers (e.g., scaling, random variance).

      • Damage Application: Applies point damage to the hit target.

      • Visual Feedback: Spawns effects like blood splatters or sparks at the impact point.

      • Audio Feedback: Plays sound effects for weapon hits.

  5. Debugging:

    • The Trace Debug Mode visualizes traces in real-time, helping developers fine-tune trace positions and radii.

Example Usage