2014-08-04 16:12:15 +04:00
|
|
|
// vim: set ts=4 sw=4 tw=99 noet:
|
|
|
|
//
|
|
|
|
// AMX Mod X, based on AMX Mod by Aleksander Naszko ("OLO").
|
|
|
|
// Copyright (C) The AMX Mod X Development Team.
|
|
|
|
//
|
|
|
|
// This software is licensed under the GNU General Public License, version 3 or higher.
|
|
|
|
// Additional exceptions apply. For full license details, see LICENSE.txt or visit:
|
|
|
|
// https://alliedmods.net/amxmodx-license
|
|
|
|
|
|
|
|
//
|
|
|
|
// Fakemeta Stocks
|
|
|
|
//
|
2004-11-09 23:30:17 +03:00
|
|
|
|
|
|
|
#if !defined _fakemeta_included
|
|
|
|
#include <fakemeta>
|
|
|
|
#endif
|
|
|
|
|
|
|
|
#if defined _fakemeta_stocks_included
|
|
|
|
#endinput
|
|
|
|
#endif
|
|
|
|
#define _fakemeta_stocks_included
|
|
|
|
|
2004-11-11 13:39:37 +03:00
|
|
|
// EngFuncs
|
2015-03-11 16:19:27 +03:00
|
|
|
stock EF_PrecacheModel(const string[]) {
|
2007-03-05 22:30:40 +03:00
|
|
|
return engfunc(EngFunc_PrecacheModel, string);
|
2015-03-11 16:19:27 +03:00
|
|
|
}
|
2007-03-05 22:30:40 +03:00
|
|
|
|
2015-03-11 16:19:27 +03:00
|
|
|
stock EF_PrecacheSound(const string[]) {
|
2007-03-05 22:30:40 +03:00
|
|
|
return engfunc(EngFunc_PrecacheSound, string);
|
2015-03-11 16:19:27 +03:00
|
|
|
}
|
|
|
|
stock EF_SetModel(const ID, const STRING[]) {
|
2007-03-05 22:30:40 +03:00
|
|
|
return engfunc(EngFunc_SetModel, ID, STRING);
|
2015-03-11 16:19:27 +03:00
|
|
|
}
|
|
|
|
stock EF_ModelIndex(const STRING[]) {
|
2007-03-05 22:30:40 +03:00
|
|
|
return engfunc(EngFunc_ModelIndex, STRING);
|
2015-03-11 16:19:27 +03:00
|
|
|
}
|
|
|
|
stock EF_ModelFrames(modelIndex) {
|
2007-03-05 22:30:40 +03:00
|
|
|
return engfunc(EngFunc_ModelFrames, modelIndex);
|
2015-03-11 16:19:27 +03:00
|
|
|
}
|
2004-11-09 23:30:17 +03:00
|
|
|
|
2015-03-11 16:19:27 +03:00
|
|
|
stock EF_SetSize(const ENTITY, const Float:MIN[3], const Float:MAX[3]) {
|
2007-06-05 06:38:48 +04:00
|
|
|
return engfunc(EngFunc_SetSize, ENTITY, MIN, MAX);
|
2015-03-11 16:19:27 +03:00
|
|
|
}
|
|
|
|
stock EF_ChangeLevel(const S1[], const S2[]) {
|
2007-03-05 22:30:40 +03:00
|
|
|
return engfunc(EngFunc_ChangeLevel, S1, S2);
|
2015-03-11 16:19:27 +03:00
|
|
|
}
|
|
|
|
stock EF_VecToYaw(const Float:VECTOR[3], &Float:returnValue) {
|
2007-03-05 22:30:40 +03:00
|
|
|
return engfunc(EngFunc_VecToYaw, VECTOR, returnValue);
|
2015-03-11 16:19:27 +03:00
|
|
|
}
|
|
|
|
stock EF_VecToAngles(const Float:VECTORIN[3], const Float:VECTOROUT[3]) {
|
2007-03-05 22:30:40 +03:00
|
|
|
return engfunc(EngFunc_VecToAngles, VECTORIN, VECTOROUT);
|
2015-03-11 16:19:27 +03:00
|
|
|
}
|
|
|
|
stock EF_MoveToOrigin(const ENTITY, const Float:GOAL[3], const Float:DISTANCE, const MOVETYPE) {
|
2007-03-05 22:30:40 +03:00
|
|
|
return engfunc(EngFunc_MoveToOrigin, ENTITY, GOAL, DISTANCE, MOVETYPE);
|
2015-03-11 16:19:27 +03:00
|
|
|
}
|
2004-11-09 23:30:17 +03:00
|
|
|
|
2015-03-11 16:19:27 +03:00
|
|
|
stock EF_ChangeYaw(const ENTITY) {
|
2007-03-05 22:30:40 +03:00
|
|
|
return engfunc(EngFunc_ChangeYaw, ENTITY);
|
2015-03-11 16:19:27 +03:00
|
|
|
}
|
|
|
|
stock EF_ChangePitch(const ENTITY) {
|
2007-03-05 22:30:40 +03:00
|
|
|
return engfunc(EngFunc_ChangePitch, ENTITY);
|
2015-03-11 16:19:27 +03:00
|
|
|
}
|
|
|
|
stock EF_FindEntityByString(const STARTSEARCHAFTER, const FIELD[], const VALUE[]) {
|
2007-03-05 22:30:40 +03:00
|
|
|
return engfunc(EngFunc_FindEntityByString, STARTSEARCHAFTER, FIELD, VALUE);
|
2015-03-11 16:19:27 +03:00
|
|
|
}
|
|
|
|
stock EF_GetEntityIllum(const ENTITY) {
|
2007-03-05 22:30:40 +03:00
|
|
|
return engfunc(EngFunc_GetEntityIllum, ENTITY);
|
2015-03-11 16:19:27 +03:00
|
|
|
}
|
|
|
|
stock EF_FindEntityInSphere(const STARTSEARCHAFTER, const Float:ORIGIN[3], Float:radius) {
|
2007-03-05 22:30:40 +03:00
|
|
|
return engfunc(EngFunc_FindEntityInSphere, STARTSEARCHAFTER, ORIGIN, radius);
|
2015-03-11 16:19:27 +03:00
|
|
|
}
|
2004-11-09 23:30:17 +03:00
|
|
|
|
2015-03-11 16:19:27 +03:00
|
|
|
stock EF_FindClientInPVS(const CLIENT) {
|
2007-03-05 22:30:40 +03:00
|
|
|
return engfunc(EngFunc_FindClientInPVS, CLIENT);
|
2015-03-11 16:19:27 +03:00
|
|
|
}
|
|
|
|
stock EF_EntitiesInPVS(const CLIENT) {
|
2007-03-05 22:30:40 +03:00
|
|
|
return engfunc(EngFunc_EntitiesInPVS, CLIENT);
|
2015-03-11 16:19:27 +03:00
|
|
|
}
|
|
|
|
stock EF_MakeVectors(const Float:VECTOR[3]) {
|
2007-03-05 22:30:40 +03:00
|
|
|
return engfunc(EngFunc_MakeVectors, VECTOR);
|
2015-03-11 16:19:27 +03:00
|
|
|
}
|
|
|
|
stock EF_AngleVectors(const Float:VECTOR[3], Float:forward_[3], Float:right[3], Float:up[3]) {
|
2007-03-05 22:30:40 +03:00
|
|
|
return engfunc(EngFunc_AngleVectors, VECTOR, forward_, right, up);
|
2015-03-11 16:19:27 +03:00
|
|
|
}
|
|
|
|
stock EF_CreateEntity() {
|
2007-03-05 22:30:40 +03:00
|
|
|
return engfunc(EngFunc_CreateEntity);
|
2015-03-11 16:19:27 +03:00
|
|
|
}
|
2004-11-09 23:30:17 +03:00
|
|
|
|
2015-03-11 16:19:27 +03:00
|
|
|
stock EF_RemoveEntity(const ENTITY) {
|
2007-03-05 22:30:40 +03:00
|
|
|
return engfunc(EngFunc_RemoveEntity, ENTITY);
|
2015-03-11 16:19:27 +03:00
|
|
|
}
|
|
|
|
stock EF_CreateNamedEntity(const CLASSNAME) {
|
2007-03-05 22:30:40 +03:00
|
|
|
return engfunc(EngFunc_CreateNamedEntity, CLASSNAME);
|
2015-03-11 16:19:27 +03:00
|
|
|
}
|
|
|
|
stock EF_MakeStatic(const ENTITY) {
|
2007-03-05 22:30:40 +03:00
|
|
|
return engfunc(EngFunc_MakeStatic, ENTITY);
|
2015-03-11 16:19:27 +03:00
|
|
|
}
|
|
|
|
stock EF_EntIsOnFloor(const ENTITY) {
|
2007-03-05 22:30:40 +03:00
|
|
|
return engfunc(EngFunc_EntIsOnFloor, ENTITY);
|
2015-03-11 16:19:27 +03:00
|
|
|
}
|
|
|
|
stock EF_DropToFloor(const ENTITY) {
|
2007-03-05 22:30:40 +03:00
|
|
|
return engfunc(EngFunc_DropToFloor, ENTITY);
|
2015-03-11 16:19:27 +03:00
|
|
|
}
|
2004-11-09 23:30:17 +03:00
|
|
|
|
2015-03-11 16:19:27 +03:00
|
|
|
stock EF_WalkMove(const ENTITY, Float:yaw, Float:distance, iMode) {
|
2007-03-05 22:30:40 +03:00
|
|
|
return engfunc(EngFunc_WalkMove, ENTITY, yaw, distance, iMode);
|
2015-03-11 16:19:27 +03:00
|
|
|
}
|
|
|
|
stock EF_SetOrigin(const ENTITY, const Float:ORIGIN[3]) {
|
2007-03-05 22:30:40 +03:00
|
|
|
return engfunc(EngFunc_SetOrigin, ENTITY, ORIGIN);
|
2015-03-11 16:19:27 +03:00
|
|
|
}
|
|
|
|
stock EF_EmitSound(const ENTITY, channel, const SAMPLE[], Float:volume, Float:attenuation, fFlags, pitch) {
|
2007-03-05 22:30:40 +03:00
|
|
|
return engfunc(EngFunc_EmitSound, ENTITY, channel, SAMPLE, volume, attenuation, fFlags, pitch);
|
2015-03-11 16:19:27 +03:00
|
|
|
}
|
|
|
|
stock EF_EmitAmbientSound(const ENTITY, Float:pos[3], const SAMPLE[], Float:volume, Float:attenuation, fFlags, pitch) {
|
2007-03-05 22:30:40 +03:00
|
|
|
return engfunc(EngFunc_EmitAmbientSound, ENTITY, pos, SAMPLE, volume, attenuation, fFlags, pitch);
|
2015-03-11 16:19:27 +03:00
|
|
|
}
|
|
|
|
stock EF_TraceLine(const Float:V1[3], const Float:V2[3], fNoMonsters, const ENT_TO_SKIP) {
|
2007-03-05 22:30:40 +03:00
|
|
|
return engfunc(EngFunc_TraceLine, V1, V2, fNoMonsters, ENT_TO_SKIP);
|
2015-03-11 16:19:27 +03:00
|
|
|
}
|
2004-11-09 23:30:17 +03:00
|
|
|
|
2015-03-11 16:19:27 +03:00
|
|
|
stock EF_TraceToss(const ENTITY, const ENTITY_TO_IGNORE) {
|
2007-03-05 22:30:40 +03:00
|
|
|
return engfunc(EngFunc_TraceToss, ENTITY, ENTITY_TO_IGNORE);
|
2015-03-11 16:19:27 +03:00
|
|
|
}
|
|
|
|
stock EF_TraceMonsterHull(const ENTITY, const Float:V1[3], const Float:V2[3], fNoMonsters, const ENTITY_TO_SKIP) {
|
2007-03-05 22:30:40 +03:00
|
|
|
return engfunc(EngFunc_TraceMonsterHull, ENTITY, V1, V2, fNoMonsters, ENTITY_TO_SKIP);
|
2015-03-11 16:19:27 +03:00
|
|
|
}
|
|
|
|
stock EF_TraceHull(const Float:V1[3], const Float:V2[3], fNoMonsters, hullNumber, const ENTITY_TO_SKIP) {
|
2007-03-05 22:30:40 +03:00
|
|
|
return engfunc(EngFunc_TraceHull, V1, V2, fNoMonsters, hullNumber, ENTITY_TO_SKIP);
|
2015-03-11 16:19:27 +03:00
|
|
|
}
|
|
|
|
stock EF_TraceModel(const Float:V1[3], const Float:V2[3], hullNumber, const ENTITY) {
|
2007-03-05 22:30:40 +03:00
|
|
|
return engfunc(EngFunc_TraceModel, V1, V2, hullNumber, ENTITY);
|
2015-03-11 16:19:27 +03:00
|
|
|
}
|
|
|
|
stock EF_TraceTexture(const TEXTURE_ENTITY, const Float:V1[3], const Float:V2[3]) {
|
2007-03-05 22:30:40 +03:00
|
|
|
return engfunc(EngFunc_TraceTexture, TEXTURE_ENTITY, V1, V2);
|
2015-03-11 16:19:27 +03:00
|
|
|
}
|
2004-11-09 23:30:17 +03:00
|
|
|
|
2015-03-11 16:19:27 +03:00
|
|
|
stock EF_TraceSphere(const Float:V1[3], const Float:V2[3], fNoMonsters, Float:radius, const ENTITY_TO_SKIP) {
|
2007-03-05 22:30:40 +03:00
|
|
|
return engfunc(EngFunc_TraceSphere, V1, V2, fNoMonsters, radius, ENTITY_TO_SKIP);
|
2015-03-11 16:19:27 +03:00
|
|
|
}
|
|
|
|
stock EF_GetAimVector(const ENTITY, Float:speed, Float:returnVector[3]) {
|
2007-03-05 22:30:40 +03:00
|
|
|
return engfunc(EngFunc_GetAimVector, ENTITY, speed, returnVector);
|
2015-03-11 16:19:27 +03:00
|
|
|
}
|
|
|
|
stock EF_ParticleEffect(const Float:ORIGIN[3], const Float:DIRECTION[3], Float:color, Float:count) {
|
2007-03-05 22:30:40 +03:00
|
|
|
return engfunc(EngFunc_ParticleEffect, ORIGIN, DIRECTION, color, count);
|
2015-03-11 16:19:27 +03:00
|
|
|
}
|
|
|
|
stock EF_LightStyle(style, val[]) {
|
2007-03-05 22:30:40 +03:00
|
|
|
return engfunc(EngFunc_LightStyle, style, val);
|
2015-03-11 16:19:27 +03:00
|
|
|
}
|
|
|
|
stock EF_DecalIndex(const NAME[]) {
|
2007-03-05 22:30:40 +03:00
|
|
|
return engfunc(EngFunc_DecalIndex, NAME);
|
2015-03-11 16:19:27 +03:00
|
|
|
}
|
2004-11-09 23:30:17 +03:00
|
|
|
|
2015-03-11 16:19:27 +03:00
|
|
|
stock EF_PointContents(const Float:VECTOR[3]) {
|
2007-03-05 22:30:40 +03:00
|
|
|
return engfunc(EngFunc_PointContents, VECTOR);
|
2015-03-11 16:19:27 +03:00
|
|
|
}
|
|
|
|
stock EF_FreeEntPrivateData(const ENTITY) {
|
2007-03-05 22:30:40 +03:00
|
|
|
return engfunc(EngFunc_FreeEntPrivateData, ENTITY);
|
2015-03-11 16:19:27 +03:00
|
|
|
}
|
|
|
|
stock EF_SzFromIndex(iString) {
|
2007-03-05 22:30:40 +03:00
|
|
|
return engfunc(EngFunc_SzFromIndex, iString);
|
2015-03-11 16:19:27 +03:00
|
|
|
}
|
|
|
|
stock EF_AllocString(const STRING[]) {
|
2007-03-05 22:30:40 +03:00
|
|
|
return engfunc(EngFunc_AllocString, STRING);
|
2015-03-11 16:19:27 +03:00
|
|
|
}
|
|
|
|
stock EF_RegUserMsg(const NAME[], iSize) {
|
2007-03-05 22:30:40 +03:00
|
|
|
return engfunc(EngFunc_RegUserMsg, NAME, iSize);
|
2015-03-11 16:19:27 +03:00
|
|
|
}
|
2004-11-09 23:30:17 +03:00
|
|
|
|
2015-03-11 16:19:27 +03:00
|
|
|
stock EF_AnimationAutomove(const ENTITY, Float:flTime) {
|
2007-03-05 22:30:40 +03:00
|
|
|
return engfunc(EngFunc_AnimationAutomove, ENTITY, flTime);
|
2015-03-11 16:19:27 +03:00
|
|
|
}
|
|
|
|
stock EF_GetBonePosition(const ENTITY, iBone, Float:origin[3], Float:angles[3]) {
|
2007-03-05 22:30:40 +03:00
|
|
|
return engfunc(EngFunc_GetBonePosition, ENTITY, iBone, origin, angles);
|
2015-03-11 16:19:27 +03:00
|
|
|
}
|
|
|
|
stock EF_GetAttachment(const ENTITY, iAttachment, Float:origin[3], Float:angles[3]) {
|
2007-03-05 22:30:40 +03:00
|
|
|
return engfunc(EngFunc_GetAttachment, ENTITY, iAttachment, origin, angles);
|
2015-03-11 16:19:27 +03:00
|
|
|
}
|
|
|
|
stock EF_SetView(const CLIENT, const VIEW_ENTITY) {
|
2007-03-05 22:30:40 +03:00
|
|
|
return engfunc(EngFunc_SetView, CLIENT, VIEW_ENTITY);
|
2015-03-11 16:19:27 +03:00
|
|
|
}
|
|
|
|
stock EF_Time(&Float:returnValue) {
|
2007-03-05 22:30:40 +03:00
|
|
|
return engfunc(EngFunc_Time, returnValue);
|
2015-03-11 16:19:27 +03:00
|
|
|
}
|
2004-11-09 23:30:17 +03:00
|
|
|
|
2015-03-11 16:19:27 +03:00
|
|
|
stock EF_CrosshairAngle(const CLIENT, Float:pitch, Float:yaw) {
|
2007-03-05 22:30:40 +03:00
|
|
|
return engfunc(EngFunc_CrosshairAngle, CLIENT, pitch, yaw);
|
2015-03-11 16:19:27 +03:00
|
|
|
}
|
|
|
|
stock EF_FadeClientVolume(const ENTITY, fadePercent, fadeOutSeconds, holdTime, fadeInSeconds) {
|
2007-03-05 22:30:40 +03:00
|
|
|
return engfunc(EngFunc_FadeClientVolume, ENTITY, fadePercent, fadeOutSeconds, holdTime, fadeInSeconds);
|
2015-03-11 16:19:27 +03:00
|
|
|
}
|
|
|
|
stock EF_SetClientMaxspeed(const ENTITY, Float:newMaxspeed) {
|
2007-03-05 22:30:40 +03:00
|
|
|
return engfunc(EngFunc_SetClientMaxspeed, ENTITY, newMaxspeed);
|
2015-03-11 16:19:27 +03:00
|
|
|
}
|
|
|
|
stock EF_CreateFakeClient(const NETNAME[]) {
|
2007-03-05 22:30:40 +03:00
|
|
|
return engfunc(EngFunc_CreateFakeClient, NETNAME);
|
2015-03-11 16:19:27 +03:00
|
|
|
}
|
|
|
|
stock EF_RunPlayerMove(const FAKECLIENT, const Float:VIEWANGLES[3], Float:forwardmove, Float:sidemove, Float:upmove, buttons, impulse, msec) {
|
2007-03-05 22:30:40 +03:00
|
|
|
return engfunc(EngFunc_RunPlayerMove, FAKECLIENT, VIEWANGLES, forwardmove, sidemove, upmove, buttons, impulse, msec);
|
2015-03-11 16:19:27 +03:00
|
|
|
}
|
2004-11-09 23:30:17 +03:00
|
|
|
|
2015-03-11 16:19:27 +03:00
|
|
|
stock EF_NumberOfEntities() {
|
2007-03-05 22:30:40 +03:00
|
|
|
return engfunc(EngFunc_NumberOfEntities);
|
2015-03-11 16:19:27 +03:00
|
|
|
}
|
2004-11-09 23:30:17 +03:00
|
|
|
stock EF_StaticDecal(const Float:ORIGIN[3], decalIndex, entityIndex, modelIndex)
|
2007-03-05 22:30:40 +03:00
|
|
|
return engfunc(EngFunc_StaticDecal, ORIGIN, decalIndex, entityIndex, modelIndex);
|
2015-03-11 16:19:27 +03:00
|
|
|
stock EF_PrecacheGeneric(const STRING[]) {
|
2007-03-05 22:30:40 +03:00
|
|
|
return engfunc(EngFunc_PrecacheGeneric, STRING);
|
2015-03-11 16:19:27 +03:00
|
|
|
}
|
|
|
|
stock EF_BuildSoundMSG(const ENTITY, channel, const SAMPLE[], Float:volume, Float:attenuation, fFlags, pitch, msg_dest, msg_type, const Float:ORIGIN[3], const ED) {
|
2007-03-05 22:30:40 +03:00
|
|
|
return engfunc(EngFunc_BuildSoundMsg, ENTITY, channel, SAMPLE, volume, attenuation, fFlags, pitch, msg_dest, msg_type, ORIGIN, ED);
|
2015-03-11 16:19:27 +03:00
|
|
|
}
|
|
|
|
stock EF_GetPhysicsKeyValue(const CLIENT, const KEY[]) {
|
2007-03-05 22:30:40 +03:00
|
|
|
return engfunc(EngFunc_GetPhysicsKeyValue, CLIENT, KEY);
|
2015-03-11 16:19:27 +03:00
|
|
|
}
|
2004-11-09 23:30:17 +03:00
|
|
|
|
2015-03-11 16:19:27 +03:00
|
|
|
stock EF_SetPhysicsKeyValue(const CLIENT, const KEY[], const VALUE[]) {
|
2007-03-05 22:30:40 +03:00
|
|
|
return engfunc(EngFunc_SetPhysicsKeyValue, CLIENT, KEY, VALUE);
|
2015-03-11 16:19:27 +03:00
|
|
|
}
|
|
|
|
stock EF_GetPhysicsInfoString(const CLIENT, returnString[], maxLength) {
|
2007-03-05 22:30:40 +03:00
|
|
|
return engfunc(EngFunc_GetPhysicsInfoString, CLIENT, returnString, maxLength);
|
2015-03-11 16:19:27 +03:00
|
|
|
}
|
|
|
|
stock EF_PrecacheEvent(type, const STRING[]) {
|
2007-03-05 22:30:40 +03:00
|
|
|
return engfunc(EngFunc_PrecacheEvent, type, STRING);
|
2015-03-11 16:19:27 +03:00
|
|
|
}
|
|
|
|
stock EF_PlaybackEvent(flags, const INVOKER, eventindex, Float:delay, Float:origin[3], Float:angles[3], Float:fparam1, Float:fparam2, iparam1, iparam2, bparam1, bparam2) {
|
2007-03-05 22:30:40 +03:00
|
|
|
return engfunc(EngFunc_PlaybackEvent, flags, INVOKER, eventindex, delay, origin, angles, fparam1, fparam2, iparam1, iparam2, bparam1, bparam2);
|
2015-03-11 16:19:27 +03:00
|
|
|
}
|
|
|
|
stock EF_CheckVisibility(const ENTITY, set) {
|
2007-03-05 22:30:40 +03:00
|
|
|
return engfunc(EngFunc_CheckVisibility, ENTITY, set);
|
2015-03-11 16:19:27 +03:00
|
|
|
}
|
2004-11-09 23:30:17 +03:00
|
|
|
|
2015-03-11 16:19:27 +03:00
|
|
|
stock EF_GetCurrentPlayer() {
|
2007-03-05 22:30:40 +03:00
|
|
|
return engfunc(EngFunc_GetCurrentPlayer);
|
2015-03-11 16:19:27 +03:00
|
|
|
}
|
|
|
|
stock EF_CanSkipPlayer(const PLAYER) {
|
2007-03-05 22:30:40 +03:00
|
|
|
return engfunc(EngFunc_CanSkipPlayer, PLAYER);
|
2015-03-11 16:19:27 +03:00
|
|
|
}
|
|
|
|
stock EF_SetGroupMask(mask, op) {
|
2007-03-05 22:30:40 +03:00
|
|
|
return engfunc(EngFunc_SetGroupMask, mask, op);
|
2015-03-11 16:19:27 +03:00
|
|
|
}
|
|
|
|
stock EF_GetClientListening(receiver, sender) {
|
2004-11-09 23:30:17 +03:00
|
|
|
return engfunc(EngFunc_GetClientListening, receiver, sender);
|
2015-03-11 16:19:27 +03:00
|
|
|
}
|
|
|
|
stock EF_SetClientListening(receiver, sender, bool:listen) {
|
2004-11-09 23:30:17 +03:00
|
|
|
return engfunc(EngFunc_SetClientListening, receiver, sender, listen);
|
2015-03-11 16:19:27 +03:00
|
|
|
}
|
2004-11-09 23:30:17 +03:00
|
|
|
|
2015-03-11 16:19:27 +03:00
|
|
|
stock EF_MessageBegin(msg_dest, msg_type, const Float:ORIGIN[3], const ED) {
|
2007-03-05 22:30:40 +03:00
|
|
|
return engfunc(EngFunc_MessageBegin, msg_dest, msg_type, ORIGIN, ED);
|
2015-03-11 16:19:27 +03:00
|
|
|
}
|
|
|
|
stock EF_WriteCoord(Float:value) {
|
2007-03-05 22:30:40 +03:00
|
|
|
return engfunc(EngFunc_WriteCoord, value);
|
2015-03-11 16:19:27 +03:00
|
|
|
}
|
|
|
|
stock EF_WriteAngle(Float:value) {
|
2007-03-05 22:30:40 +03:00
|
|
|
return engfunc(EngFunc_WriteAngle, value);
|
2015-03-11 16:19:27 +03:00
|
|
|
}
|
|
|
|
stock EF_InfoKeyValue(const INFOBUFFER, const KEY[], returnValue[], maxLength) {
|
2007-03-05 22:30:40 +03:00
|
|
|
return engfunc(EngFunc_InfoKeyValue, INFOBUFFER, KEY, returnValue, maxLength);
|
2015-03-11 16:19:27 +03:00
|
|
|
}
|
|
|
|
stock EF_SetKeyValue(const INFOBUFFER, const KEY[], const VALUE[]) {
|
2007-03-05 22:30:40 +03:00
|
|
|
return engfunc(EngFunc_SetKeyValue, INFOBUFFER, KEY, VALUE);
|
2015-03-11 16:19:27 +03:00
|
|
|
}
|
2004-11-09 23:30:17 +03:00
|
|
|
|
2015-03-11 16:19:27 +03:00
|
|
|
stock EF_SetClientKeyValue(const ID, const INFOBUFFER, const KEY[], const VALUE[]) {
|
2007-03-05 22:30:40 +03:00
|
|
|
return engfunc(EngFunc_SetClientKeyValue, ID, INFOBUFFER, KEY, VALUE);
|
2015-03-11 16:19:27 +03:00
|
|
|
}
|
2004-11-11 13:39:37 +03:00
|
|
|
|
2015-03-11 16:19:27 +03:00
|
|
|
stock EF_CreateInstBaseline(CLASSNAME, baseline) {
|
2007-03-05 22:30:40 +03:00
|
|
|
return engfunc(EngFunc_CreateInstBaseline, CLASSNAME, baseline);
|
2015-03-11 16:19:27 +03:00
|
|
|
}
|
2006-05-10 16:35:21 +04:00
|
|
|
|
|
|
|
// Returns pointer to info buffer that can be used with the INFOBUFFER param
|
|
|
|
// of EF_InfoKeyValue, EF_SetKeyValue, and EF_SetClientKeyValue
|
2015-03-11 16:19:27 +03:00
|
|
|
stock EF_GetInfoKeyBuffer(const ENTITY) {
|
2007-03-05 22:30:40 +03:00
|
|
|
return engfunc(EngFunc_GetInfoKeyBuffer, ENTITY);
|
2015-03-11 16:19:27 +03:00
|
|
|
}
|
|
|
|
stock EF_ClientPrintf(const ENTITY, const printType, const MESSAGE[]) {
|
2007-03-05 22:30:40 +03:00
|
|
|
return engfunc(EngFunc_ClientPrintf, ENTITY, printType, MESSAGE);
|
2015-03-11 16:19:27 +03:00
|
|
|
}
|
|
|
|
stock EF_ServerPrint(const MESSAGE[]) {
|
2007-04-30 22:29:33 +04:00
|
|
|
return engfunc(EngFunc_ServerPrint, MESSAGE);
|
2015-03-11 16:19:27 +03:00
|
|
|
}
|
2006-05-05 12:07:31 +04:00
|
|
|
|
2004-11-11 13:39:37 +03:00
|
|
|
// DLLFuncs
|
2015-03-11 16:19:27 +03:00
|
|
|
stock DF_GameInit() {
|
2007-03-05 22:30:40 +03:00
|
|
|
return dllfunc(DLLFunc_GameInit);
|
2015-03-11 16:19:27 +03:00
|
|
|
}
|
|
|
|
stock DF_Spawn(const ENTITY) {
|
2007-03-05 22:30:40 +03:00
|
|
|
return dllfunc(DLLFunc_Spawn, ENTITY);
|
2015-03-11 16:19:27 +03:00
|
|
|
}
|
|
|
|
stock DF_Think(const ENTITY) {
|
2007-03-05 22:30:40 +03:00
|
|
|
return dllfunc(DLLFunc_Think, ENTITY);
|
2015-03-11 16:19:27 +03:00
|
|
|
}
|
|
|
|
stock DF_Use(const ENT_Used, const ENT_User) {
|
2007-03-05 22:30:40 +03:00
|
|
|
return dllfunc(DLLFunc_Use, ENT_Used, ENT_User);
|
2015-03-11 16:19:27 +03:00
|
|
|
}
|
|
|
|
stock DF_Touch(const ENT_Touched, const ENT_Toucher) {
|
2007-03-05 22:30:40 +03:00
|
|
|
return dllfunc(DLLFunc_Touch, ENT_Touched, ENT_Toucher);
|
2015-03-11 16:19:27 +03:00
|
|
|
}
|
2004-11-11 13:39:37 +03:00
|
|
|
|
2015-03-11 16:19:27 +03:00
|
|
|
stock DF_Blocked(const ENT_Blocked, const ENT_Other) {
|
2007-03-05 22:30:40 +03:00
|
|
|
return dllfunc(DLLFunc_Blocked, ENT_Blocked, ENT_Other);
|
2015-03-11 16:19:27 +03:00
|
|
|
}
|
|
|
|
stock DF_SetAbsBox(const ENTITY) {
|
2007-03-05 22:30:40 +03:00
|
|
|
return dllfunc(DLLFunc_SetAbsBox, ENTITY);
|
2015-03-11 16:19:27 +03:00
|
|
|
}
|
|
|
|
stock DF_ClientConnect(const ENTITY, const NAME[], const ADDRESS[], RejectReason[128]) {
|
2007-03-05 22:30:40 +03:00
|
|
|
return dllfunc(DLLFunc_ClientConnect, ENTITY, NAME, ADDRESS, RejectReason);
|
2015-03-11 16:19:27 +03:00
|
|
|
}
|
|
|
|
stock DF_ClientDisconnect(const ENTITY) {
|
2007-03-05 22:30:40 +03:00
|
|
|
return dllfunc(DLLFunc_ClientDisconnect, ENTITY);
|
2015-03-11 16:19:27 +03:00
|
|
|
}
|
|
|
|
stock DF_ClientKill(const ENTITY) {
|
2007-03-05 22:30:40 +03:00
|
|
|
return dllfunc(DLLFunc_ClientKill, ENTITY);
|
2015-03-11 16:19:27 +03:00
|
|
|
}
|
2004-11-11 13:39:37 +03:00
|
|
|
|
2015-03-11 16:19:27 +03:00
|
|
|
stock DF_ClientPutInServer(const ENTITY) {
|
2007-03-05 22:30:40 +03:00
|
|
|
return dllfunc(DLLFunc_ClientPutInServer, ENTITY);
|
2015-03-11 16:19:27 +03:00
|
|
|
}
|
|
|
|
stock DF_ClientCommand(const ENTITY) {
|
2007-03-05 22:30:40 +03:00
|
|
|
return dllfunc(DLLFunc_ClientCommand, ENTITY);
|
2015-03-11 16:19:27 +03:00
|
|
|
}
|
|
|
|
stock DF_ServerDeactivate() {
|
2007-03-05 22:30:40 +03:00
|
|
|
return dllfunc(DLLFunc_ServerDeactivate);
|
2015-03-11 16:19:27 +03:00
|
|
|
}
|
|
|
|
stock DF_PlayerPreThink(const ENTITY) {
|
2007-03-05 22:30:40 +03:00
|
|
|
return dllfunc(DLLFunc_PlayerPreThink, ENTITY);
|
2015-03-11 16:19:27 +03:00
|
|
|
}
|
|
|
|
stock DF_PlayerPostThink(const ENTITY) {
|
2007-03-05 22:30:40 +03:00
|
|
|
return dllfunc(DLLFunc_PlayerPostThink, ENTITY);
|
2015-03-11 16:19:27 +03:00
|
|
|
}
|
2004-11-11 13:39:37 +03:00
|
|
|
|
2015-03-11 16:19:27 +03:00
|
|
|
stock DF_StartFrame() {
|
2007-03-05 22:30:40 +03:00
|
|
|
return dllfunc(DLLFunc_StartFrame);
|
2015-03-11 16:19:27 +03:00
|
|
|
}
|
|
|
|
stock DF_ParmsNewLevel() {
|
2007-03-05 22:30:40 +03:00
|
|
|
return dllfunc(DLLFunc_ParmsNewLevel);
|
2015-03-11 16:19:27 +03:00
|
|
|
}
|
|
|
|
stock DF_ParmsChangeLevel() {
|
2007-03-05 22:30:40 +03:00
|
|
|
return dllfunc(DLLFunc_ParmsChangeLevel);
|
2015-03-11 16:19:27 +03:00
|
|
|
}
|
|
|
|
stock DF_GetGameDescription() {
|
2007-03-05 22:30:40 +03:00
|
|
|
return dllfunc(DLLFunc_GetGameDescription);
|
2015-03-11 16:19:27 +03:00
|
|
|
}
|
|
|
|
stock DF_SpectatorConnect(const ENTITY) {
|
2007-03-05 22:30:40 +03:00
|
|
|
return dllfunc(DLLFunc_SpectatorConnect, ENTITY);
|
2015-03-11 16:19:27 +03:00
|
|
|
}
|
2004-11-11 13:39:37 +03:00
|
|
|
|
2015-03-11 16:19:27 +03:00
|
|
|
stock DF_SpectatorDisconnect(const ENTITY) {
|
2007-03-05 22:30:40 +03:00
|
|
|
return dllfunc(DLLFunc_SpectatorDisconnect, ENTITY);
|
2015-03-11 16:19:27 +03:00
|
|
|
}
|
|
|
|
stock DF_SpectatorThink(const ENTITY) {
|
2007-03-05 22:30:40 +03:00
|
|
|
return dllfunc(DLLFunc_SpectatorThink, ENTITY);
|
2015-03-11 16:19:27 +03:00
|
|
|
}
|
|
|
|
stock DF_Sys_Error(const ERROR_STRING[]) {
|
2007-03-05 22:30:40 +03:00
|
|
|
return dllfunc(DLLFunc_Sys_Error, ERROR_STRING);
|
2015-03-11 16:19:27 +03:00
|
|
|
}
|
|
|
|
stock DF_PM_FindTextureType(name[]) {
|
2007-03-05 22:30:40 +03:00
|
|
|
return dllfunc(DLLFunc_PM_FindTextureType, name);
|
2015-03-11 16:19:27 +03:00
|
|
|
}
|
|
|
|
stock DF_RegisterEncoders() {
|
2007-03-05 22:30:40 +03:00
|
|
|
return dllfunc(DLLFunc_RegisterEncoders);
|
2015-03-11 16:19:27 +03:00
|
|
|
}
|
2004-11-11 13:39:37 +03:00
|
|
|
|
2015-03-11 16:19:27 +03:00
|
|
|
stock DF_GetHullBounds(hullnumber, Float:mins[3], Float:maxs[3]) {
|
2007-03-05 22:30:40 +03:00
|
|
|
return dllfunc(DLLFunc_GetHullBounds, hullnumber, mins, maxs);
|
2015-03-11 16:19:27 +03:00
|
|
|
}
|
|
|
|
stock DF_CreateInstBaselines() {
|
2007-03-05 22:30:40 +03:00
|
|
|
return dllfunc(DLLFunc_CreateInstBaselines);
|
2015-03-11 16:19:27 +03:00
|
|
|
}
|
|
|
|
stock DF_pfnAllowLagCompensation() {
|
2007-03-05 22:30:40 +03:00
|
|
|
return dllfunc(DLLFunc_pfnAllowLagCompensation);
|
2015-03-11 16:19:27 +03:00
|
|
|
}
|
|
|
|
stock DF_MetaFunc_CallGameEntity(const STRING[], const ENTITY) {
|
2007-03-05 22:30:40 +03:00
|
|
|
return dllfunc(MetaFunc_CallGameEntity, STRING, ENTITY);
|
2015-03-11 16:19:27 +03:00
|
|
|
}
|
|
|
|
stock DF_ClientUserInfoChanged(const IDPLAYER) {
|
2007-03-05 22:30:40 +03:00
|
|
|
return dllfunc(DLLFunc_ClientUserInfoChanged, IDPLAYER);
|
2015-03-11 16:19:27 +03:00
|
|
|
}
|
2006-04-30 11:37:31 +04:00
|
|
|
|
2015-03-11 16:19:27 +03:00
|
|
|
stock DF_UpdateClientData(const ENTITY, sendweapons, const cd/* = 0*/) {
|
2007-03-05 22:30:40 +03:00
|
|
|
return dllfunc(DLLFunc_UpdateClientData, ENTITY, sendweapons, cd);
|
2015-03-11 16:19:27 +03:00
|
|
|
}
|
|
|
|
stock DF_AddToFullPack(const STATE/* = 0*/, e, ENT, HOST, hostflags, player, set) {
|
2007-03-05 22:30:40 +03:00
|
|
|
return dllfunc(DLLFunc_AddToFullPack, STATE, e, ENT, HOST, hostflags, player, set);
|
2015-03-11 16:19:27 +03:00
|
|
|
}
|
|
|
|
stock DF_CmdStart(const PLAYER, const CMD/* = 0*/, randomSeed) {
|
2007-03-05 22:30:40 +03:00
|
|
|
return dllfunc(DLLFunc_CmdStart, PLAYER, CMD, randomSeed);
|
2015-03-11 16:19:27 +03:00
|
|
|
}
|
|
|
|
stock DF_CmdEnd(const PLAYER) {
|
2007-03-05 22:30:40 +03:00
|
|
|
return dllfunc(DLLFunc_CmdEnd, PLAYER);
|
2015-03-11 16:19:27 +03:00
|
|
|
}
|
|
|
|
stock DF_CreateBaseline(PLAYER, eIndex, baseline, playerModelIndex, Float:playerMins[3], Float:playerMaxs[3]) {
|
2007-03-05 22:30:40 +03:00
|
|
|
return dllfunc(DLLFunc_CreateBaseline, PLAYER, eIndex, baseline, playerModelIndex, playerMins, playerMaxs);
|
2015-03-11 16:19:27 +03:00
|
|
|
}
|