Исходник Supremacy galaxy skybox

  • Автор темы Автор темы bossul
  • Дата начала Дата начала
Участник
Участник
Статус
Оффлайн
Регистрация
6 Апр 2021
Сообщения
354
Реакции
219
since its not that hard to make but some still doesnt know how to make it and fix it on all maps, here you guys go, skybox download:
Пожалуйста, авторизуйтесь для просмотра ссылки.

Код:
Expand Collapse Copy
if ( g_menu.main.visuals.vi_el.get( 9 ) ) {
        auto unlock_cvars = [ ]( ) -> void {
            if ( !g_csgo.m_cvar )
                return;

            auto p = **reinterpret_cast< ConVar*** >( g_csgo.m_cvar + 0x34 );
            for ( auto c = p->m_next; c != nullptr; c = c->m_next ) {
                c->m_flags &= ~FCVAR_DEVELOPMENTONLY;
                c->m_flags &= ~FCVAR_HIDDEN;
            }
        };

        static bool avoid_memory_leaak = false;
        if ( !avoid_memory_leaak && !g_cl.convars_activated ) { /* do not run if these conditions doesnt meet
                g_cl.convars_activate is a second safety conditions because avoid_memory_leak will always be false when reactivating the sky galaxy boolean
            */ /* unlock the vars now */
            unlock_cvars( );

            /* we do not want to run it multiple time */
            g_cl.convars_activated = true;
            avoid_memory_leaak = true;
        }

        /* thanks philip for this masterpiece, it would be nicer if i could have loaded the font from memory, but eh */
        static auto sv_skyname = g_csgo.m_cvar->FindVar( HASH( "sv_skyname" ) );
        sv_skyname->SetValue( XOR( "sky_descent" ) );

        /* now lets fix this shit for the retrded maps that use 3d skybox */
        if ( g_cl.convars_activated ) { /* we need to do that for safety */
            static auto r_3dsky = g_csgo.m_cvar->FindVar( HASH( "r_3dsky" ) );
            r_3dsky->SetValue( 0 ); /* ez fix by the boss */
        }
    }
 
Where does the skybox files go? I never even knew you could do custom skyboxes
 
что мешает скачать скайбокс? это лучше чем мануалом мучаться
 
Назад
Сверху Снизу