купить дизайн: yougame.biz/threads/155999
Дизайнер
-
Автор темы
- #1
s/o to 2020 aimware lua
C++:
engine::g_entity_list->for_each_entity( [ & ] ( engine::entity_t* entity ) {
if ( entity->networkable( )->client_class(
)->m_class_id != engine::e_class_id::cascade_light )
return;
/* m_cascade_light.m_env_light_shadow_dir
= netvars.at( HASH( "CCascadeLight->m_envLightShadowDirection" ) ).m_offset; */
auto& dir = *sdk::addr_t( entity ).self_offset(
g_ctx->offsets( ).m_cascade_light.m_env_light_shadow_dir ).as< sdk::vec3_t* >( );
/* set your custom sun pos here */
const auto my_pos = sdk::ang_t( 0.f, engine::g_global_vars->m_real_time, 0.f ).vectors( );
dir = sdk::vec3_t( my_pos.x( ), my_pos.y( ), dir.z( ) );
} );