Fighting

Basic Multiplayer Melee Combat System

A technical look at the Basic Multiplayer Melee Combat System, featuring modular actor components, hit scan tracing, lock-on targeting, and 3v3 bot support.

Basic Multiplayer Melee Combat SystemFighting

Resource overview

Implementing the Modular Actor Component Architecture

Integrating a multiplayer melee pipeline often requires separating distinct gameplay tasks so that individual characters do not become weighed down by monolithic blueprints. Basic Multiplayer Melee Combat System approaches this challenge by isolating each core mechanic into dedicated actor components. This design allows developers to selectively attach or omit capabilities depending on character archetypes, making the toolset adaptable for rapid prototyping as well as structured game production.

The foundational setup relies on four primary components:

  • Basic Montage Sequence Manager: Controls montage section playback, transition triggers, and character animation timing during strikes.
  • Combat State Manager: Regulates hit scan evaluations, registers outgoing and incoming damage, and processes guard states such as active blocking.
  • Ragdoll State Manager: Dictates physics-driven reaction events when characters receive decisive hits or enter incapacitation states.
  • Simple Lock-on: Guides character facing direction and camera alignment toward acquired targets.

By decoupling these responsibilities, changes to damage logic within the Combat State Manager do not risk breaking montage playback queues or physics blending. Characters can share identical hit detection code while pulling different animation logic from distinct montage manager setups.

Combat State Manager Tracing and Defensive Actions

Melee collisions in multiplayer projects frequently suffer from latency or frame drops, turning imprecise weapon collision volumes into missed attacks. The Combat State Manager mitigates this issue by employing four selectable modes of hit scan tracing for damage. Rather than relying on simple continuous overlapping shapes, these tracing modes allow creators to tailor the hit detection approach to specific weapon geometries and swing speeds.

For scenarios where client or server performance drops, the system incorporates an option to bake tracing locations directly into arrays. This pre-calculated path data supplies consistent trace coordinates during low frame rate situations, ensuring swings register hits cleanly even when rendering frames dip below normal thresholds.

Offensive strikes interact directly with target alignment through an integrated Aim Offset system. Melee attacks orient along the player's current view vector rather than remaining locked to character capsule rotation alone. This enables precise high, low, or angled strikes depending on where the reticle or camera points.

On the receiving end of an engagement, defensive mechanics shift the state of the Combat State Manager. Characters can mitigate incoming damage through active blocking, evade swings completely using directional dodging, or counter defensive postures by delivering an aggressive shield bash.

Camera Perspectives and Simple Lock-on Controls

Player orientation dictates how melee combat feels in practice, especially in fast-paced encounters. The project incorporates a camera toggle setup that switches smoothly between first-person and third-person viewpoints. This flexibility allows designers to evaluate combat readability from close, immersive angles or wide, tactical vantages without reconstructing character rigs or spring-arm configurations.

The Simple Lock-on component anchors third-person navigation during close-quarters duels. Activating target lock directs the camera toward the opponent while reorienting character movement mechanics around that focal target. Striking, dodging, and sidestepping maintain the target within the frame, ensuring attacks shaped by the Aim Offset remain focused on the opponent without constant manual mouse or stick corrections.

Montage handling remains synchronized with target management. The Basic Montage Sequence Manager oversees attack strings and manages transitions between combo sections, giving designers granular control over execution windows, cancel frames, and recovery states directly within standard montage structures.

Version 2.0 Additions: Projectile Spawner and Animation Sync Finishers

The system expands beyond standard hand-to-hand and bladed engagements through auxiliary components introduced in Version 2.0. These additions expand character options to include ranged skirmishing and cinematic melee conclusions without modifying the primary combat components.

The Projectile Spawner component introduces functionality for ranged weaponry. It regulates projectile generation, ammo counters, and reload sequences directly. Characters utilizing this component can alternate between melee engagements and projectile deployment, using the same underlying damage and hit-reporting networks handled by the main framework.

Close-quarters engagements can conclude through high-impact takedowns powered by the Animation Sync component. This module manages paired character positioning and synchronized montage playback, allowing attackers and defenders to lock into coordinated combat finishers. When lethal thresholds are met, the Animation Sync component aligns both skeletal meshes to execute the finisher animation cleanly across the network before handing the defeated character over to the Ragdoll State Manager.

Network Replication and the 3v3 Demonstration Mode

Because the framework is built specifically for networked titles, all hit registrations, defensive blocks, state transitions, and ragdoll events are fully replicated across client and server boundaries. The system avoids client-authoritative vulnerabilities by ensuring that damage events, guard checks, and lock-on verifications execute reliably within a synchronized multiplayer environment.

To provide immediate testing grounds, the package includes an out-of-the-box three-versus-three game mode. The match environment does not require a full roster of human testers to evaluate balance; integrated AI bots automatically spawn to fill remaining slots on both teams. This automated match populator lets creators immediately benchmark hit tracing accuracy, projectile replication, and synced finishers under active match conditions.

The system serves as a multiplayer adaptation of the single-player beat 'em up framework found in the Basic Melee Combat System, streamlining certain single-player mechanics while introducing replication, bot integration, and modular component structures. For teams managing broader combat workflows, the system also functions alongside the Advanced Action Combat System, providing a reliable blueprint foundation for networked action prototypes.

Explore Similar Assets

Free Download

Download this resource

Log in or create a free account to start your download.

Resources are manually reviewed before listing to improve quality and reduce obvious risks.

Resource archiveContent.7z

Related resources