HaywireInteractive / OnAllFronts-Public

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

Replicate current weapon held by players #964

Closed Leroy231 closed 1 month ago

Leroy231 commented 3 months ago

We need to replicate FAmmoCapacityFragment.CurrentWeaponIndex because otherwise in MP when a player changes weapons on other clients they won't show as having a different weapon.

~We could probably be more efficient and only replicate it for players since AI doesn't change weapons. Also we could make it so when soldier is unpossessed AI always switches to rifle for now.~ - we'll do these later separately