2004-08-24 21:36:39 +00:00
|
|
|
/* FakeMeta functions
|
|
|
|
* This file is provided as-is with no warrenties.
|
|
|
|
*/
|
|
|
|
|
|
|
|
#if defined _fakemeta_included
|
|
|
|
#endinput
|
|
|
|
#endif
|
|
|
|
#define _fakemeta_included
|
|
|
|
|
2005-07-15 07:59:26 +00:00
|
|
|
#include <fakemeta_const>
|
|
|
|
|
2005-07-15 19:05:31 +00:00
|
|
|
#pragma library fakemeta
|
|
|
|
|
2005-07-15 07:59:26 +00:00
|
|
|
/* Returns entvar data from an entity Use the pev_* enum to specify which form of data you want returned. */
|
|
|
|
native pev(_index,_value,{Float,Sql,Result,_}:...)
|
|
|
|
|
|
|
|
/* Sets entvar data for an entity. Use the pev_* enum */
|
|
|
|
native set_pev(_index,_value,{Float,Sql,Result,_}:...)
|
2004-08-24 21:36:39 +00:00
|
|
|
|
|
|
|
/* Returns an integer from private data. _linuxdiff is added into the _Offset if it's used on a linux server. */
|
|
|
|
native get_pdata_int(_index,_Offset,_linuxdiff=5);
|
|
|
|
|
|
|
|
/* Sets an integer from private data. _linuxdiff is added into the _Offset if it's used on a linux server. */
|
|
|
|
native set_pdata_int(_index,_Offset,_Value,_linuxdiff=5);
|
|
|
|
|
|
|
|
/* Returns a float from private data. _linuxdiff is added into the _Offset if it's used on a linux server. */
|
|
|
|
native Float:get_pdata_float(_index,_Offset,_linuxdiff=5);
|
|
|
|
|
|
|
|
/* Sets a float from private data. _linuxdiff is added into the _Offset if it's used on a linux server. */
|
|
|
|
native set_pdata_float(_index,_Offset,Float:_Value,_linuxdiff=5);
|
|
|
|
|
|
|
|
|
|
|
|
/* Registers a forward */
|
|
|
|
native register_forward(_forwardType,_function[],_post=0);
|
|
|
|
|
|
|
|
/* Returns data for metamod */
|
2004-09-07 09:26:20 +00:00
|
|
|
native forward_return(type,{Float,Sql,Result,_}:...);
|
2004-08-24 21:36:39 +00:00
|
|
|
|
2004-09-07 09:26:20 +00:00
|
|
|
native engfunc(type,{Float,Sql,Result,_}:...);
|
2004-09-14 06:16:52 +00:00
|
|
|
native dllfunc(type,{Float,Sql,Result,_}:...);
|
|
|
|
|
|
|
|
//only use this with functions that pass a Trace
|
|
|
|
// get: zero extra params - return int, one extra param = byref float or vector
|
|
|
|
// set: use anything
|
2004-09-15 18:40:18 +00:00
|
|
|
native get_tr(TraceResult:tr_member, {Float,_}:...);
|
|
|
|
native set_tr(TraceResult:tr_member, {Float,_}:...);
|