Hello
I run a metamod plugin that allows semiclipping however it doesn't alter the client collision prediction.
I'm building a simple amxx plugin, however it crashes (Segfault)
What am I doing wrong?
Code:
#include <amxmodx>
#include <fakemeta>
#include <engine>
public plugin_init()
{
register_plugin("Semiclip Prediction","1.0","Gabe Iggy")
register_forward(FM_AddToFullPack,"test")
}
//struct entity_state_s *state, int e, edict_t *ent, edict_t *host, int hostflags, int player, unsigned char *pSet
public test(ent_state,e,edict_t_ent,edict_t_host,hostflags,player,pSet)
{
if(player)
{
if(0 < e <= get_maxplayers())
{
if(0 < pev(edict_t_host, pev_groundentity) <= get_maxplayers())
set_es(e, ES_Solid, 1)
else
set_es(e, ES_Solid, 0)
return FMRES_OVERRIDE;
}
}
return FMRES_IGNORED;
}
__________________