Hello, I'm having trouble implementing melee weapons in an entity component system and I was hoping you could help me.
Firstly, I made an inventory component to hold all my different weapon entities. Each weapon entity contains a WeaponComponent that holds its firerate, clipsize, accuracy, etc.. A shooting system then creates a projectile based on the properties of the weapon component. This worked pretty well, as I was able to add lots of different kinds of firearms easily. When I tried to implement a melee weapon though i was stumped. Could you please point me in the right direction here guys :/
Maybe this'll help:
if is shooting and inventory.isReloaded
Edited by camel rider, 06 March 2014 - 11:57 AM.