Jump to content
lordfrith

[help] user actions to open doors on MH-900

Recommended Posts

Hi folks,

I noticed when peering about in the light heli configs that the civilian MH heli has user actions to separately open all 4 doors.

 

pic:

http://steamcommunity.com/sharedfiles/filedetails/?id=1304367873

 

i can get it working as a Virtual Garage option but not as an in game action, my intention being to make it so you can open the door before you get in/out.

 

I thought changing 'available' to 1 would do it...

 

Quote

class DoorLF_Open
            {
                userActionID=50;
                displayName="$STR_A3_CFGVEHICLES_USERACTIONS_OPENLDOOR0";
                displayNameDefault="<img image='\A3\Ui_f\data\IGUI\Cfg\Actions\open_door_ca.paa' size='2.5' />";
                textToolTip="$STR_A3_CFGVEHICLES_USERACTIONS_OPENLDOOR0";
                priority=1.5;
                radius=1.5;
                radiusView=0.2;
                showIn3D=17;
                available=1;
                position="action_doorL_front";
                showWindow=1;
                onlyForPlayer=1;
                shortcut="";
                condition="((this DoorPhase 'DoorL_Front_Open')  ==  0) && (alive this) && ((this animationPhase 'AddDoors')  ==  1) && false";
                statement="this animatedoor ['DoorL_Front_Open', 1]";
            };

 

i am fairly bad at configs and pretty sure some syntax is outdated. Here is whole config if anyone can see what i'm missing/doing wrong. Currently this kicks up a  'scope' error but otherwise works minus the working doors:

 

Spoiler

class CfgPatches
{
    class A3_FRITH_FIAHELO
    {
        addonRootClass="A3_LF_veh1";
        requiredVersion=0.1;
        requiredAddons[]=
        {
            "A3_Characters_F",
            "A3_Air_F",
            "A3_FRITH_FIATEAM"
            
        };
        units[]=
        {
            "LF_heli_light_rabChaffCovert_F"            
        };
        weapons[]=
        {
        };
    };
};

class CfgVehicles
{
    class AnimationSources
    {
        class AddMusicUnit;
        class AddCivilian_hide;
        class FLIR_HRot;
        class FLIR_VRot;
        class AddGunHolder;
        class AddBenches;
        class AddHoldingFrame;
        class BenchL_Up;
        class BenchR_Up;
        class BenchL_Up_instant;
        class BenchR_Up_instant;
        class AddDoors;
        class AddBackseats;
        class AddTread;
    };
    
