Third-Person Cover System

An Unreal Engine 5 project built upon ALS v4.

A cover mechanic inspired by Grand Theft Auto & Red Dead Redemption series.

Key Features

  • Context-Sensitive Cover Attachment
  • Corner Navigation
  • Free look, aim, and shoot while in cover

Description

This project implements a cover system in Unreal Engine 5, allowing the player to attach to walls and traverse along them laterally while maintaining the ability to free look, aim, and shoot. The mechanic is inspired by the cover systems found in the Grand Theft Auto and Red Dead Redemption series.

Technology Used

  • Unreal Engine 5
  • Advanced Locomotion System V4
  • Blueprints

Development & Features

  • Context-Sensitive Cover Attachment: The system can detect nearby walls and automatically align for cover when the player presses a designated key.
  • Corner Navigation: The player can move around corners without detaching from cover, keeping players engaged and in control of their stealth or combat strategies.

Functionality Overview

  • Collision Detection: The system identifies potential cover by using collision detection to sense proximity to a wall.
  • Input Response: Upon pressing the 'E' key near a wall, it confirms if the wall qualifies for cover based on its range and the character's angle to it.
  • Alignment with Cover: The character snaps into place against the wall, aligning with the wall's normal to ensure a flush and realistic attachment.
  • Movement Control: While in cover, the character can move side to side along the wall but is restricted from moving away, thanks to an orientation lock and a 'pull force' that keeps the character against the wall's surface.
  • State Management: The system's logic maintains the cover state, allowing the character to transition between actions like idle and crouching without breaking cover.

Video

Demonstration of the Third-Person Cover System in action.

Tools Used

Engine: Unreal Engine 5

Language: Blueprints