Creating New Items
NOTE: I need two Masters one for skeletal meshes and one for static meshes because the Root Component has to be a mesh for Physics to be Properly Replicated. This is why I made the Logic a Component!
First off, this only applies to those who want to use the Bonus Item Handling System that is an addition to the System not a Core Component of it such as the Dynamic Additive Overlay (Which is why the project is called GASP-DAO not GASP-ItemHandlingSystem). In the /All/Game/DAO/Blueprints/HeldObjects folder, you will find two Master Blueprints, one is for Skeletal Meshes and one is for Static Meshes. The reason I needed two is because it is not possible to Dynamically Swap Root Components after the Blueprint has been created or during Run-Time, it's a limitation of the Unreal Engine Backend Systems. Go to this folder if you need an item that isn't a gun and create a child of this for your item.

I will assume going forward that your making a Gun, the setup is the same, the only difference being that the Guns require some extra steps to setup properly. NOTE: You could just add the AC_HeldObject_Master to your Item Blueprint if you already have one. My Pickup logic looks for Objects of Type Pickup though! In the /All/Game/DAO/Blueprints/HeldObjects/Guns folder, create a child of the SK (Skeletal Mesh) or SM (Static Mesh) Gun Blueprint. This will of course depend on if your items will be Static Meshes or Skeletal Meshes.

Assign your Skeletal/Static Mesh to the Root Component. Open it up and add a socket at the end of the barrel.

The Socket Name should match that of the Aim Socket Name on both the AC_Gun (If your using it) and the AC_HeldObject_Master (If your not using it then following this Guide won't make much sense).

On the AC_HeldObject_Master assign it a Gameplay Tag which will be used throughout the System to Track, and Holster it.

Override the CharDataChooser, we will use this to store the Char Data containing information relevant to each character where needed. It's worth noting that if your careful your characters can easily share these assets as long as their Anatomy doesn't differ significantly. You may also in some situations want specific characters to have different Animation Sets and Layering Settings or even Montages, this structure supports Variety.

This is not a comprehensive guide to using or creating choosers, but inside this function is where it would go. You can handle it differently if you want but the Result is expected to be of type PDA_ItemCharData.

For this situation I will Duplicate the M4A1 Chooser and Repurpose it (Found in /All/Game/DAO/Blueprints/HeldObjects/Guns/M4A1 Folder).

In the Chooser under the Character Tag for my Character I will Assign a PDA_ItemCharData Data Asset for my Character. In this case I duplicated the M4A1 since this is a Rifle I should be able to Repurpose a lot of the Data.

Already you should start seeing results. The offsets shown are caused by the differences in Origin as well as the Different Structure of the Rifle Compared to the ProtoType that comes with the Project.

Go to the Live Retargeted Characters Section under this one to continue
Last updated