CardinalPGM
CardinalPGM copied to clipboard
Implement Free-for-all
Title says all you need to know
Into specifics: With this, there are a total of 3 types of teams, the regular TeamModule, a PlayerModule (a team module for every single joined player in ffa), and a PlayerModuleManager (this one creates a player module for each player, and handles that stuff).
All other modules can use Teams.getTeams
, Teams.getTeamsAndPlayers
and Teams.getTeamsAndPlayerManager
, to use examples, HillObjective uses getTeamsAndPlayers, because that will give the list of all teams with each player counting as one team (so that one player can cap that hill), the tab list would use getTeamsAndPlayerManager, because it wants to have all the players inside the same team.
While a player is joined in a ffa match, he is effectively in 2 teams at once, join events should be handled with the PlayerManagerModule (aka: when leaving, the old team will be the PlayerManagerModule).
Ffa functionallity is fully implemented (i think), I added the colors tag (wasn't working before), and /ffa|players command to do min, max, and force (/ffa force
What's remaining work, is fully replace all "team" messages with "player-related" messages (like "Your team won!" should be replaced with "You won!", etc).
Why is not this merged?
@Lmmb74 because it's not done, still lots of strings need to be changed
But will this be finished? Because it's been a month since the last commit
From what I understand, this works but needs cleanup. If you want to use this as is, you can compile it and use it yourself.
Any progress?
@Lmmb74 nothing has changed
U.u
@Lmmb74 I have rebased and updated some parts of this, it's up for testing in cardinal-unstable: http://ci.twizmwaz.in/job/Cardinal-unstable/
:DDDDDDDDDDD