ModernColdWar / RedStormRising

Red Storm Rising
2 stars 0 forks source link

base resupply radius does not differentiate airbases in close proximity #164

Closed madrabbit711 closed 4 years ago

madrabbit711 commented 4 years ago
2020-03-23 16:32:39.033 INFO    SCRIPTING: bases|configureForSide|99: Configuring base Soganlug for red
2020-03-23 16:32:39.036 INFO    SCRIPTING: SlotBlocker|configureSlotsForBase|55: Configuring slots for Soganlug as owned by red
2020-03-23 16:32:39.050 INFO    SCRIPTING: PickupZoneManager|configurePickupZonesForBase|17: Configuring pickup zones for Soganlug as owned by red
2020-03-23 16:32:39.050 INFO    SCRIPTING: PickupZoneManager|setPickupZoneSide|11: Setting pickupZone Soganlug PickUp active only for red
2020-03-23 16:32:39.050 INFO    SCRIPTING: bases|resupply|109: RESUPPLY: baseName: Soganlug, sideName: red, missionInit: false, campaignStartSetup: false
2020-03-23 16:32:39.050 INFO    SCRIPTING: bases|resupply|110: Configuring Soganlug resupplied by red
2020-03-23 16:32:39.050 INFO    SCRIPTING: bases|activateBaseDefences|25: Activating base defences. missionInit: false, Add to spawnQueue (campaignStartSetup): false 
2020-03-23 16:32:39.050 INFO    SCRIPTING: bases|activateBaseDefences|28: Activating base defences for red base Soganlug within 10000m
2020-03-23 16:32:39.063 INFO    SCRIPTING: bases|IteratorFunction|42: Activating Soganlug red base defence group Vaziani Red Air Defense #012

Soganlug repair spawns Vazani base defences. However 10km radius necessary due to density of SAMs on airfield.

Therefore need to run check of groupName for base defence to ensure it matches airbase being repaired.

madrabbit711 commented 4 years ago

This may also be occurring for Kras C and Kras P = AWACS spawning incorrect.

madrabbit711 commented 4 years ago

https://github.com/ModernColdWar/RedStormRising/blob/5215ab6345aaa8b579b2d916e09db28ad53392d9/bases.lua#L42-L47