Skip to content

Commit

Permalink
optional sequence speed separate for mat/demat, fixes #1050
Browse files Browse the repository at this point in the history
  • Loading branch information
MattJeanes committed Jan 8, 2024
1 parent e95aa1f commit d4970de
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions lua/entities/gmod_tardis/modules/teleport/sh_tp_main.lua
Original file line number Diff line number Diff line change
Expand Up @@ -504,6 +504,9 @@ ENT:AddHook("Think","teleport",function(self,delta)
if self:GetData("hads-demat") then
sequencespeed = teleport_md.SequenceSpeedHads
end
if istable(sequencespeed) then
sequencespeed = demat and sequencespeed.Demat or sequencespeed.Mat
end
alpha=math.Approach(alpha,target,delta*66*sequencespeed)
self:SetData("alpha",alpha)
self:SetAttachedTransparency(alpha)
Expand Down

0 comments on commit d4970de

Please sign in to comment.