Jump to content

Recommended Posts

Hello fellow editors...

 

Well i'm not really an editor but i'm starting. So i've been scanning the form looking for the command for the config files to turn on the area and point lock (CTRL + T) by default to activate a targeting POD in the AT-6B mod on the steam workshop. I'm not getting any replies from the creators and decided to take matters into my own hand.

 

I have zero arma 3 editing experience due to the arma 2 nightmare.

 

Anyone have the code needed (or commands) to turn on the function of area and point lock in the config/script files?

 

Thanks,

 

Stepko

Share this post


Link to post
Share on other sites

Hello,

 

I've spent all day looking around. Here is what I found. Any help would be great!

 

This is the config for an aircraft that works with the target lock (ctrl+T)

Quote

 

                    class TargetingPodGroupOn {
                        condition = "pilotcameralock";
                        
                        class TargetingPodDir {
                            type = "line";
                            width = 3.0;
                            points[] = {{"TargetingPodTarget", 1, "Limit0109", 1, {0.0208056, 0.00517311}, 1}, {"TargetingPodTarget", 1, "Limit0109", 1, {0.0208056, -0.00517311}, 1}, {}, {"TargetingPodTarget", 1, "Limit0109", 1, {0.0176381, -0.0147318}, 1}, {"TargetingPodTarget", 1, "Limit0109", 1, {0.0117854, -0.0220477}, 1}, {}, {"TargetingPodTarget", 1, "Limit0109", 1, {0.00413849, -0.026007}, 1}, {"TargetingPodTarget", 1, "Limit0109", 1, {-0.00413849, -0.026007}, 1}, {}, {"TargetingPodTarget", 1, "Limit0109", 1, {-0.0117854, -0.0220477}, 1}, {"TargetingPodTarget", 1, "Limit0109", 1, {-0.0176381, -0.0147318}, 1}, {}, {"TargetingPodTarget", 1, "Limit0109", 1, {-0.0208056, -0.00517311}, 1}, {"TargetingPodTarget", 1, "Limit0109", 1, {-0.0208056, 0.00517312}, 1}, {}, {"TargetingPodTarget", 1, "Limit0109", 1, {-0.0176381, 0.0147318}, 1}, {"TargetingPodTarget", 1, "Limit0109", 1, {-0.0117854, 0.0220477}, 1}, {}, {"TargetingPodTarget", 1, "Limit0109", 1, {-0.00413849, 0.026007}, 1}, {"TargetingPodTarget", 1, "Limit0109", 1, {0.00413849, 0.026007}, 1}, {}, {"TargetingPodTarget", 1, "Limit0109", 1, {0.0117854, 0.0220477}, 1}, {"TargetingPodTarget", 1, "Limit0109", 1, {0.0176381, 0.0147318}, 1}, {}, {"TargetingPodTarget", 1, "Limit0109", 1, {0.0208056, 0.0051731}, 1}, {"TargetingPodTarget", 1, "Limit0109", 1, {0.0208056, -0.00517312}, 1}, {}, {"TargetingPodTarget", 1, "Limit0109", 1, {0.0176381, -0.0147318}, 1}, {"TargetingPodTarget", 1, "Limit0109", 1, {0.0117854, -0.0220477}, 1}, {}, {"TargetingPodTarget", 1, "Limit0109", 1, {0.00413849, -0.026007}, 1}, {"TargetingPodTarget", 1, "Limit0109", 1, {-0.0041385, -0.026007}, 1}, {}, {"TargetingPodTarget", 1, "Limit0109", 1, {-0.0117854, -0.0220477}, 1}, {"TargetingPodTarget", 1, "Limit0109", 1, {-0.0176381, -0.0147318}, 1}, {}, {}};
                        };
                    };
                   

 

 

This is the CfgVehicles.hpp for the AT-6B

 

Quote

class IRSensorComponent : SensorTemplateIR {
                        class AirTarget {
                            minRange = 500;
                            maxRange = 5000;
                            objectDistanceLimitCoef = -1;
                            viewDistanceLimitCoef = 1;
                        };
                        
