Из команд
render_hack 0 выкл
render_hack 1 darkmod
render_hack 2 fullbright
flashlight_hack 0 спам фонариком выкл
flashlight_hack 1 спам фонариком вкл
render_hack 0 выкл
render_hack 1 darkmod
render_hack 2 fullbright
flashlight_hack 0 спам фонариком выкл
flashlight_hack 1 спам фонариком вкл
Код:
local render_hack , flashlight_hack = 0 , 0 ;
hook.Add("RenderScene", "Hook1", function()
if render_hack == 1 then
for k,v in pairs(game.GetWorld():GetMaterials()) do
Material(v):SetVector("$color",Vector(0.05,0.05,0.05))
end
render.SuppressEngineLighting( true )
render.ResetModelLighting(0.2,0.2,0.2)
else
for k,v in pairs(game.GetWorld():GetMaterials()) do
Material(v):SetVector("$color",Vector(1,1,1))
end
render.SuppressEngineLighting( false )
render.ResetModelLighting(1,1,1)
end
render.SetLightingMode(render_hack == 2 and 1 or 0)
end)
concommand.Add( 'render_hack' , function( ply , cmd , args )
render_hack = math.Clamp( tonumber( args[ 1 ] ) or 0 , 0 , 2 )
end)
concommand.Add( 'flashlight_hack' , function( ply , cmd , args )
flashlight_hack = math.Clamp( tonumber( args[ 1 ] ) or 0 , 0 , 1 )
end)
hook.Add( 'Think' , 'flashlight_hack' , function()
if( flashlight_hack == 1 ) then
RunConsoleCommand( 'impulse' , 100 ) ;
end
end )