ModernColdWar / RedStormRising

Red Storm Rising
2 stars 0 forks source link

Improve base capture - (7) Add randomization of logistic centre spawn location #133

Closed madrabbit711 closed 4 years ago

madrabbit711 commented 4 years ago

bases.lua calls logisticsManager.lua during:

To spawn logistics centre static object at Trigger Zones containing "logistics".

Need to intercept spawning location during setup/resupply here: https://github.com/ModernColdWar/RedStormRising/blob/3bb91b4518ff8f7405bef7b76f40887302962846/logisticsManager.lua#L14

And also intercept here during FOB crate unpack by player here: https://github.com/ModernColdWar/RedStormRising/blob/3bb91b4518ff8f7405bef7b76f40887302962846/CTLD.lua#L2530 _args[1] = point to spawn logistics building based on crate position

madrabbit711 commented 4 years ago

Done for mission init but need to incorporate into new base repair function: https://github.com/ModernColdWar/RedStormRising/blob/90200326186f2ef87a03b0fd85c9d347debe7d6f/logisticsManager.lua#L19-L23

madrabbit711 commented 4 years ago

https://github.com/ModernColdWar/RedStormRising/blob/0f2b354af786dc70e1890b05b63f46f49e4873fe/logisticsManager.lua#L27-L34