Skip to content
Open
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
3 changes: 3 additions & 0 deletions lua/fspectate/cl_init.lua
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@ local isValid = IsValid
local teamGetColor = team.GetColor
local setColorModulation = render.SetColorModulation
local materialOverride = render.MaterialOverride
local suppressEngineLighting = render.SuppressEngineLighting
local cam_Start3D = cam.Start3D
local cam_End3D = cam.End3D
local draw_WordBox = draw.WordBox
Expand Down Expand Up @@ -248,6 +249,7 @@ local function drawCham( ply )
local r, g, b = col:Unpack()

cam_Start3D();
suppressEngineLighting( true )
setColorModulation( r / 1000, g / 1000, b / 1000 )
materialOverride( chamsmat1 )

Expand All @@ -258,6 +260,7 @@ local function drawCham( ply )

ply:DrawModel()
materialOverride()
suppressEngineLighting( false )
cam_End3D();
end

Expand Down