Nealius Posted January 17 Posted January 17 We should be able to create edited 6dof limits for GoPro style footage without breaking IC by following this guide, which uses server.lua in Saved Games. However the Hind's coding method for the view does not match the larger DCS standard. Compare the Apache's code to that of the Hind's: Apache ViewSettings = { Cockpit = { CockpitAnchorPoint = {1.926, 0.922, 0.0}, [1] = {-- player slot 1 (PLT) CameraViewAngleLimits = {20.000000,140.000000}, CockpitLocalPoint = {1.784, 0.992, 0.045}, CameraAngleRestriction = {false,90.000000,0.500000}, CameraAngleLimits = {200,-90.000000,90.000000}, EyePoint = {0.090, 0.000, 0.000}, ShoulderSize = 0.25, Allow360rotation = false, limits_6DOF = {x = {-0.2,0.3}, y = {-0.3,0.2}, z = {-0.3,0.3}, roll = 90.000000}, }, [2] = {-- player slot 2 (CPG) CameraViewAngleLimits = {20.000000,140.000000}, CockpitLocalPoint = {1.784 + 1.300, 0.992 - 0.45, 0.045}, CameraAngleRestriction = {false,90.000000,0.500000}, CameraAngleLimits = {200,-90.000000,90.000000}, EyePoint = {0.090, 0.000, 0.000}, ShoulderSize = 0.25, Allow360rotation = false, limits_6DOF = {x = {-0.2,0.3}, y = {-0.3,0.2}, z = {-0.3,0.3}, roll = 90.000000}, }, }, Chase = { LocalPoint = {-5.0,1.0,3.0}, AnglesDefault = {0.000000,0.000000}, }, Arcade = { LocalPoint = {-21.500000,5.618000,0.000000}, AnglesDefault = {0.000000,-8.000000}, }, } Hind local function player(x,y) return { CockpitLocalPoint = {x,y,anchor[3]}, CameraViewAngleLimits = {20.000000,140.000000}, CameraAngleRestriction = {false,90.000000,0.400000}, CameraAngleLimits = {200,-65.000000,90.000000}, EyePoint = {0.05000,0.100000,0.000000}, ShoulderSize = 0.25, Allow360rotation = false, limits_6DOF = {x = {-0.1,0.5},y ={-0.3,0.1},z = {-0.3,0.3},roll = 90.0}, } end local function gunner(x,y, ang) return { CockpitLocalPoint = {x,y, 0.0}, CockpitLocalPointAzimuth = ang, CameraViewAngleLimits = {20.000000,100.000000}, CameraAngleRestriction = {false,60.000000,0.400000}, CameraAngleLimits = {90,-45.000000,60.000000}, EyePoint = {0.090000,0.000000,0.000000}, Allow360rotation = false, ExternalShapeUsed = true, limits_6DOF = {x = {-1.1, 1.6}, y = {-0.55, 0.55}, z = {-0.46, 0.46}, roll = 45.000000}, } end ViewSettings = { --}, -- Cockpit Cockpit = { CockpitAnchorPoint = anchor, player(3.15, 0.57), player(4.65, -0.05),--видимо X Y(4.65, 0.04) gunner(0.0, 0.0, 90), }, --Cockpit Chase = { LocalPoint = {-5.700000,1.400000,-3}, AnglesDefault = {0,-8.000000}, }, -- Chase Arcade = { LocalPoint = {-20.000000,5.000000,0.000000}, AnglesDefault = {0.000000,-8.000000}, }, -- Arcade } As you can see, the code syntax is not compatible with the standard used in all other DCS modules for view editing using Saved Games server.lua file. 1
Vakarian Posted January 17 Posted January 17 Well, it's "the same thing" except pilot and gunner definitions are extracted to a local function.
Nealius Posted January 17 Author Posted January 17 (edited) 37 minutes ago, Vakarian said: Well, it's "the same thing" except pilot and gunner definitions are extracted to a local function. Which means it can't be used in Saved Games server.lua, which is the only way to avoid IC faults and avoid having to re-edit the limits every time there's a DCS update. So techinically it is not the "same thing." Edited January 17 by Nealius 1
Recommended Posts