amxmodx/plugins/include/fakemeta_stocks.inc

274 lines
13 KiB
PHP
Raw Normal View History

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