-
Автор темы
- #1
имбовая штука, выглядит пиздато, особенно без найтмода
Код:
local m_envLightShadowDirection_x = Menu.SliderFloat("CCascadeLight", "m_envLightShadowDirection_x", 0, -1, 1)
local m_envLightShadowDirection_y = Menu.SliderFloat("CCascadeLight", "m_envLightShadowDirection_y", 0, -1, 1)
local m_envLightShadowDirection_z = Menu.SliderFloat("CCascadeLight", "m_envLightShadowDirection_z", 0, -1, 1)
local m_shadowDirection_x = Menu.SliderFloat("CCascadeLight", "m_shadowDirection_x", 0, -1, 1)
local m_shadowDirection_y = Menu.SliderFloat("CCascadeLight", "m_shadowDirection_y", 0, -1, 1)
local m_shadowDirection_z = Menu.SliderFloat("CCascadeLight", "m_shadowDirection_z", 0, -1, 1)
Cheat.RegisterCallback("draw", function()
if EngineClient.IsConnected() == false then return end
local CCascadeLight = EntityList.GetEntitiesByClassID(35)[1]
CCascadeLight:SetProp("m_envLightShadowDirection", Vector.new(m_envLightShadowDirection_x:GetFloat(), m_envLightShadowDirection_y:GetFloat(), m_envLightShadowDirection_z:GetFloat()))
CCascadeLight:SetProp("m_shadowDirection", Vector.new(m_shadowDirection_x:GetFloat(), m_shadowDirection_y:GetFloat(), m_shadowDirection_z:GetFloat()))
end)