mirror of
https://github.com/acemod/ACE3.git
synced 2024-08-30 18:23:18 +00:00
Add pain effect option
This commit is contained in:
parent
e7807c009f
commit
684c36f8a5
@ -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;
|
||||
};
|
||||
};
|
||||
|
@ -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;
|
||||
|
@ -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>
|
||||
|
Loading…
Reference in New Issue
Block a user