Quote:
Originally Posted by Bobakanoosh
|
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 entity, int r, int g, int b, int 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(entity, Prop_Send, "m_bShouldGlow", true, true);
// So now setup given glow colors for the skin
SetEntData(entity, offset, r, _, true); // Red
SetEntData(entity, offset + 1, g, _, true); // Green
SetEntData(entity, offset + 2, b, _, true); // Blue
SetEntData(entity, offset + 3, a, _, true); // Alpha
}
__________________