Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion lua/weapons/swep_construction_kit/base_code.lua
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ function SWEP:Initialize()
vm:SetColor(Color(255,255,255,1))
// ^ stopped working in GMod 13 because you have to do Entity:SetRenderMode(1) for translucency to kick in
// however for some reason the view model resets to render mode 0 every frame so we just apply a debug material to prevent it from drawing
vm:SetMaterial("Debug/hsv")
vm:SetMaterial("vgui/hsv")
end
end
end
Expand Down
2 changes: 1 addition & 1 deletion lua/weapons/swep_construction_kit/menu/weapon.lua
Original file line number Diff line number Diff line change
Expand Up @@ -198,7 +198,7 @@ local vhbox = vgui.Create( "DCheckBoxLabel", pweapon )
LocalPlayer():GetViewModel():SetColor(Color(255,0,0,255))
// This should prevent the model from drawing, without stopping ViewModelDrawn from being called
// I tried Entity:SetRenderMode(1) with color alpha on 1 but the view model resets to render mode 0 every frame :/
LocalPlayer():GetViewModel():SetMaterial("Debug/hsv")
LocalPlayer():GetViewModel():SetMaterial("vgui/hsv")
end
end
if (wep.save_data.ShowViewModel) then vhbox:SetValue(1)
Expand Down