mirror of
https://github.com/acemod/ACE3.git
synced 2024-08-30 18:23:18 +00:00
5b91996c69
- Enable/Disable combat deafness altogether (default on) - Volume when using earbuds (default 50%) - Volume when unconscious (default 40%)
37 lines
987 B
C++
37 lines
987 B
C++
|
|
class Extended_PreInit_EventHandlers {
|
|
class ADDON {
|
|
init = QUOTE(call COMPILE_FILE(XEH_preInit) );
|
|
};
|
|
};
|
|
|
|
class Extended_PostInit_EventHandlers {
|
|
class ADDON {
|
|
clientInit = QUOTE( call COMPILE_FILE(XEH_postInit) );
|
|
};
|
|
};
|
|
|
|
class Extended_Init_EventHandlers {
|
|
class CAManBase {
|
|
class GVAR(AddEarPlugs) {
|
|
init = QUOTE( if (local (_this select 0)) then {_this call FUNC(addEarPlugs)}; );
|
|
};
|
|
};
|
|
};
|
|
|
|
class Extended_FiredNear_EventHandlers {
|
|
class CAManBase {
|
|
class GVAR(FiredNear) {
|
|
clientFiredNear = QUOTE( if (GVAR(enableCombatDeafness) && {_this select 0 == ACE_player}) then {_this call FUNC(firedNear)}; );
|
|
};
|
|
};
|
|
};
|
|
|
|
class Extended_Explosion_EventHandlers {
|
|
class CAManBase {
|
|
class GVAR(ExplosionNear) {
|
|
clientExplosion = QUOTE( if (GVAR(enableCombatDeafness) && {_this select 0 == ACE_player}) then {_this call FUNC(explosionNear)}; );
|
|
};
|
|
};
|
|
};
|