darope@0: // vi: set ts=4 sw=4 : darope@0: // vim: set tw=75 : darope@0: darope@0: // api_info.cpp - info for api routines darope@0: darope@0: /* darope@0: * Copyright (c) 2001-2003 Will Day darope@0: * darope@0: * This file is part of Metamod. darope@0: * darope@0: * Metamod is free software; you can redistribute it and/or modify it darope@0: * under the terms of the GNU General Public License as published by the darope@0: * Free Software Foundation; either version 2 of the License, or (at darope@0: * your option) any later version. darope@0: * darope@0: * Metamod is distributed in the hope that it will be useful, but darope@0: * WITHOUT ANY WARRANTY; without even the implied warranty of darope@0: * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU darope@0: * General Public License for more details. darope@0: * darope@0: * You should have received a copy of the GNU General Public License darope@0: * along with Metamod; if not, write to the Free Software Foundation, darope@0: * Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA darope@0: * darope@0: * In addition, as a special exception, the author gives permission to darope@0: * link the code of this program with the Half-Life Game Engine ("HL darope@0: * Engine") and Modified Game Libraries ("MODs") developed by Valve, darope@0: * L.L.C ("Valve"). You must obey the GNU General Public License in all darope@0: * respects for all of the code used other than the HL Engine and MODs darope@0: * from Valve. If you modify this file, you may extend this exception darope@0: * to your version of the file, but you are not obligated to do so. If darope@0: * you do not wish to do so, delete this exception statement from your darope@0: * version. darope@0: * darope@0: */ darope@0: darope@0: #include // always darope@0: darope@0: #include "api_info.h" // me darope@0: darope@0: // trace flag, loglevel, name darope@0: dllapi_info_t dllapi_info = { darope@0: { mFALSE, 3, "GameDLLInit" }, // pfnGameInit darope@0: { mFALSE, 10, "DispatchSpawn" }, // pfnSpawn darope@0: { mFALSE, 16, "DispatchThink" }, // pfnThink darope@0: { mFALSE, 9, "DispatchUse" }, // pfnUse darope@0: { mFALSE, 11, "DispatchTouch" }, // pfnTouch darope@0: { mFALSE, 9, "DispatchBlocked" }, // pfnBlocked darope@0: { mFALSE, 10, "DispatchKeyValue" }, // pfnKeyValue darope@0: { mFALSE, 9, "DispatchSave" }, // pfnSave darope@0: { mFALSE, 9, "DispatchRestore" }, // pfnRestore darope@0: { mFALSE, 20, "DispatchObjectCollsionBox" }, // pfnSetAbsBox darope@0: { mFALSE, 9, "SaveWriteFields" }, // pfnSaveWriteFields darope@0: { mFALSE, 9, "SaveReadFields" }, // pfnSaveReadFields darope@0: { mFALSE, 9, "SaveGlobalState" }, // pfnSaveGlobalState darope@0: { mFALSE, 9, "RestoreGlobalState" }, // pfnRestoreGlobalState darope@0: { mFALSE, 9, "ResetGlobalState" }, // pfnResetGlobalState darope@0: { mFALSE, 3, "ClientConnect" }, // pfnClientConnect darope@0: { mFALSE, 3, "ClientDisconnect" }, // pfnClientDisconnect darope@0: { mFALSE, 3, "ClientKill" }, // pfnClientKill darope@0: { mFALSE, 3, "ClientPutInServer" }, // pfnClientPutInServer darope@0: { mFALSE, 9, "ClientCommand" }, // pfnClientCommand darope@0: { mFALSE, 11, "ClientUserInfoChanged" }, // pfnClientUserInfoChanged darope@0: { mFALSE, 3, "ServerActivate" }, // pfnServerActivate darope@0: { mFALSE, 3, "ServerDeactivate" }, // pfnServerDeactivate darope@0: { mFALSE, 14, "PlayerPreThink" }, // pfnPlayerPreThink darope@0: { mFALSE, 14, "PlayerPostThink" }, // pfnPlayerPostThink darope@0: { mFALSE, 18, "StartFrame" }, // pfnStartFrame darope@0: { mFALSE, 9, "ParmsNewLevel" }, // pfnParmsNewLevel darope@0: { mFALSE, 9, "ParmsChangeLevel" }, // pfnParmsChangeLevel darope@0: { mFALSE, 9, "GetGameDescription" }, // pfnGetGameDescription darope@0: { mFALSE, 9, "PlayerCustomization" }, // pfnPlayerCustomization darope@0: { mFALSE, 9, "SpectatorConnect" }, // pfnSpectatorConnect darope@0: { mFALSE, 9, "SpectatorDisconnect" }, // pfnSpectatorDisconnect darope@0: { mFALSE, 9, "SpectatorThink" }, // pfnSpectatorThink darope@0: { mFALSE, 3, "Sys_Error" }, // pfnSys_Error darope@0: { mFALSE, 13, "PM_Move" }, // pfnPM_Move darope@0: { mFALSE, 9, "PM_Init" }, // pfnPM_Init darope@0: { mFALSE, 9, "PM_FindTextureType" }, // pfnPM_FindTextureType darope@0: { mFALSE, 12, "SetupVisibility" }, // pfnSetupVisibility darope@0: { mFALSE, 12, "UpdateClientData" }, // pfnUpdateClientData darope@0: { mFALSE, 16, "AddToFullPack" }, // pfnAddToFullPack darope@0: { mFALSE, 9, "CreateBaseline" }, // pfnCreateBaseline darope@0: { mFALSE, 9, "RegisterEncoders" }, // pfnRegisterEncoders darope@0: { mFALSE, 9, "GetWeaponData" }, // pfnGetWeaponData darope@0: { mFALSE, 15, "CmdStart" }, // pfnCmdStart darope@0: { mFALSE, 15, "CmdEnd" }, // pfnCmdEnd darope@0: { mFALSE, 9, "ConnectionlessPacket" }, // pfnConnectionlessPacket darope@0: { mFALSE, 9, "GetHullBounds" }, // pfnGetHullBounds darope@0: { mFALSE, 9, "CreateInstancedBaselines" }, // pfnCreateInstancedBaselines darope@0: { mFALSE, 3, "InconsistentFile" }, // pfnInconsistentFile darope@0: { mFALSE, 20, "AllowLagCompensation" }, // pfnAllowLagCompensation darope@0: { mFALSE, 0, NULL }, darope@0: }; darope@0: darope@0: newapi_info_t newapi_info = { darope@0: { mFALSE, 16, "OnFreeEntPrivateData" }, // pfnOnFreeEntPrivateData darope@0: { mFALSE, 3, "GameShutdown" }, // pfnGameShutdown darope@0: { mFALSE, 14, "ShouldCollide" }, // pfnShouldCollide darope@249: // Added 2005-08-11 (no SDK update) darope@248: { mFALSE, 3, "CvarValue" }, // pfnCvarValue darope@249: // Added 2005-11-22 (no SDK update) darope@249: { mFALSE, 3, "CvarValue2" }, // pfnCvarValue2 darope@0: { mFALSE, 0, NULL }, darope@0: }; darope@0: darope@0: engine_info_t engine_info = { darope@0: { mFALSE, 13, "PrecacheModel" }, // pfnPrecacheModel darope@0: { mFALSE, 13, "PrecacheSound" }, // pfnPrecacheSound darope@0: { mFALSE, 18, "SetModel" }, // pfnSetModel darope@0: { mFALSE, 34, "ModelIndex" }, // pfnModelIndex darope@0: { mFALSE, 10, "ModelFrames" }, // pfnModelFrames darope@0: { mFALSE, 14, "SetSize" }, // pfnSetSize darope@0: { mFALSE, 9, "ChangeLevel" }, // pfnChangeLevel darope@0: { mFALSE, 9, "GetSpawnParms" }, // pfnGetSpawnParms darope@0: { mFALSE, 9, "SaveSpawnParms" }, // pfnSaveSpawnParms darope@0: { mFALSE, 9, "VecToYaw" }, // pfnVecToYaw darope@0: { mFALSE, 14, "VecToAngles" }, // pfnVecToAngles darope@0: { mFALSE, 9, "MoveToOrigin" }, // pfnMoveToOrigin darope@0: { mFALSE, 9, "ChangeYaw" }, // pfnChangeYaw darope@0: { mFALSE, 9, "ChangePitch" }, // pfnChangePitch darope@0: { mFALSE, 32, "FindEntityByString" }, // pfnFindEntityByString darope@0: { mFALSE, 9, "GetEntityIllum" }, // pfnGetEntityIllum darope@0: { mFALSE, 9, "FindEntityInSphere" }, // pfnFindEntityInSphere darope@0: { mFALSE, 19, "FindClientInPVS" }, // pfnFindClientInPVS darope@0: { mFALSE, 9, "EntitiesInPVS" }, // pfnEntitiesInPVS darope@0: { mFALSE, 40, "MakeVectors" }, // pfnMakeVectors darope@0: { mFALSE, 9, "AngleVectors" }, // pfnAngleVectors darope@0: { mFALSE, 13, "CreateEntity" }, // pfnCreateEntity darope@0: { mFALSE, 13, "RemoveEntity" }, // pfnRemoveEntity darope@0: { mFALSE, 13, "CreateNamedEntity" }, // pfnCreateNamedEntity darope@0: { mFALSE, 9, "MakeStatic" }, // pfnMakeStatic darope@0: { mFALSE, 9, "EntIsOnFloor" }, // pfnEntIsOnFloor darope@0: { mFALSE, 9, "DropToFloor" }, // pfnDropToFloor darope@0: { mFALSE, 9, "WalkMove" }, // pfnWalkMove darope@0: { mFALSE, 14, "SetOrigin" }, // pfnSetOrigin darope@0: { mFALSE, 12, "EmitSound" }, // pfnEmitSound darope@0: { mFALSE, 12, "EmitAmbientSound" }, // pfnEmitAmbientSound darope@0: { mFALSE, 20, "TraceLine" }, // pfnTraceLine darope@0: { mFALSE, 9, "TraceToss" }, // pfnTraceToss darope@0: { mFALSE, 9, "TraceMonsterHull" }, // pfnTraceMonsterHull darope@0: { mFALSE, 9, "TraceHull" }, // pfnTraceHull darope@0: { mFALSE, 9, "TraceModel" }, // pfnTraceModel darope@0: { mFALSE, 15, "TraceTexture" }, // pfnTraceTexture // CS: when moving darope@0: { mFALSE, 9, "TraceSphere" }, // pfnTraceSphere darope@0: { mFALSE, 9, "GetAimVector" }, // pfnGetAimVector darope@0: { mFALSE, 9, "ServerCommand" }, // pfnServerCommand darope@0: { mFALSE, 9, "ServerExecute" }, // pfnServerExecute darope@0: { mFALSE, 11, "engClientCommand" }, // pfnClientCommand // d'oh, ClientCommand in dllapi too darope@0: { mFALSE, 9, "ParticleEffect" }, // pfnParticleEffect darope@0: { mFALSE, 9, "LightStyle" }, // pfnLightStyle darope@0: { mFALSE, 9, "DecalIndex" }, // pfnDecalIndex darope@0: { mFALSE, 15, "PointContents" }, // pfnPointContents // CS: when moving darope@0: { mFALSE, 22, "MessageBegin" }, // pfnMessageBegin darope@0: { mFALSE, 22, "MessageEnd" }, // pfnMessageEnd darope@0: { mFALSE, 30, "WriteByte" }, // pfnWriteByte darope@0: { mFALSE, 23, "WriteChar" }, // pfnWriteChar darope@0: { mFALSE, 24, "WriteShort" }, // pfnWriteShort darope@0: { mFALSE, 23, "WriteLong" }, // pfnWriteLong darope@0: { mFALSE, 23, "WriteAngle" }, // pfnWriteAngle darope@0: { mFALSE, 23, "WriteCoord" }, // pfnWriteCoord darope@0: { mFALSE, 25, "WriteString" }, // pfnWriteString darope@0: { mFALSE, 23, "WriteEntity" }, // pfnWriteEntity darope@0: { mFALSE, 9, "CVarRegister" }, // pfnCVarRegister darope@0: { mFALSE, 21, "CVarGetFloat" }, // pfnCVarGetFloat darope@0: { mFALSE, 9, "CVarGetString" }, // pfnCVarGetString darope@0: { mFALSE, 10, "CVarSetFloat" }, // pfnCVarSetFloat darope@0: { mFALSE, 9, "CVarSetString" }, // pfnCVarSetString darope@0: { mFALSE, 15, "AlertMessage" }, // pfnAlertMessage darope@0: { mFALSE, 17, "EngineFprintf" }, // pfnEngineFprintf darope@0: { mFALSE, 14, "PvAllocEntPrivateData" }, // pfnPvAllocEntPrivateData darope@0: { mFALSE, 9, "PvEntPrivateData" }, // pfnPvEntPrivateData darope@0: { mFALSE, 9, "FreeEntPrivateData" }, // pfnFreeEntPrivateData darope@0: { mFALSE, 9, "SzFromIndex" }, // pfnSzFromIndex darope@0: { mFALSE, 10, "AllocString" }, // pfnAllocString darope@0: { mFALSE, 9, "GetVarsOfEnt" }, // pfnGetVarsOfEnt darope@0: { mFALSE, 14, "PEntityOfEntOffset" }, // pfnPEntityOfEntOffset darope@0: { mFALSE, 19, "EntOffsetOfPEntity" }, // pfnEntOffsetOfPEntity darope@0: { mFALSE, 14, "IndexOfEdict" }, // pfnIndexOfEdict darope@0: { mFALSE, 17, "PEntityOfEntIndex" }, // pfnPEntityOfEntIndex darope@0: { mFALSE, 9, "FindEntityByVars" }, // pfnFindEntityByVars darope@0: { mFALSE, 14, "GetModelPtr" }, // pfnGetModelPtr darope@0: { mFALSE, 9, "RegUserMsg" }, // pfnRegUserMsg darope@0: { mFALSE, 9, "AnimationAutomove" }, // pfnAnimationAutomove darope@0: { mFALSE, 9, "GetBonePosition" }, // pfnGetBonePosition darope@0: { mFALSE, 9, "FunctionFromName" }, // pfnFunctionFromName darope@0: { mFALSE, 9, "NameForFunction" }, // pfnNameForFunction darope@0: { mFALSE, 9, "ClientPrintf" }, // pfnClientPrintf darope@0: { mFALSE, 9, "ServerPrint" }, // pfnServerPrint darope@0: { mFALSE, 13, "Cmd_Args" }, // pfnCmd_Args darope@0: { mFALSE, 13, "Cmd_Argv" }, // pfnCmd_Argv darope@0: { mFALSE, 13, "Cmd_Argc" }, // pfnCmd_Argc darope@0: { mFALSE, 9, "GetAttachment" }, // pfnGetAttachment darope@0: { mFALSE, 9, "CRC32_Init" }, // pfnCRC32_Init darope@0: { mFALSE, 9, "CRC32_ProcessBuffer" }, // pfnCRC32_ProcessBuffer darope@0: { mFALSE, 9, "CRC32_ProcessByte" }, // pfnCRC32_ProcessByte darope@0: { mFALSE, 9, "CRC32_Final" }, // pfnCRC32_Final darope@0: { mFALSE, 16, "RandomLong" }, // pfnRandomLong darope@0: { mFALSE, 14, "RandomFloat" }, // pfnRandomFloat // CS: when firing darope@0: { mFALSE, 14, "SetView" }, // pfnSetView darope@0: { mFALSE, 9, "Time" }, // pfnTime darope@0: { mFALSE, 9, "CrosshairAngle" }, // pfnCrosshairAngle darope@0: { mFALSE, 10, "LoadFileForMe" }, // pfnLoadFileForMe darope@0: { mFALSE, 10, "FreeFile" }, // pfnFreeFile darope@0: { mFALSE, 9, "EndSection" }, // pfnEndSection darope@0: { mFALSE, 9, "CompareFileTime" }, // pfnCompareFileTime darope@0: { mFALSE, 9, "GetGameDir" }, // pfnGetGameDir darope@0: { mFALSE, 9, "Cvar_RegisterVariable" }, // pfnCvar_RegisterVariable darope@0: { mFALSE, 9, "FadeClientVolume" }, // pfnFadeClientVolume darope@0: { mFALSE, 14, "SetClientMaxspeed" }, // pfnSetClientMaxspeed darope@0: { mFALSE, 9, "CreateFakeClient" }, // pfnCreateFakeClient darope@0: { mFALSE, 9, "RunPlayerMove" }, // pfnRunPlayerMove darope@0: { mFALSE, 9, "NumberOfEntities" }, // pfnNumberOfEntities darope@0: { mFALSE, 17, "GetInfoKeyBuffer" }, // pfnGetInfoKeyBuffer darope@0: { mFALSE, 13, "InfoKeyValue" }, // pfnInfoKeyValue darope@0: { mFALSE, 9, "SetKeyValue" }, // pfnSetKeyValue darope@0: { mFALSE, 12, "SetClientKeyValue" }, // pfnSetClientKeyValue darope@0: { mFALSE, 9, "IsMapValid" }, // pfnIsMapValid darope@0: { mFALSE, 9, "StaticDecal" }, // pfnStaticDecal darope@0: { mFALSE, 9, "PrecacheGeneric" }, // pfnPrecacheGeneric darope@0: { mFALSE, 10, "GetPlayerUserId" }, // pfnGetPlayerUserId darope@0: { mFALSE, 9, "BuildSoundMsg" }, // pfnBuildSoundMsg darope@0: { mFALSE, 9, "IsDedicatedServer" }, // pfnIsDedicatedServer darope@0: { mFALSE, 9, "CVarGetPointer" }, // pfnCVarGetPointer darope@0: { mFALSE, 9, "GetPlayerWONId" }, // pfnGetPlayerWONId darope@0: { mFALSE, 9, "Info_RemoveKey" }, // pfnInfo_RemoveKey darope@0: { mFALSE, 15, "GetPhysicsKeyValue" }, // pfnGetPhysicsKeyValue darope@0: { mFALSE, 14, "SetPhysicsKeyValue" }, // pfnSetPhysicsKeyValue darope@0: { mFALSE, 15, "GetPhysicsInfoString" }, // pfnGetPhysicsInfoString darope@0: { mFALSE, 13, "PrecacheEvent" }, // pfnPrecacheEvent darope@0: { mFALSE, 9, "PlaybackEvent" }, // pfnPlaybackEvent darope@0: { mFALSE, 31, "SetFatPVS" }, // pfnSetFatPVS darope@0: { mFALSE, 31, "SetFatPAS" }, // pfnSetFatPAS darope@0: { mFALSE, 50, "CheckVisibility" }, // pfnCheckVisibility darope@0: { mFALSE, 37, "DeltaSetField" }, // pfnDeltaSetField darope@0: { mFALSE, 38, "DeltaUnsetField" }, // pfnDeltaUnsetField darope@0: { mFALSE, 9, "DeltaAddEncoder" }, // pfnDeltaAddEncoder darope@0: { mFALSE, 45, "GetCurrentPlayer" }, // pfnGetCurrentPlayer darope@0: { mFALSE, 14, "CanSkipPlayer" }, // pfnCanSkipPlayer darope@0: { mFALSE, 9, "DeltaFindField" }, // pfnDeltaFindField darope@0: { mFALSE, 37, "DeltaSetFieldByIndex" }, // pfnDeltaSetFieldByIndex darope@0: { mFALSE, 38, "DeltaUnsetFieldByIndex" }, // pfnDeltaUnsetFieldByIndex darope@0: { mFALSE, 9, "SetGroupMask" }, // pfnSetGroupMask darope@0: { mFALSE, 9, "engCreateInstancedBaseline" }, // pfnCreateInstancedBaseline // d'oh, CreateInstancedBaseline in dllapi too darope@0: { mFALSE, 9, "Cvar_DirectSet" }, // pfnCvar_DirectSet darope@0: { mFALSE, 9, "ForceUnmodified" }, // pfnForceUnmodified darope@0: { mFALSE, 9, "GetPlayerStats" }, // pfnGetPlayerStats darope@0: { mFALSE, 3, "AddServerCommand" }, // pfnAddServerCommand darope@0: // Added in SDK 2.2: darope@0: { mFALSE, 9, "Voice_GetClientListening" }, // Voice_GetClientListening darope@0: { mFALSE, 9, "Voice_SetClientListening" }, // Voice_SetClientListening darope@0: // Added for HL 1109 (no SDK update): darope@0: { mFALSE, 9, "GetPlayerAuthId" }, // pfnGetPlayerAuthId darope@249: // Added 2003-11-10 (no SDK update): darope@0: { mFALSE, 30, "SequenceGet" }, // pfnSequenceGet darope@0: { mFALSE, 30, "SequencePickSentence" }, // pfnSequencePickSentence darope@0: { mFALSE, 30, "GetFileSize" }, // pfnGetFileSize darope@0: { mFALSE, 30, "GetApproxWavePlayLen" }, // pfnGetApproxWavePlayLen darope@0: { mFALSE, 30, "IsCareerMatch" }, // pfnIsCareerMatch darope@0: { mFALSE, 30, "GetLocalizedStringLength" }, // pfnGetLocalizedStringLength darope@0: { mFALSE, 30, "RegisterTutorMessageShown" }, // pfnRegisterTutorMessageShown darope@0: { mFALSE, 30, "GetTimesTutorMessageShown" }, // pfnGetTimesTutorMessageShown darope@0: { mFALSE, 30, "ProcessTutorMessageDecayBuffer" }, // pfnProcessTutorMessageDecayBuffer darope@0: { mFALSE, 30, "ConstructTutorMessageDecayBuffer" }, // pfnConstructTutorMessageDecayBuffer darope@0: { mFALSE, 9, "ResetTutorMessageDecayData" }, // pfnResetTutorMessageDecayData darope@249: // Added 2005-08-11 (no SDK update) darope@248: { mFALSE, 3, "QueryClientCvarValue" }, //pfnQueryClientCvarValue darope@249: // Added 2005-11-22 (no SDK update) darope@249: { mFALSE, 3, "QueryClientCvarValue2" }, //pfnQueryClientCvarValue2 darope@0: // end darope@0: { mFALSE, 0, NULL }, darope@0: };