LUA скрипт Shadows (sunset mode)

Пользователь
Статус
Оффлайн
Регистрация
25 Апр 2019
Сообщения
159
Реакции[?]
76
Поинты[?]
10K
имбовая штука, выглядит пиздато, особенно без найтмода

Код:
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)
 
keep silence
Участник
Статус
Оффлайн
Регистрация
17 Дек 2018
Сообщения
546
Реакции[?]
201
Поинты[?]
0
имбовая штука, выглядит пиздато, особенно без найтмода

Код:
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)
В некоторых местах на скрине кнш выглядит странно, но, бля, тени на полу - просто секс :hearteyes:
 
я
Пользователь
Статус
Оффлайн
Регистрация
6 Сен 2019
Сообщения
213
Реакции[?]
63
Поинты[?]
1K
Найс , самый полезный релиз в луа скриптинге
 
life is cheap, death is free!
Эксперт
Статус
Оффлайн
Регистрация
9 Дек 2019
Сообщения
1,603
Реакции[?]
517
Поинты[?]
2K
Код:
local wnd_luatest = gui.Window( "wnd_luatest", "Lua GUI", 200, 200, 200, 400 );
local lua_slider1 = gui.Slider( wnd_luatest, "m_envLightShadowDirection_x", "Slider", 0, -1, 1 );
local lua_slider2 = gui.Slider( wnd_luatest, "m_envLightShadowDirection_y", "Slider", 0, -1, 1 );
local lua_slider3 = gui.Slider( wnd_luatest, "m_envLightShadowDirection_z", "Slider", 0, -1, 1 );
local lua_slider4 = gui.Slider( wnd_luatest, "m_shadowDirection_x", "Slider", 0, -1, 1 );
local lua_slider5 = gui.Slider( wnd_luatest, "m_shadowDirection_y", "Slider", 0, -1, 1 );
local lua_slider6 = gui.Slider( wnd_luatest, "m_shadowDirection_z", "Slider", 0, -1, 1 );

callbacks.Register("Draw", function ()
    if not engine.GetMapName() then return end
    local CCascadeLight = entities.GetByUserID(35)[1]
    CCascadeLight:SetPropVector(Vector3(lua_slider1:GetValue(), lua_slider2:GetValue(), lua_slider3:GetValue()), "m_envLightShadowDirection")
    CCascadeLight:SetPropVector(Vector3(lua_slider4:GetValue(), lua_slider5:GetValue(), lua_slider6:GetValue()), "m_shadowDirection")
end)
try
 
nikogda nikogda
Пользователь
Статус
Оффлайн
Регистрация
29 Окт 2018
Сообщения
305
Реакции[?]
99
Поинты[?]
0
Код:
local wnd_luatest = gui.Window( "wnd_luatest", "Lua GUI", 200, 200, 200, 400 );
local lua_slider1 = gui.Slider( wnd_luatest, "m_envLightShadowDirection_x", "Slider", 0, -1, 1 );
local lua_slider2 = gui.Slider( wnd_luatest, "m_envLightShadowDirection_y", "Slider", 0, -1, 1 );
local lua_slider3 = gui.Slider( wnd_luatest, "m_envLightShadowDirection_z", "Slider", 0, -1, 1 );
local lua_slider4 = gui.Slider( wnd_luatest, "m_shadowDirection_x", "Slider", 0, -1, 1 );
local lua_slider5 = gui.Slider( wnd_luatest, "m_shadowDirection_y", "Slider", 0, -1, 1 );
local lua_slider6 = gui.Slider( wnd_luatest, "m_shadowDirection_z", "Slider", 0, -1, 1 );

callbacks.Register("Draw", function ()
    if not engine.GetMapName() then return end
    local CCascadeLight = entities.GetByUserID(35)[1]
    CCascadeLight:SetPropVector(Vector3(lua_slider1:GetValue(), lua_slider2:GetValue(), lua_slider3:GetValue()), "m_envLightShadowDirection")
    CCascadeLight:SetPropVector(Vector3(lua_slider4:GetValue(), lua_slider5:GetValue(), lua_slider6:GetValue()), "m_shadowDirection")
end)
try
1644101479882.png

upd: ne work
 
Посрал
Участник
Статус
Оффлайн
Регистрация
28 Ноя 2020
Сообщения
523
Реакции[?]
153
Поинты[?]
1K
Пользователь
Статус
Оффлайн
Регистрация
17 Ноя 2021
Сообщения
242
Реакции[?]
34
Поинты[?]
2K
Дай значения со скрина, не получается ничего годного
 
nikogda nikogda
Пользователь
Статус
Оффлайн
Регистрация
29 Окт 2018
Сообщения
305
Реакции[?]
99
Поинты[?]
0
Код:
local lua_ref = gui.Reference("Visuals", "World","Extra")
local lua_light_shadow_x = gui.Slider(lua_ref, "light_shadow_x", "Light Shadow Direction X", 0, -1, 1, 0.05)
local lua_light_shadow_y = gui.Slider(lua_ref, "light_shadow_y", "Light Shadow Direction Y", 0, -1, 1, 0.05)
local lua_light_shadow_z = gui.Slider(lua_ref, "light_shadow_z", "Light Shadow Direction Z", 0, -1, 1, 0.05)
local lua_shadow_x = gui.Slider(lua_ref, "shadow_x", "Shadow Direction X", 0, -1, 1, 0.05)
local lua_shadow_y = gui.Slider(lua_ref, "shadow_y", "Shadow Direction Y", 0, -1, 1, 0.05)
local lua_shadow_z = gui.Slider(lua_ref, "shadow_z", "Shadow Direction Z", 0, -1, 1, 0.05)

callbacks.Register("Draw", function()
    local CCascadeLight = entities.FindByClass("CCascadeLight")[1]
    if CCascadeLight then
        CCascadeLight:SetProp("m_envLightShadowDirection", Vector3(lua_light_shadow_x:GetValue(), lua_light_shadow_y:GetValue(), lua_light_shadow_z:GetValue()))
        CCascadeLight:SetProp("m_shadowDirection", Vector3(lua_shadow_x:GetValue(), lua_shadow_y:GetValue(), lua_shadow_z:GetValue()))
    end
end)
credits: Verieth
 
Забаненный
Статус
Оффлайн
Регистрация
16 Мар 2019
Сообщения
39
Реакции[?]
6
Поинты[?]
0
Обратите внимание, пользователь заблокирован на форуме. Не рекомендуется проводить сделки.
имбовая штука, выглядит пиздато, особенно без найтмода

Код:
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)
Можешь сказать свои пресеты по братски
 
Похожие темы
Сверху Снизу