Skip to content

A dynamic cover point generator plugin for Unreal Engine 4.

License

Notifications You must be signed in to change notification settings

Helical-Games/CoverGenerator-UE4

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Cover Generator

The cover generator is a plugin for Unreal Engine 4.

Example Covers

It analyzes the geometry of a level to find possible cover points. Cover points can then be parsed via the native Environment Query System (EQS) to allow AI controlled characters to find spots to hide during a fight or to prepare an ambush.

The system offers different set of information per generated cover such as if it is a crouched or standing cover, if the character can stand or lean on the sides to shoot.

Example video of AI using the cover generator

Dynamic tactical cover generation coupled with a GOAP AI

How to use the cover generator?

  • Add the plugin to your project

  • The cover generator is using the native nav mesh bounds volume of a level to generate the covers, so if you do not already have one in the scene, add a nav mesh bounds volume to your level.

Add a nav mesh bound volume

  • You can see the generated navigation mesh by pressing 'P' on your keyboard.

Visualize the navigation mesh

  • Create a CoverGenerator blueprint and drop it in your level

Create a CoverGenerator blueprint

  • By default, the cover generator will generate the cover points on begin play. To visualize the generated points, click on the cover generator actor in your scene and tick the option "Debug Draw All Points"

Display generated cover points

  • You can see the result on the image below. Blue spheres represent cover points, the lowest ones for crouched covers, the highest ones for standing covers. Arrows are representing from where the character can shoot.

Simulating level

  • To be able to use the generated covers in your AI logic, first enable the Environment Query System: UE4 quick start guide

  • Create a new EQS query

Create a new EQS Query

  • Select "Cover FMemory" as a source of points

Cover FMemory

  • You can use an EQS Testing pawn to visualize the result

EQS testing pawn

About

A dynamic cover point generator plugin for Unreal Engine 4.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • C++ 97.8%
  • C# 2.2%