Not 100% sure on this. It would mean that any time an action happened, the server would have to check how many players were on your team, seems like it could be abused if one of the teams is stacking, and if you've set off all your upgrades before 5 people suddenly join, the game will be massively out of kilter.
Nice idea in theory, but in practice? I don't think it would work.
This could be efficiently implemented by tying an event to player leave/join team which checks the number of total players (while also checking the number of team players), and adjusts a factor. This factor (which could be 1.3 for small teams, or 1.0 otherwise) would be applied to the res/build points/etc. gained each tick.
Comments
Nice idea in theory, but in practice? I don't think it would work.
This could be efficiently implemented by tying an event to player leave/join team which checks the number of total players (while also checking the number of team players), and adjusts a factor. This factor (which could be 1.3 for small teams, or 1.0 otherwise) would be applied to the res/build points/etc. gained each tick.