
THE COMBAT SYSTEM

.When creating the combat system I learnt how to make anim notifies which then became 3 out of the 4 key aspects to my combat system.
Â
.the first two are called AnimMeleeComboStart and AnimComboEnd these control when the player can continue the combat system.
​
.The next one is how the player actually hits the ai called notify kick trace-this allows me to customize exactly when the players attack trade will start.
​
.learnt about blueprint interfaces-the example interface I will be using here is my KickInterTrace a quick example of what it does is find where the socket for the start of the trace is and where the socket for the end of the trace is.
Here as you can see I can customize the timings on the combat system this took a while to create as I wanted to make the user FEEL like the combat system is smooth and the animations flow together without making it feel like the combat system was hard to continue

ComboStart/ End
KickTrace
When it came to the kick trace it wasn't as simple as the anim notify because this is not even a notify this is an INTERFACE, I found learning how to do interfaces incredibly fun and the way this one works is that it has two functions Start Kick Trace and Stop Kick Trace, in order to trace the exact body part I wanted I duplicated the bones I wanted, for example in my game my character uses their feet the most so I find a bone from the start of the leg and duplicate that, I find one from the end of the leg where it connects to the knee and duplicate that bone, then I put the start and end into these bones and this allows me to customize exactly where I want to start the trace so the player can actually do damage.Â



Takedown

The takedown system in my game is something i am very proud of and glad i took the time to learn it as shown in this example demo

To make to make the takedown system snap onto the back of the enemy I first made a BPI that made it so whenever the function is called it will do the animation and then cause the ai to ragdoll, you may be asking "what is this background image?" the background image shows the ai and what I call the assassination reference this is the mesh behind the ai that is already in a paused animated stance, when the player presses the assassination button the bpi checks where the assissinaton reference is and pulls the player into this,Â
I believe when you create games you are not just coding for yourself you want to make the game enjoyable for the player and make it immersive so when I practice systems like this I keep it in mind it wouldnt be good if the player just phased through the ai so I snap the player in place and make it look like a natural assassination.