Jump to content

computermancer

Recommended Posts

I get this when I join my server, what did I do wrong? I dont completely understand your instructions for editing scripts.txt...do they go before or after anything specifically? I put them on the line specified for notepad++

 

BattlEye Server: ScriptLog: #1 me(uid) - #48 "bled) then {

[] spawn {csKeyPress = (findDisplay 46) displayAddEventHandler ["KeyDown","if ((_this select 1) == cmEarplugs_hotke"
Player me kicked off by BattEye: Script Restriction #48

 

Link to comment
Share on other sites

 (displayAddEventHandler        )  Line 53 (54 on notepad++) :               !"EP_LOOP"

 

Basically what that says is look in scripts.txt for the line that starts with displayAddEventHandler. Should be around line 53/54. Just add !"EP_LOOP" to the end of that line. Repeat for the rest of them.

Link to comment
Share on other sites

so i could add that ep_loop part to the end of the line that is somewhere around 53/54? and if its not there? do i just add it to any line that begins with displayaddeventhandler?

thanks

edit: looks like line 49 for me. lets try this out.. i put all the commands in, the only one that doesn't have a line that starts with exec, so thats just sitting at the end of line 23 as (exec) !"clock.sqf"

Link to comment
Share on other sites

last 4 times i tried to connect  

18.08.2015 20:15:01: Me (xxx.xxx.xxx.xxx) UID - #48 "bled) then {
[] spawn {cmKeyPress = (findDisplay 46) displayAddEventHandler ["KeyDown","if ((_this select 1) == cmEarplugs_hotke"
18.08.2015 21:05:36: Me (xxx.xxx.xxx.xxx) UID - #48 "bled) then {
[] spawn {cmKeyPress = (findDisplay 46) displayAddEventHandler ["KeyDown","if ((_this select 1) == cmEarplugs_hotke"
18.08.2015 22:26:54: Me (xxx.xxx.xxx.xxx) UID - #48 "bled) then {
[] spawn {cmKeyPress = (findDisplay 46) displayAddEventHandler ["KeyDown","if ((_this select 1) == cmEarplugs_hotke"
18.08.2015 22:34:45: Me (xxx.xxx.xxx.xxx) UID - #48 "bled) then {
[] spawn {cmKeyPress = (findDisplay 46) displayAddEventHandler ["KeyDown","if ((_this select 1) == cmEarplugs_hotke"

Link to comment
Share on other sites

  • 3 weeks later...
 6:44:26 Error in expression < ((_hasEPEH == "NEVER")) then {[] spawn cm_EP_LOOP;};	

if (cmEarplugsKeyPressEn>
 6:44:26   Error position: <cm_EP_LOOP;};	

if (cmEarplugsKeyPressEn>
 6:44:26   Error Nicht definierte Variable in Ausdruck: cm_ep_loop
 6:44:26 File mpmissions\__CUR_MP.altis\onPlayerRespawn.sqf, line 40
 6:44:26 Error in expression <R")) then {[] spawn cm_EP_LOOP;};	

if (cmEarplugsKeyPressEnabled) then {
[] spa>
 6:44:26   Error position: <cmEarplugsKeyPressEnabled) then {
[] spa>
 6:44:26   Error Nicht definierte Variable in Ausdruck: cmearplugskeypressenabled
 6:44:26 File mpmissions\__CUR_MP.altis\onPlayerRespawn.sqf, line 42

 

Link to comment
Share on other sites

  • 2 weeks later...

'...Actions inCaseofDeath;

removeAllActions |#|theOneTrueName;

inCaseofDeath setVariabl...'

File mpmissions\__CUR_MP.Bornholm\onPlayerKilled.sqf, line 6

Error Undefined variable in expression: theonetruename

I'm getting this same error, well except Altis not Bornholm, did anybody ever figure our to fix?

Edited by blue00
Link to comment
Share on other sites

  • 2 weeks later...
  • 3 weeks later...

Strange issue... on the server I play, most people it seems to be working fine. But for a few players and myself its not working at all since the latest update. Anyone know why it would work for some but not all players? Prior to this last update it was working for me about 60% of the time and now I have to scroll to put them in and take them out all the time which becomes very annoying.

Edited by HarryNutz
Link to comment
Share on other sites

  • 3 weeks later...

I can not have that script working at all, I have script restriction over and over whatever I'm doing, Script is very simple to install but that BE crap make it complicated.

Kick are publicvariable  #0 "cmEarplugs_hotkeyDIKCodeNumber" = 62

script restriction         #24 "ltis\init.sqf"

[] execVM "custom\PlayerMarker.sqf";


call compile preProcessFileLineNumbers "cmEarplugs\config.sqf";

"

 

There is my actual script.text  http://pastebin.com/X4tupUnG

My init.swf

// Player Marker
[] execVM "custom\PlayerMarker.sqf";

//EARPLUGS
call compile preProcessFileLineNumbers "cmEarplugs\config.sqf";

 

 

Don't know what to do there.

Link to comment
Share on other sites

  • 5 months later...

This script was working fine till 0.3.4.0

After that, players where nomore able to manual use earplugs (admin was),  but they worked automatic by joining vehicles.

since 0.3.8.0 earplugs are nomore working at all, no option also shown in vehicle menu.

any idea someone ?

Link to comment
Share on other sites

2 minutes ago, Brian Soanes said:

Ok here's how to fix

Create a new file in your mission root called earplugsfix.sqf and copy in this content http://pastebin.com/PC9FS2DJ
In your init.sqf (if you don't have one make a file called init.sqf in your mission root) paste this
 


if(isServer)then {}
	execVM "earplugsfix.sqf";

Repack mission file

Thanks Brian, will give it a go :)

Link to comment
Share on other sites

Do we need to keep or edit this code as well that was in the instructions to add to onPlayerRespawn.sqf? Or should we overwrite this code with yours as well?

//////////////////////////////////////////////////////////////////////////
//START EARPLUGS CODE

waitUntil {vehicle player == player};
waituntil {!isnull (finddisplay 46)};

//////////////////////////////////////////////////////////////////////////
		_OPRbreathing = alive player;
		_OPRtrig=true;
		_OPRdude = player;

			while {_OPRtrig} do {

				sleep 0.001;

					if (_OPRbreathing) then {
						_OPRstartingpos = position player;
						sleep 0.001;
						_OPRposition = position _OPRdude;

						_OPRstationary = _OPRstartingpos select 0 == _OPRposition select 0 && _OPRstartingpos select 1 == _OPRposition select 1;

						if (_OPRstationary) then {} else {_OPRtrig=false;};
						
					};
			};

uisleep 1;

if (isNil {player getVariable "Has_EPEH_Loop"}) then {player setVariable["Has_EPEH_Loop", "NEVER"];};

//////////////////////////////////////////////////////////////////////////
5 fadeSound 1;
earplugsout=true;	
SuperFunEPEHVariable = false;
/////////////////////////////////////////////////////////////////////////
uisleep 1;
_hasEPEH = player getVariable "Has_EPEH_Loop";
uisleep 1;
if ((_hasEPEH == "NEVER")) then {[] spawn cm_EP_LOOP;};	

if (cmEarplugsKeyPressEnabled) then {
	[] spawn {cmKeyPress = (findDisplay 46) displayAddEventHandler ["KeyDown","if ((_this select 1) == cmEarplugs_hotkeyDIKCodeNumber) then {[] call cm_Earplugs_FUNc;};"];};
};
//cmEARPLUGS CODE END
//////////////////////////////////////////////////////////////////////////

Thanks for your help :)

Link to comment
Share on other sites

Hey Brian, this doesn't seem to have worked.... I have posted the OP's config.sqf earplug script below. Does this need to be reworked as well?

Spoiler

//============================================
// cmEarplugs Script
// written by computermancer
// superfunserver.com
//switch technique inspired by mgm
//============================================

////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////

//                     CONFIG :         CHOOSE YOUR BEHAVIOR

////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////

//DO YOU WANT EARPLUGS HOTKEY TO WORK? 
// if you are using EPAH you should disable for peace of mind.
cmEarplugsKeyPressEnabled = true;

////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
// HOTKEY CONFIGURATION FOR: TOGGLE EARPLUG IN/OUT VIA KEYPRESS FUNCTION
// List of Available Hotkey Options
//    To use    INSERT                    as your hotkey, please choose:        1        in the variable below
//    To use    NumPadMultiply        as your hotkey, please choose:        2        in the variable below
//    To use    NumPadDivide            as your hotkey, please choose:        3        in the variable below
//    To use    F4                            as your hotkey, please choose:        4        in the variable below
//    To use    F5                            as your hotkey, please choose:        5        in the variable below
cmEarplugs_myHotkeyChoice = 4;

//////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
//////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
//////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////

//                    CHOOSE INSERT & REMOVE BEHAVIOR    

//////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
// FIRST NUMBER : Choose how LONG it takes  until sound is REDUCED
// SECOND NUMBER:" Choose how LOUD the sound is when it is REDUCED
cmManMuteSound = {1 fadeSound 0.25;};

//////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
//FIRST NUMBER : Choose how LONG it takes  until sound RETURNS
//SECOND NUMBER:" Choose how LOUD the sound is when it is done RETUNRNING
cmManReturnSound = {1 fadeSound 1;};

//////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
//CHOOSE YOUR INSERT MESSAGE:
cmManMuteMessage = {
hint "You have inserted your earplugs.";
systemchat "You have inserted your earplugs.";
};

//////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
//CHOOSE YOUR REMOVE MESSAGE:
cmManReturnSoundMsg = {
hint "You have removed your earplugs.";
systemchat "You have removed your earplugs.";
};

//////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
// CHOOSE IF YOU WANT AUTOINSERT & AUTOREMOVE OF EARPLUGS:
InsertAutoEarplugs=true;
RemoveAutoEarplugs=true;

//////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
//////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
//////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////

//                    CHOOSE AUTO-INSERT & REMOVE BEHAVIOR

//////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
// FIRST NUMBER : Choose how LONG it takes  until sound is REDUCED
// SECOND NUMBER:" CHoose how LOUD the sound is when it is REDUCED
cmMuteSound = {5 fadeSound 0.25;};

//////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
//FIRST NUMBER : Choose how LONG it takes  until sound RETURNS
//SECOND NUMBER:" CHoose how LOUD the sound is when it is done RETUNRNING
cmReturnSound = {10 fadeSound 1;};

//////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
//CHOOSE YOUR AUTO-INSERT MESSAGE
cmMuteMessage = {
hint "Earplugs have been auto-inserted...";
systemchat "Earplugs have been auto-inserted...";
};

//////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
//CHOOSE YOUR AUTO-REMOVE MESSAGE
cmReturnSoundMsg = {
hint "Earplugs have been auto-removed.";
systemchat "Earplugs have been auto-removed.";
};

///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
//                    END CONFIGURABLES
//////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////

//////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
//DO NOT EDIT BELOW THIS LINE UNLESS YOU KNOW WHAT YOU ARE DOING
//////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////

EP_req_1 = {

    private ["_cm_trigger2"];
    _cm_trigger2 = vehicle player != player;
    _cm_trigger2
    
};

cm_EP_LOOP = {


    while {true} do {
    
        waitUntil {uisleep 0.5; vehicle player != player};
        
            _cm_whatImInATM = vehicle player;
            inCaseofDeath = _cm_whatImInATM;
            if (InsertAutoEarplugs) then {
                if (earplugsout) then { 
                    [] call cmMuteSound;
                    [] call cmMuteMessage;
                    earplugsout=false;
                };
            };

            //_cm_whatImInATM addEventHandler ["GetOut", {[_this] call cmGetOut}];
            
            if (isNil {_cm_whatImInATM getVariable "HasEarplugMenu"}) then {_cm_whatImInATM setVariable["HasEarplugMenu", "hasNoMenu"];};
            
            _checkington = (_cm_whatImInATM getVariable "HasEarplugMenu");
            if (_checkington == "hasNoMenu") then {
                _null = _cm_whatImInATM addaction ["<img image='cmEarplugs\earplugs.paa' /><t color=""#38eeff""> Earplugs</t>","[] call cm_Earplugs_FUNc","",0,false,false,"","[] call EP_req_1"];                            
                _cm_whatImInATM setVariable ["HasEarplugMenu","hasMenu"];
                systemChat "Earplugs menu has been added.";
            };
            
        waitUntil {uisleep 0.5; vehicle player == player}; 
        
            //_feedME = _this select 0;
            //_fedTrueName = _feedME select 0;
            theOneTrueName = _cm_whatImInATM;
            theOneTrueName setVariable ["HasEarplugMenu","hasMenu"];
            if (RemoveAutoEarplugs) then {
            if (!earplugsout) then { 
                [] call cmReturnSound;
                [] call cmReturnSoundMsg;
                earplugsout=true;
            
                };
            };

    };
    
};


cm_Earplugs_FUNc = {

    if (earplugsout) then {
        [] call cmManMuteMessage;
        [] call cmManMuteSound;
        earplugsout=false;
    } else {
        [] call cmManReturnSoundMsg;
        [] call cmManReturnSound;    
        earplugsout=true;
    };
    

    
};


////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
// DO NOT CHANGE THE VALUES BELOW
////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////

cmEarplugs_hotkeyDIKCodeNumberINSERT                         = 210;
cmEarplugs_hotkeyDIKCodeNumberNUMPADMULTIPLY     = 55;
cmEarplugs_hotkeyDIKCodeNumberNUMPADDIVIDE             = 181;
cmEarplugs_hotkeyDIKCodeNumberF4                                    = 62;
cmEarplugs_hotkeyDIKCodeNumberF5                                    = 63;

switch cmEarplugs_myHotkeyChoice do {
    case 1:        { cmEarplugs_hotkeyDIKCodeNumber = cmEarplugs_hotkeyDIKCodeNumberINSERT};
    case 2:        { cmEarplugs_hotkeyDIKCodeNumber = cmEarplugs_hotkeyDIKCodeNumberNUMPADMULTIPLY};
    case 3:        { cmEarplugs_hotkeyDIKCodeNumber = cmEarplugs_hotkeyDIKCodeNumberNUMPADDIVIDE};
    case 4:        { cmEarplugs_hotkeyDIKCodeNumber = cmEarplugs_hotkeyDIKCodeNumberF4};
    case 5:        { cmEarplugs_hotkeyDIKCodeNumber = cmEarplugs_hotkeyDIKCodeNumberF5};
    case 0;
    default        { cmEarplugs_hotkeyDIKCodeNumber = cmEarplugs_hotkeyDIKCodeNumberINSERT};
};
publicVariable    "cmEarplugs_hotkeyDIKCodeNumber";


//////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
//END ALL
//////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////

 

Link to comment
Share on other sites

24 minutes ago, ReDBaroN said:

Hey Brian, this doesn't seem to have worked.... I have posted the OP's config.sqf earplug script below. Does this need to be reworked as well?

  Reveal hidden contents

//============================================
// cmEarplugs Script
// written by computermancer
// superfunserver.com
//switch technique inspired by mgm
//============================================

////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////

//                     CONFIG :         CHOOSE YOUR BEHAVIOR

////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////

//DO YOU WANT EARPLUGS HOTKEY TO WORK? 
// if you are using EPAH you should disable for peace of mind.
cmEarplugsKeyPressEnabled = true;

////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
// HOTKEY CONFIGURATION FOR: TOGGLE EARPLUG IN/OUT VIA KEYPRESS FUNCTION
// List of Available Hotkey Options
//    To use    INSERT                    as your hotkey, please choose:        1        in the variable below
//    To use    NumPadMultiply        as your hotkey, please choose:        2        in the variable below
//    To use    NumPadDivide            as your hotkey, please choose:        3        in the variable below
//    To use    F4                            as your hotkey, please choose:        4        in the variable below
//    To use    F5                            as your hotkey, please choose:        5        in the variable below
cmEarplugs_myHotkeyChoice = 4;

//////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
//////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
//////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////

//                    CHOOSE INSERT & REMOVE BEHAVIOR    

//////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
// FIRST NUMBER : Choose how LONG it takes  until sound is REDUCED
// SECOND NUMBER:" Choose how LOUD the sound is when it is REDUCED
cmManMuteSound = {1 fadeSound 0.25;};

//////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
//FIRST NUMBER : Choose how LONG it takes  until sound RETURNS
//SECOND NUMBER:" Choose how LOUD the sound is when it is done RETUNRNING
cmManReturnSound = {1 fadeSound 1;};

//////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
//CHOOSE YOUR INSERT MESSAGE:
cmManMuteMessage = {
hint "You have inserted your earplugs.";
systemchat "You have inserted your earplugs.";
};

//////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
//CHOOSE YOUR REMOVE MESSAGE:
cmManReturnSoundMsg = {
hint "You have removed your earplugs.";
systemchat "You have removed your earplugs.";
};

//////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
// CHOOSE IF YOU WANT AUTOINSERT & AUTOREMOVE OF EARPLUGS:
InsertAutoEarplugs=true;
RemoveAutoEarplugs=true;

//////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
//////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
//////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////

//                    CHOOSE AUTO-INSERT & REMOVE BEHAVIOR

//////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
// FIRST NUMBER : Choose how LONG it takes  until sound is REDUCED
// SECOND NUMBER:" CHoose how LOUD the sound is when it is REDUCED
cmMuteSound = {5 fadeSound 0.25;};

//////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
//FIRST NUMBER : Choose how LONG it takes  until sound RETURNS
//SECOND NUMBER:" CHoose how LOUD the sound is when it is done RETUNRNING
cmReturnSound = {10 fadeSound 1;};

//////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
//CHOOSE YOUR AUTO-INSERT MESSAGE
cmMuteMessage = {
hint "Earplugs have been auto-inserted...";
systemchat "Earplugs have been auto-inserted...";
};

//////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
//CHOOSE YOUR AUTO-REMOVE MESSAGE
cmReturnSoundMsg = {
hint "Earplugs have been auto-removed.";
systemchat "Earplugs have been auto-removed.";
};

///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
//                    END CONFIGURABLES
//////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////

//////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
//DO NOT EDIT BELOW THIS LINE UNLESS YOU KNOW WHAT YOU ARE DOING
//////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////

EP_req_1 = {

    private ["_cm_trigger2"];
    _cm_trigger2 = vehicle player != player;
    _cm_trigger2
    
};

cm_EP_LOOP = {


    while {true} do {
    
        waitUntil {uisleep 0.5; vehicle player != player};
        
            _cm_whatImInATM = vehicle player;
            inCaseofDeath = _cm_whatImInATM;
            if (InsertAutoEarplugs) then {
                if (earplugsout) then { 
                    [] call cmMuteSound;
                    [] call cmMuteMessage;
                    earplugsout=false;
                };
            };

            //_cm_whatImInATM addEventHandler ["GetOut", {[_this] call cmGetOut}];
            
            if (isNil {_cm_whatImInATM getVariable "HasEarplugMenu"}) then {_cm_whatImInATM setVariable["HasEarplugMenu", "hasNoMenu"];};
            
            _checkington = (_cm_whatImInATM getVariable "HasEarplugMenu");
            if (_checkington == "hasNoMenu") then {
                _null = _cm_whatImInATM addaction ["<img image='cmEarplugs\earplugs.paa' /><t color=""#38eeff""> Earplugs</t>","[] call cm_Earplugs_FUNc","",0,false,false,"","[] call EP_req_1"];                            
                _cm_whatImInATM setVariable ["HasEarplugMenu","hasMenu"];
                systemChat "Earplugs menu has been added.";
            };
            
        waitUntil {uisleep 0.5; vehicle player == player}; 
        
            //_feedME = _this select 0;
            //_fedTrueName = _feedME select 0;
            theOneTrueName = _cm_whatImInATM;
            theOneTrueName setVariable ["HasEarplugMenu","hasMenu"];
            if (RemoveAutoEarplugs) then {
            if (!earplugsout) then { 
                [] call cmReturnSound;
                [] call cmReturnSoundMsg;
                earplugsout=true;
            
                };
            };

    };
    
};


cm_Earplugs_FUNc = {

    if (earplugsout) then {
        [] call cmManMuteMessage;
        [] call cmManMuteSound;
        earplugsout=false;
    } else {
        [] call cmManReturnSoundMsg;
        [] call cmManReturnSound;    
        earplugsout=true;
    };
    

    
};


////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
// DO NOT CHANGE THE VALUES BELOW
////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////

cmEarplugs_hotkeyDIKCodeNumberINSERT                         = 210;
cmEarplugs_hotkeyDIKCodeNumberNUMPADMULTIPLY     = 55;
cmEarplugs_hotkeyDIKCodeNumberNUMPADDIVIDE             = 181;
cmEarplugs_hotkeyDIKCodeNumberF4                                    = 62;
cmEarplugs_hotkeyDIKCodeNumberF5                                    = 63;

switch cmEarplugs_myHotkeyChoice do {
    case 1:        { cmEarplugs_hotkeyDIKCodeNumber = cmEarplugs_hotkeyDIKCodeNumberINSERT};
    case 2:        { cmEarplugs_hotkeyDIKCodeNumber = cmEarplugs_hotkeyDIKCodeNumberNUMPADMULTIPLY};
    case 3:        { cmEarplugs_hotkeyDIKCodeNumber = cmEarplugs_hotkeyDIKCodeNumberNUMPADDIVIDE};
    case 4:        { cmEarplugs_hotkeyDIKCodeNumber = cmEarplugs_hotkeyDIKCodeNumberF4};
    case 5:        { cmEarplugs_hotkeyDIKCodeNumber = cmEarplugs_hotkeyDIKCodeNumberF5};
    case 0;
    default        { cmEarplugs_hotkeyDIKCodeNumber = cmEarplugs_hotkeyDIKCodeNumberINSERT};
};
publicVariable    "cmEarplugs_hotkeyDIKCodeNumber";


//////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
//END ALL
//////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////

 

No, that should work how it always has, make sure you still have call compile preProcessFileLineNumbers "cmEarplugs\config.sqf"; in  your init.sqf (I use that instead of execVM)

Link to comment
Share on other sites

me too, haven't touched the call line in the init..... just get nothing...

I also have the following in onPlayerKilled.sqf as per the OP:

//////////////////////////////////////////////////////////////////////////
//START EARPLUGS CODE

5 fadeSound 1;
earplugsout = true;
removeAllActions inCaseofDeath;
removeAllActions theOneTrueName;
inCaseofDeath setVariable ["HasEarplugMenu","hasNoMenu"];
theOneTrueName setVariable ["HasEarplugMenu","hasNoMenu"];
player setVariable ["Has_EPEH_Loop", "Yep"];
systemChat "Diablo's minions grow stronger...";

(findDisplay 46) displayRemoveEventHandler ["KeyDown", cmKeyPress];

//cmEARPLUGS CODE END
//////////////////////////////////////////////////////////////////////////

Could this be affecting it?

Thanks 

Link to comment
Share on other sites

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
×
×
  • Create New...