using set_pev(entid,pev_owner,1) does not set it to 1, cause calling pev(entid,pev_owner) it does not return 1 but 0
using entity_set_edict(entid, EV_ENT_owner,1) it does set it to 1
calling entity_get_edict(entid, EV_ENT_owner) it returns 1 but pev(entid,pev_owner) still returns 0
it this maybe cause u use in pev.cpp
Code:
case owner:
iReturn = ENTINDEX(pPlayer->v.owner);
instead of
Code:
case owner:
iReturn = pPlayer->v.owner;
and the same for set_pev
ints floats strings.. dont have ENTINDEX() but edict
the engine module does not have the ENTINDEX neither (entity.cpp)
is that maybe the prob ?
__________________