UMG: Change weapon panel

This will be more advanced post but you will learn a lot about UMG->Blueprint communication. Here are my goals:

  • Draw all slot weapons informations,
  • Change weapons from UMG panel,
  • Will work on PC and Touch,
  • Player shouldn’t be able to choose weapon which don’t have ammo,
  • Player should see which weapon is currently equipped,
  • When choosing weapons do slomo and DOF effect,

Lot’s of great stuff do to!  Continue reading

Creating Sniper Rifle

sniperscreen

As I wrote earlier will try to implement all of the weapons from Military Silver Pack. Next in line is Sniper Rifle. Again we would need to implement new functionality to BaseWeapon – second fire. In this case second fire will trigger sniper scope.

  • Sniper Rifle should have zoom and sniper scope functionality,
  • I want to have “bullet time” effect triggered sometimes, (camera chasing bullet),
  • Use BaseWeapon functionalities to drive the weapon,

Lot of new stuff coming here.

Continue reading

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

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