Skip to content

Commit

Permalink
update PAC3 to E2 holo to use invert flag (#1373)
Browse files Browse the repository at this point in the history
  • Loading branch information
Advers authored Jan 3, 2025
1 parent 48743b7 commit db32df1
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions lua/pac3/editor/client/tools.lua
Original file line number Diff line number Diff line change
Expand Up @@ -489,7 +489,7 @@ pace.AddTool(L"Convert group of models to Expression 2 holograms", function(part
local str_ref =
[[
I++, HN++, HT[HN,table] = table(I, Base, Base, 0, POSITION, ANGLES, SCALE, MODEL, MATERIAL, vec4(COLOR, ALPHA), SKIN)
I++, HN++, HT[HN,table] = table(I, Base, Base, 0, POSITION, ANGLES, SCALE, MODEL, MATERIAL, vec4(COLOR, ALPHA), SKIN, INVERT)
]]

local str_header =
Expand All @@ -513,7 +513,7 @@ if (first() | dupefinished()) {
Indices = 1
#- Data structure
#- HN++, HT[HN, table] = table(Index, Local Entity (Entity:toWorld()), Parent Entity, ScaleType (Default 0), Pos, Ang, Scale, Model, Material, Color, Skin)
#- HN++, HT[HN, table] = table(Index, Local Entity (Entity:toWorld()), Parent Entity, ScaleType (Default 0), Pos, Ang, Scale, Model, Material, Color, Skin, Invert)
#- CN++, CT[CN, table] = table(Index, Clip Index, Pos, Ang)
#- Editing holograms
Expand Down Expand Up @@ -556,6 +556,7 @@ if (first() | dupefinished()) {
holoMaterial(Index, This[9, string])
holoColor(Index, This[10, vector4])
holoSkin(Index, This[11, number])
holoInvertModel(Index, This[12, number])
}
if (ToggleShading) { holoDisableShading(Index, 1) }
Expand Down Expand Up @@ -675,6 +676,7 @@ elseif (CoreStatus == "RunThisCode") {
MATERIAL = ("%q"):format(part:GetMaterial()),
MODEL = ("%q"):format(part:GetModel()),
SKIN = part.GetSkin and part:GetSkin() or "0",
INVERT = part:GetInvert() and "1" or "0",
PARENT = "entity()"
})

Expand Down

0 comments on commit db32df1

Please sign in to comment.