Constants in fakemeta_util.inc
List of constants
Fakemeta Utilities
by VEN
This file is provided as is (no warranties).#
Engine functions#
stock fm_precache_generic(const file[])
return engfunc(EngFunc_PrecacheGeneric, file)#
stock fm_precache_event(type, const name[])
return engfunc(EngFunc_PrecacheEvent, type, name)#
stock fm_drop_to_floor(entity)
return engfunc(EngFunc_DropToFloor, entity)#
stock fm_force_use(user, used)
return dllfunc(DLLFunc_Use, used, user)#
stock fm_entity_set_size(index, const Float:mins[3], const Float:maxs[3])
return engfunc(EngFunc_SetSize, index, mins, maxs)#
stock fm_get_decal_index(const decalname[])
return engfunc(EngFunc_DecalIndex, decalname)#
stock fm_create_entity(const classname[])
return engfunc(EngFunc_CreateNamedEntity, engfunc(EngFunc_AllocString, classname))#
stock fm_find_ent_by_class(index, const classname[])
return engfunc(EngFunc_FindEntityByString, index, "classname", classname)#
stock fm_find_ent_by_target(index, const target[])
return engfunc(EngFunc_FindEntityByString, index, "target", target)#
stock fm_find_ent_by_tname(index, const targetname[])
return engfunc(EngFunc_FindEntityByString, index, "targetname", targetname)#
stock fm_find_ent_in_sphere(index, const Float:origin[3], Float:radius)
return engfunc(EngFunc_FindEntityInSphere, index, origin, radius)#
stock fm_call_think(entity)
return dllfunc(DLLFunc_Think, entity)#
stock fm_is_valid_ent(index)
return pev_valid(index)#
stock fm_entity_set_model(index, const model[])
return engfunc(EngFunc_SetModel, index, model)#
stock fm_remove_entity(index)
return engfunc(EngFunc_RemoveEntity, index)#
stock fm_entity_count()
return engfunc(EngFunc_NumberOfEntities)#
stock fm_fake_touch(toucher, touched)
return dllfunc(DLLFunc_Touch, toucher, touched)#
stock fm_DispatchSpawn(entity)
return dllfunc(DLLFunc_Spawn, entity)#
stock fm_point_contents(const Float:point[3])
return engfunc(EngFunc_PointContents, point)#
stock Float:fm_halflife_time()
return get_gametime()#
stock fm_attach_view(index, entity)
return engfunc(EngFunc_SetView, index, entity)#
stock fm_eng_get_string(istring, string[], len)
return engfunc(EngFunc_SzFromIndex, istring, string, len)#
HLSDK functions#
Engine_stocks functions#
stock fm_find_ent(index, const classname[])
return engfunc(EngFunc_FindEntityByString, index, "classname", classname)#
stock fm_get_user_button(index)
return pev(index, pev_button)#
stock fm_get_user_oldbutton(index)
return pev(index, pev_oldbuttons)#
stock fm_get_entity_flags(index)
return pev(index, pev_flags)#
stock fm_get_entity_distance(ent1, ent2)
return floatround(fm_entity_range(ent1, ent2))#
stock fm_get_grenade(id)
return fm_get_grenade_id(id, "", 0)#
stock fm_get_entity_visibility(index)
return !(pev(index, pev_effects) & EF_NODRAW)#
stock fm_get_user_velocity(entity, Float:vector[3])
return pev(entity, pev_velocity, vector)#
Fun functions#
stock fm_get_client_listen(receiver, sender)
return engfunc(EngFunc_GetClientListening, receiver, sender)#
stock fm_set_client_listen(receiver, sender, listen)
return engfunc(EngFunc_SetClientListening, receiver, sender, listen)#
interferes with FM_Spawn enum, just use fm_DispatchSpawn
stock fm_spawn(entity) {
return dllfunc(DLLFunc_Spawn, entity)
}#
stock fm_get_user_noclip(index)
return (pev(index, pev_movetype) == MOVETYPE_NOCLIP)#
Cstrike functions#
Custom functions#
stock fm_remove_weaponbox(entity)
return dllfunc(DLLFunc_Think, entity)#