Add pain effect option

This commit is contained in:
KoffeinFlummi 2015-04-14 21:49:56 +02:00
parent e7807c009f
commit 684c36f8a5
3 changed files with 15 additions and 2 deletions

View File

@ -117,4 +117,10 @@ class ACE_Settings {
typeName = "BOOL";
value = 1;
};
class GVAR(painEffectType) {
typeName = "SCALAR";
value = 0;
values[] = {"$STR_ACE_Medical_PainEffect_Flash", "$STR_ACE_Medical_PainEffect_Chroma"}
isClientSettable = 1;
};
};

View File

@ -172,8 +172,7 @@ if (isNil QGVAR(level)) then {
// Pain effect
_strength = ACE_player getVariable [QGVAR(pain), 0];
// _strength = _strength * (ACE_player getVariable [QGVAR(coefPain), GVAR(coefPain)]); @todo
GVAR(alternativePainEffect) = false; // @todo
if (GVAR(alternativePainEffect)) then {
if (GVAR(painEffectType) == 1) then {
GVAR(effectPainCC) ppEffectEnable false;
if ((ACE_player getVariable [QGVAR(pain), 0]) > 0 && {alive ACE_player}) then {
_strength = _strength * 0.15;

View File

@ -1308,5 +1308,13 @@
<English>Right Leg</English>
<German>Rechtes Bein</German>
</Key>
<Key ID="STR_ACE_Medical_PainEffect_Flash">
<English>Colour Flashing</English>
<German>Farbblinken</German>
</Key>
<Key ID="STR_ACE_Medical_PainEffect_Chroma">
<English>Chromatic Aberration</English>
<German>Chromatische Aberration</German>
</Key>
</Package>
</Project>