issues
search
HaywireInteractive
/
OnAllFronts-Public
UE5 MilSim FPS / RTS Game (formerly ProjectM)
MIT License
128
stars
24
forks
source link
Replicate Mass inventory data
#829
Closed
Leroy231
closed
9 months ago
Leroy231
commented
9 months ago
[x] Prerequisite:
https://github.com/HaywireInteractive/OnAllFronts-Public/issues/828
[x] In
https://github.com/HaywireInteractive/OnAllFronts/blob/main/Plugins/ProjectM/Source/ProjectM/Private/MassReplication/MassReplicationConfig.json
under "MassSoldier" include FAmmoCapacityFragment and the properties it needs. For an example of the syntax to replicate properties on fragments see
here
.
[x] We'll need to handle new types in our code gen script since we don't handle TArray yet.
See how we handle "float" types in that script
as it has custom logic.
[x] To run the codegen script, run: python
path\to\generate_mass_replication_helpers.py
[x] To verify it worked, when in Client NetMode and you fire your weapon the ammo count should decrease on player's ammo widget.