Fire - Increase effectiveness of rolling for putting out fire (#9016)

* Increase effectiveness of rolling for putting out fire

* Use same value for rolling and pat down
This commit is contained in:
Filip Maciejewski 2022-08-29 02:27:10 +02:00 committed by GitHub
parent 20fb895b31
commit 78f0262e10
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 6 additions and 3 deletions

View File

@ -223,8 +223,8 @@ if (_isBurning) exitWith {};
}; };
} else { } else {
if ((animationState _unit) in PRONE_ROLLING_ANIMS) then { if ((animationState _unit) in PRONE_ROLLING_ANIMS) then {
// decrease intensity of burn, but if its too high this wont do anything substantial // decrease intensity of burn
_intensity = _intensity - (1 / _intensity); _intensity = _intensity * INTENSITY_DECREASE_MULT_ROLLING;
}; };
}; };

View File

@ -19,5 +19,5 @@
params ["_medic", "_patient"]; params ["_medic", "_patient"];
private _intensity = _patient getVariable [QGVAR(intensity), 0]; private _intensity = _patient getVariable [QGVAR(intensity), 0];
_intensity = _intensity * (4/5); _intensity = _intensity * INTENSITY_DECREASE_MULT_PAT_DOWN;
_patient setVariable [QGVAR(intensity), _intensity, true]; _patient setVariable [QGVAR(intensity), _intensity, true];

View File

@ -30,3 +30,6 @@
"amovppnemstpsoptwbindnon_amovppnemevasoptwbindl",\ "amovppnemstpsoptwbindnon_amovppnemevasoptwbindl",\
"amovppnemstpsoptwbindnon_amovppnemevasoptwbindr"\ "amovppnemstpsoptwbindnon_amovppnemevasoptwbindr"\
] ]
#define INTENSITY_DECREASE_MULT_PAT_DOWN 0.8
#define INTENSITY_DECREASE_MULT_ROLLING INTENSITY_DECREASE_MULT_PAT_DOWN