Hello, I'm running biohazard server by Cheap Suit.
He uses this weird method of applying models into player:
PHP Code:
if(!pev_valid(g_modelent[index]))
{
static ent
ent = engfunc(EngFunc_CreateNamedEntity, engfunc(EngFunc_AllocString, "info_target"))
if(pev_valid(ent))
{
engfunc(EngFunc_SetModel, ent, DEFAULT_PMODEL)
set_pev(ent, pev_classname, MODEL_CLASSNAME)
set_pev(ent, pev_movetype, MOVETYPE_FOLLOW)
set_pev(ent, pev_aiment, index)
set_pev(ent, pev_owner, index)
g_modelent[index] = ent
}
}
else
{
engfunc(EngFunc_SetModel, g_modelent[index], DEFAULT_PMODEL)
fm_set_entity_visibility(g_modelent[index], 1)
}
Nothing wrong with that, works fine and even overrides cl_minmodels 1 command.
However combined with frostnade plugin by Avalanche, when zombie gets frozen it gets both zombie and human model. I've done some debugging sessions and what appears to be problem is "set_user_rendering" function. I've modified the code a bit following Mercylezz tutorial, and it worked but when zombie was frozen, it no longer was glowing when hit.
Here is my edited version of frostnades, perhaps someone knows how to fix this