                        class GroundTarget {
                            minRange = 500;
                            maxRange = 4000;
                            objectDistanceLimitCoef = 1;
                            viewDistanceLimitCoef = 1;
                        };
                        angleRangeHorizontal = 50;
                        angleRangeVertical = 37;
                        maxTrackableSpeed = 100;
                        animDirection = "PilotCamera_V";
                    };
                    
                    class VisualSensorComponent : SensorTemplateVisual {
                        class AirTarget {
                            minRange = 500;
                            maxRange = 4000;
                            objectDistanceLimitCoef = -1;
                            viewDistanceLimitCoef = 1;
                        };
                        
                        class GroundTarget {
                            minRange = 500;
                            maxRange = 3000;
                            objectDistanceLimitCoef = 1;
                            viewDistanceLimitCoef = 1;
                        };
                        angleRangeHorizontal = 50;
                        angleRangeVertical = 37;
                        maxTrackableSpeed = 100;
                        animDirection = "PilotCamera_V";
                    };

 

 

There is no "pilotcameralock" in the AT-6B config and i'm assuming if I turn that on, I'll be one step closer to a solution.

 

Can anyone confirm that this is the correct code to edit?

Share this post


Link to post
Share on other sites

for WSO's point lock ability, you should input these code in mainturret config(gunner = WSO in airplane)

this code is example from F-14 RIO and pilotcamera(for pilot) config, and you don't need to copy & paste it. just check the bold line. 

