Modify a nation's bomber formation

Currently I am working on my next mod, which takes place before World War II, but during a time where aircraft were used for bombing raids. However when I spawn a bomber raid, the aircraft in it are historically inaccurate. I was wondering if there was any way to modify the aircraft in a bombing raid, so that whenever it was called, the aircraft would be different.

4 Likes

You can mod artillery by using entities.blk.

Here is the file, containing artillery entites (bombing run is also artillery)

enlisted_artillery.txt (9.1 KB)

I have added remarks to the following code, which you can use to achieve what you want:

aircraft_request{
  _override:b=yes
  _use:t="aircraft_artillery_narrator"
  _use:t="aircraft_artillery_siren"
  _use:t="replicating"
  artillery_zone__radius:r=50.0
  artillery_zone__bombingRadius:r=40.0
  artillery_zone__showOnMinimap:b=no
  artillery__name:t="aircraft_request"
  artillery__targetPos:p3=0.0, 0.0, 0.0
  artillery__lifeTime:r=360.0
  artillery__deadTime:r=0.0
  artilleryLifeTimeAfterBombing:r=5.0
  artillery__calledByTeam:i=0

  "artillery__callerEid:eid"{
  }

  "artillery__offender:eid"{
  }

  _group{
    _tags:t="server"
    aircraft_request__interval:r=960.0 //bombing call interval
    aircraft_request__spawnedAircraftsCount:i=0
    aircraft_request__aircraftStartRelativeSpeed:r=0.5
    aircraft_request__aircraftAfterBombingHeight:r=600.0
    aircraft_request__aircraftBombingHeight:r=250.0
    aircraft_request__aircraftSpawnHeight:r=600.0
    aircraft_request__aircraftSpawnDistance:r=7500.0 //Spawn distance from the called position.
    aircraft_request__aircraftTemplate:t="ai_he_111_h16+plane_spawn_in_air+requested_aircraft" //what plane model to use for bombing run. ai_plnaecodename+plane_spawn_in_air+requested_aircraft
    aircraft_request__spawnDelayedTemplate:t="aircraft_request_spawn_delayed"
    aircraft_request__spawnerTemplate:t="aircraft_request_spawner"
    aircraft_request__originTm:m=[[1.0, 0.0, 0.0] [0.0, 1.0, 0.0] [0.0, 0.0, 1.0] [0.0, 0.0, 0.0]]
    aircraft_request__aircraftTargetMarkTemplate:t="aircraft_request_target_mark"

    "aircraft_request__spawners:list<eid>"{
    }

    "aircraft_request__targetMarks:list<eid>"{
    }

    "aircraft_request__spawnedAircrafts:list<eid>"{
    }
  }

  "aircraft_request__aircraftBiases:list<p3>"{
    aircraftPos:p3=0.0, 0.0, 0.0 //Aircraft with 0,0,0 will be in center
    aircraftPos:p3=-30.0, 0.0, -30.0 //cords are X,Z,Y.
    aircraftPos:p3=-30.0, 0.0, 30.0
    aircraftPos:p3=-60.0, 0.0, -60.0
    aircraftPos:p3=-60.0, 0.0, 60.0
  }

  "aircraft_request:tag"{
  }
}
4 Likes

Thanks so much!

1 Like

Sorry to bother you, but I have an issue.

Whilst I was able to modify the aircraft used in the bombing raid, apparently the planes do not drop bombs, which is odd since the planes I use do have them.

Here is the code if you need it

  _override:b=yes
  _use:t="aircraft_artillery_narrator"
  _use:t="aircraft_artillery_siren"
  _use:t="replicating"
  artillery_zone__radius:r=50.0
  artillery_zone__bombingRadius:r=40.0
  artillery_zone__showOnMinimap:b=no
  artillery__name:t="aircraft_request"
  artillery__targetPos:p3=0.0, 0.0, 0.0
  artillery__lifeTime:r=360.0
  artillery__deadTime:r=0.0
  artilleryLifeTimeAfterBombing:r=5.0
  artillery__calledByTeam:i=0

  "artillery__callerEid:eid"{
  }

  "artillery__offender:eid"{
  }

  _group{
    _override:b=yes
    _tags:t="server"
    aircraft_request__interval:r=960.0
    aircraft_request__spawnedAircraftsCount:i=0
    aircraft_request__aircraftStartRelativeSpeed:r=0.5
    aircraft_request__aircraftAfterBombingHeight:r=600.0
    aircraft_request__aircraftBombingHeight:r=250.0
    aircraft_request__aircraftSpawnHeight:r=600.0
    aircraft_request__aircraftSpawnDistance:r=4500.0
    aircraft_request__aircraftTemplate:t="soc_1+ai_aircraft+ai_aircraft_crew_usa+plane_spawn_in_air+aircraft_with_gun_redirect+requested_aircraft"
    aircraft_request__spawnDelayedTemplate:t="aircraft_request_spawn_delayed"
    aircraft_request__spawnerTemplate:t="aircraft_request_spawner"
    aircraft_request__originTm:m=[[1.0, 0.0, 0.0] [0.0, 1.0, 0.0] [0.0, 0.0, 1.0] [0.0, 0.0, 0.0]]
    aircraft_request__aircraftTargetMarkTemplate:t="aircraft_request_target_mark"

    "aircraft_request__spawners:list<eid>"{
    }

    "aircraft_request__targetMarks:list<eid>"{
    }

    "aircraft_request__spawnedAircrafts:list<eid>"{
    }
  }

  "aircraft_request__aircraftBiases:list<p3>"{
    aircraftPos:p3=0.0, 0.0, 0.0
    aircraftPos:p3=-30.0, 0.0, -30.0
    aircraftPos:p3=-30.0, 0.0, 30.0
    aircraftPos:p3=-60.0, 0.0, -60.0
    aircraftPos:p3=-60.0, 0.0, 60.0
  }

  "aircraft_request:tag"{
  }
}

aircraft_request_spawn_delayed{
  aircraft_request__aircraftSpawnDelaySec:r=1.0
  aircraft_request__aircraftNextSpawnSec:r=0.0

  "aircraft_request__aircraftLeader:eid"{
  }
}

aircraft_request_spawner{
  team:i=0
  aircraft_request_spawner__bias:p3=0.0, 0.0, 0.0
}

moscow_ger_team_aircraft_request{
  _use:t="aircraft_request"
  _override:b=yes
  

  _group{
    _tags:t="server"
    aircraft_request__aircraftAfterBombingHeight:r=400.0
    aircraft_request__aircraftBombingHeight:r=400.0
    aircraft_request__aircraftSpawnHeight:r=400.0
	aircraft_request__aircraftTemplate:t="soc_1+ai_aircraft+ai_aircraft_crew_usa+plane_spawn_in_air+aircraft_with_gun_redirect+requested_aircraft"
  }
}

moscow_ussr_team_aircraft_request{
  _use:t="aircraft_request"
  _override:b=yes

  _group{
    _tags:t="server"
    aircraft_request__aircraftAfterBombingHeight:r=450.0
    aircraft_request__aircraftBombingHeight:r=450.0
    aircraft_request__aircraftSpawnHeight:r=450.0
     aircraft_request__aircraftTemplate:t="po_2+ai_aircraft+ai_aircraft_crew_usa+plane_spawn_in_air+aircraft_with_gun_redirect+requested_aircraft"
  }
}