Quote:
Originally Posted by KliPPy
You will change it only for a single call (AddToFullPack), it won't affect any other code. Collision is not processed in AddToFullPack so it won't matter for collision. At least give it a try and see the results for yourself, it may work.
|
You were right, now it renders the players, however, every time I pass through one of them I get a small "bump", cancelling my speed. Probably because I changed the groupinfo in the pre hook.
Final Code
Code:
public semiclip_pre(ent_state,e,edict_t_ent,edict_t_host,hostflags,player,pSet)
{
if(player)
{
g_iGroupInfoBuffer[edict_t_ent] = pev(edict_t_ent, pev_groupinfo);
set_pev(edict_t_ent, pev_groupinfo, pev(edict_t_host, pev_groupinfo));
}
return FMRES_IGNORED;
}
public semiclip_post(ent_state,e,edict_t_ent,edict_t_host,hostflags,player,pSet)
{
if(player)
{
if(pev(edict_t_host, pev_groundentity) == edict_t_ent)
set_es(ent_state, ES_Solid, 1);
else
set_es(ent_state, ES_Solid, 0);
set_pev(edict_t_ent, pev_groupinfo, g_iGroupInfoBuffer[edict_t_ent]);
}
return FMRES_IGNORED;
}
I guess it's enough for now as a workaround, I don't know if that's fixable.
Thank you.
__________________