Skip to content

Commit

Permalink
Updated: Open frequent pieces frame micro optimization
Browse files Browse the repository at this point in the history
  • Loading branch information
dvdvideo1234 committed Sep 30, 2017
1 parent 4935f04 commit 640553d
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions lua/autorun/gearassembly_init.lua
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ local asmlib = gearasmlib

------ CONFIGURE ASMLIB ------
asmlib.InitBase("gear","assembly")
asmlib.SetOpVar("TOOL_VERSION","5.190")
asmlib.SetOpVar("TOOL_VERSION","5.191")
asmlib.SetIndexes("V",1,2,3)
asmlib.SetIndexes("A",1,2,3)
asmlib.SetIndexes("S",4,5,6,7)
Expand Down Expand Up @@ -322,11 +322,10 @@ if(CLIENT) then
pnModelPanel:SetVisible(true)
pnModelPanel.LayoutEntity = function(pnSelf, oEnt)
if(pnSelf.bAnimated) then pnSelf:RunAnimation() end
local uiPly = LocalPlayer()
local uiBox = asmlib.CacheBoxLayout(oEnt,40)
if(not asmlib.IsExistent(uiBox)) then
return asmlib.StatusLog(nil,"OPEN_FRAME: pnModelPanel.LayoutEntity: Box invalid") end
local stSpawn = asmlib.GetNormalSpawn(uiPly,asmlib.GetOpVar("VEC_ZERO"),uiBox.Ang,oEnt:GetModel())
local stSpawn = asmlib.GetNormalSpawn(oPly,asmlib.GetOpVar("VEC_ZERO"),uiBox.Ang,oEnt:GetModel())
if(not stSpawn) then
return asmlib.StatusLog(nil,"OPEN_FRAME: pnModelPanel.LayoutEntity: Spawn data fail") end
asmlib.ApplySpawnFlat(oEnt, stSpawn, asmlib.GetOpVar("VEC_UP"))
Expand Down

0 comments on commit 640553d

Please sign in to comment.