amxmodx/dlls/fakemeta/forward.h

149 lines
8.3 KiB
C
Raw Normal View History

2004-07-28 03:14:07 +00:00
#ifndef _INCLUDE_FORWARD_H
#define _INCLUDE_FORWARD_H
#define ENGFUNC_NUM 108
#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 {
FM_PrecacheModel = 1, // int ) (char* s);
FM_PrecacheSound, // int ) (char* s);
FM_SetModel, // void ) (edict_t *e, const char *m);
FM_ModelIndex, // int ) (const char *m);
FM_ModelFrames, // int ) (int modelIndex);
FM_SetSize, // void ) (edict_t *e, const float *rgflMin, const float *rgflMax);
FM_ChangeLevel, // void ) (char* s1, char* s2);
FM_VecToYaw, // float) (const float *rgflVector);
FM_VecToAngles, // void ) (const float *rgflVectorIn, float *rgflVectorOut);
FM_MoveToOrigin, // void ) (edict_t *ent, const float *pflGoal, float dist, int iMoveType);
FM_ChangeYaw, // void ) (edict_t* ent);
FM_ChangePitch, // void ) (edict_t* ent);
FM_FindEntityByString, // edict) (edict_t *pEdictStartSearchAfter, const char *pszField, const char *pszValue);
FM_GetEntityIllum, // int ) (edict_t* pEnt);
FM_FindEntityInSphere, // edict) (edict_t *pEdictStartSearchAfter, const float *org, float rad);
FM_FindClientInPVS, // edict) (edict_t *pEdict);
FM_EntitiesInPVS, // edict) (edict_t *pplayer);
FM_MakeVectors, // void ) (const float *rgflVector);
FM_AngleVectors, // void ) (const float *rgflVector, float *forward, float *right, float *up);
FM_CreateEntity, // edict) (void);
FM_RemoveEntity, // void ) (edict_t* e);
FM_CreateNamedEntity, // edict) (int className);
FM_MakeStatic, // void ) (edict_t *ent);
FM_EntIsOnFloor, // int ) (edict_t *e);
FM_DropToFloor, // int ) (edict_t* e);
FM_WalkMove, // int ) (edict_t *ent, float yaw, float dist, int iMode);
FM_SetOrigin, // void ) (edict_t *e, const float *rgflOrigin);
FM_EmitSound, // void ) (edict_t *entity, int channel, const char *sample, /*int*/float volume, float attenuation, int fFlags, int pitch);
FM_EmitAmbientSound, // void ) (edict_t *entity, float *pos, const char *samp, float vol, float attenuation, int fFlags, int pitch);
FM_TraceLine, // void ) (const float *v1, const float *v2, int fNoMonsters, edict_t *pentToSkip, TraceResult *ptr);
FM_TraceToss, // void ) (edict_t* pent, edict_t* pentToIgnore, TraceResult *ptr);
FM_TraceMonsterHull, // int ) (edict_t *pEdict, const float *v1, const float *v2, int fNoMonsters, edict_t *pentToSkip, TraceResult *ptr);
FM_TraceHull, // void ) (const float *v1, const float *v2, int fNoMonsters, int hullNumber, edict_t *pentToSkip, TraceResult *ptr);
FM_TraceModel, // void ) (const float *v1, const float *v2, int hullNumber, edict_t *pent, TraceResult *ptr);
FM_TraceTexture, // const char *) (edict_t *pTextureEntity, const float *v1, const float *v2 );
FM_TraceSphere, // void ) (const float *v1, const float *v2, int fNoMonsters, float radius, edict_t *pentToSkip, TraceResult *ptr);
FM_GetAimVector, // void ) (edict_t* ent, float speed, float *rgflReturn);
FM_ParticleEffect, // void ) (const float *org, const float *dir, float color, float count);
FM_LightStyle, // void ) (int style, char* val);
FM_DecalIndex, // int ) (const char *name);
FM_PointContents, // int ) (const float *rgflVector);
FM_FreeEntPrivateData, // void ) (edict_t *pEdict);
FM_SzFromIndex, // const char * ) (int iString);
FM_AllocString, // int ) (const char *szValue);
FM_RegUserMsg, // int ) (const char *pszName, int iSize);
FM_AnimationAutomove, // void ) (const edict_t* pEdict, float flTime);
FM_GetBonePosition, // void ) (const edict_t* pEdict, int iBone, float *rgflOrigin, float *rgflAngles );
FM_GetAttachment, // void ) (const edict_t *pEdict, int iAttachment, float *rgflOrigin, float *rgflAngles );
FM_SetView, // void ) (const edict_t *pClient, const edict_t *pViewent );
FM_Time, // float) ( void );
FM_CrosshairAngle, // void ) (const edict_t *pClient, float pitch, float yaw);
FM_FadeClientVolume, // void ) (const edict_t *pEdict, int fadePercent, int fadeOutSeconds, int holdTime, int fadeInSeconds);
FM_SetClientMaxspeed, // void ) (const edict_t *pEdict, float fNewMaxspeed);
FM_CreateFakeClient, // edict) (const char *netname); // returns NULL if fake client can't be created
FM_RunPlayerMove, // void ) (edict_t *fakeclient, const float *viewangles, float forwardmove, float sidemove, float upmove, unsigned short buttons, byte impulse, byte msec );
FM_NumberOfEntities, // int ) (void);
FM_StaticDecal, // void ) ( const float *origin, int decalIndex, int entityIndex, int modelIndex );
FM_PrecacheGeneric, // int ) (char* s);
FM_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);
FM_GetPhysicsKeyValue, // const char* ) ( const edict_t *pClient, const char *key );
FM_SetPhysicsKeyValue, // void ) ( const edict_t *pClient, const char *key, const char *value );
FM_GetPhysicsInfoString,// const char* ) ( const edict_t *pClient );
FM_PrecacheEvent, // unsigned short ) ( int type, const char*psz );
FM_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 );
FM_CheckVisibility, //) ( const edict_t *entity, unsigned char *pset );
FM_GetCurrentPlayer, //) ( void );
FM_CanSkipPlayer, //) ( const edict_t *player );
FM_SetGroupMask, //) ( int mask, int op );
FM_GetClientListening, // bool (int iReceiver, int iSender)
FM_SetClientListening, // bool (int iReceiver, int iSender, bool Listen)
FM_MessageBegin, // void (int msg_dest, int msg_type, const float *pOrigin, edict_t *ed)
FM_WriteCoord, // void (float)
FM_WriteAngle, // void (float)
FM_InfoKeyValue, // char* ) (char *infobuffer, char *key);
FM_SetKeyValue, // void ) (char *infobuffer, char *key, char *value);
FM_SetClientKeyValue, // void ) (int clientIndex, char *infobuffer, char *key, char *value);
FM_GameInit, // void) ( void );
FM_Spawn, // int ) ( edict_t *pent );
FM_Think, // void ) ( edict_t *pent );
FM_Use, // void ) ( edict_t *pentUsed, edict_t *pentOther );
FM_Touch, // void ) ( edict_t *pentTouched, edict_t *pentOther );
FM_Blocked, // void ) ( edict_t *pentBlocked, edict_t *pentOther );
FM_KeyValue, // void ) ( edict_t *pentKeyvalue, KeyValueData *pkvd );
FM_SetAbsBox, // void ) ( edict_t *pent );
FM_ClientConnect, // bool) ( edict_t *pEntity, const char *pszName, const char *pszAddress, char szRejectReason[ 128 ] );
FM_ClientDisconnect, // void ) ( edict_t *pEntity );
FM_ClientKill, // void ) ( edict_t *pEntity );
FM_ClientPutInServer, // void ) ( edict_t *pEntity );
FM_ClientCommand, // void ) ( edict_t *pEntity );
FM_ServerDeactivate, // void) ( void );
FM_PlayerPreThink, // void ) ( edict_t *pEntity );
FM_PlayerPostThink, // void ) ( edict_t *pEntity );
FM_StartFrame, // void ) ( void );
FM_ParmsNewLevel, // void ) ( void );
FM_ParmsChangeLevel, // void ) ( void );
// Returns string describing current .dll. E.g., TeamFotrress 2, Half-Life
FM_GetGameDescription, // const char * )( void );
// Spectator funcs
FM_SpectatorConnect, // void) ( edict_t *pEntity );
FM_SpectatorDisconnect, // void ) ( edict_t *pEntity );
FM_SpectatorThink, // void ) ( edict_t *pEntity );
// Notify game .dll that engine is going to shut down. Allows mod authors to set a breakpoint.
FM_Sys_Error, // void ) ( const char *error_string );
FM_PM_FindTextureType, // char )( char *name );
FM_RegisterEncoders, // void ) ( void );
// Enumerates player hulls. Returns 0 if the hull number doesn't exist, 1 otherwise
FM_GetHullBounds, // int) ( int hullnumber, float *mins, float *maxs );
// Create baselines for certain "unplaced" items.
FM_CreateInstancedBaselines, // void ) ( void );
FM_pfnAllowLagCompensation, // int )( void );
};
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;
#endif //_INCLUDE_FORWARD_H