Skip to content

Commit c7d7c70

Browse files
authored
Merge pull request #1400 from CapsAdmin/master
Merge master into develop
2 parents 209a1f7 + db32df1 commit c7d7c70

File tree

94 files changed

+6
-2
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

94 files changed

+6
-2
lines changed

lua/pac3/editor/client/tools.lua

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -490,7 +490,7 @@ pace.AddTool(L"Convert group of models to Expression 2 holograms", function(part
490490
local str_ref =
491491
[[
492492
493-
I++, HN++, HT[HN,table] = table(I, Base, Base, 0, POSITION, ANGLES, SCALE, MODEL, MATERIAL, vec4(COLOR, ALPHA), SKIN)
493+
I++, HN++, HT[HN,table] = table(I, Base, Base, 0, POSITION, ANGLES, SCALE, MODEL, MATERIAL, vec4(COLOR, ALPHA), SKIN, INVERT)
494494
]]
495495

496496
local str_header =
@@ -514,7 +514,7 @@ if (first() | dupefinished()) {
514514
Indices = 1
515515
516516
#- Data structure
517-
#- HN++, HT[HN, table] = table(Index, Local Entity (Entity:toWorld()), Parent Entity, ScaleType (Default 0), Pos, Ang, Scale, Model, Material, Color, Skin)
517+
#- HN++, HT[HN, table] = table(Index, Local Entity (Entity:toWorld()), Parent Entity, ScaleType (Default 0), Pos, Ang, Scale, Model, Material, Color, Skin, Invert)
518518
#- CN++, CT[CN, table] = table(Index, Clip Index, Pos, Ang)
519519
520520
#- Editing holograms
@@ -557,6 +557,7 @@ if (first() | dupefinished()) {
557557
holoMaterial(Index, This[9, string])
558558
holoColor(Index, This[10, vector4])
559559
holoSkin(Index, This[11, number])
560+
holoInvertModel(Index, This[12, number])
560561
}
561562
562563
if (ToggleShading) { holoDisableShading(Index, 1) }
@@ -676,6 +677,7 @@ elseif (CoreStatus == "RunThisCode") {
676677
MATERIAL = ("%q"):format(part:GetMaterial()),
677678
MODEL = ("%q"):format(part:GetModel()),
678679
SKIN = part.GetSkin and part:GetSkin() or "0",
680+
INVERT = part:GetInvert() and "1" or "0",
679681
PARENT = "entity()"
680682
})
681683

lua/pac3/extra/client/wire_expression_extension.lua

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,8 @@ end)
88

99
local function SetKeyValue(ply, ent, unique_id, key, val)
1010
local set = "Set" .. key
11+
12+
if ent == game.GetWorld() then ent = pac.WorldEntity end
1113

1214
local part = pac.GetPartFromUniqueID(pac.Hash(ply), unique_id)
1315
if not IsValid( part ) then return end

models/pac/default.dx80.vtx

-21.7 KB
Binary file not shown.

models/pac/default.sw.vtx

-21.7 KB
Binary file not shown.
-144 KB
Binary file not shown.
-135 KB
Binary file not shown.
-34.4 KB
Binary file not shown.
-32.4 KB
Binary file not shown.
-34.4 KB
Binary file not shown.
-32.4 KB
Binary file not shown.

0 commit comments

Comments
 (0)