Functions

fakemeta.inc

amxmodx 1.8.2 hg65

Function Type Description
copy_infokey_buffer native This function has no description.
create_tr2 native Creates a traceresult handle. This value should never be altered.
The handle can be used in get/set_tr2 and various traceresult engine functions.

NOTE: You must call free_tr2() on every handle made with create_tr2().
dllfunc native This function has no description.
engfunc native This function has no description.
forward_return native Returns data for metamod
free_tr2 native Frees a traceresult handle created with free_tr2(). Do not call
this more than once per handle, or on handles not created through
create_tr2().
get_cd native This function has no description.
get_es native This function has no description.
get_kvd native This function has no description.
get_orig_retval native Returns the original return value of an engine function.
This is only valid in forwards that were registered as post.

get_orig_retval() - no params, retrieves integer return value
get_orig_retval(&Float:value) - retrieves float return value by reference
get_orig_retval(value[], len) - retrives string return value
get_pdata_ent native Tries to retrieve an edict (entity encapsulation) pointer from an entity's private data.

This function is byte-addressable. Unlike get_pdata_int() which searches in byte increments of 4,
get_pdata_end searches in increments of 1.
get_pdata_float native Returns a float from private data. _linuxdiff is added into the _Offset if it's used on a linux server.
get_pdata_int native Returns an integer from private data. _linuxdiff is added into the _Offset if it's used on a linux server.
get_pdata_string native This function has no description.
get_tr native This function has no description.
get_tr2 native This function has no description.
get_uc native This function has no description.
global_get native Returns any global variable inside globalvars_t structure. Use the glb_* enum.

When returning data from glb_pStringBase (the global string table), you may give a pointer into that table
in order to get different strings.
Example:
new model[128]
new ptr = pev(id, pev_viewmodel)
global_get(glb_pStringBase, ptr, model, 127)
lookup_sequence native Looks up the sequence for the entity.
pev native Returns entvar data from an entity. Use the pev_* enum (in fakemeta_const.inc) to specify which data you want retrieved.
pev_serial native Returns the serial number for each entity. The serial number is a unique identity
generated when an entity is created.
pev_valid native Checks the validity of an entity.
register_forward native Registers a forward.
Returns an id you can pass to unregister_forward
set_cd native This function has no description.
set_controller native Sets a bone controller with the specified value.
set_es native This function has no description.
set_kvd native This function has no description.
set_pdata_float native Sets a float from private data. _linuxdiff is added into the _Offset if it's used on a linux server.
set_pdata_int native Sets an integer from private data. _linuxdiff is added into the _Offset if it's used on a linux server.
set_pdata_string native This function has no description.
set_pev native Sets entvar data for an entity. Use the pev_* enum from fakemeta_const.inc for reference.
set_pev_string native Use this native to set a pev field to a string that is already allocated (via a function such
as EngFunc_AllocString).
set_tr native This function has no description.
set_tr2 native This function has no description.
set_uc native This function has no description.
unregister_forward native Unregisters a forward.
The registerId must be from register_forward, and
post/forwardtype must match what you registered the forward as.