CBenoit / cave-fortress

A game about a rabbit protecting his carrots in a cave.
1 stars 1 forks source link

Reseting weapon properties by weapon switching #11

Closed CBenoit closed 7 years ago

CBenoit commented 7 years ago

For instance, you can spam shotgun by weapon switching or switching to build mode. This allow cooldown bypassing. Maybe keep weapons nodes alive instead of freeing them? Propose solutions here.

bloodre commented 7 years ago

Adding a bool within the weapon ensuring it's clear to switch?

CBenoit commented 7 years ago

I think it may damage the gameplay. If we make a weapon with a long cooldown, the player would not be able to shoot at all during that time. But we can probably remove the node from the character WITHOUT freeing it. And instead of working with scenes to instance, we could add and remove already instanciated weapons. I'm not sure it will work though.

CBenoit commented 7 years ago

Fixed by https://github.com/CBenoit/cave-fortress/commit/5da084d705ece66e97498e34d7ab8cf544e39b1b.