2004-07-28 03:14:07 +00:00
|
|
|
#ifndef _INCLUDE_FORWARD_H
|
|
|
|
#define _INCLUDE_FORWARD_H
|
|
|
|
|
2005-08-18 09:33:51 +00:00
|
|
|
#define ENGFUNC_NUM FM_LAST_DONT_USE_ME // 118
|
2004-07-28 03:14:07 +00:00
|
|
|
|
|
|
|
#define FMV_STRING 1
|
|
|
|
#define FMV_FLOAT 2
|
|
|
|
#define FMV_CELL 3
|
|
|
|
|
|
|
|
#define FMRES_HANDLED 2
|
|
|
|
#define FMRES_SUPERCEDE 4
|
|
|
|
#define FMRES_IGNORED 1
|
|
|
|
#define FMRES_OVERRIDE 3
|
|
|
|
|
|
|
|
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
|
|
|
FM_FIRST_DONT_USE_ME = 0,
|
|
|
|
FM_PrecacheModel ,
|
|
|
|
FM_PrecacheSound,
|
|
|
|
FM_SetModel,
|
|
|
|
FM_ModelIndex,
|
|
|
|
FM_ModelFrames,
|
|
|
|
FM_SetSize,
|
|
|
|
FM_ChangeLevel,
|
|
|
|
FM_VecToYaw,
|
|
|
|
FM_VecToAngles,
|
|
|
|
FM_MoveToOrigin,
|
|
|
|
FM_ChangeYaw,
|
|
|
|
FM_ChangePitch,
|
|
|
|
FM_FindEntityByString,
|
|
|
|
FM_GetEntityIllum,
|
|
|
|
FM_FindEntityInSphere,
|
|
|
|
FM_FindClientInPVS,
|
|
|
|
FM_EntitiesInPVS,
|
|
|
|
FM_MakeVectors,
|
|
|
|
FM_AngleVectors,
|
|
|
|
FM_CreateEntity,
|
|
|
|
FM_RemoveEntity,
|
|
|
|
FM_CreateNamedEntity,
|
|
|
|
FM_MakeStatic,
|
|
|
|
FM_EntIsOnFloor,
|
|
|
|
FM_DropToFloor,
|
|
|
|
FM_WalkMove,
|
|
|
|
FM_SetOrigin,
|
|
|
|
FM_EmitSound,
|
|
|
|
FM_EmitAmbientSound,
|
|
|
|
FM_TraceLine,
|
|
|
|
FM_TraceToss,
|
|
|
|
FM_TraceMonsterHull,
|
|
|
|
FM_TraceHull,
|
|
|
|
FM_TraceModel,
|
|
|
|
FM_TraceTexture,
|
|
|
|
FM_TraceSphere,
|
|
|
|
FM_GetAimVector,
|
|
|
|
FM_ParticleEffect,
|
|
|
|
FM_LightStyle,
|
|
|
|
FM_DecalIndex,
|
|
|
|
FM_PointContents,
|
|
|
|
FM_MessageBegin,
|
|
|
|
FM_MessageEnd,
|
|
|
|
FM_WriteByte,
|
|
|
|
FM_WriteChar,
|
|
|
|
FM_WriteShort,
|
|
|
|
FM_WriteLong,
|
|
|
|
FM_WriteAngle,
|
|
|
|
FM_WriteCoord,
|
|
|
|
FM_WriteString,
|
|
|
|
FM_WriteEntity,
|
|
|
|
FM_CVarGetFloat,
|
|
|
|
FM_CVarGetString,
|
|
|
|
FM_CVarSetFloat,
|
|
|
|
FM_CVarSetString,
|
|
|
|
FM_FreeEntPrivateData,
|
|
|
|
FM_SzFromIndex,
|
|
|
|
FM_AllocString,
|
|
|
|
FM_RegUserMsg,
|
|
|
|
FM_AnimationAutomove,
|
|
|
|
FM_GetBonePosition,
|
|
|
|
FM_GetAttachment,
|
|
|
|
FM_SetView,
|
|
|
|
FM_Time,
|
|
|
|
FM_CrosshairAngle,
|
|
|
|
FM_FadeClientVolume,
|
|
|
|
FM_SetClientMaxspeed,
|
|
|
|
FM_CreateFakeClient,
|
|
|
|
FM_RunPlayerMove,
|
|
|
|
FM_NumberOfEntities,
|
|
|
|
FM_StaticDecal,
|
|
|
|
FM_PrecacheGeneric,
|
|
|
|
FM_BuildSoundMsg,
|
|
|
|
FM_GetPhysicsKeyValue,
|
|
|
|
FM_SetPhysicsKeyValue,
|
|
|
|
FM_GetPhysicsInfoString,
|
|
|
|
FM_PrecacheEvent,
|
|
|
|
FM_PlaybackEvent,
|
|
|
|
FM_CheckVisibility,
|
|
|
|
FM_GetCurrentPlayer,
|
|
|
|
FM_CanSkipPlayer,
|
|
|
|
FM_SetGroupMask,
|
|
|
|
FM_Voice_GetClientListening,
|
|
|
|
FM_Voice_SetClientListening,
|
|
|
|
FM_InfoKeyValue,
|
|
|
|
FM_SetKeyValue,
|
|
|
|
FM_SetClientKeyValue,
|
|
|
|
FM_GetPlayerAuthId,
|
|
|
|
FM_GetPlayerWONId,
|
|
|
|
FM_IsMapValid,
|
|
|
|
|
|
|
|
FM_Spawn,
|
|
|
|
FM_Think,
|
|
|
|
FM_Use,
|
|
|
|
FM_Touch,
|
|
|
|
FM_Blocked,
|
|
|
|
FM_KeyValue,
|
|
|
|
FM_SetAbsBox,
|
|
|
|
FM_ClientConnect,
|
|
|
|
|
|
|
|
FM_ClientDisconnect,
|
|
|
|
FM_ClientKill,
|
|
|
|
FM_ClientPutInServer,
|
|
|
|
FM_ClientCommand,
|
|
|
|
|
|
|
|
FM_ServerDeactivate,
|
|
|
|
|
|
|
|
FM_PlayerPreThink,
|
|
|
|
FM_PlayerPostThink,
|
|
|
|
|
|
|
|
FM_StartFrame,
|
|
|
|
FM_ParmsNewLevel,
|
|
|
|
FM_ParmsChangeLevel,
|
|
|
|
|
|
|
|
// Returns string describing current .dll. E.g., TeamFotrress 2, Half-Life
|
|
|
|
// This also gets called when the server is queried for information (for example, by a server browser tool)
|
|
|
|
FM_GetGameDescription,
|
2004-07-28 03:14:07 +00:00
|
|
|
|
|
|
|
// Spectator funcs
|
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
|
|
|
FM_SpectatorConnect,
|
|
|
|
FM_SpectatorDisconnect,
|
|
|
|
FM_SpectatorThink,
|
2004-07-28 03:14:07 +00:00
|
|
|
|
|
|
|
// Notify game .dll that engine is going to shut down. Allows mod authors to set a breakpoint.
|
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
|
|
|
FM_Sys_Error,
|
2004-07-28 03:14:07 +00:00
|
|
|
|
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
|
|
|
FM_PM_FindTextureType,
|
|
|
|
FM_RegisterEncoders,
|
2004-07-28 03:14:07 +00:00
|
|
|
|
|
|
|
// Create baselines for certain "unplaced" items.
|
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
|
|
|
FM_CreateInstancedBaselines,
|
|
|
|
|
|
|
|
FM_AllowLagCompensation,
|
2004-10-03 07:04:08 +00:00
|
|
|
FM_AlertMessage,
|
2005-08-18 09:33:51 +00:00
|
|
|
|
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
|
|
|
// NEW_DLL_FUNCTIONS:
|
2005-08-18 09:33:51 +00:00
|
|
|
FM_OnFreeEntPrivateData,
|
|
|
|
FM_GameShutdown,
|
|
|
|
FM_ShouldCollide,
|
2006-04-28 20:07:53 +00:00
|
|
|
FM_ClientUserInfoChanged, //passes id only
|
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
|
|
|
FM_LAST_DONT_USE_ME
|
2004-07-28 03:14:07 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
extern CVector<int> Engine[];
|
|
|
|
extern CVector<int> EnginePost[];
|
|
|
|
extern cell mCellResult;
|
|
|
|
extern float mFloatResult;
|
|
|
|
extern const char *mStringResult;
|
|
|
|
extern cell mlCellResult;
|
|
|
|
extern float mlFloatResult;
|
|
|
|
extern const char *mlStringResult;
|
|
|
|
extern int lastFmRes;
|
|
|
|
extern int retType;
|
|
|
|
|
2004-08-22 12:40:24 +00:00
|
|
|
#endif //_INCLUDE_FORWARD_H
|
|
|
|
|