The March sale is here! Save 50% on select products now through March 21.

Rama's Melee Weapon Plugin

Rama - Code Plugins - May 23, 2016
37
4.73 out of 5 stars(37 ratings)
  • 89%
  • 3%
  • 3%
  • 3%
  • 3%

This plugin adds a melee weapon system to your game with customizable per-bone collision detection!

  • Supported Platforms
  • Supported Engine Versions
    4.11 - 4.27, 5.0 - 5.3
  • Download Type
    Engine Plugin
    This product contains a code plugin, complete with pre-built binaries and all its source code that integrates with Unreal Engine, which can be installed to an engine version of your choice then enabled on a per-project basis.
~~~~~~~~~~~~~~~~~~~~~~~~~~~~** The UE5 Update Is Complete!!!! **~~~~~~~~~~~~~~~~~~~~~~~~~~~~UE5 Video: https://www.youtube.com/watch?v=SH3yhIXEJQ0

I had to do a full re-coding of the plugin to make the transition to the Joyful Chaos Engine, and do some fancy tricks under the hood to get everything working in this early UE5 release, but it is all done now! Woohooo! ♥ Rama


Plugin Tutorial Video Playlist

https://www.youtube.com/watch?v=aufEB4TCf30&list=PLanD4oBjFkL9PMvxrUJIzvrIBxuw_Pbpi&ab_channel=RamaUE4Plugins


Sample Project for UE5


Unreal Engine 5 Sample Project That Demonstrates New Features (Requires That You Have The Plugin Already)

http://www.lightningfitness.org/ue4code/RamaMeleeWeapon_Project_UE5_requiresplugin.zip


1. Press the v key to change between 3 weapons using only data assets, and a single Rama Melee Weapon Component!


2. The new DataAsset feature I've added, along with the function SetRamaMeleeWeapon, makes it easy for you to have 100s of weapons available on a single actual Rama Melee Component, and also make your full weapon inventory available to every Blueprint of Every Character, with a single variable!


3. Initial Overlaps on SwingStart (The SwingStart happens when the shapes are already within another actor) can now be included using the new feature, see Tech Specs for more exact info!






Rama Entertainment Videos (REVs)






UE5 Video With Chaos Engine C++ Code Explanationhttps://www.youtube.com/watch?v=SH3yhIXEJQ0


This video is a must-watch for those of you transitioning to UE5! I explain the new features I added in UE5!


Annnnd,


For all you Lovely Unreal Engine C++ programmers, or those interested in learning C++, I give you a description of the code changes I had to make, a full rewrite of the plugin, to work with UE5's Chaos Engine!


Enjoy!



Rama












UE4

Preview: youtube.com/watch?v=aufEB4TCf30


Video Documentation

Intro

Part 1

Part 2

Part 3


Updates:

See Technical info section


Rama's Melee Weapon plugin has these powerful Features:


1. Ability to specify exactly which parts of a weapon’s physics asset deal damage.


2. Complete control over which parts of a swing animation deal the damage, allowing you to ignore the wind up and wind down from a swing animation, through the use of UE4 animation notifies.


3. Per-bone accuracy, so you can know exactly which bones of a character mesh were hit by the weapon!


4. My very own custom PhysX core coding, so that efficient volume shapes are used to represent the weapon’s collision as it swings through the air. I went deep into Nvidia’s PhysX system and wrote a lot of custom code to make this system as efficient and customizeable as possible! I added a lot of code to draw PhysX shapes in the editor and during runtime so you can see exactly what my Rama Melee Plugin is doing!


5. The whole system can be utilized entirely in Blueprints, but my plugin includes all the source code so you can extend every part of my system, including the hardcore PhysX coding! I have many videos demonstrating the usefulness and mechanics of this plugin here.

Technical Details

Intended Platforms: Any platform the UE5 Chaos Engine works with :)

Platforms Tested: Desktop


Important\Additional Notes: Entire C++ source code is included!


Updates:

6/7/2016 ~ Hit results now return the physical material that was struck by the melee weapon!


8/27/2016 ~ The physics asset shape index is now returned with the Weapon Hit event so you can apply custom damage amounts based on which weapon shape made contact!


5/13/2018 ~ Deep Tracing is now an optional feature for use with weapons that pass through everything they hit very fast and you want to report all hits, even within a single trace tick (think Lightning Sword). See related Product Picture for more info! ♥ Rama


~~~ UE5 ~~~

4/22/2022

Include Initial Overlaps During Swing Start ~ allows you to return a hit event if SwingStart happens when the melee weapon is already inside of a target actor, you can turn this feature on or off during runtime!


Draw Shape Indices ~ Makes setting up the damage map much more intuitive!


New Data Assets ~ So that you can have just a single Rama Melee Component, and change the mesh/DamageMap using SetRamaMeleeWeapon function