Skip to content

Commit 11d47f9

Browse files
committed
Document ghost state continuity
1 parent f7854a8 commit 11d47f9

File tree

2 files changed

+31
-7
lines changed

2 files changed

+31
-7
lines changed

docs/wiki/players.md

Lines changed: 16 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -61,8 +61,19 @@
6161

6262
Want the full flow? See the [Tournament Format Guide](tournaments.md) for config details and veto flow notes.
6363

64-
## Reconnect Safeguards and Ghost Tips
65-
- **Pending Ghost Respawns:** WORR caches your last position/angles when the auto-ghost system is active. On rejoin, it first checks if your ghost spot is clear of players or geometry before spawning you there.
66-
- **Blocked Ghosts:** If the spot is occupied (player or map brush), the server denies the ghost spawn, logs what blocked you, and reverts to regular spawn logic. Expect to appear at the next safe point instead.
67-
- **Minimum participation:** Ghost data only persists after you have logged at least `g_ghost_min_play_time` seconds of real match time (default 60). Leaving earlier clears the slot, so stay in long enough before testing quick reconnects.
68-
- **Quick reconnect routine:** Rejoin promptly, wait a second for the ghost check, and if you spawn elsewhere, regroup—your inventory and stats still restore thanks to the ghost system’s state persistence.
64+
## Ghost Player System (Reconnect Safeguards)
65+
WORR’s ghost player system is a continuity safety net for unexpected disconnects. It records a snapshot of your last valid spawn location and angles, then tries to honor that spot if you return quickly.
66+
67+
### How it works
68+
- **Ghost capture:** When the auto-ghost system is active, the server caches your last position/angles as a reconnect ghost slot.
69+
- **Safety-first respawn:** On rejoin, the server checks the saved spot for blocking players or geometry before placing you there.
70+
- **Fallback logic:** If anything is obstructing the ghost spot, the server logs the blocker and falls back to normal spawn selection so you are never trapped.
71+
72+
### Persistence rules
73+
- **Minimum participation:** Ghost data is only saved after you have logged at least `g_ghost_min_play_time` seconds of real match time (default `60`). Leave earlier and the slot clears, preventing accidental ghost saves from brief joins.
74+
- **State continuity:** When the ghost spawn succeeds, your score, stats, and inventory return with you as part of the ghost system’s persistence.
75+
76+
### Player tips
77+
- **Reconnect fast:** Rejoin promptly after a disconnect so the server can still use your cached spot before the match state moves on.
78+
- **Don’t panic on a new spawn:** If you appear elsewhere, it means your ghost slot was blocked or expired; regroup and continue without losing momentum.
79+
- **Tournament timeouts:** In tournament matches, a disconnect triggers a brief timeout window so you can return to play.

wiki/Players.md

Lines changed: 15 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -52,8 +52,21 @@ Practice format: set `g_practice 1` to keep the lobby in warmup (no scoring). Di
5252
Want the full flow? See the [Tournament Format Guide](Tournaments.md) for config details and veto flow notes.
5353

5454
## Reconnects & Ghosts
55-
- WORR preserves your spawn state when you disconnect unexpectedly. On reconnect, the server attempts to respawn you at the stored ghost origin/angles if the spot is safe; otherwise it falls back to a standard spawn point and alerts you to blockers.
56-
- Use this to your advantage: if you crash mid-series, rejoin quickly so your team retains your inventory and stats.
55+
WORR’s ghost player system is built to preserve continuity when a player disconnects unexpectedly. It stores a snapshot of your last spawn position and angles, then tries to reuse that space when you return.
56+
57+
### Ghost flow at a glance
58+
- **Ghost capture:** The server caches your last position/angles as a reconnect ghost slot while the auto-ghost system is active.
59+
- **Safety-first checks:** On rejoin, the server validates that the ghost spot is clear of players or map geometry before spawning you there.
60+
- **Fallback protection:** If the spot is blocked, the ghost spawn is denied, the blocker is logged, and normal spawn selection takes over.
61+
62+
### Persistence rules
63+
- **Minimum participation:** Ghost data persists only after you have logged at least `g_ghost_min_play_time` seconds of match time (default `60`). Short joins will not create a ghost slot.
64+
- **State continuity:** When the ghost spawn succeeds, your score, stats, and inventory return with you as part of the ghost system’s persistence.
65+
66+
### Player tips
67+
- **Reconnect fast:** Rejoin quickly after a disconnect so the server can still use your cached spot before the match moves on.
68+
- **Expect a backup spawn:** If you appear elsewhere, your ghost slot was blocked or expired—regroup and keep fighting.
69+
- **Tournament timeouts:** In tournament matches, a disconnect triggers a brief timeout window so you can return to play.
5770

5871
## Quick Console Tips
5972
- `ready`/`notready` toggle your warmup state; countdowns will not start until enough players are marked ready.

0 commit comments

Comments
 (0)