ED Forums - View Single Post - F-5E Wing Tip Tanks Mod
View Single Post
Old 07-30-2016, 04:08 PM   #39
SkateZilla
Moderator/ED Testers Team
 
SkateZilla's Avatar
 
Join Date: Jun 2012
Location: Virginia Beach
Posts: 18,631
Default

07/10/2017: NOTE, FOR DCS WORLD 2.1, I NEED TO ADJUST TEXTURES and RE-EXPORT, PLEASE STAND BY

*Revised on 10/04/16 To Remove A Step*
Attached is a New .RAR w/ the EDM Files, DDS Files, PSD File, and Instructions are Below:

BACKUP THE F-5E.LUA BEFORE YOU EDIT IT!


Modify the F-5E.lua in NOTEPAD++
(Revised on 10/04/2016)
Under Local TIPs, Add:
Code:
{ CLSID = "{PTB_50_F5A_AUXTANK-L}", arg = 308, arg_value = 1.0, required ={{station =7, loadout={"{PTB_50_F5A_AUXTANK-R}"}}}},            -- Wingtip 50 GAL Tank
{ CLSID = "{PTB_50_F5A_AUXTANK-R}", arg = 314, arg_value = 1.0, required ={{station =1, loadout={"{PTB_50_F5A_AUXTANK-L}"}}}},            -- Wingtip 50 GAL Tank

Add Loadout Declarations to the Bottom of F-5E.lua, Below the make-tiger() Line:
Code:
declare_loadout(
	{
		category		= CAT_FUEL_TANKS,
		CLSID			= "{PTB_50_F5A_AUXTANK-L}",
		attribute		=  {wsType_Air,wsType_Free_Fall,wsType_FuelTank,WSTYPE_PLACEHOLDER},
		Picture			= "PTB.png",
		displayName		= _("F-5A Wing Tip Aux Fuel Tank 50 U.S. GAL - Left"),
		Weight_Empty	= 15, --kg
		Weight			= 15 +  3.084 * 50, --kg
		Cx_pil			= 0.000244140625,  
		shape_table_data = 
		{
			{
				name 	= "PTB_50_F5A-Left",
				file	= "F5A_WingTipAuxTankL";
				life	= 1;
				fire	= { 0, 1};
				username	= "F5A_WingTipAuxTankL";
				index	= WSTYPE_PLACEHOLDER;
			},
		},
		Elements	= 
		{
			{
				ShapeName	= "F5A_WingTipAuxTankL",
			}, 
		}, 
	}
)

declare_loadout(
	{
		category		= CAT_FUEL_TANKS,
		CLSID			= "{PTB_50_F5A_AUXTANK-R}",
		attribute		=  {wsType_Air,wsType_Free_Fall,wsType_FuelTank,WSTYPE_PLACEHOLDER},
		Picture			= "PTB.png",
		displayName		= _("F-5A Wing Tip Aux Fuel Tank 50 U.S. GAL - Right"),
		Weight_Empty	= 15, --kg
		Weight			= 15 +  3.084 * 50, --kg
		Cx_pil			= 0.000244140625,  
		shape_table_data = 
		{
			{
				name 	= "PTB_50_F5A-Right",
				file	= "F5A_WingTipAuxTankR";
				life	= 1;
				fire	= { 0, 1};
				username	= "F5A_WingTipAuxTankR";
				index	= WSTYPE_PLACEHOLDER;
			},
		},
		Elements	= 
		{
			{
				ShapeName	= "F5A_WingTipAuxTankR",
			}, 
		}, 
	}
)
Now Modify the Livery description.lua You Use with the Tanks to Load the Textures:
Add:
Code:
	{"F5A_WingTipAuxTankL", 0 ,"F5A_WingTipAuxTank_DIFF", false};
	{"F5A_WingTipAuxTankL", 2 ,"F5A_WingTipAuxTank_SPEC", false};
	{"F5A_WingTipAuxTankR", 0 ,"F5A_WingTipAuxTank_DIFF", false};
	{"F5A_WingTipAuxTankR", 2 ,"F5A_WingTipAuxTank_SPEC", false};
	{"F5A_WingTipAuxTank_GLASS", 0 ,"F5A_WingTipAuxTank_GLASS", false};
Now Download RAR,
Extract the .EDMS to /CoreMods/Aircraft/F-5E/Shapes/ Folder
(Wing Tank Shape Taken from T-38/F-5A/B MAX File Created By FastCargo)

Extract .DDS Files to the Livery Folder You want to Use Tanks With, ie /CoreMods/Aircraft/F-5E/Liveries/F-5E/USA Standard/
Attached Thumbnails
Click image for larger version

Name:	Screen_160730_105350.jpg
Views:	1088
Size:	81.5 KB
ID:	145464   Click image for larger version

Name:	Screen_160730_105425.jpg
Views:	1023
Size:	82.7 KB
ID:	145465   Click image for larger version

Name:	Screen_160730_105451.jpg
Views:	846
Size:	60.8 KB
ID:	145466  

Attached Files
File Type: rar F-5ATanks_7-30-2016-2.rar (442.4 KB, 261 views)
__________________
Windows 10 Pro, HAF922, Ryzen 2700X @ 4.6Ghz, 32GB DDR4-3200 GSkill,
2x R7970 Lightnings Crossfired @ 1.1/6.0GHz, Creative XFi Plat. Fatal1ty Champion,
3x ASUS VS248HP + HannsĀ·G HZ201HPB + Acer AL2002 (5760x1080+1600x900+1680x1050)
TM Warthog HOTAS, TM MFDs, CH Fighterstick, Pro Throttle, CH Pro Pedals, TrackIR4 Pro

Last edited by SkateZilla; 07-10-2017 at 03:28 PM.
SkateZilla is offline   Reply With Quote