CLIENT - Adds fix for weapon frame lerp stutter

This commit is contained in:
Luis Gutierrez 2023-02-05 08:02:10 -08:00 committed by GitHub
parent 593e63d56c
commit 8a34ab4da2
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -505,6 +505,7 @@ noref void(float width, float height, float menushown) CSQC_UpdateView =
if (curweaponframe != weaponframe) {
interpolating = TRUE;
vmodel.lerpfrac = 0;
oldweaponframe = curweaponframe;
curweaponframe = weaponframe;
}
@ -530,6 +531,7 @@ noref void(float width, float height, float menushown) CSQC_UpdateView =
if (curweapon2frame != weapon2frame) {
interpolating2 = TRUE;
v2model.lerpfrac = 0;
oldweapon2frame = curweapon2frame;
curweapon2frame = weapon2frame;
}