Two-player teams with a downed state, revive, team placement and no friendly damage.
Acceptance
Tests cover downing, revive, bleed-out, and elimination when both teammates are out.
Bots can play as teammates.
**Depends on:** M3, M5
Two-player teams with a downed state, revive, team placement and no friendly damage.
**Acceptance**
- Tests cover downing, revive, bleed-out, and elimination when both teammates are out.
- Bots can play as teammates.
claude
added this to the v0.4 Match Loop and Bots milestone 2026-11-09 05:27:08 +00:00
Deferred under the pacing rule (2026-11-12). v0.4 is due tonight and the build is still more than a day behind, and this issue has no priority label. M5 and M8 come first, then multiplayer. Match already tracks teams (team_of, team winners, no stats for friendly hits), but there is no downed state or revive, so the game is solo-only until this is picked up again. This stays open in v0.4, so the milestone and its tag wait.
Deferred under the pacing rule (2026-11-12). v0.4 is due tonight and the build is still more than a day behind, and this issue has no priority label. M5 and M8 come first, then multiplayer. `Match` already tracks teams (`team_of`, team winners, no stats for friendly hits), but there is no downed state or revive, so the game is solo-only until this is picked up again. This stays open in v0.4, so the milestone and its tag wait.
Done in 2167900, on main after the v1.0.0 tag. The 1.0.0 packages are still solo only.
What changed
Teams in the simulation.Match sets SimEntity.team. Weapons.damage_player is the one team rule: no damage between teammates from any weapon, the boathook or a keg. Hurting yourself still counts.
Down, not out. If your health runs out while a teammate is standing, you go down instead of out:
You get 60 health to bleed, one point every half second, so about 30 s.
You crawl at 1 m/s, and can't fire, build, loot or use items.
Hits still take the downed health, and so does drowning.
Revive. A standing teammate within 2 m holds interact for 6 s and you get up with 30 health. Letting go or stepping away starts it over.
Out. You're out when your health runs out again, or when no teammate is left standing. The elimination is credited to whoever downed you. A team falls together and shares its place. The tie-break puts standing players ahead of downed ones.
Feed and HUD. Downs are in the feed ("Ada knocked Thole down"). The HUD shows a line telling you what to do while you're down. The figure has a crawl pose.
Wire.FLAG_DOWNED is in the player record and in the client's own block, so prediction crawls too. Flags are now u16, protocol version 5.
Options.
Server: --team-size=2.
Offline: --duos, or Practice → Crew → Duos with a bot crewmate.
PLAY.md, SERVER.md and the man pages are updated.
Bots as teammates:
never target a teammate;
land with their teammate, and regroup when they stray past 30 m;
crawl toward a standing teammate when down;
go to revive a downed teammate within 60 m when not in a fight;
turn from a downed target to its standing teammate when it's in view.
Tests
test/sim/test_duos.gd, 16 tests:
downing, and going straight out with no team or no teammate standing;
crawling with no fire, jump or build;
revive at exactly 6 s, and starting over after letting go or moving out of reach;
opponents can't revive;
bleed-out with credit, and finishing a downed player;
the team out when both are down or out, and both falling on one tick;
no friendly damage, keg blast included;
drowning while down;
the state hash;
match teams, placing the pair together, and the tie-break.
Bot tests: bots never target a teammate, a bot walks over and revives its downed teammate, and a downed bot crawls to its teammate.
Also tested: the downed flag on the wire, the feed text, --team-size, and the menu's Crew choice.
make duo-matches (new): 10 matches, each won by one team, 128 downs, 15 revives, 3.6% drowned, worst p99 tick 3.5 ms.
make bot-matches (solo): 20 matches, 3.9% drowned, the same as before. Solo bots behave the same.
Captures, looked at:
hud_downed_720 shows the down line and feed entries;
figure_states now ends with the crawl pose.
Follow-ups, not blocking
Revives are still fairly rare. Most downed bots are finished by their attacker before the teammate gets there, and a teammate inside a hut keeps looting first.
There's no on-screen revive progress bar, because revive progress isn't replicated.
Nobody has played duos with a person in it. That's part of R6.
— tidewall-build
Done in 2167900, on `main` after the v1.0.0 tag. The 1.0.0 packages are still solo only.
**What changed**
- **Teams in the simulation.** `Match` sets `SimEntity.team`. `Weapons.damage_player` is the one team rule: no damage between teammates from any weapon, the boathook or a keg. Hurting yourself still counts.
- **Down, not out.** If your health runs out while a teammate is standing, you go down instead of out:
- You get 60 health to bleed, one point every half second, so about 30 s.
- You crawl at 1 m/s, and can't fire, build, loot or use items.
- Hits still take the downed health, and so does drowning.
- **Revive.** A standing teammate within 2 m holds interact for 6 s and you get up with 30 health. Letting go or stepping away starts it over.
- **Out.** You're out when your health runs out again, or when no teammate is left standing. The elimination is credited to whoever downed you. A team falls together and shares its place. The tie-break puts standing players ahead of downed ones.
- **Feed and HUD.** Downs are in the feed ("Ada knocked Thole down"). The HUD shows a line telling you what to do while you're down. The figure has a crawl pose.
- **Wire.** `FLAG_DOWNED` is in the player record and in the client's own block, so prediction crawls too. Flags are now u16, protocol version 5.
- **Options.**
- Server: `--team-size=2`.
- Offline: `--duos`, or Practice → Crew → Duos with a bot crewmate.
- PLAY.md, SERVER.md and the man pages are updated.
- **Bots as teammates:**
- never target a teammate;
- land with their teammate, and regroup when they stray past 30 m;
- crawl toward a standing teammate when down;
- go to revive a downed teammate within 60 m when not in a fight;
- turn from a downed target to its standing teammate when it's in view.
**Tests**
- `test/sim/test_duos.gd`, 16 tests:
- downing, and going straight out with no team or no teammate standing;
- crawling with no fire, jump or build;
- revive at exactly 6 s, and starting over after letting go or moving out of reach;
- opponents can't revive;
- bleed-out with credit, and finishing a downed player;
- the team out when both are down or out, and both falling on one tick;
- no friendly damage, keg blast included;
- drowning while down;
- the state hash;
- match teams, placing the pair together, and the tie-break.
- Bot tests: bots never target a teammate, a bot walks over and revives its downed teammate, and a downed bot crawls to its teammate.
- Also tested: the downed flag on the wire, the feed text, `--team-size`, and the menu's Crew choice.
**Gates on 2167900:**
- `make check`: 732 tests, smoke ok.
- `make match`: the replay hash matches.
- `make client-check`: ok.
- `make duo-matches` (new): 10 matches, each won by one team, 128 downs, 15 revives, 3.6% drowned, worst p99 tick 3.5 ms.
- `make bot-matches` (solo): 20 matches, 3.9% drowned, the same as before. Solo bots behave the same.
- Captures, looked at:
- `hud_downed_720` shows the down line and feed entries;
- `figure_states` now ends with the crawl pose.
**Follow-ups, not blocking**
- Revives are still fairly rare. Most downed bots are finished by their attacker before the teammate gets there, and a teammate inside a hut keeps looting first.
- There's no on-screen revive progress bar, because revive progress isn't replicated.
- Nobody has played duos with a person in it. That's part of R6.
— tidewall-build
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.
Depends on: M3, M5
Two-player teams with a downed state, revive, team placement and no friendly damage.
Acceptance
Deferred under the pacing rule (2026-11-12). v0.4 is due tonight and the build is still more than a day behind, and this issue has no priority label. M5 and M8 come first, then multiplayer.
Matchalready tracks teams (team_of, team winners, no stats for friendly hits), but there is no downed state or revive, so the game is solo-only until this is picked up again. This stays open in v0.4, so the milestone and its tag wait.Done in
2167900, onmainafter the v1.0.0 tag. The 1.0.0 packages are still solo only.What changed
MatchsetsSimEntity.team.Weapons.damage_playeris the one team rule: no damage between teammates from any weapon, the boathook or a keg. Hurting yourself still counts.FLAG_DOWNEDis in the player record and in the client's own block, so prediction crawls too. Flags are now u16, protocol version 5.--team-size=2.--duos, or Practice → Crew → Duos with a bot crewmate.Tests
test/sim/test_duos.gd, 16 tests:--team-size, and the menu's Crew choice.Gates on
2167900:make check: 732 tests, smoke ok.make match: the replay hash matches.make client-check: ok.make duo-matches(new): 10 matches, each won by one team, 128 downs, 15 revives, 3.6% drowned, worst p99 tick 3.5 ms.make bot-matches(solo): 20 matches, 3.9% drowned, the same as before. Solo bots behave the same.hud_downed_720shows the down line and feed entries;figure_statesnow ends with the crawl pose.Follow-ups, not blocking
— tidewall-build