Jump to content

mazix

Member
  • Posts

    10
  • Joined

  • Last visited

Reputation Activity

  1. Like
    mazix reacted to computermancer in Earplugs Script   
    cmEARPLUGS SCRIPT ver 2.0
     
    B) WHAT IT DOES:
    Earplugs script for Arma 3 Epoch (EPAH safe)   - This script allows you to put in "earplugs". - Config.sqf will let you configure almost every possible aspect of the script. - You can now insert and remove the earplugs by pressing a key of your choice.  - Current available keys are : F4, F5, INSERT, NUMPADMULTIPLY, NUMPADDIVIDE - You can toggle the hotkey in case you use EPAH and wont be ablt to use hotkeys. - Auto-insert and remove earplugs when getting in and out of vehicles. - Inserting earplugs reduces volume down to about 25 percent. - Removing earplugs restores volume to 100 percent.   -Thanks to mgm on epochmod.com for helping with keypress config technique.  
    Here is a link to the github files.
    https://github.com/computermancer/cmEarplugs
     
    B) INSTRUCTIONS:
    1. Copy the cmEarplugs folder to your mission folder (altis.Epoch)
    2. If you have init.sqf, copy the code in this init.sqf to yours.
    2a. If you do not have an init.sqf, copy this one over to your mission folder.
    3. Copy onPlayerKilled.sqf and onPlayerRespawn.sqf to your mission folder.
    4. Config your personal settings in the config.sqf file in the cmEarplgus folder.
    5. Edit your battleye filters.

    Edit the following in your battleye filters.
     
      ///////////////////////////////////////////////////////////////////////////////////////////////////////////////////// scripts.txt (at the end of the line add the following) /////////////////////////////////////////////////////////////////////////////////////////////////////////////////////                                         (BIS_fnc_)  First Line:  !"bis_fnc_initVehicle" !"BIS_fnc_setVehicleMass_fsm" !"BIS_fnc_arsenal_type"                         (displayAddEventHandler        )  Line 53 (54 on notepad++) :               !"EP_LOOP"  (displayAddEventHandler        )  Line 53 (54 on notepad++)                 !"cmKeyPress"  (              exec                             )  Line 22 (23 on notepad++) :               !"clock.sqf"  (    removeAllActions                 )   Line 31 (32 on notepad++) :              !"onplayerkilled.sqf"  (displayRemoveEventHandler)   Line 59 (60 on notepad++) :               !"cmKeyPress"  (removeAllEventHandlers)           Line 59 (60 on notepad++) :               !"cmKeyPress"   ///////////////////////////////////////////////////////////////////////////////////////////////////////////////////// PublicVariable.txt (at the end of the line add the following) ///////////////////////////////////////////////////////////////////////////////////////////////////////////////////// First Line:                                            !"cmEarplugs_hotkeyDIKCodeNumber" First Line:                                            !"PLAYER_REJECT_NotReady1" ///////////////////////////////////////////////////////////////////////////////////////////////////////////////////// B) WHAT TO KNOW:   If you use Epoch Anti Hack, the script will work except for the keypress option. EPAH seems to disable keydown eventhandlers. But auto insert and menu inside vehicle work fine. If you disable EPAH, you can use the keypress toggle as well.
×
×
  • Create New...