Search the Community
Showing results for tags 'earplugs'.
Found 2 results
-
GF Earplugs Script - Mod by GEORGE FLOROS [GR] With key interaction Description: GF Earplugs Script , mute or lower sound , with a key interaction , configurable key bindings. You are free to do anything but i would like to give me Credits for this! Simple and easy to use and adapt . Have Fun ! Installation / Usage: For usage instructions and information of how to use the GF Earplugs Script , please refer to the included documentation and/or example mission. Place in your mission the files . There is everything included , in the init.sqf , to copy paste in your mission . https://community.bistudio.com/wiki/SQF_syntax Don't try to open this with the simple notepad. For everything that is with comment // in front or between /* means that it is disabled , so there is no need to delete the extra lines. You can open this ex: with notepad++ https://notepad-plus-plus.org/ and also use the extra pluggins (this way will be better , it will give also some certain colours to be able to detect ex. problems ) http://www.armaholic.com/page.php?id=8680 or use any other program for editing . For the Compilation List of my GF Scripts , you can search in: https://forums.bohemia.net/forums/topic/215850-compilation-list-of-my-gf-scripts/ Notes: Configurable key bindings and notification available. The key bindings can be found here: https://community.bistudio.com/wiki/DIK_KeyCodes Credits & Thanks: Thanks to All script contributors Thanks to everyone who tries to do the best for this game! Thanks to BIS for such a great platform . Thanks to BIS Community and BIS Community Forums . Thanks to Armaholic Community and Forums . Changelog: v2.1 Minor change on the code , to avoid loop. Thanks to HazJ. https://forums.bohemia.net/profile/773718-hazj/ v2.0 Added a picture notification when earplugs are in. Added an initPlayerLocal.sqf , in order to run the script from there. Mod Version is now included. v1.0 Forum topic: - Armaholic forums http://www.armaholic.com/forums.php?m=posts&q=39897 Armaholic download GF Earplugs Script - Mod
- 27 replies
-
- 3
-
[Release] Player Earplugs Script
MasterPuffin posted a topic in ARMA 3 - MISSION EDITING & SCRIPTING
This is a really simple script which reduces the ambient sounds. ******************************** Create a file called onPlayerRespawn.sqf (or use your existing one) and put the following code into it: soundlvl=1; Create a folder called scripts. Inside this folder create a file called earplugsPutIn.sqf and put the following code into it: if (soundlvl isEqualto 1) or (soundlvl isEqualto 3) then { soundlvl=2; hintSilent "Sound at 20%"; 2 fadeSound .20; waitUntil {soundlvl != 2} }; if (soundlvl isEqualto 2) then { soundlvl=3; hintSilent "Sound at 5%"; 2 fadeSound .05; waitUntil {soundlvl != 3} }; Inside the folder scripts create a file called earplugsTakeOut.sqf and put the following code into it: soundlvl=1; hintSilent "Removed earplugs"; 2 fadeSound 1; Using the script: You can either use addaction or a keyhandler to execute the script. Every time you execute earplugsPutIn.sqf it will toggle the noise level between 5% and 20%. When you execute earplugsTakeOut.sqf the sound will be set back to normal. If you have any questions or need help with your mission feel free to ask! Cheers Puffi