132nd-vWing / OPUF

Operation URGENT FURY
2 stars 0 forks source link

db_countries update #4

Closed thebgpikester closed 6 years ago

thebgpikester commented 6 years ago

For mission design some flexibility helps. If this is added to the db_countries you get all the things for Iran. This would help

function merge_all_units_to_IRAN()
    local IRAN = country:get("IRAN")
    for i,o in pairs(country.by_country) do
        if o ~= IRAN then
            merge_unit_list_coutry(o,IRAN)
        end
    end
end
merge_all_units_to_IRAN()
thebgpikester commented 6 years ago

By the way tested, it works.

thebgpikester commented 6 years ago

It doesn't add chinese asset pack stuf and some other new things. I recommend using another line under Iran for

cnt_unit( units.Planes.Plane, "KJ-2000");

for the awacs chinese version so it can be use with an iranian skin for the skin pack

thebgpikester commented 6 years ago

db_countries.txt OK here are the proposed changes to db_countries.lua (text attached and tested) IRAN now has all "regular" assets IRAN now has the Chinese ships IRAN has the Chinese AWACS --this fits the Iranian skin in the skin pack The lua is otherwise still containing the previous 132nd changes. Submitted for consideration

132nd-Entropy commented 6 years ago

thanks will test!!

132nd-Entropy commented 6 years ago

lua didnt contain the previous 132nd changes but I added them back in, now its completed. Thanks a ton for the help!!