View Single Post
foxhound27
AlliedModders Donor
Join Date: Sep 2019
Location: Argentina
Old 02-22-2020 , 10:07   Re: [L4D2]Glow Menu Modification / Help Requests
Reply With Quote #2

maybe with this enough o.o

PHP Code:
public void SetupGlow(int entityint client)
{
    
char netclass[128];
    
GetEntityNetClass(entitynetclasssizeof netclass);
    
int offset FindSendPropInfo(netclass"m_iGlowType");
    
    if (
offset 1)
    {
        
LogError("Unable to find property offset: \"m_iGlowType\"!");
        return;
    }


    
SetEntProp(entityProp_Send"m_iGlowType"g_CVAR_GlowColor_Style.IntValue);
    
SetEntProp(entityProp_Send"m_nGlowRange"100);
    
SetEntProp(entityProp_Send"m_nGlowRangeMin"100);

    
int colors[3];
    
g_GlowColor.GetArray(GlowIndex[client], colors);

    
SetEntProp(entityProp_Send"m_glowColorOverride"colors[0] + (colors[1] * 256) + (colors[2] * 65536));


g_CVAR_GlowColor_Style = CreateConVar("sm_glowmenu_style", "3", "Type of Style that you want to the glow (3 gives WALLHACKS to everyone)", _, true, 0.0, true, 3.0);

this has changed now

0 = None
1 = Use
2 = Look At
3 = Constant

Last edited by foxhound27; 02-22-2020 at 10:18.
foxhound27 is offline