mirror of
https://github.com/Ignatz-HeMan/Ignatz_Tools.git
synced 2024-08-30 16:12:11 +00:00
24 lines
1.0 KiB
Plaintext
24 lines
1.0 KiB
Plaintext
// File created by Ignatz - He-Man
|
|
// Last Update: 2017-04-06
|
|
|
|
if (!isclass (getmissionconfig 'Ignatz_config')) exitwith {
|
|
systemchat "Error: Can not load Config for Earplugs";
|
|
};
|
|
_config = getmissionconfig 'Ignatz_config';
|
|
Ignatz_KB_Earplug = getnumber (_config >> "Earplugs_Keybind");
|
|
Ignatz_AutoEarplugs = switch (tolower (gettext (_config >> "Earplugs_AutoEarplugs"))) do {case "true": {true};default {false}};
|
|
Ignatz_EnableEarpluginVeh = switch (tolower (gettext (_config >> "Earplugs_UseInVehicles"))) do {case "true": {true};default {false}};
|
|
Ignatz_AutoEarplugsHints = switch (tolower (gettext (_config >> "Earplugs_HintsMessages"))) do {case "true": {true};default {false}};
|
|
Ignatz_EarplugsSystemchat = switch (tolower (gettext (_config >> "Earplugs_Systemchat"))) do {case "true": {true};default {false}};
|
|
Ignatz_Earplugsin = false;
|
|
Ignatz_Client_Earplugger = compilefinal "
|
|
if (Ignatz_Earplugsin) then {
|
|
Ignatz_Earplugsin = false;
|
|
1 fadeSound 1;
|
|
}
|
|
else {
|
|
Ignatz_Earplugsin = true;
|
|
1 fadeSound 0.15;
|
|
};
|
|
";
|