Godot Version
4.3
How to design FPS Weapon System
Hey everyone, I am currently working on a FPS game that features a lot of different weapons with many different behaviours (think Enter The Gungeon).
I have a finite state machine for the player, which so far only manages movement states like idle, running, jumping etc.
I need help coming up with a weapon system that
- Allows weapons to react to the players movement state (to play the appropriate animations)
- Allows for custom shooting logic for each weapon.
Should I create a second state machine for just the weapon related actions like shooting, reloading? But how to integrate it with the existing movement state machine?
I hope someone has a good suggestion, thanks in advance for tips.