HaywireInteractive / OnAllFronts-Public

UE5 MilSim FPS / RTS Game (formerly ProjectM)
MIT License
127 stars 24 forks source link

Fix Mass sound voice lines missing information on clients #928

Closed Leroy231 closed 6 months ago

Leroy231 commented 7 months ago

In https://github.com/HaywireInteractive/OnAllFronts/pull/428 we made voice lines work on client net mode but certain voice lines require information that the client doesn't have, e.g. how to get the UMilitaryUnit of an entity, or the FTargetEntityFragment (to call out 3Ds: direction, distance, description. We should go with option 4 here: https://docs.google.com/document/d/1IHMPJNsLusZPapVFklM3MQDYjueA0_DYNSNvQzp6xZ8/edit#heading=h.x36zq4t6bwfi

To repro issue:

  1. Start L_SmallNoObstacles in client net mode
  2. Press enter
  3. Notice soldiers say "contact east" instead of "contact, infantry, east, 300 meters"

Relevant code:

TODO: