values, simplify

This commit is contained in:
commy2 2020-02-23 14:25:11 +01:00
parent 27ecfc6a5b
commit 754a9e09af
2 changed files with 2 additions and 2 deletions

View File

@ -96,7 +96,7 @@ if (binocular _medic != "" && {binocular _medic == currentWeapon _medic}) then {
// Play treatment animation for medic and determine the ending animation
if (vehicle _medic == _medic && {_medicAnim != ""}) then {
// Speed up animation based on treatment time (but cap max to prevent odd animiations/cam shake)
private _animRatio = (_animDuration / _treatmentTime) min 3;
private _animRatio = _animDuration / _treatmentTime;
TRACE_3("setAnimSpeedCoef",_animRatio,_animDuration,_treatmentTime);
// Don't slow down animation too much to prevent it looking funny.

View File

@ -53,4 +53,4 @@
#define ANIMATION_SPEED_MIN_COEFFICIENT 0.5
// Animations that would be played faster than this are instead skipped. (= Progress bar too quick for animation).
#define ANIMATION_SPEED_MAX_COEFFICIENT 3
#define ANIMATION_SPEED_MAX_COEFFICIENT 2.5