Custom Weapons in UFPS

Sharing is caring:

Learn to Use Custom Weapons in UFPS

In this UFPS video we’ll be creating a custom weapon using an M4 rifle. You’ll need a few files to get started which are located below this description. You’ll need the “Modern Weapon Pack” and the “M41” soundclip. We’ll be modifying the pistol prefab provided by UFPS to add in our own custom weapon.

Adjust the size of the textures applied to the mesh of the pistol prefab and you’ll be able to “remove” the pistol and keep the arm mesh intact and visible. Position the rifle to fit the hand of the arm and resize it so that it fits proportionally to the arm mesh. Once the rifle is positioned correctly we’ll create a prefab that we can use later on.

We’ll also create a couple of unique items to be used with the new inventory system in UFPS. First we’ll need a “unit bank” for the M4 rifle and this is where we’ll set the amount of bullets it can fire before needing to reload. For the “units”, which are essentially any ammo type, we’ll just use the default “bullet” that’s used for pistols.

Once all that is setup we’ll go into the settings and start tweaking things. Since we’re using the default pistol as our base we’ll need to adjust a few things like the recoil, the position of the rifle, muzzle flash and sound clips to name a few. In later videos we’ll continue with this same weapon and tweak other things like the zoom states and even look at how we can add in scopes.


Assets Used

M4 Soundclip:

Modern Weapons Pack:!/content/14233


Jonathan Gonzalez

I love all things in game development and want to contribute by teaching others how to create games. I'm always looking to help others create awesome digital worlds. I've been a hardcore gamer since I was a kid and now it's my turn to create awesome digital experiences.

More Posts - Website

Follow Me:


  1. This is very interesting, You are an overly skilled blogger.
    I have joined your rss feed and stay up for in quest of
    extra of your excellent post. Additionally, I have shared
    your site in my social networks

Speak Your Mind