SERVER: Match playback rate with duration for Take Out and Put Away animations

This commit is contained in:
cypress 2023-12-28 12:24:22 -05:00
parent 3dd3738f29
commit d815f9f037

View file

@ -166,12 +166,12 @@ void (float animation_type, void(optional float t) end_function, float playback_
case ANIM_TAKE_OUT:
start_frame = GetFrame(self.weapon, TAKE_OUT_START);
end_frame = GetFrame(self.weapon, TAKE_OUT_END);
duration = getWeaponDelay(self.weapon, TAKEOUT);
duration = playback_duration = getWeaponDelay(self.weapon, TAKEOUT);
break;
case ANIM_PUT_AWAY:
start_frame = GetFrame(self.weapon, PUT_OUT_START);
end_frame = GetFrame(self.weapon, PUT_OUT_END);
duration = getWeaponDelay(self.weapon, PUTOUT);
duration = playback_duration = getWeaponDelay(self.weapon, PUTOUT);
break;
case ANIM_FIRST_TAKE:
start_frame = GetFrame(self.weapon, FIRST_TAKE_START);