Obrien - DodgeComponent

A lightweight, plug-and-play Dodge Component that instantly adds responsive, 8-directional dodging and dashing mechanics to your Unreal Engine 5 characters. Perfect for Action RPGs, Hack-and-Slash, and fast-paced combat systems.

Long Description: Take your combat mechanics to the next level with the Advanced 8-Way Dodge Component. Designed with action-heavy genres in mind—such as Souls-likes, Diablo-like dungeon crawlers, Top-down Shooters, and Brawlers—this component provides a robust, code-driven foundation for dynamic character evasion.

Instead of relying on messy blueprint spaghetti or rigid root motion, this C++ component automatically calculates the precise dodge direction based on the player's current velocity and input. It seamlessly applies physics-based impulses and handles animation montage playback all in one clean, optimized package.

Key Features:

  • Smart 8-Directional Movement: Automatically calculates whether the character should dodge Forward, Backward, Left, Right, or in any of the 4 Diagonal directions based on their local velocity vector.

  • Seamless Montage Integration: Map custom Animation Montages to each of the 8 directions via a clean Details Panel interface. The component automatically listens for montage completion to reset states.

  • Dynamic Friction Control: Temporarily drops braking friction to 0 during the dash for a smooth, uninterrupted slide, and instantly restores it when the animation ends to prevent "ice-skating".

  • Built-in Cooldown Management: Prevent players from spamming the dodge action with an easily adjustable cooldown timer.

  • Highly Customizable: Tweak the Dodge Impulse Strength, Cooldown duration, and Diagonal Angle Threshold directly in the editor to perfectly match your game's pacing.

  • Blueprint & C++ Friendly: Fully exposed to Blueprints with clean Pure functions (IsDodging, GetCurrentDodgeDirection) for effortless integration with Enhanced Input and your existing combat logic.

Whether you are building a punishing Roguelite or a tactical Third-Person Shooter, this component saves you hours of setup time and delivers a polished, game-ready mechanic right out of the box.

Technical Details:

  • Features:

    • 1 plug-and-play C++ Actor Component.

    • Automatic 8-way directional calculation.

    • Automated state management and friction control.

    • Ready for Enhanced Input integration.

  • Code Modules: DodgeComponent (Runtime)

  • Number of Blueprints: 0 (100% C++ optimized logic exposed to BP)

  • Number of C++ Classes: 1

  • Network Replicated: No (Local physics launch / Client-side prediction required for multiplayer)

  • Supported Development Platforms: Windows, Mac, Linux

  • Supported Target Build Platforms: Windows, Mac, Linux, Consoles