Thread: [Solved] Outline entity in CSGO
View Single Post
condolent
AlliedModders Donor
Join Date: Jan 2016
Location: gc_sLocation;
Old 10-09-2017 , 12:39   Re: Outline entity in CSGO
Reply With Quote #9

Quote:
Originally Posted by Bobakanoosh View Post
https://forums.alliedmods.net/showthread.php?t=211117

This works for players, maybe for weapons.
Doesn't seem like it. This is what I got:
Code:
Unable to find property offset: "m_clrGlow"!
This fired it:
PHP Code:
// Get sendprop offset for prop_dynamic_override
    
if (!offset && (offset GetEntSendPropOffs(entity"m_clrGlow")) == -1)
    {
        
LogError("Unable to find property offset: \"m_clrGlow\"!");
        return;
    } 
Whole stock:
PHP Code:
stock void SetupGlow(int entityint rint gint bint a) {
    static 
int offset;

    
// Get sendprop offset for prop_dynamic_override
    
if (!offset && (offset GetEntSendPropOffs(entity"m_clrGlow")) == -1)
    {
        
LogError("Unable to find property offset: \"m_clrGlow\"!");
        return;
    }

    
// Enable glow for custom skin
    
SetEntProp(entityProp_Send"m_bShouldGlow"truetrue);

    
// So now setup given glow colors for the skin
    
SetEntData(entityoffsetr_true);    // Red
    
SetEntData(entityoffset 1g_true); // Green
    
SetEntData(entityoffset 2b_true); // Blue
    
SetEntData(entityoffset 3a_true); // Alpha

__________________

Last edited by condolent; 10-09-2017 at 12:39.
condolent is offline