added cooldown to the weapon component

also worked around the ignorecollider not recognizing the gameobject's
collider.
this behaviour should be changed.