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

VexdUM -> fakemeta , index_to_pointer(index) and pointer_to_index


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
ConnorMcLeod
Veteran Member
Join Date: Jul 2006
Location: France (95)
Old 01-17-2008 , 16:44   VexdUM -> fakemeta , index_to_pointer(index) and pointer_to_index
Reply With Quote #1

Hi,

i need to convert those 2 amx natives :

native index_to_pointer(index);
native pointer_to_index(pointer);


index_to_pointer correspond to this in amxx sources :

Code:
#define GETEDICT(n) \
	((n >= 1 && n <= gpGlobals->maxClients) ? MF_GetPlayerEdict(n) : INDEXENT(n))
__________________
- tired and retired -

- my plugins -
ConnorMcLeod is offline
_Master_
Senior Member
Join Date: Dec 2006
Old 01-18-2008 , 14:10   Re: VexdUM -> fakemeta , index_to_pointer(index) and pointer_to_index
Reply With Quote #2

Can't be done in std. AMXX
Also I can't immagine what you could do with that pointer in amxx.

Closest thing to this is pev_valid( ent )
_Master_ is offline
ConnorMcLeod
Veteran Member
Join Date: Jul 2006
Location: France (95)
Old 01-18-2008 , 15:17   Re: VexdUM -> fakemeta , index_to_pointer(index) and pointer_to_index
Reply With Quote #3

Some hostages offsets values are player pointers, i need to retreive player indexes.
__________________
- tired and retired -

- my plugins -

Last edited by ConnorMcLeod; 01-18-2008 at 15:50.
ConnorMcLeod is offline
ConnorMcLeod
Veteran Member
Join Date: Jul 2006
Location: France (95)
Old 09-21-2008 , 09:01   Re: VexdUM -> fakemeta , index_to_pointer(index) and pointer_to_index
Reply With Quote #4

BUMP

Still no convertion ?

PHP Code:
NATIVE(pointer_to_index) {
    
int pointer params[1];
    
edict_tpEntity = (edict_t*)pointer;
    return 
ENTINDEX(pEntity);
}

NATIVE(index_to_pointer) {
    
int index params[1];
    
edict_tpEntity INDEXENT(index);
    return (int)
pEntity;

I tried get_pdata_cbase(hostage, OFFSET_HOSTAGEFOLLOW) without results lol.
__________________
- tired and retired -

- my plugins -

Last edited by ConnorMcLeod; 09-21-2008 at 09:09.
ConnorMcLeod is offline
Orangutanz
Veteran Member
Join Date: Apr 2006
Old 09-21-2008 , 14:07   Re: VexdUM -> fakemeta , index_to_pointer(index) and pointer_to_index
Reply With Quote #5

Impossible unless FakeMeta (HalfMeta ) is updated, quite a few functions are still missing.
Orangutanz is offline
ConnorMcLeod
Veteran Member
Join Date: Jul 2006
Location: France (95)
Old 09-21-2008 , 14:46   Re: VexdUM -> fakemeta , index_to_pointer(index) and pointer_to_index
Reply With Quote #6

Could you implement it Orangutanz ?
__________________
- tired and retired -

- my plugins -
ConnorMcLeod is offline
Reply



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 12:03.


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