Custom Guns: Difference between revisions

From Pavlov VR Wiki
Jump to navigation Jump to search
No edit summary
No edit summary
Line 26: Line 26:


They can be imported like any other meshes. The gun mesh is a skeletal mesh while the rest are normal static meshes.
They can be imported like any other meshes. The gun mesh is a skeletal mesh while the rest are normal static meshes.
[[File:CustomGunsSetup1.png|left|614x614px|Example for the AK47|frameless]]
[[File:CustomGunsSetup1.png|left|Example for the AK47|frameless]]
 
 
 
 





Revision as of 11:53, 29 April 2023

Imhttps://mod.io/g/pavlov/r/custom-gun-guide

If you are simply adding a premade custom weapon then most will come with a guide on how to, this guide is not for you.

Before making a custom gun you must be setup, in order to set up you will need to follow the steps below.

Setup to making a Custom Gun

In order to make a custom gun you will need to do 4 things.


1) Importing assets

2) Edit the phsyics assets

3) Edit the skeleton asset

4) Create the animation BP


You're expected to know some Unreal Engine basics.

Importing Assets

When importing assets it should be known that you will usually have 5 main assets to create a custom gun: gun mesh, magazine mesh (full and empty), shell casing (full and empty).

They can be imported like any other meshes. The gun mesh is a skeletal mesh while the rest are normal static meshes.

Example for the AK47


The bone names for the gun mesh can be anything, but it's good practice to follow the format CustomMapTools/PavExamples/Guns/M4/SK_M4v2_Skeleton.uasset

Editing the physics assets

Open the physics asset and enable primitives in the top left like below

CustomGunsSetup2.png