Question I was wondering how you make this glow on CSGOSimple

shafrooll

User
User
User
User
Status
Offline
Joined
Mar 25, 2019
Messages
45
Reaction score
18
I am seeking information to implement this glow in my cheat dll but it is difficult and no one helps me if they know any CSGOSimple that can send me the link I'm grateful
 

Attachments

  • 1577135432791.png
    1577135432791.png
    372.3 KB · Views: 18

PostmanTapOwO

very cool
User
very cool
User
Status
Offline
Joined
Jun 14, 2019
Messages
37
Reaction score
22
glowObject.m_nGlowStyle = 1; i think
or if chams material
Code:
    std::ofstream("csgo\\materials\\glowOverlay.vmt") << R"#("VertexLitGeneric"
{
    "$additive" "1"
    "$envmap" "models/effects/cube_white"
    "$envmaptint" "[0 0.5 1]"
    "$envmapfresnel" "1"
    "$envmapfresnelminmaxexp" "[0 1 2]"
    "$alpha" "0.8"
}
)#";

materialGlow = g_MatSystem->FindMaterial("glowOverlay", TEXTURE_GROUP_MODEL);
 

shafrooll

User
User
User
User
Status
Offline
Joined
Mar 25, 2019
Messages
45
Reaction score
18
Can you change the color of this call? other than by "$ envmaptint" "[0 0.5 1]" RGB Type
 

PostmanTapOwO

very cool
User
very cool
User
Status
Offline
Joined
Jun 14, 2019
Messages
37
Reaction score
22
Can you change the color of this call? other than by "$ envmaptint" "[0 0.5 1]" RGB Type
ye its possible, u make bool found, then material->findvar("$envmaptint",found) and if(found) material->setvector(colors) or something like that. or take a look in rifk source
tbh i never got it to work on csgo simple base so if anyone has working solution that would be nice :)
Edit* i actualy found a way to do it in csgo simple
C++:
    bool bFound;
    auto pVar = material->FindVar("$envmaptint", &bFound);
    if (bFound)
        pVar->set_vec_value(
            rgba.r() / 255.0f,
            rgba.g() / 255.0f,
            rgba.b() / 255.0f);
and the imaterialvar class:
C++:
class IMaterialVar
{
public:
    void set_vec_value(float r, float g, float b) {
        using original_fn = void(__thiscall*)(IMaterialVar*, float, float, float);
        return (*(original_fn**)this)[11](this, r, g, b);
    }
};
 
Last edited:
Top