Naval transport

Moderators: Order of Battle Moderators, The Artistocrats

Post Reply
Admiral_Horthy
Sergeant First Class - Panzer IIIL
Sergeant First Class - Panzer IIIL
Posts: 366
Joined: Fri Jun 01, 2018 6:43 pm
Location: Budapest, Moscow

Naval transport

Post by Admiral_Horthy »

Is there a way to use naval transport other than the default? What determines for example which unit uses LCVP and which use the LCT? Class? Chassis? What does LandingCraft trait mean, both type use the same trait..
I'm trying to configure Daihatsu/Tokudaihatsu here...
Horst
Brigadier-General - 15 cm Nblwf 41
Brigadier-General - 15 cm Nblwf 41
Posts: 1927
Joined: Mon Feb 18, 2013 1:22 pm

Re: Naval transport

Post by Horst »

Transport alternatives are hardcoded:

Code: Select all

    public static UnitType GetUnitTransportType(Unit unit, GameState gameState)
    {
        if (unit.State(gameState).originalType.uClass.id == 0 && GameSpecialisations.HasFactionSpecialisationEffect(unit.faction, GameSpecialisations.effects.landing_craft_infantry))
        {
            return App.GetUnitTypeByName("lcvp");
        }
        if (unit.State(gameState).originalType.uClass.id != 2 || !GameSpecialisations.HasFactionSpecialisationEffect(unit.faction, GameSpecialisations.effects.landing_craft_tank))
        {
            return App.defaultTransportNaval;
        }
        return App.GetUnitTypeByName("lct");
    }
Post Reply

Return to “Order of Battle : World War II - Scenario Design”