Super Jerome

[UPDATE] ExAd v1.0.4

254 posts in this topic

13 minutes ago, Brenner said:
  Reveal hidden contents

class CfgXM8
{
    extraApps[] = {"ExAd_Bike"};

class ExAd_Bike
     {
        title = "Deploy M1030";
        config = "ExAdClient\XM8\Apps\DeployVehicle\config.sqf";
        logo = "dbo\dbo_old_bike\data\icon_mmt_ca.paa";
        bambiState = 0;
        vehicleClass = "CUP_B_M1030_USMC";
        recipe[] = {{"Exile_Item_CanOpener",1}};
        packable = 1;
        autoCleanUp = 1;
        quickFunction = "['ExAd_Bike'] call ExAd_XM8_DV_fnc_spawnVehicle";
     };

};

 

I have :-)

	class ExAd_Bike
	{
		title = "Deploy Bike";
		config = "ExADClient\XM8\Apps\DeployVehicle\config.sqf";
		bambiState = 0;
		vehicleClass = "CUP_B_M1030_USMC";
		recipe[] = {{"Exile_Item_CanOpener",1}};
		packable = 1;
    	logo = "\dbo\dbo_old_bike\data\icon_mmt_ca.paa";
        autoCleanUp = 1;
		quickFunction = "['ExAd_Bike'] call ExAd_XM8_DV_fnc_spawnVehicle;ExileClientXM8CurrentSlide = 'apps';";
	};

 

Share this post


Link to post
Share on other sites

Posted (edited)

Can anyone help me out with adding climate temperature to StatsBar ? There is clearly a function for it in ExAd version (fn_getTempEnv.sqf) , but no way of showing it/turning it on.

Edited by Chernaruski

Share this post


Link to post
Share on other sites
Advertisement

HI, i have a question. many times deploy bike killing players. How include function  setVectorUp [0,0,-1];

to this script:

Spoiler

ExAd_XM8_DV_fnc_spawnVehicle = {
    params["_slideClass","_bambiState","_delopyRecipe","_vehicleClass"];

    try
    {    
        _bambiState = if(isNumber(missionConfigFile >> "CfgXM8" >> _slideClass >> "bambiState")) then
        {
            if(getNumber(missionConfigFile >> "CfgXM8" >> _slideClass >> "bambiState") > 0)then{true}else{false}
        } else {true};

        if(_bambiState && !ExileClientPlayerIsBambi) then { throw "You can only spawn vehicles as a bambi!"};

        _delopyRecipe = getArray(missionConfigFile >> "CfgXM8" >> _slideClass >> "recipe");
        if(count _delopyRecipe > 0) then
        {
            {
                if(count _x > 1) then
                {
                    _amount = if(_x select 1 == -1)then{1}else{_x select 1};
                    if!([player, [_x select 0, _amount]] call ExAd_XM8_DV_fnc_itemsInCargo) then 
                    {
                        throw ([_delopyRecipe] call ExAd_XM8_DV_fnc_itemsMissing);
                    };
                } else {
                    if!([player, _x select 0] call ExileClient_util_playerEquipment_contains) then 
                    {
                        throw ([_delopyRecipe] call ExAd_XM8_DV_fnc_itemsMissing);
                    }
                }
            }forEach _delopyRecipe;

            {
                _count = if(count _x > 1)then{(_x select 1)}else{1};
                for "_i" from 1 to _count do {
                    [player, _x select 0] call ExileClient_util_playerCargo_remove
                }
            }forEach _delopyRecipe;
        };

        _vehicleClass = getText(missionConfigFile >> "CfgXM8" >> _slideClass >> "vehicleClass");
        if!(isClass(configFile >> "CfgVehicles" >> _vehicleClass ))then { throw "The vehicle class doesn't exist"};

        [_slideClass] spawn {
            params["_slideClass"];
            disableUserInput true;
            player playActionNow "Medic";

            uiSleep 3;
            ["spawnDeployableVehicle", [netId player, _slideClass]] call ExAd_fnc_serverDispatch;
            uiSleep 1;
            ["SuccessTitleAndText", ["Vehicle deployed"]] call ExileClient_gui_toaster_addTemplateToast;
            ExileClientXM8CurrentSlide = "extraApps";
            disableUserInput false;
        };    

        ["extraApps", 1] call ExileClient_gui_xm8_slide;
        closeDialog 0;


    }
    catch{
        [_exception] spawn {
            UISleep 0.5; 
            ["ErrorTitleAndText", ["ExAd - Deploy Vehicle", _this select 0]] call ExileClient_gui_toaster_addTemplateToast;
            ["extraApps", 1] call ExileClient_gui_xm8_slide;
        };
    };
};

 

Share this post


Link to post
Share on other sites
Advertisement

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!


Register a new account

Sign in

Already have an account? Sign in here.


Sign In Now

  • Recently Browsing   0 members

    No registered users viewing this page.