Raised This Month: $12 Target: $400
 3% 

[fakemeta] pev with edict


  
 
 
Thread Tools Display Modes
Author Message
karlos
Veteran Member
Join Date: Apr 2004
Location: Germany/Poland
Old 10-24-2004 , 15:20   [fakemeta] pev with edict
#1

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 ?
__________________
alias White Panther
karlos is offline
Ingram
Veteran Member
Join Date: May 2004
Old 10-24-2004 , 16:37  
#2

is 1 an existant ent? If not it doesn't set it to that because a edict is supposed to be an ent
Ingram is offline
mahnsawce
Senior Member
Join Date: Apr 2004
Location: internet
Old 10-24-2004 , 17:04  
#3

Fixed.

What you said wasn't causing it. It was something that was probably overlooked when the function was converted from ns2amx to amxx. I blame bail, as he converted it. Way to go bail.
mahnsawce is offline
BAILOPAN
Join Date: Jan 2004
Old 10-24-2004 , 18:58  
#4

I will break your code. Resistance... is futile.
__________________
egg
BAILOPAN is offline
 



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 15:09.


Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Theme made by Freecode