-
Notifications
You must be signed in to change notification settings - Fork 736
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Compat Aegis - Remove EHP from Beanies (#10713)
Co-authored-by: johnb432 <[email protected]> Co-authored-by: LinkIsGrim <[email protected]>
- Loading branch information
1 parent
1ce7eb4
commit 4a37a6e
Showing
4 changed files
with
41 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
class CfgWeapons { | ||
class HelmetBase; | ||
class H_Watchcap_blk: HelmetBase { | ||
HEARING_PROTECTION_OPEN; | ||
}; | ||
class H_Watchcap_blk_hs: H_Watchcap_blk { | ||
HEARING_PROTECTION_PELTOR; | ||
}; | ||
// TODO: figure out if anything else needs to be adapted. Boonies probably. | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
#include "script_component.hpp" | ||
#include "\z\ace\addons\hearing\script_macros_hearingProtection.hpp" | ||
|
||
class CfgPatches { | ||
class SUBADDON { | ||
name = COMPONENT_NAME; | ||
units[] = {}; | ||
weapons[] = {}; | ||
requiredVersion = REQUIRED_VERSION; | ||
requiredAddons[] = { | ||
"A3_Aegis_Characters_F_Aegis_Headgear", | ||
"ace_hearing" | ||
}; | ||
skipWhenMissingDependencies = 1; | ||
author = ECSTRING(common,ACETeam); | ||
authors[] = {"LinkIsGrim"}; | ||
url = ECSTRING(main,URL); | ||
VERSION_CONFIG; | ||
|
||
// this prevents any patched class from requiring this addon | ||
addonRootClass = "A3_Characters_F"; | ||
}; | ||
}; | ||
|
||
#include "CfgWeapons.hpp" |
3 changes: 3 additions & 0 deletions
3
addons/compat_aegis/compat_aegis_hearing/script_component.hpp
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
#define SUBCOMPONENT hearing | ||
#define SUBCOMPONENT_BEAUTIFIED Hearing | ||
#include "..\script_component.hpp" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
#define HEARING_PROTECTION_OPEN EGVAR(hearing,protection) = 0; EGVAR(hearing,lowerVolume) = 0 | ||
#define HEARING_PROTECTION_VICCREW EGVAR(hearing,protection) = 0.85; EGVAR(hearing,lowerVolume) = 0.6 | ||
#define HEARING_PROTECTION_EARMUFF EGVAR(hearing,protection) = 0.75; EGVAR(hearing,lowerVolume) = 0.5 | ||
#define HEARING_PROTECTION_OPEN EGVAR(hearing,protection) = 0; EGVAR(hearing,lowerVolume) = 0; EGVAR(hearing,hasEHP) = 0 | ||
#define HEARING_PROTECTION_VICCREW EGVAR(hearing,protection) = 0.85; EGVAR(hearing,lowerVolume) = 0.6; EGVAR(hearing,hasEHP) = 0 | ||
#define HEARING_PROTECTION_EARMUFF EGVAR(hearing,protection) = 0.75; EGVAR(hearing,lowerVolume) = 0.5; EGVAR(hearing,hasEHP) = 0 | ||
#define HEARING_PROTECTION_PELTOR EGVAR(hearing,protection) = 0.75; EGVAR(hearing,lowerVolume) = 0; EGVAR(hearing,hasEHP) = 1 |