# \[Updated\] Dark Souls style fighting system | Gladiators WIP

**URL:** <https://forums.unrealengine.com/t/updated-dark-souls-style-fighting-system-gladiators-wip/9221>\
**Category:** Game Development\
**Tags:** unreal-engine\
**Created:** [August 11, 2014, 8:43pm UTC](https://forums.unrealengine.com/t/updated-dark-souls-style-fighting-system-gladiators-wip/9221 "2014-08-11T20:43:48Z")\
**Posts on this page:** 20\
**Page:** 2

<div class="post-metadata">

**Author:** ![anonymous\_user\_dd39676f1](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_dd39676f1](https://forums.unrealengine.com/u/anonymous_user_dd39676f1)\
**Post date:** [October 22, 2014, 2:05am UTC](https://forums.unrealengine.com/t/updated-dark-souls-style-fighting-system-gladiators-wip/9221/21 "2014-10-22T02:05:41Z")

</div>

> [@Nesjett;150246](#):
>
> Thank you very much, I love to see you liked it.
> 
> About the tutorials, I dont have time right now so I wont be doing them in a short time, maybe in the future, but if you have any questions Ill try to reply to them.  
> The focus system is uncompleted for now, but basicaly I update the player rotation each tick to make him face his target, and the health bar is just toke from one of the content examples, mixed with another one, you can take a look on them.
> 
> For those of you that like the project, my outcoming next title will be this:
> 
> You can donwload an accelerated beta (just till first boss) here:[48h game made | download beta | dual stick shooter | very difficult - Game Development - Epic Developer Community Forums](https://forums.unrealengine.com/showthread.php?44268-48h-game-made-download-beta-dual-stick-shooter-very-difficult&p=150251#post150251) and later Ill be making some kind of pool to decide my next title!
> 
> Thanks 🙂

Great work so far…

As for focus mode, do you mind sharing that blueprint (screen image)? I understand the rotation based on target, but I’m wondering exactly how you’re going about keeping the target while focused.

Do you have the camera automatically rotate to keep the target in front? Are you also making the camera keep both the player and target in frame?

thanks in advance

---

<div class="post-metadata">

**Author:** ![Nesjett](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/nesjett/32/918631_2.png) [@Nesjett](https://forums.unrealengine.com/u/Nesjett)\
**Post date:** [October 23, 2014, 10:59pm UTC](https://forums.unrealengine.com/t/updated-dark-souls-style-fighting-system-gladiators-wip/9221/22 "2014-10-23T22:59:55Z")

</div>

Hi Shirts, the targetting system is not finished, because we were not sure if we will be implementing it on the final project, but what you can see on the video is simple, I have a variable and I just keep the actor I targeted there.

Then, in the event tick Im updating the camera rotation to point to this target location.

Target and untarget is as simple as emptying the target variable

If you still need the BP image I can look for it, but I think somewhere in this forum someone made an shared a finished targeting system, look for somethink related to RPG

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_dd39676f1](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_dd39676f1](https://forums.unrealengine.com/u/anonymous_user_dd39676f1)\
**Post date:** [October 27, 2014, 7:24pm UTC](https://forums.unrealengine.com/t/updated-dark-souls-style-fighting-system-gladiators-wip/9221/23 "2014-10-27T19:24:24Z")

</div>

> [@Nesjett;168592](#):
>
> Hi Shirts, the targetting system is not finished, because we were not sure if we will be implementing it on the final project, but what you can see on the video is simple, I have a variable and I just keep the actor I targeted there.
> 
> Then, in the event tick Im updating the camera rotation to point to this target location.
> 
> Target and untarget is as simple as emptying the target variable
> 
> If you still need the BP image I can look for it, but I think somewhere in this forum someone made an shared a finished targeting system, look for somethink related to RPG

Thanks for the response. I was able to set up the targeting.

Cheers,

-S

---

<div class="post-metadata">

**Author:** ![Nesjett](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/nesjett/32/918631_2.png) [@Nesjett](https://forums.unrealengine.com/u/Nesjett)\
**Post date:** [October 27, 2014, 9:03pm UTC](https://forums.unrealengine.com/t/updated-dark-souls-style-fighting-system-gladiators-wip/9221/24 "2014-10-27T21:03:51Z")

</div>

Happy to hear this, If you have more questions just ask 🙂

---

<div class="post-metadata">

**Author:** ![wiNt](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@wiNt](https://forums.unrealengine.com/u/wiNt)\
**Post date:** [February 3, 2015, 9:43pm UTC](https://forums.unrealengine.com/t/updated-dark-souls-style-fighting-system-gladiators-wip/9221/25 "2015-02-03T21:43:34Z")

</div>

Incredible work ! I see future here… 🙂

---

<div class="post-metadata">

**Author:** ![TechAnim\_Tools](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/techanim_tools/32/1213818_2.png) [@TechAnim\_Tools](https://forums.unrealengine.com/u/TechAnim_Tools)\
**Post date:** [February 4, 2015, 8:36am UTC](https://forums.unrealengine.com/t/updated-dark-souls-style-fighting-system-gladiators-wip/9221/26 "2015-02-04T08:36:58Z")

</div>

Very very interesting Nesjett and well executed, this is a clear demonstration that Blueprints open up a wide range of different systems without having necessarily knowledge of programming, thats why I love UE4 🙂

Looking forward to see other updates!

---

<div class="post-metadata">

**Author:** ![Nesjett](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/nesjett/32/918631_2.png) [@Nesjett](https://forums.unrealengine.com/u/Nesjett)\
**Post date:** [February 4, 2015, 12:48pm UTC](https://forums.unrealengine.com/t/updated-dark-souls-style-fighting-system-gladiators-wip/9221/27 "2015-02-04T12:48:20Z")

</div>

Thank you guys, as some people requested that to me, Its possible that I finally decide to release it under a price, maybe Ill add a new thread with a poll to see people interests

---

<div class="post-metadata">

**Author:** ![Ihaveaquestionguy](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Ihaveaquestionguy](https://forums.unrealengine.com/u/Ihaveaquestionguy)\
**Post date:** [February 25, 2015, 11:55am UTC](https://forums.unrealengine.com/t/updated-dark-souls-style-fighting-system-gladiators-wip/9221/28 "2015-02-25T11:55:53Z")

</div>

Collision

Hey, can you help me with collision I see when you had hit the character he/she blocked and a resistance type of animation was player, how did you do that? Was it just a physics set up or pre made animation? If it was physics system based, how did you do it box components? If it was a pre-made animation how does it play after an attack how did you set that up?

---

<div class="post-metadata">

**Author:** ![Nesjett](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/nesjett/32/918631_2.png) [@Nesjett](https://forums.unrealengine.com/u/Nesjett)\
**Post date:** [February 25, 2015, 1:09pm UTC](https://forums.unrealengine.com/t/updated-dark-souls-style-fighting-system-gladiators-wip/9221/29 "2015-02-25T13:09:39Z")

</div>

Hi Ihaveaquestionguy, this is just a premade animation.

When the character receives an impact, it reacts with the animation, just a play anim montage, if he´s blocking with the shield then I play another montage.

Shield blocking is just a boolean, if it´s true then I check the direction of the hit, and if the hit came from a “front” angle then I play the block animation.  
This angle calculation could be used to play difrferent hit anims if hitted by backwards or anythink too.

Anyway, the basic blocking system (without stats, etc), but with anims can be downloaded from the couch knights example, trought the marketplace.

---

<div class="post-metadata">

**Author:** ![LDodds](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@LDodds](https://forums.unrealengine.com/u/LDodds)\
**Post date:** [April 9, 2015, 10:31pm UTC](https://forums.unrealengine.com/t/updated-dark-souls-style-fighting-system-gladiators-wip/9221/30 "2015-04-09T22:31:44Z")

</div>

Hey mate Iv seen your video and its awesome, at the moment I am trying to do a similar combat system based on animations as you have.  
But currently mine does not work and I was wondering If i could have some help. 🙂

my sword does not have its own blueprint, its an object in the character blueprint thats attached to a parent socket, and the collision of the sword is childed to the sword itself, both by default have no collision.  
I can play out my sword swing animation just fine,  
I also have set in the anim graph so if attacking is true set collision of the swords collision to the player channel and if attacking is false then set collision to none  
Within character blueprint itself where sword is held iv set up a BeginOverlap and Hit Events but neither fire off when im practically swinging my sword in another characters face or against the wall

Would you mind talking me through this/what im doing wrong?

---

<div class="post-metadata">

**Author:** ![Nesjett](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/nesjett/32/918631_2.png) [@Nesjett](https://forums.unrealengine.com/u/Nesjett)\
**Post date:** [April 10, 2015, 5:10pm UTC](https://forums.unrealengine.com/t/updated-dark-souls-style-fighting-system-gladiators-wip/9221/31 "2015-04-10T17:10:12Z")

</div>

Well, first you should have the isAttacking boolean to be set on your character blueprint, not on the anim blueprint cause its not part of the animation functionality, just do it on the key press event, for example

Second, check your collision presets, you have to make the weapon overlap the pawn object, and be sure that your character has the type “pawn” set on its collision presets (in the character this should be on the capsule component collision presets)

To debug, add a print string node on the onBeginOverlap to see if the problem is on the collision sets or on the hit handlign of your functions

Greetings,

- Nes

---

<div class="post-metadata">

**Author:** ![LDodds](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@LDodds](https://forums.unrealengine.com/u/LDodds)\
**Post date:** [April 10, 2015, 6:30pm UTC](https://forums.unrealengine.com/t/updated-dark-souls-style-fighting-system-gladiators-wip/9221/32 "2015-04-10T18:30:24Z")

</div>

I do have the isAttacking on character, its just checked in anim,  
the animation plays out fine, it just doesnt interact with another character as it should

 ![Screenshot 2015-04-10 19.27.14.png](https://d3kjluh73b9h9o.cloudfront.net/original/3X/2/4/240c61e5e37b708bf04bec33204bf7e28029d0a3.png)  
^Anim graph _I have a custom channel for players_  
 ![Screenshot 2015-04-10 19.27.14.png](https://d3kjluh73b9h9o.cloudfront.net/original/4X/7/5/d/75de019f839be3a6870c6d675226ea93d7e90eb3.png)  
^In character

---

<div class="post-metadata">

**Author:** ![Nesjett](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/nesjett/32/918631_2.png) [@Nesjett](https://forums.unrealengine.com/u/Nesjett)\
**Post date:** [April 11, 2015, 7:24pm UTC](https://forums.unrealengine.com/t/updated-dark-souls-style-fighting-system-gladiators-wip/9221/33 "2015-04-11T19:24:20Z")

</div>

Not sure if thats all the problem, but you are disabling the player collision and never enabling it again

Appart of this, you are doing this with a get player character, at a given index, so this means that only the character with that index will get those nodes executed

---

<div class="post-metadata">

**Author:** ![Jambax](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/jambax/32/904177_2.png) [@Jambax](https://forums.unrealengine.com/u/Jambax)\
**Post date:** [April 11, 2015, 11:06pm UTC](https://forums.unrealengine.com/t/updated-dark-souls-style-fighting-system-gladiators-wip/9221/34 "2015-04-11T23:06:34Z")

</div>

As a lover of the Dark Souls games; this is rad!

I’d be interested to see the AI fighting you back too. Souls had great AI and animation, really felt like you were duelling. Also is it just me, or can I hear the footstep sound constantly throughout the video…

---

<div class="post-metadata">

**Author:** ![Nesjett](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/nesjett/32/918631_2.png) [@Nesjett](https://forums.unrealengine.com/u/Nesjett)\
**Post date:** [April 12, 2015, 7:50am UTC](https://forums.unrealengine.com/t/updated-dark-souls-style-fighting-system-gladiators-wip/9221/35 "2015-04-12T07:50:00Z")

</div>

> [@TheJamsh;269873](#):
>
> As a lover of the Dark Souls games; this is rad!
> 
> I’d be interested to see the AI fighting you back too. Souls had great AI and animation, really felt like you were duelling. Also is it just me, or can I hear the footstep sound constantly throughout the video…

Thank you TheJamsh, currently I´m focusing on making an enviroment for pvp and a little showcase but I would like to develop an advanced boss too.

About the footsteps, it´s true, I think I had the anim blueprint opened and playing the anim on the backside hehe

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_e815e8ea](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_e815e8ea](https://forums.unrealengine.com/u/anonymous_user_e815e8ea)\
**Post date:** [June 28, 2015, 7:52pm UTC](https://forums.unrealengine.com/t/updated-dark-souls-style-fighting-system-gladiators-wip/9221/36 "2015-06-28T19:52:01Z")

</div>

> [@Nesjett;117737](#):
>
> Like said, there are different kinds of shields, anyway, like Im doing a “simple” player vs player online game that is controlled from a third person camera, I cant do shield protection by real collisions, because it has no sense (you cant move the trace of the weapon, its determined by the animation) so making face blocking is the easiest and less expensive way of doing that.
> 
> If youre planning to make a first person fighting game (like chivalry) you will need to make a more accurate blocking system, because in that case the player can alter the trace of his weapon depending on the direction and rotation he´s facing

Great job on this! 😃 I was scrolling through the replies and I was wondering, what exactly is “face blocking”? I haven’t really heard that term before, so I’d like to know :rolleyes:

Thanks! Good luck!

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_e815e8ea](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_e815e8ea](https://forums.unrealengine.com/u/anonymous_user_e815e8ea)\
**Post date:** [June 28, 2015, 8:17pm UTC](https://forums.unrealengine.com/t/updated-dark-souls-style-fighting-system-gladiators-wip/9221/37 "2015-06-28T20:17:31Z")

</div>

Oh, and how do you handle the weapons? I know you said that it’s a separate blueprint, but how exactly do you attach that to the player? Sockets or something? How is the rotation handled when the player’s hand moves? Sorry, all my experience in UE4 lies in 2D XP

Thanks again!

---

<div class="post-metadata">

**Author:** ![Nesjett](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/nesjett/32/918631_2.png) [@Nesjett](https://forums.unrealengine.com/u/Nesjett)\
**Post date:** [June 30, 2015, 12:05pm UTC](https://forums.unrealengine.com/t/updated-dark-souls-style-fighting-system-gladiators-wip/9221/38 "2015-06-30T12:05:13Z")

</div>

Hi paragonx9, about the shield, “face blocking” means that it relies on where the hit came from, in other words, if both players are facing each other, the shield will block the attack, but if the attaquer is placed on the blocker side, then it will hurt.

How it works? just taking into account the angle between the blocker forward vector and the attacker position.  
For sure you can improve this sistem with some tweaks for better accuracy.

About the weapons, yes, Im attaching them to shockets, but you dont have to care abaout shockets cause they moves and rotates equal to the bone where it´s attached.  
Well, maybe you have to care about it, but not in the editor, just when you are animating the esqueleton.

---

<div class="post-metadata">

**Author:** ![AlphaHemi](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@AlphaHemi](https://forums.unrealengine.com/u/AlphaHemi)\
**Post date:** [December 26, 2015, 2:40pm UTC](https://forums.unrealengine.com/t/updated-dark-souls-style-fighting-system-gladiators-wip/9221/39 "2015-12-26T14:40:44Z")

</div>

Is this system for sale anywhere? I’d very much like to Learn from it if at all possible. I’d be willing to pay whatever you think is fair.

---

<div class="post-metadata">

**Author:** ![KrunkFu](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@KrunkFu](https://forums.unrealengine.com/u/KrunkFu)\
**Post date:** [January 3, 2016, 8:23am UTC](https://forums.unrealengine.com/t/updated-dark-souls-style-fighting-system-gladiators-wip/9221/40 "2016-01-03T08:23:52Z")

</div>

Yeah I would pay too just to be able to pick this apart and learn from it.

[Previous page](https://forums.unrealengine.com/t/updated-dark-souls-style-fighting-system-gladiators-wip/9221.md?page=1)

[Next page](https://forums.unrealengine.com/t/updated-dark-souls-style-fighting-system-gladiators-wip/9221.md?page=3)
