What’s the best OOP structure for a dense system with many components

Hello, I’ll get straight to the point; I’ve found myself in a bit of a pickle with the way I structure my code in an object-oriented manner, since I have a lot of components/modules to make my way of implementing them together is pretty weird; my code ends up being unorganized sometimes and I feel like the way I structure my project is bad.My main objective is to have a module that can be used to handle all sides of the game’s combat, this module will be used by different weapons to implement their version of the combat to make it specific to them, the way I initially went about is using a composition-based system where I would organize my classes into modules and folders and require & set up the logic in the main module. But I’m not sure how to go about it, should I have a middle class to do all of this & relate the modules? Help is appreciated.