CardinalPGM icon indicating copy to clipboard operation
CardinalPGM copied to clipboard

Implement Free-for-all

Open Pablete1234 opened this issue 8 years ago • 10 comments

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).

Pablete1234 avatar Jun 29 '16 04:06 Pablete1234

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 ), i also added an option to /obs [player] so you you can force obs someone else (/team command is disabled in ffa).

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).

Pablete1234 avatar Jul 02 '16 07:07 Pablete1234

Why is not this merged?

Lmmb74 avatar Aug 17 '16 16:08 Lmmb74

@Lmmb74 because it's not done, still lots of strings need to be changed

Pablete1234 avatar Aug 17 '16 16:08 Pablete1234

But will this be finished? Because it's been a month since the last commit

Lmmb74 avatar Aug 17 '16 19:08 Lmmb74

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.

twizmwazin avatar Aug 17 '16 19:08 twizmwazin

Any progress?

Lmmb74 avatar Oct 11 '16 17:10 Lmmb74

@Lmmb74 nothing has changed

Pablete1234 avatar Oct 11 '16 17:10 Pablete1234

U.u

Lmmb74 avatar Oct 11 '16 18:10 Lmmb74

@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/

Pablete1234 avatar Oct 18 '16 06:10 Pablete1234

:DDDDDDDDDDD

Lmmb74 avatar Oct 18 '16 15:10 Lmmb74