Raised This Month: $ Target: $400
 0% 

[INC] Fakemeta Utilities [last update: 2007/01/08]


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Author Message
VEN
Veteran Member
Join Date: Jan 2005
Old 05-11-2006 , 13:58   [INC] Fakemeta Utilities [last update: 2007/01/08]
Reply With Quote #1

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(indexpev_fieldvalue)
fm_find_ent_by_flags(indexpev_fieldflags)
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(entboxent)
Float:fm_boxents_distance(boxent1boxent2)
fm_get_user_weapon_entity(idwid 0)
fm_kill_entity(index)
bool:fm_strip_user_gun(indexwid 0, const wname[] = "")
bool:fm_transfer_user_gun(index1index2wid 0, const wname[] = "")
Float:fm_distance_to_floor(index)
bool:fm_is_ent_visible(indexentity)
fm_get_aim_origin(indexFloat:origin[3])
bool:fm_get_user_longjump(index)
fm_set_user_longjump(indexbool:longjump truebool:tempicon true)
bool:fm_get_user_suit(index)
fm_set_user_suit(indexbool:suit truebool:sound true)
fm_cs_remove_decals(index 0)
bool:fm_is_ent_classname(index, const classname[])
fm_user_kill(indexflag 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.
Attached Files
File Type: inc fakemeta_util.inc (24.4 KB, 9776 views)
File Type: zip fakemeta_util_171.zip (12.1 KB, 9073 views)

Last edited by YamiKaitou; 02-11-2013 at 19:28.
VEN is offline
 



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 02:49.


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