Jump to content

Recommended Posts

Posted (edited)

Hi Folks

If you use multiple bombs on one rack, the FUZEs cannot be adjusted (Mission Editor).

Thank you in advance.
Cheers Homelander

Edited by Homelander
  • Thanks 1

Modules:  F-15E Strike Eagle, F/A-18 Hornet, F-16 Viper, F-4E Phantom II, Su-33 Flanker, A-10C II Tank Killer, AV-8B Night Attack, JF-17 Thunder, Ka-50 Back Shark 3, AH-64D, Combined Arms, Supercarrier    Terrains: Nevada, Sinai, Syria, Persian Gulf, Cold War Germany  •  Hardware: AMD Ryzen 9 9950X3D (Stock), 64 GB DDR5-6000 CL 28, ASUS ROG STRIX LC RTX 4090 OC (24 GB), 12 TB (3x4 TB) PCIe 4.0 M.2 SDDs, AsRock X870E Nova WiFi, Fortron Hydro TI Pro (1000W / Titanium), be quiet! Light Base 900 FX, Sound BlasterX G6, Beyerdynamic MMX 300 (V2), Audeze Maxwell XB, TrackIR 5 Pro, 38" IPS (144 Hz) 4K  Display VPC WarBRD Base & VPC Constellation ALPHA Prime Grip, VPC Mongoos T-50CM3 Throttle, WinWing 15EX Metal Throttle, VPC Control Panel #1, VPC ACE Flight Pedals, Logitech G502x Plus, Steelseries Apex Pro, Elgato Stream Deck XL
Space Mutt Signature.png

Posted (edited)

Hello Harrier fans :pilotfly:

I have adapted the file AV8BNA_Weapons.lua in the path "...DCS World OpenBeta\CoreMods\aircraft\AV8BNA\Weapons" so that you can now also use the FUZE settings for racks with multiple bombs. I only tested it in single player.

 

I have made the following changes, which are listed below.

The code to be adapted can be found between lines 501 to 580
This part has been replaced by this customized part (blue text) :

Old part:

bombs_data =
{
	["MK-81"]		= {name = "Mk-81",		mass =  260.0*lb_to_kg, wsType = {4, 5, 9, 30},               	Cx = 0.000130, picture = "mk82.png"},
	["MK-82"]		= {name = "Mk-82",		mass =  510.0*lb_to_kg, wsType = {4, 5, 9, 31},               	Cx = 0.000160, picture = "mk82.png"},
	["MK-82_Snakeye"]	= {name = "Mk-82 Snakeye",	mass =  550.0*lb_to_kg, wsType = {4, 5, 9, 79},               	Cx = 0.000186, picture = "mk82AIR.png"},
	["MK-82AIR"]		= {name = "Mk-82 AIR",		mass =  544.0*lb_to_kg, wsType = {4, 5, 9, 75},               	Cx = 0.000186, picture = "mk82AIR.png"},
	["ROCKEYE"]		= {name = "Mk-20 Rockeye",	mass =  505.0*lb_to_kg, wsType = {4, 5, 38, 45},              	Cx = 0.000265, picture = "Mk20.png"},
	["CBU-99"]		= {name = "CBU-99",		mass =  505.0*lb_to_kg, wsType = {4, 5, 38, 302},             	Cx = 0.000265, picture = "Mk20.png"},
	["MK-83"] 		= {name = "Mk-83", 		mass =  985.0*lb_to_kg, wsType = {4, 5, 9, 32},               	Cx = 0.000225, picture = "mk83.png"},
	["GBU-12"] 		= {name = "GBU-12", 		mass =  612.0*lb_to_kg, wsType = {4, 5, 36, 38},              	Cx = 0.000365, picture = "GBU12.png"},
	["GBU-16"] 		= {name = "GBU-16", 		mass = 1092.0*lb_to_kg, wsType = {4, 5, 36, 39},              	Cx = 0.000410, picture = "GBU16.png"},
	["GBU-38"] 		= {name = "GBU-38", 		mass =  564.0*lb_to_kg, wsType = {4, 5,	36,	86},		Cx = 0.000350, picture = "GBU38.png"},
	["GBU-54"] 		= {name = "GBU-54(V)1/B", 	mass =  558.0*lb_to_kg, wsType = "weapons.bombs.GBU_54_V_1B", 	Cx = 0.000350, picture = "GBU54.png"},
}	

