Skip to content

Commit

Permalink
properly add eases to sample_and_hold /drift proxy
Browse files Browse the repository at this point in the history
  • Loading branch information
pingu7867 committed Nov 16, 2024
1 parent 4b2909b commit fa6eb8a
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions lua/pac3/core/client/parts/proxy.lua
Original file line number Diff line number Diff line change
Expand Up @@ -417,6 +417,8 @@ PART.Inputs.lerp = function(self, m, a, b)
return (b - a) * m + a
end

--I'll be reusing these on sample and hold / drift
local ease_aliases = {}
for ease,f in pairs(math.ease) do
if string.find(ease,"In") or string.find(ease,"Out") then
local f2 = function(self, frac, min, max)
Expand All @@ -427,6 +429,9 @@ for ease,f in pairs(math.ease) do
PART.Inputs["ease"..ease] = f2
PART.Inputs["ease_"..ease] = f2
PART.Inputs[ease] = f2
ease_aliases[ease] = ease
ease_aliases["ease"..ease] = ease
ease_aliases["ease_"..ease] = ease
end
end

Expand Down

0 comments on commit fa6eb8a

Please sign in to comment.