You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/wiki/frameworks/vehicle-attenuation.md
+50-9Lines changed: 50 additions & 9 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -39,25 +39,25 @@ class CfgVehicles {
39
39
class ACRE {
40
40
// Attenuation between players inside (turned in) separate in compartments
41
41
class attenuation {
42
-
class Compartment1 {
42
+
class Compartment1 {
43
43
Compartment1 = 0;
44
44
Compartment2 = 0;
45
45
Compartment3 = 0;
46
46
Compartment4 = 0;
47
47
};
48
-
class Compartment2 {
48
+
class Compartment2 {
49
49
Compartment1 = 0;
50
50
Compartment2 = 0;
51
51
Compartment3 = 0;
52
52
Compartment4 = 0;
53
53
};
54
-
class Compartment3 {
54
+
class Compartment3 {
55
55
Compartment1 = 0;
56
56
Compartment2 = 0;
57
57
Compartment3 = 0;
58
58
Compartment4 = 0;
59
59
};
60
-
class Compartment4 {
60
+
class Compartment4 {
61
61
Compartment1 = 0;
62
62
Compartment2 = 0;
63
63
Compartment3 = 0;
@@ -67,25 +67,25 @@ class CfgVehicles {
67
67
68
68
// Attenuation between a turned out player and turned in player sitting in separate compartments
69
69
class attenuationTurnedOut {
70
-
class Compartment1 {
70
+
class Compartment1 {
71
71
Compartment1 = 0;
72
72
Compartment2 = 0;
73
73
Compartment3 = 0;
74
74
Compartment4 = 0;
75
75
};
76
-
class Compartment2 {
76
+
class Compartment2 {
77
77
Compartment1 = 0;
78
78
Compartment2 = 0;
79
79
Compartment3 = 0;
80
80
Compartment4 = 0;
81
81
};
82
-
class Compartment3 {
82
+
class Compartment3 {
83
83
Compartment1 = 0;
84
84
Compartment2 = 0;
85
85
Compartment3 = 0;
86
86
Compartment4 = 0;
87
87
};
88
-
class Compartment4 {
88
+
class Compartment4 {
89
89
Compartment1 = 0;
90
90
Compartment2 = 0;
91
91
Compartment3 = 0;
@@ -130,6 +130,7 @@ but the config `ConfigFile >> CfgVehicles >> myTank >> ACRE >> attenuationTurned
130
130
131
131
{% include note.html content="The path in the <span style='color:#e3aa2b'>_**yellow**_</span> scenario is different because the value is looked up in the `attenuationTurnedOut` class instead of `attenuation`." %}
132
132
133
+
133
134
## Debugging
134
135
135
136
You can toggle the ability to view attenuation behaviour at runtime to diagnose issues with compartment configs. It will draw the current attenuation value over all units and a hint will be shown with information about your crew (and their detected compartments) as well as the attenuation values of units outside of a vehicle. You'll also get a short rundown of the configured compartment connection attenuation values for the current vehicle.
@@ -138,4 +139,44 @@ You can toggle the ability to view attenuation behaviour at runtime to diagnose
138
139
139
140
### Usage
140
141
141
-
Use the debug console in a mission or editor preview with some units and/or vehicles placed down and execute `call acre_sys_attenuate_fnc_toggleDebugInfo;`.
142
+
Use the debug console in a mission or editor preview with some units and/or vehicles placed down and execute `call acre_sys_attenuate_fnc_toggleDebugInfo;`.
143
+
144
+
#### Disable and Force Attenuation
145
+
146
+
Most if not all FFV seats inherit `disableSoundAttenuation = 1` from their `CargoTurret` config parent. This causes all FFV seats to ignore any configured sound attenuations.
147
+
148
+
`forceSoundAttenuation` is available as a shortcut. This avoids having to edit each individual turret and can be used like this:
0 commit comments