Is somewhere a tutorial for where to put properly your game logic for coop game ?

Hello, i am kinda new to blueprints and watched YT videos on how to replicate, but nobody mentions small details like not to use GameModeBase but GameMode or GameStateBase but GameState.
Most people on YT program multiplayer logic trough Custom events and put them all into character.
Is there an tutorial or good explanation where to put each type of variables ?
I would like to learn how to properly set up an coop game and when one player is listen server how to handle respawns, where to put savings as structs, who to hold variables for players as health and ammo. What to put into pawn, controller or game state.
For example i have a strange bug now (because of my lack of understanding of BP networking) that each player in coop is using battery of another player for a flashlight.

GameModeBase is the parent of GameMode
GameStateBase is the parent of GameState

So using GameMode is the same to use GameModeBase…

You don’t need to put the same logic in all the characters… Make a parent with the logic, and the rest of the characters make them childs.

Look for a tutorial about inheritance and polymorphism in C++. That is exactly what you need.

Then you can watch this series of multiplayer tutorials.

There are many pieces of logic that you could put into actor components.

Personally I think that a good organization of the project and the files is almost more important than knowing how to program.

You really have to be careful with youtube tutorials… Each programmer does what he wants and it is not always the best.

Unreal uses many design patterns. They are the best way to do things. Unreal has already organized everything for you.

You just have to learn to use the tools they have given you.

Best regards!!