    class Turrets
    {
        class CopilotTurret
        {
            class DefaultVehicleSystemsDisplayManagerLeft;
            class DefaultVehicleSystemsDisplayManagerRight;
        };
        class CargoTurret;
    };    
    class components;
    class EventHandlers;
    class RotorLibHelicopterProperties;
    class Heli_Light_01_unarmed_base_F;
    class LF_heli_light_rabChaffCovert_F: Heli_Light_01_unarmed_base_F
    {
        author="LordFrith";
        _generalMacro="LF_heli_light_rabChaffCovert_F";
        displayName="Rabid Chaffinch";
        class Library
        {
            libTextDesc="The FIA's transport chopper, a re purposed rescue chopper that can travel the island without arousing suspicion";
        };
        model="\A3\Air_F\Heli_Light_01\Heli_Light_01_civil_F.p3d";
        icon="\A3\Air_F\Heli_Light_01\Data\UI\Map_Heli_Light_01_CIV_CA.paa";
        accuracy=1;
        scope=2;
        side=1;
        accuracy=1;
        forceInGarage=1;
        faction="BLU_G_F";
        crew="B_Helipilot_F";
        cost=1000000;
        hiddenSelectionsTextures[]=
        {
            "\LF_veh1\Data\mh9rabid.paa"
        };
        DLC="Heli";
        overviewPicture="\A3\Data_F_Heli\Images\watermarkInfo_page03_ca.paa";
        radarType=1;
        transportSoldier=2;
        hideWeaponsCargo=1;
        cargoProxyIndexes[]={11,10};
        lockDetectionSystem=1;
        incomingMissileDetectionSystem=1;
        class TextureSources
        {
            class BlkGrn
            {
                displayName="black green stripe";
                author="LordFrith";
                textures[]=
                {
                    "\LF_veh1\Data\mh9blk1.paa"
                };
                factions[]=
                {
                    "BLU_G_F"
                };
            };
            class BlkTan
            {
                displayName="black Tan stripe";
                author="LordFrith";
                textures[]=
                {
                    "\LF_veh1\Data\mh9blk2.paa"
                };
                factions[]=
                {
                    "BLU_G_F"
                };
            };
            class GrnTan
            {
                displayName="green tan stripe";
                author="LordFrith";
                textures[]=
                {
                    "\LF_veh1\Data\mh9grn1.paa"
                };
                factions[]=
                {
                    "BLU_G_F"
                };
            };
            class GrnBlk
            {
                displayName="green black stripe";
                author="LordFrith";
                textures[]=
                {
                    "\LF_veh1\Data\mh9grn2.paa"
                };
                factions[]=
                {
                    "BLU_G_F"
                };
            };
            class rabid
            {
                displayName="very orange";
                author="LordFrith";
                textures[]=
                {
                    "\LF_veh1\Data\mh9rabid.paa"
                };
                factions[]=
                {
                    "BLU_G_F"
                };
            };
            class TanBlk
            {
                displayName="tan black stripe";
                author="LordFrith";
                textures[]=
                {
                    "\LF_veh1\Data\mh9tan1.paa"
                };
                factions[]=
                {
                    "BLU_G_F"
                };
            };
            class TanGrn
            {
                displayName="tan green stripe";
                author="LordFrith";
                textures[]=
                {
                    "\LF_veh1\Data\mh9tan2.paa"
                };
                factions[]=
                {
                    "BLU_G_F"
                };
            };
            class Ion
            {
                displayName="$STR_A3_TEXTURESOURCES_ION0";
                author="$STR_A3_Bohemia_Interactive";
                textures[]=
                {
                    "\a3\air_f\Heli_Light_01\Data\heli_light_01_ext_ion_co.paa"
                };
                factions[]=
                {
                    "BLU_G_F"
                };
            };
            class Wasp
            {
                displayName="$STR_A3_TEXTURESOURCES_WASP0";
                author="$STR_A3_Bohemia_Interactive";
                textures[]=
                {
                    "\a3\air_f\Heli_Light_01\Data\Skins\heli_light_01_ext_wasp_co.paa"
                };
                factions[]=
                {
                    "BLU_G_F"
                };
            };
        };
        
