M7: Duos and revive
Two-player teams, enforced by the simulation:
- Match puts every player on a team (SimEntity.team); Weapons.damage_player
refuses damage between teammates from every weapon, the boathook and blasts.
- A player whose health runs out with a teammate standing goes down instead of
out: 60 health to bleed (one point every half second), crawling at 1 m/s, no
firing, building, looting or items. Hits still take it; drowning too.
- A standing teammate within 2 m holding interact for 6 s revives them with 30
health. Letting go or moving away starts it over.
- Downed players are out when their health runs out again or when no teammate
is left standing, credited to whoever downed them. A team falls together and
shares its place; the tie-break puts standing ahead of downed.
- Downs and revives go through Match events and the kill feed ("X knocked Y
down"); the HUD says what to do while down.
Wire: FLAG_DOWNED in the player record and the own block (flags now u16),
so prediction crawls too. Protocol version 5.
Bots: never target a teammate, land with their teammate, 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, and turn from a downed target
to its standing teammate when it's in view.
Options: --team-size=2 on the server, --duos offline, and Solo/Duos under
Crew in the Practice menu. The figure has a downed crawl pose.
Tests: test_duos (downing, crawl, revive, interrupted revive, bleed-out,
finishing, team out, falling together, no friendly damage including kegs,
drowning while down, hash, match placement and tie-break), bots as teammates,
the downed flag on the wire, the feed, server and menu options. make
duo-matches plays 10 bot duos matches.
Closes #30
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
+11
@@ -67,6 +67,17 @@ to heal instead of running when badly hurt, and build ramps up to someone on a c
|
||||
or a steep rise. At the last stand they ring their spot with breakwaters. They don't
|
||||
use powder kegs or the line thrower. Offline play is a local server filled with bots,
|
||||
the same game code as online play. A downed duo partner can be revived, within `REVIVE_SECONDS`.
|
||||
In duos (M7) bots never target their teammate, crawl toward it when downed, and go to a
|
||||
downed teammate within `BOT_REVIVE_METRES` to revive it when they aren't in a fight.
|
||||
|
||||
**Duos rules (M7).** Teams are set by `Match` and held on each player
|
||||
(`SimEntity.team`), so the simulation enforces them: `Weapons.damage_player` refuses
|
||||
damage between teammates from every weapon, the boathook and blasts. A player whose
|
||||
health runs out with a teammate standing goes down (`DOWNED_HEALTH`, bleeding one point
|
||||
every `DOWNED_BLEED_INTERVAL_TICKS`, crawling at `DOWNED_CRAWL_SPEED`); a standing
|
||||
teammate within `REVIVE_RANGE` holding interact for `REVIVE_SECONDS` brings them back
|
||||
with `REVIVE_HEALTH`. Downed players are eliminated when their health runs out again or
|
||||
when no teammate is left standing, credited to whoever downed them.
|
||||
|
||||
## The island
|
||||
|
||||
|
||||
@@ -38,6 +38,7 @@ Replace `1.0.0` with the version you downloaded.
|
||||
The game opens on its main menu.
|
||||
|
||||
- **Practice** plays offline against bots on an island of its own. No network needed.
|
||||
Crew picks solo or duos, with a bot as your crewmate.
|
||||
- **Join a server** lists the servers it finds on your local network. Pick one, or type
|
||||
an address (`host` or `host:port`; the default port is 24650) for any other server.
|
||||
- **Settings** has Controls, Mouse, Graphics, Display and Audio tabs.
|
||||
@@ -46,6 +47,7 @@ You can also start straight into a match from a terminal:
|
||||
|
||||
./tidewall --offline # practice against 23 bots
|
||||
./tidewall --offline --bots=5 --seed=42 # fewer bots, a chosen island
|
||||
./tidewall --offline --duos # duos, with the first bot as your crewmate
|
||||
./tidewall --connect=192.0.2.7:24650 --name=Mara
|
||||
./tidewall --headless --browse # print the LAN's servers, then quit
|
||||
./tidewall --headless --browse --list=lists.example.org:24660 # and a list server's
|
||||
@@ -54,6 +56,20 @@ On a server, matches run back to back: a short lobby, a countdown, the drop, the
|
||||
and the results, then a new island. If you join during a match you wait in the lobby
|
||||
for the next one. Leaving during a match counts as being eliminated where you stood.
|
||||
|
||||
### Duos
|
||||
|
||||
In duos you play in a crew of two, on a server started with `--team-size=2` or in
|
||||
practice. Crewmates can't hurt each other, with any weapon or keg.
|
||||
|
||||
- When your health runs out while your crewmate is still standing, you go **down**
|
||||
instead of out. You crawl, slowly, and can't fire, build, loot or use anything. Your
|
||||
health becomes 60 to bleed, one point every half second, and hits still take it.
|
||||
- Your crewmate hauls you up by standing beside you (within 2 m) and holding **Pick
|
||||
up** (E) for 6 seconds without a break. You get up with 30 health.
|
||||
- You're out when you bleed out, when you're finished off, or when your crewmate goes
|
||||
down or out too: a crew with nobody standing is eliminated, and both share its place.
|
||||
- Drowning still takes a downed player, and faster than bleeding.
|
||||
|
||||
## Controls
|
||||
|
||||
Every key can be rebound in Settings → Controls. Mouse sensitivity and inversion are on
|
||||
|
||||
@@ -49,6 +49,7 @@ server with exit code 2 instead of running the wrong match.
|
||||
| `port=N` | 24650 | UDP port for players. LAN discovery uses this port plus one. |
|
||||
| `bots=N` | 0 | Any number above 0 fills each match's empty places with bots. |
|
||||
| `bot-difficulty=` | `mixed` | `easy`, `normal`, `hard` or `mixed`. |
|
||||
| `team-size=N` | 1 | 1 for solo, 2 for duos: players pair up in the order they join (bots fill in after), can't hurt their teammate, and go down instead of out while their teammate stands. |
|
||||
| `name=NAME` | `Tidewall server` | The name shown in server lists. |
|
||||
| `list=HOST[:PORT]` | none | Register with a list server, so people off your LAN can find you. Can be given more than once. |
|
||||
| `no-lan` | off | Don't answer LAN discovery. |
|
||||
|
||||
Reference in New Issue
Block a user