From d51ad8280ac76a3661fad7b0de4600214847695a Mon Sep 17 00:00:00 2001 From: jonpas <jonpas33@gmail.com> Date: Tue, 25 Aug 2015 03:26:06 +0200 Subject: [PATCH] Updated hearing-framework --- documentation/framework/hearing-framework.md | 18 +++++++----------- 1 file changed, 7 insertions(+), 11 deletions(-) diff --git a/documentation/framework/hearing-framework.md b/documentation/framework/hearing-framework.md index 7b10a515bd..6d83665916 100644 --- a/documentation/framework/hearing-framework.md +++ b/documentation/framework/hearing-framework.md @@ -1,25 +1,21 @@ --- layout: wiki -title: Hearing framework -description: +title: Hearing Framework +description: Explains how to set-up headgear with ACE3 hearing system. group: framework order: 5 parent: wiki --- +## 1. Config Values -## 1. Adding ace_hearing support for helmets ```c++ class CfgWeapons { - class H_HelmetB; - - class H_superHelmet: H_HelmetB { - GVAR(protection) = 0.80; // Protection against deafening (0 = less, 1 = more) - GVAR(lowerVolume) = 0.60; // Muffling of the sound (0 = less, 1 = more) + class MyHelmet { + ace_hearing_protection = 0.80; // Protection against deafening (0 to 1, higher means more protection) + ace_hearing_lowerVolume = 0.60; // Muffling of the sound (0 to 1, higher means more muffling) }; }; ``` -### 1.1 Notes -- The protection is a multiplier and not an absolute value, you can still be deafened with a value of 1. -- Same as above for the sound muffling. +The protection/muffling is a multiplier and not an absolute value, you can still be deafened/muffled with a value of 1.