mirror of
https://github.com/acemod/ACE3.git
synced 2024-08-30 18:23:18 +00:00
Updated hearing-framework
This commit is contained in:
parent
93baa3b6fa
commit
d51ad8280a
@ -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.
|
||||
|
Loading…
Reference in New Issue
Block a user