DieHard Posted March 17, 2018 Posted March 17, 2018 Somewhere on forums a guy showed how to mod a .lua file so the pilot sits closer to the instrument panel in cockpit. It was just a matter of changing some numbers. I don't know where I saw it or what file to modify. Anybody know how it is done ? [sIGPIC][/sIGPIC]
PeaceSells Posted June 13, 2018 Posted June 13, 2018 I know this is late, but coincidentally I just did that a few days ago (except I changed my position to farther from the instrument panel, instead of closer, but also increased my zoom). First you need to go into the DCS Options screen, into the Misc. tab and enable User Snap-view Saving. Then you have two ways of changing your position inside the aircraft: A) Start a mission, use your mouse (or TrackIR) to move your head to the desired position and then hit RightAlt + Num0. This will save the new position (write it as default position in your SnapViews.lua file). You might need to hit Num5 after that to activate the new default position (don't remember if this was necessary). B) Instead of the above, you can edit the SnapViews.lua file manually: Go to this folder: C:\Users\YOURUSERNAME\Saved Games\DCS.openbeta\Config\View Open the file SnapViews.lua and find the part that refers to the UH-1H (shown below). Find the value that I marked in red below. Increasing this value will shift your head forward. Increase it (I would start with 0.100000), save the file and test in DCS until you reach the desired position. You don't need to restart DCS each time you modify the file, but you need to restart the mission. SnapViews["[b][size="4"]UH-1H[/size][/b]"] = { [1] = {-- player slot 1 [1] = {--LWin + Num0 : Snap View 0 viewAngle = 67.452896,--FOV hAngle = 15.000000, vAngle = -20.067383, x_trans = 0.000000, y_trans = 0.000000, z_trans = 0.000000, rollAngle = 0.000000, }, [2] = {--LWin + Num1 : Snap View 1 viewAngle = 37.846794,--FOV hAngle = 51.644135, vAngle = -51.870411, x_trans = 0.000000, y_trans = 0.000000, z_trans = 0.000000, rollAngle = 0.000000, }, [3] = {--LWin + Num2 : Snap View 2 viewAngle = 36.178646,--FOV hAngle = -1.912186, vAngle = -34.446247, x_trans = 0.000000, y_trans = -0.025421, z_trans = 0.073226, rollAngle = 0.000000, }, [4] = {--LWin + Num3 : Snap View 3 viewAngle = 73.605141,--FOV hAngle = -90.361992, vAngle = -44.103138, x_trans = 0.169696, y_trans = -0.073508, z_trans = 0.000000, rollAngle = 0.000000, }, [5] = {--LWin + Num4 : Snap View 4 viewAngle = 91.348198,--FOV hAngle = 109.752129, vAngle = 1.484382, x_trans = 0.190306, y_trans = 0.044778, z_trans = -0.150335, rollAngle = 0.000000, }, [6] = {--LWin + Num5 : Snap View 5 viewAngle = 42.512844,--FOV hAngle = 0.000000, vAngle = -4.478010, x_trans = 0.154018, y_trans = 0.000000, z_trans = 0.000000, rollAngle = 0.000000, }, [7] = {--LWin + Num6 : Snap View 6 viewAngle = 91.348198,--FOV hAngle = -108.852020, vAngle = 0.085984, x_trans = 0.190306, y_trans = 0.044778, z_trans = 0.139404, rollAngle = 0.000000, }, [8] = {--LWin + Num7 : Snap View 7 viewAngle = 89.777542,--FOV hAngle = 16.411518, vAngle = -27.209915, x_trans = 0.000000, y_trans = 0.000000, z_trans = -0.218292, rollAngle = 0.000000, }, [9] = {--LWin + Num8 : Snap View 8 viewAngle = 88.727844,--FOV hAngle = 0.000000, vAngle = 34.042202, x_trans = 0.142145, y_trans = 0.000000, z_trans = 0.000000, rollAngle = 0.000000, }, [10] = {--LWin + Num9 : Snap View 9 viewAngle = 59.208893,--FOV hAngle = -32.128311, vAngle = -5.720805, x_trans = 0.000000, y_trans = 0.000000, z_trans = 0.000000, rollAngle = 0.000000, }, [11] = {--look at left mirror viewAngle = 56.032040,--FOV hAngle = 14.803060, vAngle = 3.332499, x_trans = 0.000000, y_trans = 0.000000, z_trans = 0.000000, rollAngle = 0.000000, }, [12] = {--look at right mirror viewAngle = 56.032040,--FOV hAngle = -14.414484, vAngle = 3.332499, x_trans = 0.000000, y_trans = 0.000000, z_trans = 0.000000, rollAngle = 0.000000, }, [13] = {--default view viewAngle = 56.000000,--FOV hAngle = 0.000000, vAngle = -15.592758, [b][color="Red"]x_trans = 0.000000,[/color][/b] y_trans = 0.000000, z_trans = 0.000000, rollAngle = 0.000000, }, [14] = {--default view - VR viewAngle = 89.777542,--FOV hAngle = 0.000000, vAngle = -15.592758, x_trans = 0.000000, y_trans = 0.000000, z_trans = 0.000000, rollAngle = 0.000000, }, }, Hope it helps... My DCS modding videos: Modules I own so far: Black Shark 2, FC3, UH-1H, M-2000C, A-10C, MiG-21, Gazelle, Nevada map
ctguy1955 Posted June 14, 2018 Posted June 14, 2018 I would like to sit farther back in all planes in DCS, which one for default view (13) would I need to change ? Thanks
PeaceSells Posted June 14, 2018 Posted June 14, 2018 x_trans, the same I marked in red above, but instead of increase it you have to decrease it (if it's 0, make it negative). As far as I know, you will have to repeat for each plane. But I guess it's faster to just use your mouse in-game and hit the snapview button. My DCS modding videos: Modules I own so far: Black Shark 2, FC3, UH-1H, M-2000C, A-10C, MiG-21, Gazelle, Nevada map
Recommended Posts