        animationList[]=
        {
            "AddDoors",
            0.89999998,
            "AddBackseats",
            0.89999998,
            "AddTread_Short",
            0.5,
            "AddTread",
            0.40000001
        };    
        class TransportBackpacks
        {
        };
        class TransportMagazines
        {
        };
        class TransportWeapons
        {
        };
        class TransportItems
        {
            class _xx_FirstAidKit
            {
                name="FirstAidKit";
                count=4;
            };
        };
        class Damage
        {
            tex[]={};
            mat[]=
            {
                "A3\Air_F\Heli_Light_01\Data\Heli_Light_01_ext_CIV.rvmat",
                "A3\Air_F\Heli_Light_01\Data\Heli_Light_01_ext_damage.rvmat",
                "A3\Air_F\Heli_Light_01\Data\Heli_Light_01_ext_destruct.rvmat",
                "A3\Air_F\Heli_Light_01\Data\Heli_Light_01_ext_UNIColor.rvmat",
                "A3\Air_F\Heli_Light_01\Data\Heli_Light_01_ext_UNIColor_damage.rvmat",
                "A3\Air_F\Heli_Light_01\Data\Heli_Light_01_ext_UNIColor_destruct.rvmat",
                "A3\Air_F\Heli_Light_01\Data\Heli_Light_01_glass.rvmat",
                "A3\Air_F\Heli_Light_01\Data\Heli_Light_01_glass_damage.rvmat",
                "A3\Air_F\Heli_Light_01\Data\Heli_Light_01_glass_damage.rvmat",
                "A3\Air_F\Heli_Light_01\Data\Heli_Light_01_glass_in.rvmat",
                "A3\Air_F\Heli_Light_01\Data\Heli_Light_01_glass_damage.rvmat",
                "A3\Air_F\Heli_Light_01\Data\Heli_Light_01_glass_damage.rvmat",
                "A3\Air_F\Heli_Light_01\Data\Heli_Light_01_int.rvmat",
                "A3\Air_F\Heli_Light_01\Data\Heli_Light_01_int_damage.rvmat",
                "A3\Air_F\Heli_Light_01\Data\Heli_Light_01_int_destruct.rvmat",
                "A3\Air_F\Heli_Light_01\Data\Heli_Light_01_detail.rvmat",
                "A3\Air_F\Heli_Light_01\Data\Heli_Light_01_detail_damage.rvmat",
                "A3\Air_F\Heli_Light_01\Data\Heli_Light_01_detail_destruct.rvmat"
            };
        };
        class AnimationSources: AnimationSources
        {
            class AddMusicUnit: AddMusicUnit
            {
                scope=0;
            };
            class FLIR_HRot: FLIR_HRot
            {
                scope=0;
            };
            class FLIR_VRot: FLIR_VRot
            {
                scope=0;
            };
            class AddBenches: AddBenches
            {
                scope=0;
            };
            class AddHoldingFrame: AddHoldingFrame
            {
                scope=0;
            };
            class BenchL_Up: BenchL_Up
            {
                scope=0;
            };
            class BenchR_Up: BenchR_Up
            {
                scope=0;
            };
            class BenchL_Up_instant: BenchL_Up_instant
            {
                scope=0;
            };
            class BenchR_Up_instant: BenchR_Up_instant
            {
                scope=0;
            };
            class AddDoors: AddDoors
            {
                scope=2;
                initPhase=1;
            };
            class AddBackseats: AddBackseats
            {
                initPhase=1;
            };
            class AddTread: AddTread
            {
                initPhase=1;
            };
            class DoorL_Front_Open
            {
                displayName="Front Left Door";
                source="user";
                author="$STR_A3_Bohemia_Interactive";
                animPeriod=0.80000001;
                initPhase=0;
                scope=2;
            };
            class DoorR_Front_Open
            {
                displayName="Front Right Door";
                source="user";
                author="$STR_A3_Bohemia_Interactive";
                animPeriod=0.80000001;
                initPhase=0;
                scope=2;
            };
            class DoorL_Back_Open
            {
                displayName="Back Left Door";
                source="user";
                author="$STR_A3_Bohemia_Interactive";
                animPeriod=0.80000001;
                initPhase=0;
                scope=2;
            };
            class DoorR_Back_Open
            {
                displayName="Back Right Door";
                source="user";
                author="$STR_A3_Bohemia_Interactive";
                animPeriod=0.80000001;
                initPhase=0;
                scope=2;
            };
        };
        class Turrets: Turrets
        {
            class CopilotTurret: CopilotTurret
            {
                isPersonTurret=0;
            };
        };
        class UserActions
        {
            class DoorLF_Open
            {
                userActionID=50;
                displayName="$STR_A3_CFGVEHICLES_USERACTIONS_OPENLDOOR0";
                displayNameDefault="<img image='\A3\Ui_f\data\IGUI\Cfg\Actions\open_door_ca.paa' size='2.5' />";
                textToolTip="$STR_A3_CFGVEHICLES_USERACTIONS_OPENLDOOR0";
                priority=1.5;
                radius=1.5;
                radiusView=0.2;
                showIn3D=17;
                available=1;
                position="action_doorL_front";
                showWindow=1;
                onlyForPlayer=1;
                shortcut="";
                condition="((this DoorPhase 'DoorL_Front_Open')  ==  0) && (alive this) && ((this animationPhase 'AddDoors')  ==  1) && false";
                statement="this animatedoor ['DoorL_Front_Open', 1]";
            };
            class DoorRF_Open: DoorLF_Open
            {
                userActionID=52;
                displayName="$STR_A3_CFGVEHICLES_USERACTIONS_OPENRDOOR0";
                textToolTip="$STR_A3_CFGVEHICLES_USERACTIONS_OPENRDOOR0";
                position="action_doorR_front";
                condition="((this DoorPhase 'DoorR_Front_Open') == 0) && (alive this) && ((this animationPhase 'AddDoors') == 1) && false";
                statement="this animatedoor ['DoorR_Front_Open', 1]";
            };
            class DoorLB_Open: DoorLF_Open
            {
                userActionID=54;
                position="action_doorL_back";
                condition="((this DoorPhase 'DoorL_Back_Open') == 0) && (alive this) && ((this animationPhase 'AddDoors') == 1) && false";
                statement="this animatedoor ['DoorL_Back_Open', 1]";
            };
            class DoorRB_Open: DoorLF_Open
            {
                userActionID=56;
                displayName="$STR_A3_CFGVEHICLES_USERACTIONS_OPENRDOOR0";
                textToolTip="$STR_A3_CFGVEHICLES_USERACTIONS_OPENRDOOR0";
                position="action_doorR_back";
                condition="((this DoorPhase 'DoorR_Back_Open') == 0) && (alive this) && ((this animationPhase 'AddDoors') == 1) && false";
                statement="this animatedoor ['DoorR_Back_Open', 1]";
            };
            class DoorLF_Close: DoorLF_Open
            {
                userActionID=51;
                displayName="$STR_A3_CFGVEHICLES_USERACTIONS_CLOSELDOOR0";
                textToolTip="$STR_A3_CFGVEHICLES_USERACTIONS_CLOSELDOOR0";
                condition="((this DoorPhase 'DoorL_Front_Open') > 0) && (alive this) && ((this animationPhase 'AddDoors')  ==  1) && false";
                statement="this animatedoor ['DoorL_Front_Open', 0]";
            };
            class DoorRF_Close: DoorLF_Close
            {
                userActionID=53;
                displayName="$STR_A3_CFGVEHICLES_USERACTIONS_CLOSERDOOR0";
                textToolTip="$STR_A3_CFGVEHICLES_USERACTIONS_CLOSERDOOR0";
                position="action_doorR_front";
                condition="((this DoorPhase 'DoorR_Front_Open') > 0) && (alive this) && ((this animationPhase 'AddDoors') == 1) && false";
                statement="this animatedoor ['DoorR_Front_Open', 0]";
            };
            class DoorLB_Close: DoorLF_Close
            {
                userActionID=55;
                position="action_doorL_back";
                condition="((this DoorPhase 'DoorL_Back_Open') > 0) && (alive this) && ((this animationPhase 'AddDoors') == 1) && false";
                statement="this animatedoor ['DoorL_Back_Open', 0]";
            };
            class DoorRB_Close: DoorLF_Close
            {
                userActionID=57;
                displayName="$STR_A3_CFGVEHICLES_USERACTIONS_CLOSERDOOR0";
                textToolTip="$STR_A3_CFGVEHICLES_USERACTIONS_CLOSERDOOR0";
                position="action_doorR_back";
                condition="((this DoorPhase 'DoorR_Back_Open') > 0) && (alive this) && ((this animationPhase 'AddDoors') == 1) && false";
                statement="this animatedoor ['DoorR_Back_Open', 0]";
            };
        };
        class EventHandlers: EventHandlers
        {
            init="if (local (_this select 0)) then {[(_this select 0), """", [], false] call bis_fnc_initVehicle;};";
        };
        class RotorLibHelicopterProperties: RotorLibHelicopterProperties
        {
            defaultCollective=0.5;
        };
    };
};

 

 

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

×