New part:

bombs_data =
{
	["MK-81"]		= {name = "Mk-81",		mass =  260.0*lb_to_kg, wsType = {4, 5, 9, 30},               	Cx = 0.000130, picture = "mk82.png"		,		settings = Get_Combined_GUISettings_Preset("MDRN_B_A_GPLD")			},
	["MK-82"]		= {name = "Mk-82",		mass =  510.0*lb_to_kg, wsType = {4, 5, 9, 31},               	Cx = 0.000160, picture = "mk82.png"		,		settings = Get_Combined_GUISettings_Preset("MDRN_B_A_GPLD")			},
	["MK-82_Snakeye"]	= {name = "Mk-82 Snakeye",	mass =  550.0*lb_to_kg, wsType = {4, 5, 9, 79},           	Cx = 0.000186, picture = "mk82AIR.png"		,		settings = Get_Combined_GUISettings_Preset("MDRN_B_A_GPHD")			},
	["MK-82AIR"]		= {name = "Mk-82 AIR",		mass =  544.0*lb_to_kg, wsType = {4, 5, 9, 75},           	Cx = 0.000186, picture = "mk82AIR.png"		,		settings = Get_Combined_GUISettings_Preset("MDRN_B_A_GPHD")			},
	["ROCKEYE"]		= {name = "Mk-20 Rockeye",	mass =  505.0*lb_to_kg, wsType = {4, 5, 38, 45},              	Cx = 0.000265, picture = "Mk20.png"		,		settings = Get_Fuze_GUISettings_Preset("MDRN_CC_A_Mk20")			},
	["CBU-99"]		= {name = "CBU-99",		mass =  505.0*lb_to_kg, wsType = {4, 5, 38, 302},             	Cx = 0.000265, picture = "Mk20.png"		,		settings = Get_Fuze_GUISettings_Preset("MDRN_CC_A_Mk20")			},
	["MK-83"] 		= {name = "Mk-83",		mass =  985.0*lb_to_kg, wsType = {4, 5, 9, 32},               	Cx = 0.000225, picture = "mk83.png"		,		settings = Get_Combined_GUISettings_Preset("MDRN_B_A_GPLD")			},
	["GBU-12"] 		= {name = "GBU-12",		mass =  612.0*lb_to_kg, wsType = {4, 5, 36, 38},              	Cx = 0.000365, picture = "GBU12.png"		,		settings = Get_Combined_GUISettings_Preset("Paveway_II")			},
	["GBU-16"] 		= {name = "GBU-16",		mass = 1092.0*lb_to_kg, wsType = {4, 5, 36, 39},              	Cx = 0.000410, picture = "GBU16.png"		,		settings = Get_Combined_GUISettings_Preset("Paveway_II")			},
	["GBU-38"] 		= {name = "GBU-38",		mass =  564.0*lb_to_kg, wsType = {4, 5,	36,	86},            Cx = 0.000350, picture = "GBU38.png"		,		settings = Get_Combined_GUISettings_Preset("MDRN_B_A_PGM_TWINWELL")		},
	["GBU-54"] 		= {name = "GBU-54(V)1/B",	mass =  558.0*lb_to_kg, wsType = "weapons.bombs.GBU_54_V_1B", 	Cx = 0.000350, picture = "GBU54.png"		,		settings = Get_Fuze_GUISettings_Preset("MDRN_B_A_PGM_TAILONLY")			},
}


I have made the following additions to this section (red text) :

local function bru_42_3x_bombs(element, clsid)
	local bomb_variant = bombs_data[element] or bombs_data["MK-82"]
    local num_weapons = 3
	local data = {
		category		=	CAT_BOMBS,
		CLSID			=	clsid,
		Picture			=	bomb_variant.picture,
		wsTypeOfWeapon		=	bomb_variant.wsType,
		displayName		=  	_(num_weapons.." "..bomb_variant.name),
		attribute		=	{wsType_Weapon,wsType_Bomb,wsType_Container,WSTYPE_PLACEHOLDER},
		Cx_pil			=	bru_42_cx + num_weapons * bomb_variant.Cx,
		Count			=	num_weapons,
		Weight			=	bru_42_mass + num_weapons * bomb_variant.mass,
		Weight_Empty		=	bru_42_mass,
		Elements		=   	bru_42_ls(element),
		settings		=   	bomb_variant.settings
	}
	declare_loadout(data)
