mirror of
https://github.com/acemod/ACE3.git
synced 2024-08-30 18:23:18 +00:00
hearing framework
This commit is contained in:
parent
4e0fb50204
commit
46eee0d368
25
documentation/framework/hearing-framework.md
Normal file
25
documentation/framework/hearing-framework.md
Normal file
@ -0,0 +1,25 @@
|
||||
---
|
||||
layout: wiki
|
||||
title: Hearing framework
|
||||
description:
|
||||
group: framework
|
||||
order: 5
|
||||
parent: wiki
|
||||
---
|
||||
|
||||
|
||||
## 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)
|
||||
};
|
||||
};
|
||||
```
|
||||
|
||||
### 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.
|
Loading…
Reference in New Issue
Block a user