[BP Asset] Simple Montage Melee

What is it?
A simple to use, easy to extend montage linking system for UE4 4.13. Intended for basic melee combat, but can be used for any other “fire and forget” montage in a Character based BP class. SMM allows you to quickly support combat animations (provided you have them), but doesn’t support any advanced features of a combat system. The example character will come with everything it needs, except a mesh and animations, to work. **Keep in mind that without a character mesh and animations, you’ll only be able to walk around- not attack anything. **Probably able to work with almost any other non-animation system.

What does it come with?

  • Melee Chain Component which processes the request
  • Base Melee Character interface which means you don’t have to use my specific character
  • 2 Custom Animation Notifies (which can be used with any skeleton; these work just like the “Play Sound” notifies- automatically.)
  • 2 Enums, 1 Structure, and a Data Table (where you define new player attacks)
  • Basic Print String wrapper to log debug information. (It’s nothing special, but you might consider this a bonus. )
  • Severalhelper functions for dealing with the melee chain component.

What are the limitations?

How do I set it up?

  1. Download the project below.
  2. Open up the folder in your OS (or you can migrate from inside UE4), and copy over the content folder to your project’s content folder. Nothing important is in the Config folder.
  3. Open your project.
  4. In your character class, add a “MeleeChainComponent”.
  5. Implement the BPI_BaseMeleeCharacter interface. Be sure you add the events and fill in the functions.
  6. In the “DT_MeleeAttacks” data table, add new rows for any/all attacks you want to define.
  7. Pick out your animations- these need to be AnimMontages, and should only have one AnimSequence.
  8. Add the defined notifies to your montage.
  9. In the data table, set the montage- and if you setup the notifies, check “UsesNotifies”. Define your stamina costs and damage as well.
  10. In your character class, when you want to try to attack, call “Process New Attack” on the MeleeChainComponent.
  11. Change the settings to suit you- these are in the details pane of the component.
  12. Set your meshes up, and your animation BP if it’s not already.
  13. Drop a “BP_Dummy” into the level, when you attack it, it should add up all the damage you’ve done!!

But it’s not working!

  • The animation is not playing, but the log doesn’t give me an error message!

  • Make sure the Montage and the AnimBP are using the same slot, and that you are using an animation BP.

  • The log says the attack isn’t defined!

  • Make sure you set the montage reference in a valid row in the “DT_MeleeAttacks” data table

  • I can’t attack very quickly!

  • Try changing the interrupt handling setting to “WhenDamageDisabled”, or (and I don’t suggest using this) “Anytime”.

  • Damage isn’t applying / Stamina isn’t dropping / I can’t lock on / I can’t change weapons!

  • These functionalities are not included.

What’s the point?
I saw that there wasn’t really a “super simple” melee system. To be honest, you’re probably better off learning how to do something like this yourself, but if you don’t have the time and don’t need a lot of features, this might help.

Versions
v1 (4.13)- 10/27/2016 - Download

[SIZE=5]Changelists
-NONE-[/SIZE]

Ah , very nice work. I’m also looking for this.

Very cool stuff, Dev. Y’all should get this!! :D:D

I’m going to re-do the video at some point, but I’m currently busy with other things.