2014-08-04 10:10:06 +00: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 Module
|
|
|
|
//
|
|
|
|
|
2004-07-28 03:14:07 +00:00
|
|
|
#ifndef _ENGFUNC_INCLUDE_H
|
|
|
|
#define _ENGFUNC_INCLUDE_H
|
|
|
|
|
|
|
|
enum {
|
Oh dear, lots of changes:
1) Added get_orig_retval for retrieving the original return value of an engine function
2) Fixed engfunc being called with EngFunc_CheckVisibility so that it now works as intended
3) Hooks should now also work with FM_WalkMove, FM_TraceToss, FM_TraceMonsterHull, FM_TraceHull,
FM_TraceModel, FM_TraceTexture, FM_TraceSphere, FM_GetBonePosition, FM_GetAttachment, FM_RunPlayerMove,
FM_StaticDecal, FM_BuildSoundMsg and FM_CheckVisibility
4) Reformatted comments in some header files so they look a bit neater
2006-04-17 17:02:57 +00:00
|
|
|
EngFunc_PrecacheModel, // int ) (char *s);
|
|
|
|
EngFunc_PrecacheSound, // int ) (char *s);
|
|
|
|
EngFunc_SetModel, // void ) (edict_t *e, const char *m);
|
|
|
|
EngFunc_ModelIndex, // int ) (const char *m);
|
|
|
|
EngFunc_ModelFrames, // int ) (int modelIndex);
|
|
|
|
EngFunc_SetSize, // void ) (edict_t *e, const float *rgflMin, const float *rgflMax);
|
|
|
|
EngFunc_ChangeLevel, // void ) (char* s1, char* s2);
|
|
|
|
EngFunc_VecToYaw, // float) (const float *rgflVector);
|
|
|
|
EngFunc_VecToAngles, // void ) (const float *rgflVectorIn, float *rgflVectorOut);
|
|
|
|
EngFunc_MoveToOrigin, // void ) (edict_t *ent, const float *pflGoal, float dist, int iMoveType);
|
|
|
|
EngFunc_ChangeYaw, // void ) (edict_t* ent);
|
|
|
|
EngFunc_ChangePitch, // void ) (edict_t* ent);
|
|
|
|
EngFunc_FindEntityByString, // edict) (edict_t *pEdictStartSearchAfter, const char *pszField, const char *pszValue);
|
|
|
|
EngFunc_GetEntityIllum, // int ) (edict_t* pEnt);
|
|
|
|
EngFunc_FindEntityInSphere, // edict) (edict_t *pEdictStartSearchAfter, const float *org, float rad);
|
|
|
|
EngFunc_FindClientInPVS, // edict) (edict_t *pEdict);
|
|
|
|
EngFunc_EntitiesInPVS, // edict) (edict_t *pplayer);
|
|
|
|
EngFunc_MakeVectors, // void ) (const float *rgflVector);
|
|
|
|
EngFunc_AngleVectors, // void ) (const float *rgflVector, float *forward, float *right, float *up);
|
|
|
|
EngFunc_CreateEntity, // edict) (void);
|
|
|
|
EngFunc_RemoveEntity, // void ) (edict_t *e);
|
|
|
|
EngFunc_CreateNamedEntity, // edict) (int className);
|
|
|
|
EngFunc_MakeStatic, // void ) (edict_t *ent);
|
|
|
|
EngFunc_EntIsOnFloor, // int ) (edict_t *e);
|
|
|
|
EngFunc_DropToFloor, // int ) (edict_t *e);
|
|
|
|
EngFunc_WalkMove, // int ) (edict_t *ent, float yaw, float dist, int iMode);
|
|
|
|
EngFunc_SetOrigin, // void ) (edict_t *e, const float *rgflOrigin);
|
|
|
|
EngFunc_EmitSound, // void ) (edict_t *entity, int channel, const char *sample, float volume, float attenuation, int fFlags, int pitch);
|
|
|
|
EngFunc_EmitAmbientSound, // void ) (edict_t *entity, float *pos, const char *samp, float vol, float attenuation, int fFlags, int pitch);
|
|
|
|
EngFunc_TraceLine, // void ) (const float *v1, const float *v2, int fNoMonsters, edict_t *pentToSkip, TraceResult *ptr);
|
|
|
|
EngFunc_TraceToss, // void ) (edict_t *pent, edict_t *pentToIgnore, TraceResult *ptr);
|
|
|
|
EngFunc_TraceMonsterHull, // int ) (edict_t *pEdict, const float *v1, const float *v2, int fNoMonsters, edict_t *pentToSkip, TraceResult *ptr);
|
|
|
|
EngFunc_TraceHull, // void ) (const float *v1, const float *v2, int fNoMonsters, int hullNumber, edict_t *pentToSkip, TraceResult *ptr);
|
|
|
|
EngFunc_TraceModel, // void ) (const float *v1, const float *v2, int hullNumber, edict_t *pent, TraceResult *ptr);
|
|
|
|
EngFunc_TraceTexture, // const char *) (edict_t *pTextureEntity, const float *v1, const float *v2 );
|
|
|
|
EngFunc_TraceSphere, // void ) (const float *v1, const float *v2, int fNoMonsters, float radius, edict_t *pentToSkip, TraceResult *ptr);
|
|
|
|
EngFunc_GetAimVector, // void ) (edict_t *ent, float speed, float *rgflReturn);
|
|
|
|
EngFunc_ParticleEffect, // void ) (const float *org, const float *dir, float color, float count);
|
2013-09-06 00:51:52 +00:00
|
|
|
EngFunc_LightStyle, // void ) (int style, const char *val);
|
Oh dear, lots of changes:
1) Added get_orig_retval for retrieving the original return value of an engine function
2) Fixed engfunc being called with EngFunc_CheckVisibility so that it now works as intended
3) Hooks should now also work with FM_WalkMove, FM_TraceToss, FM_TraceMonsterHull, FM_TraceHull,
FM_TraceModel, FM_TraceTexture, FM_TraceSphere, FM_GetBonePosition, FM_GetAttachment, FM_RunPlayerMove,
FM_StaticDecal, FM_BuildSoundMsg and FM_CheckVisibility
4) Reformatted comments in some header files so they look a bit neater
2006-04-17 17:02:57 +00:00
|
|
|
EngFunc_DecalIndex, // int ) (const char *name);
|
|
|
|
EngFunc_PointContents, // int ) (const float *rgflVector);
|
|
|
|
EngFunc_FreeEntPrivateData, // void ) (edict_t *pEdict);
|
|
|
|
EngFunc_SzFromIndex, // const char *) (int iString);
|
|
|
|
EngFunc_AllocString, // int ) (const char *szValue);
|
|
|
|
EngFunc_RegUserMsg, // int ) (const char *pszName, int iSize);
|
|
|
|
EngFunc_AnimationAutomove, // void ) (const edict_t *pEdict, float flTime);
|
|
|
|
EngFunc_GetBonePosition, // void ) (const edict_t *pEdict, int iBone, float *rgflOrigin, float *rgflAngles);
|
|
|
|
EngFunc_GetAttachment, // void ) (const edict_t *pEdict, int iAttachment, float *rgflOrigin, float *rgflAngles);
|
|
|
|
EngFunc_SetView, // void ) (const edict_t *pClient, const edict_t *pViewent);
|
|
|
|
EngFunc_Time, // float) ( void );
|
|
|
|
EngFunc_CrosshairAngle, // void ) (const edict_t *pClient, float pitch, float yaw);
|
|
|
|
EngFunc_FadeClientVolume, // void ) (const edict_t *pEdict, int fadePercent, int fadeOutSeconds, int holdTime, int fadeInSeconds);
|
|
|
|
EngFunc_SetClientMaxspeed, // void ) (const edict_t *pEdict, float fNewMaxspeed);
|
|
|
|
EngFunc_CreateFakeClient, // edict) (const char *netname); // returns NULL if fake client can't be created
|
|
|
|
EngFunc_RunPlayerMove, // void ) (edict_t *fakeclient, const float *viewangles, float forwardmove, float sidemove, float upmove, unsigned short buttons, byte impulse, byte msec);
|
|
|
|
EngFunc_NumberOfEntities, // int ) ( void );
|
|
|
|
EngFunc_StaticDecal, // void ) (const float *origin, int decalIndex, int entityIndex, int modelIndex);
|
|
|
|
EngFunc_PrecacheGeneric, // int ) (char* s);
|
|
|
|
EngFunc_BuildSoundMsg, // void ) (edict_t *entity, int channel, const char *sample, /*int*/float volume, float attenuation, int fFlags, int pitch, int msg_dest, int msg_type, const float *pOrigin, edict_t *ed);
|
|
|
|
EngFunc_GetPhysicsKeyValue, // const char *) (const edict_t *pClient, const char *key);
|
|
|
|
EngFunc_SetPhysicsKeyValue, // void ) (const edict_t *pClient, const char *key, const char *value);
|
|
|
|
EngFunc_GetPhysicsInfoString, // const char *) (const edict_t *pClient);
|
|
|
|
EngFunc_PrecacheEvent, // unsigned short) (int type, const char*psz);
|
|
|
|
EngFunc_PlaybackEvent, // void ) (int flags, const edict_t *pInvoker, unsigned short eventindex, float delay, float *origin, float *angles, float fparam1, float fparam2, int iparam1, int iparam2, int bparam1, int bparam2);
|
2006-05-05 08:04:19 +00:00
|
|
|
EngFunc_CheckVisibility, // int ) (const edict_t *entity, unsigned char *pset);
|
|
|
|
EngFunc_GetCurrentPlayer, // int ) ( void );
|
|
|
|
EngFunc_CanSkipPlayer, // int ) (const edict_t *player);
|
Oh dear, lots of changes:
1) Added get_orig_retval for retrieving the original return value of an engine function
2) Fixed engfunc being called with EngFunc_CheckVisibility so that it now works as intended
3) Hooks should now also work with FM_WalkMove, FM_TraceToss, FM_TraceMonsterHull, FM_TraceHull,
FM_TraceModel, FM_TraceTexture, FM_TraceSphere, FM_GetBonePosition, FM_GetAttachment, FM_RunPlayerMove,
FM_StaticDecal, FM_BuildSoundMsg and FM_CheckVisibility
4) Reformatted comments in some header files so they look a bit neater
2006-04-17 17:02:57 +00:00
|
|
|
EngFunc_SetGroupMask, // void ) (int mask, int op);
|
|
|
|
EngFunc_GetClientListening, // bool ) (int iReceiver, int iSender)
|
|
|
|
EngFunc_SetClientListening, // bool ) (int iReceiver, int iSender, bool Listen)
|
|
|
|
EngFunc_MessageBegin, // void ) (int msg_dest, int msg_type, const float *pOrigin, edict_t *ed)
|
|
|
|
EngFunc_WriteCoord, // void ) (float flValue)
|
|
|
|
EngFunc_WriteAngle, // void ) (float flValue)
|
|
|
|
EngFunc_InfoKeyValue, // char*) (char *infobuffer, char *key);
|
|
|
|
EngFunc_SetKeyValue, // void ) (char *infobuffer, char *key, char *value);
|
2006-05-05 08:04:19 +00:00
|
|
|
EngFunc_SetClientKeyValue, // void ) (int clientIndex, char *infobuffer, char *key, char *value);
|
2006-05-10 11:19:24 +00:00
|
|
|
EngFunc_CreateInstancedBaseline, // int ) (int classname, struct entity_state_s *baseline);
|
2006-05-19 06:01:55 +00:00
|
|
|
EngFunc_GetInfoKeyBuffer, // char*) (edict_t *e);
|
2006-05-23 03:26:26 +00:00
|
|
|
EngFunc_AlertMessage, // void ) (ALERT_TYPE atype, char *szFmt, ...);
|
2007-04-30 18:29:33 +00:00
|
|
|
EngFunc_ClientPrintf, // void ) (edict_t* pEdict, PRINT_TYPE ptype, const char *szMsg);
|
|
|
|
EngFunc_ServerPrint // void ) (const char *szMsg);
|
2004-07-28 03:14:07 +00:00
|
|
|
};
|
|
|
|
|
2004-08-22 12:40:24 +00:00
|
|
|
#endif //_ENGFUNC_INCLUDE_H
|
|
|
|
|