mirror of
https://github.com/CapsAdmin/pac3.git
synced 2025-03-04 03:03:01 -05:00
update PAC3 to E2 holo to use invert flag (#1373)
This commit is contained in:
parent
48743b7bd7
commit
db32df1ec1
@ -489,7 +489,7 @@ pace.AddTool(L"Convert group of models to Expression 2 holograms", function(part
|
|||||||
local str_ref =
|
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 =
|
local str_header =
|
||||||
@ -513,7 +513,7 @@ if (first() | dupefinished()) {
|
|||||||
Indices = 1
|
Indices = 1
|
||||||
|
|
||||||
#- Data structure
|
#- 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)
|
#- CN++, CT[CN, table] = table(Index, Clip Index, Pos, Ang)
|
||||||
|
|
||||||
#- Editing holograms
|
#- Editing holograms
|
||||||
@ -556,6 +556,7 @@ if (first() | dupefinished()) {
|
|||||||
holoMaterial(Index, This[9, string])
|
holoMaterial(Index, This[9, string])
|
||||||
holoColor(Index, This[10, vector4])
|
holoColor(Index, This[10, vector4])
|
||||||
holoSkin(Index, This[11, number])
|
holoSkin(Index, This[11, number])
|
||||||
|
holoInvertModel(Index, This[12, number])
|
||||||
}
|
}
|
||||||
|
|
||||||
if (ToggleShading) { holoDisableShading(Index, 1) }
|
if (ToggleShading) { holoDisableShading(Index, 1) }
|
||||||
@ -675,6 +676,7 @@ elseif (CoreStatus == "RunThisCode") {
|
|||||||
MATERIAL = ("%q"):format(part:GetMaterial()),
|
MATERIAL = ("%q"):format(part:GetMaterial()),
|
||||||
MODEL = ("%q"):format(part:GetModel()),
|
MODEL = ("%q"):format(part:GetModel()),
|
||||||
SKIN = part.GetSkin and part:GetSkin() or "0",
|
SKIN = part.GetSkin and part:GetSkin() or "0",
|
||||||
|
INVERT = part:GetInvert() and "1" or "0",
|
||||||
PARENT = "entity()"
|
PARENT = "entity()"
|
||||||
})
|
})
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user