Tag: C++
-
Custom Clustering Algorithm Defining Deadly Areas For NPC in Unreal Engine Game
In this post I will demonstrate my custom implementation of a clustering algorithm in Unreal Engine C++. I used this clustering in my game to determine the deadly areas for NPC to enhance its AI so that NPC could avoid or consider these areas in some other way (e.g. proactively attack the area in a…
-
Applying Custom NavModifierVolume and NavArea_Obstacle With Different Costs During Game in Unreal Engine
The solution I’d like to demonstrate allows to modify Navigation Mesh during game to allow NPC avoid high-cost areas. This is how it looks in game (when debugging NavMesh): The NavModifierVolume was added during a game after an NPC was killed in that area. After that the NPC does not want to come close to…
-
Combat Intelligence: Predicting Ranged Attacks in Unreal Engine Game
I’d like to share a solution that notifies about a possible attack with a ranged weapon. I use this approach in my game. In its core, this solution (I’ll call it “the Enemy Attack Prediction System”) extrapolates movement of pawns (e.g. Hero and Enemy), and it notifies the victim if there is a range weapon…
-
Implementing Weapon Raycasting for Unreal Engine Lyra-Based Third-Person Shooter Games
In this post, I’ll demonstrate how I implemented weapon-based raycasting (line tracing from weapon) as an alternative to the default center-screen approach. Here is the in-game demonstration of the solution (from 1:04, 13 seconds). Red dynamic crosshair points to the actual hit location: Handled Challenges Ranged weapon vs screen raycasting hit locations (e.g. shooting…
-
Generate Bitcoin HD Wallet Addresses Using libbitcoit-system with Boost in C++ in Linux
This is my very small but challenging (for me) pet project that can be named “Hello bitcoin World!” that I made in a day having no prior knowledge about it from a programming point of view. It is not related to Unreal Engine. Idea: Create a C++ function that generates a hierarchical deterministic wallet (HD…