Comrades in Arms Discussion Board
Simple earplugs script - Printable Version

+- Comrades in Arms Discussion Board (http://forum.ciahome.net)
+-- Forum: Comrades in Arms Life (http://forum.ciahome.net/forumdisplay.php?fid=3)
+--- Forum: Mission Making (http://forum.ciahome.net/forumdisplay.php?fid=8)
+--- Thread: Simple earplugs script (/showthread.php?tid=2738)



Simple earplugs script - Horus - 09-06-2014

I think this is very handy script for mission makers.
Quote:A simple script for adding earplugs in to a mission. Earplugs are used with one simple action, which comes in yellow Wink . There are also optional status icons, which are half-transparent speakers displayed at the bottom right of the screen. TFAR and ACRE are not effected by the little icons; since this script is mostly made to be used with those addons.

http://www.armaholic.com/page.php?id=26624



Re: Simple earplugs script - McGregor - 11-06-2014

This looks quite nice. Has anyone tried it? I find it near impossible to hear people over the radio while flying helos etc


Re: Simple earplugs script - Variable - 11-07-2014

To be honest, I never felt the need for such a thing, after tweaking Windows mixer it's possible to find the sweet spot of hearing people and the game at sufficient volume levels.


Re: Simple earplugs script - Outlawz7 - 11-08-2014

Last I tried it, it seemed broken, or at least I couldn't get it to work.


Re: Simple earplugs script - Outlawz7 - 01-02-2015

Simple "earplugs" action to add to your mission's init.sqf
Code:
if (!isDedicated) then {
      player addAction ["<t color='#66FF66'>Headphones</t> <t color='#3399FF'>ON</t>",{1 fadeSound 0.05; (_this select 0) addHeadgear "H_Cap_headphones";},nil,1,true,true,"","_this in _target AND soundVolume > 0.5"];
   player addAction ["<t color='#66FF66'>Headphones</t> <t color='#FF3300'>OFF</t>",{1 fadeSound 1; (_this select 0) addHeadgear "H_Cap_oli_hs";},nil,1,true,true,"","_this in _target AND soundVolume < 0.5"];
};