it's should be work for WSO locking the point ability when gunner optic is zoomed.

 

        class NewTurret;
        class Turrets 
        {
            class MainTurret: NewTurret
            {
                commanding = -1;
                isCopilot = 0;
                gunnerName = "Radar Intercept Officer";
                primaryGunner = 0;
                primaryObserver=1;
                proxyIndex=1;
                CanEject = false;
                memoryPointsGetInGunner = "pos gunner";
                memoryPointsGetInGunnerDir = "pos gunner dir";
                castGunnerShadow = 1;
                viewGunnerShadow = 1;
                gunnerAction="FIR_F14_RIO";
                gunnerInAction="FIR_F14_RIO";
                maxHorizontalRotSpeed = 8.2;
                maxVerticalRotSpeed = 8.2;
                stabilizedInAxes = 0;
                startEngine = 0;
                body = "main1turret";
                gun = "main1gun";
                animationSourceBody = "mainturret";
                animationSourceGun = "maingun";
                minElev = -90;
                maxElev = 15.0;
                initElev = -45;
                minTurn = -350;
                maxTurn = 350;
                initTurn = 0;
                soundServo[] = {"",0.01,1};
                outGunnerMayFire = 1;
                inGunnerMayFire = 1;
                gunBeg = "ustihlavne1";
                gunEnd = "konechlavne1";        
                memoryPointGunnerOptics = "ustihlavne1";
                selectionFireAnim = "";
                turretInfoType = "RscOptics_UAV_gunner";
                gunnerForceOptics = 0;
                weapons[] = {"Laserdesignator_mounted"};
                magazines[] = {"Laserbatteries"};
                usePip = 1;
                class OpticsIn
                {
                    class Wide
                    {
                        opticsDisplayName = "W";
                        initAngleX = 0;
                        minAngleX = -360;
                        maxAngleX = 360;
                        initAngleY = 0;
                        minAngleY = -350;
                        maxAngleY = 350;
                        initFov = 0.7;
                        minFov = 0.03;
                        maxFov = 1.2;
                        directionStabilized = 0;
                        horizontallyStabilized = 0;
                        stabilizedInAxes = 3;

                        visionMode[] = {"Normal","NVG","Ti"};
                        thermalMode[] = {0,1};
                        gunnerOpticsModel = "A3\drones_f\Weapons_F_Gamma\Reticle\UGV_01_Optics_Gunner_F.p3d";
                    };
                    class Medium: Wide
                    {
                        opticsDisplayName = "M";
                        initFov = 0.093;
                        minFov = 0.093;
                        maxFov = 0.093;
                        gunnerOpticsModel = "\A3\Weapons_F_Beta\Reticle\Heli_Attack_01_Optics_Gunner_medium_F";
                        directionStabilized = 1;
                        horizontallyStabilized = 1;
                        stabilizedInAxes = 3;

                    };
                    class Narrow: Wide
                    {
                        opticsDisplayName = "N";
                        gunnerOpticsModel = "\A3\Weapons_F_Beta\Reticle\Heli_Attack_01_Optics_Gunner_narrow_F";
                        initFov = 0.029;
                        minFov = 0.029;
                        maxFov = 0.029;
                        directionStabilized = 1;
                        horizontallyStabilized = 1;
                        stabilizedInAxes = 3;

                    };
                };
                class OpticsOut
                {
                    class ViewGunner
                    {
                        stabilizedInAxes = 0;
                        directionStabilized = 0;
                        horizontallyStabilized = 0;

                        initFov = 1;
                        minFov = 0.6;
                        maxFov = 0.85;
                        initAngleX = 0;
                        minAngleX = -35;
                        maxAngleX = 85;
                        initAngleY = 0;
                        minAngleY = -130;
                        maxAngleY = 130;
                        minMoveX = -0.2;
                        maxMoveX = 0.2;
                        minMoveY = -0.025;
                        maxMoveY = 0.1;
                        minMoveZ = -0.2;
                        maxMoveZ = 0.2;
                        visionMode[] = {"Normal","NVG"};
                        gunnerOpticsModel = "";
                        gunnerOpticsEffect[] = {};
                    };
                };
            };
        };        
        
        class pilotCamera                               /// camera for pilot to observe sling loading
        {
            class OpticsIn                              /// what is seen if player switches to optics
            {          
                    class Wide
                    {
                        opticsDisplayName = "W";
                        initAngleX = 0;
                        minAngleX = -360;
                        maxAngleX = 360;
                        initAngleY = 0;
                        minAngleY = -350;
                        maxAngleY = 350;
                        initFov = 0.7;
                        minFov = 0.03;
                        maxFov = 1.2;
                        stabilizedInAxes = 0;
                        directionStabilized = 0;
                        horizontallyStabilized = 0;
                        visionMode[] = {"Normal","NVG","Ti"};
                        thermalMode[] = {0,1};
                        gunnerOpticsModel = "A3\drones_f\Weapons_F_Gamma\Reticle\UGV_01_Optics_Gunner_F.p3d";
                    };
                    class Medium: Wide
                    {
                        opticsDisplayName = "M";
                        initFov = 0.093;
                        minFov = 0.093;
                        maxFov = 0.093;
                        gunnerOpticsModel = "\A3\Weapons_F_Beta\Reticle\Heli_Attack_01_Optics_Gunner_medium_F";
                        stabilizedInAxes = 3;
                        directionStabilized = 1;
                        horizontallyStabilized = 1;
                    };
                    class Narrow: Wide
                    {
                        opticsDisplayName = "N";
                        gunnerOpticsModel = "\A3\Weapons_F_Beta\Reticle\Heli_Attack_01_Optics_Gunner_narrow_F";
                        initFov = 0.029;
                        minFov = 0.029;
                        maxFov = 0.029;
                        stabilizedInAxes = 3;
                        directionStabilized = 1;
                        horizontallyStabilized = 1;
                    };
                showMiniMapInOptics                             = true; /// allows showing GPS mini map in optics
                showUAVViewpInOptics                    = false;        /// allows showing UAV feed in this optics
                showSlingLoadManagerInOptics    = false;                /// allows displaying of Sling Loading Assistant
            };
            minTurn                 = -90;              //turn
            maxTurn                 = 90;               //turn
            initTurn                = 0;                //turn
            minElev                 = -90;              //turn
            maxElev                 = 90;               //turn
            initElev                = 0;                //turn
            maxXRotSpeed            = 1;                // movement speed
            maxYRotSpeed            = 1;                // movement speed
            pilotOpticsShowCursor   = 1;                //to show aimCursor (is useful to see plane direction)
            controllable            = true;     // set false to have static camera, true to have moving like a turret
        };
        memoryPointDriverOptics = "pip_pos_0";        /// what memory point is the origin of the camera      

 

it's should be work for WSO locking the point ability when gunner optic is zoomed.

  • Like 1

Share this post


Link to post
Share on other sites

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now

×