• 0
Sebas

Extra Earplug

Question

Hello. I currently have EXAD on the server. I wanted Extra Earplug. So I buy XM8 infistar. But the XM8 Apps are not compatible with EXAD. Someone can tell me how to merge please. Thank you

Share this post


Link to post
Share on other sites

9 answers to this question

Advertisement
  • 0

Create a new app in the apps folder, call it fn_quiet.sqf

if(isNil'QUIET_ID')then
{
    2 fadeSound 0.01;
    true call ExileClient_gui_hud_toggleEarplugsIcon;
    ['SuccessTitleOnly', ['Added extra quiet earplugs']] call ExileClient_gui_toaster_addTemplateToast;
    (_this select 0) ctrlSetStructuredText parseText '<t color="#FF0000">Extra quiet earplugs</t>';
   
    QUIET_ID = true;
}
else
{
    2 fadeSound 1;
    false call ExileClient_gui_hud_toggleEarplugsIcon;
    ['ErrorTitleOnly', ['Removed extra quiet earplugs']] call ExileClient_gui_toaster_addTemplateToast;
    (_this select 0) ctrlSetStructuredText parseText '<t color="#44CD00">Extra quiet earplugs</t>';
   
    QUIET_ID = nil;
};

In app_defines.hpp add the following

class customapp_13 {//change app number to suit your numbering scheme
	submenu = 0;
	toggleable = 1;
	text = "Extra quiet earplugs";
	tooltip = "Better ear protection over standard earplugs";
	fnc = "call apps_fnc_quiet;";
	pic = "\exile_assets\texture\hud\hud_icon_earplugs_ca.paa";
};

In config.cpp add this in class apps

class quiet {};

Pack up the pbo and it's done

  • Like 1

Share this post


Link to post
Share on other sites
  • 0

Not sure if this will work with Exad but i could get it to work without Infistar apps by doing this.

Config.cpp

class XM8_App08_Button: RscExileXM8AppButton1x1
{
    textureNoShortcut = "custom\XM8\Icons\EP.paa";
    text = "Extra Quiet EarPlugs";
    onButtonClick = "call fnc_Silence";
    resource = "";
};

 

init.sqf

//Extra quiet Earplugs
fnc_Silence = compileFinal (preprocessFileLineNumbers "custom\Status_Interactions\fn_quiet.sqf");


fn_quiet.sqf

[] spawn {  
if(isNil'QUIET_ID')then
{
    2 fadeSound 0.01;
    true call ExileClient_gui_hud_toggleEarplugsIcon;
    ['SuccessTitleOnly', ['Added extra quiet earplugs']] call ExileClient_gui_toaster_addTemplateToast;
    (_this select 0) ctrlSetStructuredText parseText '<t color="#FF0000">Extra quiet earplugs</t>';
   
    QUIET_ID = true;
}
else
{
    2 fadeSound 1;
    false call ExileClient_gui_hud_toggleEarplugsIcon;
    ['ErrorTitleOnly', ['Removed extra quiet earplugs']] call ExileClient_gui_toaster_addTemplateToast;
    (_this select 0) ctrlSetStructuredText parseText '<t color="#44CD00">Extra quiet earplugs</t>';
   
    QUIET_ID = nil;
};

};

 

Share this post


Link to post
Share on other sites
  • 0
1 hour ago, El Rabito said:

Not sure if this will work with Exad but i could get it to work without Infistar apps by doing this.

Config.cpp


class XM8_App08_Button: RscExileXM8AppButton1x1
{
    textureNoShortcut = "custom\XM8\Icons\EP.paa";
    text = "Extra Quiet EarPlugs";
    onButtonClick = "call fnc_Silence";
    resource = "";
};

 

init.sqf


//Extra quiet Earplugs
fnc_Silence = compileFinal (preprocessFileLineNumbers "custom\Status_Interactions\fn_quiet.sqf");


fn_quiet.sqf


[] spawn {  
if(isNil'QUIET_ID')then
{
    2 fadeSound 0.01;
    true call ExileClient_gui_hud_toggleEarplugsIcon;
    ['SuccessTitleOnly', ['Added extra quiet earplugs']] call ExileClient_gui_toaster_addTemplateToast;
    (_this select 0) ctrlSetStructuredText parseText '<t color="#FF0000">Extra quiet earplugs</t>';
   
    QUIET_ID = true;
}
else
{
    2 fadeSound 1;
    false call ExileClient_gui_hud_toggleEarplugsIcon;
    ['ErrorTitleOnly', ['Removed extra quiet earplugs']] call ExileClient_gui_toaster_addTemplateToast;
    (_this select 0) ctrlSetStructuredText parseText '<t color="#44CD00">Extra quiet earplugs</t>';
   
    QUIET_ID = nil;
};

};

 

Thank you I will try this

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.