Вопрос Creating custom material in pandora.

Начинающий
Статус
Оффлайн
Регистрация
6 Мар 2019
Сообщения
29
Реакции[?]
2
Поинты[?]
0
I've seen the supremacy overhaul that has custom materials. When I tried to create a material the same way they did, I was met with this.
Screenshot_27.png

This is my code for creating the material.

Код:
    if ((g_cfg [XOR ("esp_chams_local_luminate_material")]. get <int> ()) == 0) {
        static bool loaded {false};
        if (! loaded)
        {
            std :: ofstream ("csgo / materials / frog.vmt") << R "# (" VertexLitGeneric "{
                "$ additive" "1"
                "$ envmap" "models / effects / cube_white"
                "$ envmaptint" "[0 0.1 0.2]"
                "$ envmapfresnel" "1"
                "$ envmapfresnelminmaxexp" "[0 1 2]"
                "$ alpha" "0.8"
            }) # ";
            loaded = true;
        }

        custom_material = g_csgo.m_material_system-> FindMaterial (XOR ("frog"), nullptr);
    }
This is where I actually setup the material.
Код:
            if ((g_cfg [XOR ("esp_chams_local_luminate_material")]. get <int> ())> = 0)
            {
                // glow start (g_cfg [XOR ("esp_chams_local_color")]. get_color () / 100.f)
                SetAlpha (g_cfg [XOR ("chams_glow_mat_player_blend")]. Get <float> () / 100.f);

                SetupMaterial (custom_material, color, false);
                //g_hooks.m_model_render.GetOldMethod <Hooks :: DrawModelExecute_t> (IVModelRender :: DRAWMODELEXECUTE) (player);
            }
This is what color means.
Код:
            Color color = g_cfg [XOR ("esp_chams_local_color")]. Get_color ();
Any help would be much appreciated! [/ CODE]
 
Сверху Снизу