mirror of
https://github.com/JonnyBro/beatrun.git
synced 2024-12-29 05:13:02 +05:00
Also fix anims in slowmo
This commit is contained in:
parent
1c1e58ac98
commit
65a94f54e5
1 changed files with 2 additions and 1 deletions
|
@ -457,6 +457,7 @@ hook.Add("Think", "BodyAnimThink", function()
|
|||
if not IsValid(BodyAnim) then return end
|
||||
|
||||
local ply = LocalPlayer()
|
||||
SlowmoMultiplier = ply:GetLaggedMovementValue()
|
||||
|
||||
if not ply:Alive() and not deathanim then
|
||||
RemoveBodyAnim()
|
||||
|
@ -464,7 +465,7 @@ hook.Add("Think", "BodyAnimThink", function()
|
|||
return
|
||||
end
|
||||
|
||||
BodyAnimCycle = BodyAnimCycle + FrameTime() / BodyAnim:SequenceDuration() * BodyAnimSpeed
|
||||
BodyAnimCycle = BodyAnimCycle + FrameTime() / BodyAnim:SequenceDuration() * BodyAnimSpeed * SlowmoMultiplier
|
||||
|
||||
if not customcycle then
|
||||
BodyAnim:SetCycle(BodyAnimCycle)
|
||||
|
|
Loading…
Reference in a new issue