Fullbright

Posts 1–8 of 8 · Page 1 of 1
Fullbright
Hello,i need fullbright on lua,thanks for in advance help
lmao just enter mat_fullbright 1 in console when you need it
Quote Originally Posted by trafikas View Post
lmao just enter mat_fullbright 1 in console when you need it
i need fullbright for servers without sv_cheats 1
mat_fullbright isnt a cheat command
Quote Originally Posted by trafikas View Post
mat_fullbright isnt a cheat command
] mat_fullbright 1
Can't use cheat cvar mat_fullbright in multiplayer, unless the server has sv_cheats set to 1.
Code:
local LightingModeChanged = false
hook.Add( "PreRender", "fullbright", function()
	render.SetLightingMode( 1 )
	LightingModeChanged = true
end )

local function EndOfLightingMod()
	if LightingModeChanged then
		render.SetLightingMode( 0 )
		LightingModeChanged = false
	end
end
hook.Add( "PostRender", "fullbright", EndOfLightingMod )
hook.Add( "PreDrawHUD", "fullbright", EndOfLightingMod )
Example taken from https://wiki.facepunch.com/gmod/render.SetLightingMode
Quote Originally Posted by g4la View Post
] mat_fullbright 1
Can't use cheat cvar mat_fullbright in multiplayer, unless the server has sv_cheats set to 1.


tested in some server and it worked
da
hook.Add("RenderScene","gkfffff",function()
render.SetLightingMode(1 and 1 or 0)
end)
hook.Add("PostDrawViewmodel","gkfffff",function()
render.SetLightingMode(0)
end)
hook.Add("PreDrawEffects","gkfffff",function()
render.SetLightingMode(0)
end)
Posts 1–8 of 8 · Page 1 of 1

Post a Reply

Similar Threads

Tags for this Thread

None

Talk with us