I've read long ago that exists a method to simulate a glowshell for players.
This method used CPS_SetSkin module from Mitchell to bonemerge the model and apply the effect to the model index.
Is this still viable?
How should i do it?
Already tried doing something like this but didn't work as expected
PHP Code:
public Action EventPostPlayerSpawn(Handle event, const char[] name, bool dontBroadcast){
int client = GetClientOfUserId(GetEventInt(event, "userid"));
int skin = CPS_SetSkin(client, "mymodel.mdl", CPS_NOFLAGS);
SetGlow(skin);
}
stock void SetGlowColor(int entity, const char[] color)
{
char colorbuffers[3][4];
ExplodeString(color, " ", colorbuffers, sizeof(colorbuffers), sizeof(colorbuffers[]));
int colors[4];
for (int i = 0; i < 3; i++)
colors[i] = StringToInt(colorbuffers[i]);
colors[3] = 255; // Set alpha
SetVariantColor(colors);
AcceptEntityInput(entity, "SetGlowColor");
}
SetGlow(int ent){
DispatchKeyValue(ent, "SetGlowEnabled", "1");
//SetEntProp(ent, Prop_Send, "m_bShouldGlow", true, true);
SetEntPropFloat(ent, Prop_Send, "m_flGlowMaxDist", 10000.0);
SetGlowColor(ent, "255 255 255");
}
__________________