Functions
fakemeta.inc
| Function | Type | Description |
|---|---|---|
| GetModelBoundingBox | native | Gets size of a model bounding box. |
| copy_infokey_buffer | native | This function has no description. |
| create_kvd | native | Creates a KeyValueData handle. |
| 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. |
| find_ent_data_info | native | Finds a offset based off an entity class and member name. |
| find_gamerules_info | native | Finds a gamerules offset based off a class and member name. |
| forward_return | native | Returns data for metamod |
| free_kvd | native | Frees a KeyValueData handle. |
| 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_ent_data | native | Retrieves an integer value from an entity's private data based off a class and member name. |
| get_ent_data_entity | native | Retrieves an entity index from an entity's private data based off a class and member name. |
| get_ent_data_float | native | Retrieves a float value from an entity's private data based off a class and member name. |
| get_ent_data_size | native | Retrieves the size of array of n entity class member. |
| get_ent_data_string | native | Retrieves a string from an entity's private data based off a class and member name. |
| get_ent_data_vector | native | Retrieves a vector from an entity's private data based off a class and member name. |
| get_es | native | This function has no description. |
| get_gamerules_entity | native | Retrieves an entity index from the gamerules object based off a class and member name. |
| get_gamerules_float | native | Retrieves a float value from the gamerules object based off a class and member name. |
| get_gamerules_int | native | Retrieves an integer value from the gamerules object based off a class and member name. |
| get_gamerules_size | native | Retrieves the size of array of a gamerules class member. |
| get_gamerules_string | native | Retrieves a string from the gamerules object based off a class and member name. |
| get_gamerules_vector | native | Retrieves a vector from the gamerules object based off a class and member name. |
| 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_bool | native | Returns a boolean from an entity's private data. This function is byte-addressable. Unlike get_pdata_int() which searches in byte increments of 4, get_pdata_bool searches in increments of 1. _linuxdiff value is what to add to the _offset for linux servers. _macdiff value is what to add to the _offset for os x servers. A log error is thrown on invalid _index and _offset. |
| get_pdata_byte | native | Returns a byte value from an entity's private data. This function is byte-addressable. Unlike get_pdata_int() which searches in byte increments of 4, get_pdata_byte searches in increments of 1. _linuxdiff value is what to add to the _offset for linux servers. _macdiff value is what to add to the _offset for os x servers. A log error is thrown on invalid _index and _offset. |
| get_pdata_ehandle | 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_ehandle searches in increments of 1. _linuxdiff value is what to add to the _offset for linux servers. _macdiff value is what to add to the _offset for os x servers. A log error is thrown on invalid _index and _offset. |
| get_pdata_ent | native | Tries to retrieve an edict 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_ent searches in increments of 1. _linuxdiff value is what to add to the _offset for linux servers. _macdiff value is what to add to the _offset for os x servers. A log error is thrown on invalid _index and _Offset. |
| get_pdata_float | native | Returns a float from an entity's private data. _linuxdiff value is what to add to the _Offset for linux servers. _macdiff value is what to add to the _Offset for os x servers. A log error is thrown on invalid _index and _Offset. |
| get_pdata_int | native | Returns a integer from an entity's private data. _linuxdiff value is what to add to the _Offset for linux servers. _macdiff value is what to add to the _Offset for os x servers. A log error is thrown on invalid _index and _Offset. |
| get_pdata_short | native | Returns a short value from an entity's private data. This function is byte-addressable. Unlike get_pdata_int() which searches in byte increments of 4, get_pdata_short searches in increments of 1. _linuxdiff value is what to add to the _offset for linux servers. _macdiff value is what to add to the _offset for os x servers. A log error is thrown on invalid _index and _offset. |
| get_pdata_string | native | This function has no description. |
| get_pdata_vector | native | Returns a vector from an entity's private data. This function is byte-addressable. Unlike get_pdata_int() which searches in byte increments of 4, get_pdata_vector searches in increments of 1. _linuxdiff value is what to add to the _offset for linux servers. _macdiff value is what to add to the _offset for os x servers. A log error is thrown on invalid _index and _offset. |
| 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_ent_data | native | Sets an integer value to an entity's private data based off a class and member name. |
| set_ent_data_entity | native | Sets an entity index to an entity's private data based off a class and member name. |
| set_ent_data_float | native | Sets a float value to an entity's private data based off a class and member name. |
| set_ent_data_string | native | Sets a string to an entity's private data based off a class and member name. |
| set_ent_data_vector | native | Sets a vector to an entity's private data based off a class and member name. |
| set_es | native | This function has no description. |
| set_gamerules_entity | native | Sets an entity index to the gamerules object based off a class and member name. |
| set_gamerules_float | native | Sets a float value to the gamerules object based off a class and member name. |
| set_gamerules_int | native | Sets an integer value to the gamerules objecta based off a class and member name. |
| set_gamerules_string | native | Sets a string to the gamerules object based off a class and member name. |
| set_gamerules_vector | native | Sets a vector to the gamerules object based off a class and member name. |
| set_kvd | native | This function has no description. |
| set_pdata_bool | native | Sets a boolean to an entity's private data. This function is byte-addressable. Unlike set_pdata_int() which searches in byte increments of 4, set_pdata_bool searches in increments of 1. _linuxdiff value is what to add to the _offset for linux servers. _macdiff value is what to add to the _offset for os x servers. A log error is thrown on invalid _index and _offset. |
| set_pdata_byte | native | Sets a byte value to an entity's private data. This function is byte-addressable. Unlike set_pdata_int() which searches in byte increments of 4, set_pdata_byte searches in increments of 1. _linuxdiff value is what to add to the _offset for linux servers. _macdiff value is what to add to the _offset for os x servers. A log error is thrown on invalid _index and _offset. |
| set_pdata_ehandle | native | Sets an edict (entity encapsulation) pointer to an entity's private data. This function is byte-addressable. Unlike set_pdata_int() which searches in byte increments of 4, set_pdata_ehandle searches in increments of 1. _linuxdiff value is what to add to the _offset for linux servers. _macdiff value is what to add to the _offset for os x servers. A log error is thrown on invalid _index and _Offset. |
| set_pdata_ent | native | Sets an edict pointer to an entity's private data. This function is byte-addressable. Unlike set_pdata_int() which searches in byte increments of 4, set_pdata_ent searches in increments of 1. _linuxdiff value is what to add to the _offset for linux servers. _macdiff value is what to add to the _offset for os x servers. A log error is thrown on invalid _index and _offset. |
| set_pdata_float | native | Sets a float to an entity's private data. _linuxdiff value is what to add to the _Offset for linux servers. _macdiff value is what to add to the _Offset for os x servers. A log error is thrown on invalid _index and _Offset. |
| set_pdata_int | native | Sets an integer to an entity's private data. _linuxdiff value is what to add to the _Offset for linux servers. _macdiff value is what to add to the _Offset for os x servers. A log error is thrown on invalid _index and _Offset. |
| set_pdata_short | native | Sets a short value to an entity's private data. This function is byte-addressable. Unlike set_pdata_int() which searches in byte increments of 4, set_pdata_short searches in increments of 1. _linuxdiff value is what to add to the _offset for linux servers. _macdiff value is what to add to the _offset for os x servers. A log error is thrown on invalid _index and _offset. |
| set_pdata_string | native | This function has no description. |
| set_pdata_vector | native | Sets a vector to an entity's private data. This function is byte-addressable. Unlike set_pdata_int() which searches in byte increments of 4, set_pdata_vector searches in increments of 1. _linuxdiff value is what to add to the _offset for linux servers. _macdiff value is what to add to the _offset for os x servers. A log error is thrown on invalid _index and _Offset. |
| 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. |
| get_field_basetype | stock | Returns the data field base type based off a specific field type. |