HaywireInteractive / OnAllFronts-Public

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

Replicate player inventory more efficiently to reflect player ammo HUD updates #852

Closed Leroy231 closed 8 months ago

Leroy231 commented 8 months ago

We used to replicate FAmmoCapacityFragment for all entities and relied on that to update player's ammo HUD but that approach was very inefficient as really only the player needs to know about their own soldier's FAmmoCapacityFragment. So we disabled replication of FAmmoCapacityFragment. To replicate more efficiently I'm thinking of the following approach but open to other ideas: