How to make diffrent ammo types?

I think the way I would go about this is first by creating an enum class for each weapon type as a separated header so I can easily include it in different classes and inside the weapon class, I can decide the type of weapon for every weapon class. Next, I think I would make an enum for each ammo type(Assault Rifle, SMG, Sniper, etc) that will include the subclasses of each ammo type(AR->FMJ/TRACER, SMG->blabla/blabla). Inside each weapon class, I’d declare a TMAP take takes an ammo type enum and an int for the amount. You can initialize the amount the play starts with, and make input to switch between them. Not sure if this was of help or is the best way to go about this, but yeah :slight_smile:

1 Like