Some cleanup

This commit is contained in:
Vladislav Khorev committed 2026-11-17 20:29:20 +06:00
1 parent 4e40a1825a
commit c1be26023b
20 files changed
+451 -1330

No files matched your search

+10 -21
View File
@@ -352,9 +352,8 @@ messages contain numbered command bundles.
- Locations are keyed by location ID.
- Each location stores NPC and interactive-object state in ID-keyed objects.
- Pending interaction targets and character references use stable IDs.
- Character navigation persistence includes waypoints, actual previous-tick
movement, blocked/retry state, the blocker ID, and the NPC cooldown sequence
and cursor.
- Character navigation persistence includes waypoints, the retry timer, and the
NPC cooldown sequence and cursor.
- Immutable content such as meshes, initial taxi configuration, and object
definitions is reconstructed from campaign configuration.
- Configuration is loaded first and mutable saved state is overlaid in place.
@@ -497,25 +496,15 @@ cmake --build proj-windows/build --config Debug --target ShadowOverBishkekDemo -
- A lockstep compatibility fingerprint must match before the client accepts the
initial state.
### Dynamic Navigation Occupancy
### Navigation Replanning
`LocationGameState` is the authoritative boundary for character-aware planning.
It collects enabled, living, stationary players and NPCs in stable ID order and
passes their positions and collision radii to `LocationNetworkState` and
`PathFinder`. The requester is excluded; moving characters are transparent to
planning. “Moving” here means actual previous-tick displacement
(`movedLastTick`), not merely owning an active path, so visually stalled
characters remain planning obstacles. Route planning uses full avoidance radii;
the movement guard uses smaller contact radii.
Every character movement step is guarded against stable-ID-ordered reservations
initialized from tick-start geometry. Accepted steps update their reservation
before later characters advance, preventing two movers from ending a tick
overlapped. Blocked/retry counters, cooldown sequence/cursor, and blocker ID are
serialized character state. Head-on players and bots cancel their commands;
NPCs retain their targets and consume the next deterministic, ID-shuffled
cooldown before replanning. Static navigation topology changes route through
the same centralized replanning path.
`CharacterState::setTarget` and `CharacterState::forceReplan` share one path
computation. Movement along the resulting waypoints is resolved by the ORCA
solver in `LocationGameState::update` (see `PATHFINDING.md`). An NPC that
cannot find a path waits for the next deterministic, ID-shuffled cooldown from
its serialized retry sequence before replanning; the retry timer, cooldown
sequence, and cursor are serialized character state. Static navigation topology
changes route through the same centralized replanning path.
## Main Files