Skip to content

Fix citizen follow through vehicle rides#9

Open
mayor-modder wants to merge 1 commit into
Cgameworld:mainfrom
mayor-modder:codex/follow-subject-through-vehicles
Open

Fix citizen follow through vehicle rides#9
mayor-modder wants to merge 1 commit into
Cgameworld:mainfrom
mayor-modder:codex/follow-subject-through-vehicles

Conversation

@mayor-modder

@mayor-modder mayor-modder commented Jun 14, 2026

Copy link
Copy Markdown

When a followed citizen boards a vehicle, follow mode could accidentally start treating the vehicle as the thing being followed. This keeps the person as the real target while still letting the camera ride along with the vehicle until they get out.

Summary

  • Keep the selected citizen as the logical follow target while resolving a separate camera attachment target for entered vehicles.
  • Preserve follow state when a followed citizen boards and leaves a vehicle instead of switching permanently to the vehicle.
  • Add focused tests for follow-target state transitions.

Validation

  • dotnet test Tests/FollowTargetStateTests.csproj --no-restore (2 passed)
  • dotnet build FirstPersonCameraContinued.csproj /p:ModPublisherCommand=Update /m:1 /nodeReuse:false /p:UseSharedCompilation=false (0 errors; existing nullable warnings remain)
  • Local gameplay retesting followed a citizen through subway boarding and disembarking without losing the citizen follow target.

Notes

This is the base PR for a small stacked follow-up: mayor-modder#4.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant