GithubHelp home page GithubHelp logo

ziqirubik / covergenerator-ue4 Goto Github PK

View Code? Open in Web Editor NEW

This project forked from deams51/covergenerator-ue4

0.0 0.0 0.0 57 KB

A dynamic cover point generator plugin for Unreal Engine 4.

License: MIT License

C# 1.44% C++ 98.56%

covergenerator-ue4's Introduction

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.

The plugin is a proof of concept only. It is stable but not production ready, a lot could be optimized and a good cleaning is needed.

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

  • Press the "simulate" button. 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 see or 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

How to get cover points from a Blueprint?

Blueprint Example

covergenerator-ue4's People

Contributors

deams51 avatar viktor1998new avatar mhoangvslev avatar s-ivan avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.