Skip to content

Commit

Permalink
Compat Aegis - Remove EHP from Beanies (#10713)
Browse files Browse the repository at this point in the history
Co-authored-by: johnb432 <[email protected]>
Co-authored-by: LinkIsGrim <[email protected]>
  • Loading branch information
3 people authored Feb 8, 2025
1 parent 1ce7eb4 commit 4a37a6e
Show file tree
Hide file tree
Showing 4 changed files with 41 additions and 3 deletions.
10 changes: 10 additions & 0 deletions addons/compat_aegis/compat_aegis_hearing/CfgWeapons.hpp
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.
};
25 changes: 25 additions & 0 deletions addons/compat_aegis/compat_aegis_hearing/config.cpp
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 addons/compat_aegis/compat_aegis_hearing/script_component.hpp
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"
6 changes: 3 additions & 3 deletions addons/hearing/script_macros_hearingProtection.hpp
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

0 comments on commit 4a37a6e

Please sign in to comment.