Using this is HIGHLY NOT RECOMMENDED!!! Stick with using Engine, Fun, CStrike, Ham, etc. They do all these functions much quicker and more efficiently. You are only teaching yourself bad coding habits by using these.
"Fakemeta Utilities" is a library of functions for the Fakemeta module. It includes:
- almost all engine/fun natives (represented as a marcos/stocks)
- engine's stock functions
- the below custom functions
PHP Code:
bool:fm_is_in_viewcone(index, const Float:point[3])
bool:fm_is_visible(index, const Float:point[3])
fm_set_kvd(entity, const key[], const value[], const class[] = "")
fm_find_ent_by_integer(index, pev_field, value)
fm_find_ent_by_flags(index, pev_field, flags)
Float:fm_distance_to_box(Float:point[3], Float:mins[3], Float:maxs[3])
Float:fm_boxes_distance(Float:mins1[3], Float:maxs1[3], Float:mins2[3], Float:maxs2[3])
Float:fm_distance_to_boxent(ent, boxent)
Float:fm_boxents_distance(boxent1, boxent2)
fm_get_user_weapon_entity(id, wid = 0)
fm_kill_entity(index)
bool:fm_strip_user_gun(index, wid = 0, const wname[] = "")
bool:fm_transfer_user_gun(index1, index2, wid = 0, const wname[] = "")
Float:fm_distance_to_floor(index)
bool:fm_is_ent_visible(index, entity)
fm_get_aim_origin(index, Float:origin[3])
bool:fm_get_user_longjump(index)
fm_set_user_longjump(index, bool:longjump = true, bool:tempicon = true)
bool:fm_get_user_suit(index)
fm_set_user_suit(index, bool:suit = true, bool:sound = true)
fm_cs_remove_decals(index = 0)
bool:fm_is_ent_classname(index, const classname[])
fm_user_kill(index, flag = 0)
Float:fm_get_view_angle_diff(index, const Float:point[3])
fm_get_weaponbox_type(entity)
fm_remove_weaponbox(entity)
- fm_is_in_viewcone and fm_is_visible ported from HLSDK/engine module [thanks to PM for his XS Library and to Damaged Soul for the FOV dotproduct method]
- fm_create_entity ported by KoST
- fm_drop_to_floor, fm_remove_entity, fm_point_contents, fm_remove_entity_name ported by v3x
- fm_set_kvd are based on Basic-Master's set_keyvalue
- fm_distance_to_floor originally by P34nut, improved
- fm_get_aim_origin ported from AMXX's core get_user_origin(..., 3) (suggested by Greenberet)
- fm_user_kill ported from AMXX's core user_kill (scoreboard update fix)
Feel free to contribute/suggest new functions and report any errors/issues.
Tired of
fatal error 100: cannot read from file: "fakemeta_util" reports? Here is the solution for you!
Code:
#tryinclude <fakemeta_util>
#if !defined _fakemeta_util_included
#assert Fakemeta Utilities function library required! Read the below instructions: \
1. Download it at forums.alliedmods.net/showthread.php?t=28284 \
2. Put it into amxmodx/scripting/include/ folder \
3. Compile this plugin locally, details: wiki.amxmodx.org/index.php/Compiling_Plugins_%28AMX_Mod_X%29 \
4. Install compiled plugin, details: wiki.amxmodx.org/index.php/Configuring_AMX_Mod_X#Installing
#endif
Note: fakemeta_util_171.zip is a version for AMX Mod X v1.71. I stopped updating this version so it is not include some new functions/cnages/fixes/etc. You can try to perform a "backward upgrade" using the regular version, but i can't guarantee a full compatibility.