end

local function bru_42_2x_bombs(element, clsid, left)
	local bomb_variant = bombs_data[element] or bombs_data["MK-82"]
    local num_weapons = 2
    local _side = " *\\*"
	if left then _side = " */*" end
	
	local data = {
		category		=	CAT_BOMBS,
		CLSID			=	clsid,
		Picture			=	bomb_variant.picture,
		wsTypeOfWeapon		=	bomb_variant.wsType,
		displayName		=  	_(num_weapons.." "..bomb_variant.name .. _side),
		attribute		=	{wsType_Weapon,wsType_Bomb,wsType_Container,WSTYPE_PLACEHOLDER},
		Cx_pil			=	bru_42_cx + num_weapons * bomb_variant.Cx,
		Count			=	num_weapons,
		Weight			=	bru_42_mass + num_weapons * bomb_variant.mass,
		Weight_Empty		=	bru_42_mass,
		Elements		=   	bru_42_ls_2(element,left),
		settings		=   	bomb_variant.settings
	}
	declare_loadout(data)
end

local function bru_42_2x_side_bombs(element, clsid, left)
	local bomb_variant = bombs_data[element] or bombs_data["MK-82"]
    local num_weapons = 2
	local data = {
		category		=	CAT_BOMBS,
		CLSID			=	clsid,
		Picture			=	bomb_variant.picture,
		wsTypeOfWeapon		=	bomb_variant.wsType,
		displayName		=  	_(num_weapons.." "..bomb_variant.name .. " *-*"),
		attribute		=	{wsType_Weapon,wsType_Bomb,wsType_Container,WSTYPE_PLACEHOLDER},
		Cx_pil			=	bru_42_cx + num_weapons * bomb_variant.Cx,
		Count			=	num_weapons,
		Weight			=	bru_42_mass + num_weapons * bomb_variant.mass,
		Weight_Empty		=	bru_42_mass,
		Elements		=   	bru_42_si_2(element, left),
		settings		=   	bomb_variant.settings
	}
	declare_loadout(data)
end

 

Greetings
Homelander

AV8BNA_Weapons.lua

Edited by Homelander
  • Like 1
  • Thanks 7

Modules:  F-15E Strike Eagle, F/A-18 Hornet, F-16 Viper, F-4E Phantom II, Su-33 Flanker, A-10C II Tank Killer, AV-8B Night Attack, JF-17 Thunder, Ka-50 Back Shark 3, AH-64D, Combined Arms, Supercarrier    Terrains: Nevada, Sinai, Syria, Persian Gulf, Cold War Germany  •  Hardware: AMD Ryzen 9 9950X3D (Stock), 64 GB DDR5-6000 CL 28, ASUS ROG STRIX LC RTX 4090 OC (24 GB), 12 TB (3x4 TB) PCIe 4.0 M.2 SDDs, AsRock X870E Nova WiFi, Fortron Hydro TI Pro (1000W / Titanium), be quiet! Light Base 900 FX, Sound BlasterX G6, Beyerdynamic MMX 300 (V2), Audeze Maxwell XB, TrackIR 5 Pro, 38" IPS (144 Hz) 4K  Display VPC WarBRD Base & VPC Constellation ALPHA Prime Grip, VPC Mongoos T-50CM3 Throttle, WinWing 15EX Metal Throttle, VPC Control Panel #1, VPC ACE Flight Pedals, Logitech G502x Plus, Steelseries Apex Pro, Elgato Stream Deck XL
Space Mutt Signature.png

Posted

Thank you for your work!
I tried it out straight away, it works.
But be careful, the laser code still has to be set on the kneeboard. Code settings in the ME or on the rearm will be ignored.

  • 4 weeks later...
  • 2 months later...
  • 7 months later...
Posted (edited)

There is a workaround available: simply add a weapon of the same type on a single rack, then the option of adjusting the fuze setting is available and can be transferred through the "copy to pylons with the same weapon":

image.jpeg

image.jpeg

Edited by Szprynmann
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...