haxball / haxball-issues

115 stars 43 forks source link

Support more than 2 teams #345

Closed pmanacas closed 6 years ago

pmanacas commented 6 years ago

It would be nice if we could create custom stadiums for more than 2 teams and custom win rules. for example to be able to replicate three sided football https://en.wikipedia.org/wiki/Three_sided_football

i.e. 3 teams 3 goals lowest goals conceded wins

Leo-MapCreator commented 6 years ago

I think you can do that with the API

pmanacas commented 6 years ago

@Leo-MapCreator Do you mean using the headless host API? (https://github.com/haxball/haxball-issues/wiki/Headless-Host) As far as I saw in the documentation it seems to have only Red and Blue teams hardcoded as well as win condition being the first to reach a max points limit.

Leo-MapCreator commented 6 years ago

Imagine 4 players in red and blue. You can set that the 2 first from red are Red, the 2 last from red are Purple, the 2 first from blue are Blue and the 2 last from blue are Cyan, and then control the score from the API, then tell the result

basro commented 6 years ago

I wont be adding support for 3 teams, but as Leo-MapCreator suggests with some creative hacking it'd be possible to do with the headless host api.