added a cooldown component for the gun.