blueprint

Equipped Weapon Parent Class

  • Exposure: public
  • UE Version: 4.18

avatar author

Tiny Demon

April 25, 2018, 9:28 pm

Click the button above, it will automatically copy blueprint in your clipboard. Then in Unreal Engine blueprint editor, paste it with ctrl + v

1 comment

  • avatar author

    Tiny Demon

    April 25, 2018, 9:41 pm

    This blueprint is the parent class for my equipped weapon classes.

    All of the weapons in this game inherit from two weapon types : Pickup or Equipped.

    Pickup weapons or the types the player sees laid about the level, the only thing they do is keep a reference to the class of their equipped counter part. (For example, the Pickup Assault Rifle knows what its equipped "variant" is.)

    When a player picks up a Pickup Weapon, the Equipped variant is spawned and attached to the player.

    Theses classes actually handle firing logic, ammo, spread, and deal damage to the enemies in the game.

    Right now there are nine different weapons but this structure allows to easily implement more types of weapons by changing a few variables and swapping in a new mesh.