Remade spawn logic

*A LOT OF STUFF
*Nothing new
Merge remote-tracking branch 'origin/fix_remake_spawnlogic' into develop