1_ 2_ 3_ random anims work again

This commit is contained in:
Darsu 2024-10-01 19:24:03 +07:00
parent fc96384881
commit 93a06938c5

View File

@ -82,6 +82,9 @@ function SWEP:TranslateAnimation(seq)
if istable(seq) then
seq["BaseClass"] = nil
seq = seq[math.Round(util.SharedRandom("ARC9_animtr", 1, #seq))]
end
if self:HasAnimation("1_" .. seq, true) then -- if theres atleast 1 random seq
local rando = {seq}
local i = 1
@ -93,7 +96,6 @@ function SWEP:TranslateAnimation(seq)
seq = rando[math.Round(util.SharedRandom("ARC9_animtr", 1, #rando))]
end
return seq
end