mirror of
https://github.com/nzp-team/quakec.git
synced 2024-11-24 21:02:14 +00:00
SERVER: Match playback rate with duration for Take Out and Put Away animations
This commit is contained in:
parent
3dd3738f29
commit
d815f9f037
1 changed files with 2 additions and 2 deletions
|
@ -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);
|
||||
|
|
Loading…
Reference in a new issue