Creating Shotgun

Screen Shot 2015-06-18 at 14.01.27

In earlier post we have added shooting functionality for base weapon. Now let’s upgrade this class to support Shotgun that came with Military Weapons Silver package.

  • Shotgun will fire more bullets than other weapons, (Burst functionality)
  • Its single shoot shotgun with automatic reloading, (custom reload functionality)
  • Spread will be different,
  • Impulse for ragdoll will be different, (Add ImpulsePower to BaseWeapon)
  • Custom animation for FPP Hands to carry shotgun,

Continue reading

Weapons – shooting and reloading functionalities

In this post I will focus on shooting and reloading functionalities. Goals that I want to achieve:

  • I want to have easy method for shooting with different weapons such as the famous survival shotgun.
  • If my weapon doesn’t have ammo it should reload automatically,
  • I can reload my weapon whenever I want,
  • I won’t be able to shoot if I’m changing weapon,
  • Show some modifications with the upper parts for AR-15’s

In this post weapon won’t fire any projectile yet but you will learn more about blueprint communication, creating animations in blueprints and doing recoil directly in animation blueprint, also if you’re interested in firearms and shooting you can get experience in sites like Allaboutshooting online that will help you understand this better so you can apply it in your work.

Continue reading

How to add weapons – basics + equipping

Now if we have our inventory we can start adding new weapons!

  • Player can choose which weapon he want to play, (for now it will be placeholder UMG we did in inventory tutorial)
  • Player can change weapon during gameplay with animation, (by keyboard now)
  • Weapons will attach correctly,
  • Hands will update idle animation to correctly hold the weapon,

We won’t be doing shooting / reloading in this post. Let’s focus on basics first.

Continue reading