1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000
1.2 +++ b/trace_plugin/api_info.cpp Tue Apr 06 07:36:14 2004 +0000
1.3 @@ -0,0 +1,264 @@
1.4 +// vi: set ts=4 sw=4 :
1.5 +// vim: set tw=75 :
1.6 +
1.7 +// api_info.cpp - info for api routines
1.8 +
1.9 +/*
1.10 + * Copyright (c) 2001-2003 Will Day <[email protected]>
1.11 + *
1.12 + * This file is part of Metamod.
1.13 + *
1.14 + * Metamod is free software; you can redistribute it and/or modify it
1.15 + * under the terms of the GNU General Public License as published by the
1.16 + * Free Software Foundation; either version 2 of the License, or (at
1.17 + * your option) any later version.
1.18 + *
1.19 + * Metamod is distributed in the hope that it will be useful, but
1.20 + * WITHOUT ANY WARRANTY; without even the implied warranty of
1.21 + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
1.22 + * General Public License for more details.
1.23 + *
1.24 + * You should have received a copy of the GNU General Public License
1.25 + * along with Metamod; if not, write to the Free Software Foundation,
1.26 + * Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
1.27 + *
1.28 + * In addition, as a special exception, the author gives permission to
1.29 + * link the code of this program with the Half-Life Game Engine ("HL
1.30 + * Engine") and Modified Game Libraries ("MODs") developed by Valve,
1.31 + * L.L.C ("Valve"). You must obey the GNU General Public License in all
1.32 + * respects for all of the code used other than the HL Engine and MODs
1.33 + * from Valve. If you modify this file, you may extend this exception
1.34 + * to your version of the file, but you are not obligated to do so. If
1.35 + * you do not wish to do so, delete this exception statement from your
1.36 + * version.
1.37 + *
1.38 + */
1.39 +
1.40 +#include <extdll.h> // always
1.41 +
1.42 +#include "api_info.h" // me
1.43 +
1.44 +// trace flag, loglevel, name
1.45 +dllapi_info_t dllapi_info = {
1.46 + { mFALSE, 3, "GameDLLInit" }, // pfnGameInit
1.47 + { mFALSE, 10, "DispatchSpawn" }, // pfnSpawn
1.48 + { mFALSE, 16, "DispatchThink" }, // pfnThink
1.49 + { mFALSE, 9, "DispatchUse" }, // pfnUse
1.50 + { mFALSE, 11, "DispatchTouch" }, // pfnTouch
1.51 + { mFALSE, 9, "DispatchBlocked" }, // pfnBlocked
1.52 + { mFALSE, 10, "DispatchKeyValue" }, // pfnKeyValue
1.53 + { mFALSE, 9, "DispatchSave" }, // pfnSave
1.54 + { mFALSE, 9, "DispatchRestore" }, // pfnRestore
1.55 + { mFALSE, 20, "DispatchObjectCollsionBox" }, // pfnSetAbsBox
1.56 + { mFALSE, 9, "SaveWriteFields" }, // pfnSaveWriteFields
1.57 + { mFALSE, 9, "SaveReadFields" }, // pfnSaveReadFields
1.58 + { mFALSE, 9, "SaveGlobalState" }, // pfnSaveGlobalState
1.59 + { mFALSE, 9, "RestoreGlobalState" }, // pfnRestoreGlobalState
1.60 + { mFALSE, 9, "ResetGlobalState" }, // pfnResetGlobalState
1.61 + { mFALSE, 3, "ClientConnect" }, // pfnClientConnect
1.62 + { mFALSE, 3, "ClientDisconnect" }, // pfnClientDisconnect
1.63 + { mFALSE, 3, "ClientKill" }, // pfnClientKill
1.64 + { mFALSE, 3, "ClientPutInServer" }, // pfnClientPutInServer
1.65 + { mFALSE, 9, "ClientCommand" }, // pfnClientCommand
1.66 + { mFALSE, 11, "ClientUserInfoChanged" }, // pfnClientUserInfoChanged
1.67 + { mFALSE, 3, "ServerActivate" }, // pfnServerActivate
1.68 + { mFALSE, 3, "ServerDeactivate" }, // pfnServerDeactivate
1.69 + { mFALSE, 14, "PlayerPreThink" }, // pfnPlayerPreThink
1.70 + { mFALSE, 14, "PlayerPostThink" }, // pfnPlayerPostThink
1.71 + { mFALSE, 18, "StartFrame" }, // pfnStartFrame
1.72 + { mFALSE, 9, "ParmsNewLevel" }, // pfnParmsNewLevel
1.73 + { mFALSE, 9, "ParmsChangeLevel" }, // pfnParmsChangeLevel
1.74 + { mFALSE, 9, "GetGameDescription" }, // pfnGetGameDescription
1.75 + { mFALSE, 9, "PlayerCustomization" }, // pfnPlayerCustomization
1.76 + { mFALSE, 9, "SpectatorConnect" }, // pfnSpectatorConnect
1.77 + { mFALSE, 9, "SpectatorDisconnect" }, // pfnSpectatorDisconnect
1.78 + { mFALSE, 9, "SpectatorThink" }, // pfnSpectatorThink
1.79 + { mFALSE, 3, "Sys_Error" }, // pfnSys_Error
1.80 + { mFALSE, 13, "PM_Move" }, // pfnPM_Move
1.81 + { mFALSE, 9, "PM_Init" }, // pfnPM_Init
1.82 + { mFALSE, 9, "PM_FindTextureType" }, // pfnPM_FindTextureType
1.83 + { mFALSE, 12, "SetupVisibility" }, // pfnSetupVisibility
1.84 + { mFALSE, 12, "UpdateClientData" }, // pfnUpdateClientData
1.85 + { mFALSE, 16, "AddToFullPack" }, // pfnAddToFullPack
1.86 + { mFALSE, 9, "CreateBaseline" }, // pfnCreateBaseline
1.87 + { mFALSE, 9, "RegisterEncoders" }, // pfnRegisterEncoders
1.88 + { mFALSE, 9, "GetWeaponData" }, // pfnGetWeaponData
1.89 + { mFALSE, 15, "CmdStart" }, // pfnCmdStart
1.90 + { mFALSE, 15, "CmdEnd" }, // pfnCmdEnd
1.91 + { mFALSE, 9, "ConnectionlessPacket" }, // pfnConnectionlessPacket
1.92 + { mFALSE, 9, "GetHullBounds" }, // pfnGetHullBounds
1.93 + { mFALSE, 9, "CreateInstancedBaselines" }, // pfnCreateInstancedBaselines
1.94 + { mFALSE, 3, "InconsistentFile" }, // pfnInconsistentFile
1.95 + { mFALSE, 20, "AllowLagCompensation" }, // pfnAllowLagCompensation
1.96 + { mFALSE, 0, NULL },
1.97 +};
1.98 +
1.99 +newapi_info_t newapi_info = {
1.100 + { mFALSE, 16, "OnFreeEntPrivateData" }, // pfnOnFreeEntPrivateData
1.101 + { mFALSE, 3, "GameShutdown" }, // pfnGameShutdown
1.102 + { mFALSE, 14, "ShouldCollide" }, // pfnShouldCollide
1.103 + { mFALSE, 0, NULL },
1.104 +};
1.105 +
1.106 +engine_info_t engine_info = {
1.107 + { mFALSE, 13, "PrecacheModel" }, // pfnPrecacheModel
1.108 + { mFALSE, 13, "PrecacheSound" }, // pfnPrecacheSound
1.109 + { mFALSE, 18, "SetModel" }, // pfnSetModel
1.110 + { mFALSE, 34, "ModelIndex" }, // pfnModelIndex
1.111 + { mFALSE, 10, "ModelFrames" }, // pfnModelFrames
1.112 + { mFALSE, 14, "SetSize" }, // pfnSetSize
1.113 + { mFALSE, 9, "ChangeLevel" }, // pfnChangeLevel
1.114 + { mFALSE, 9, "GetSpawnParms" }, // pfnGetSpawnParms
1.115 + { mFALSE, 9, "SaveSpawnParms" }, // pfnSaveSpawnParms
1.116 + { mFALSE, 9, "VecToYaw" }, // pfnVecToYaw
1.117 + { mFALSE, 14, "VecToAngles" }, // pfnVecToAngles
1.118 + { mFALSE, 9, "MoveToOrigin" }, // pfnMoveToOrigin
1.119 + { mFALSE, 9, "ChangeYaw" }, // pfnChangeYaw
1.120 + { mFALSE, 9, "ChangePitch" }, // pfnChangePitch
1.121 + { mFALSE, 32, "FindEntityByString" }, // pfnFindEntityByString
1.122 + { mFALSE, 9, "GetEntityIllum" }, // pfnGetEntityIllum
1.123 + { mFALSE, 9, "FindEntityInSphere" }, // pfnFindEntityInSphere
1.124 + { mFALSE, 19, "FindClientInPVS" }, // pfnFindClientInPVS
1.125 + { mFALSE, 9, "EntitiesInPVS" }, // pfnEntitiesInPVS
1.126 + { mFALSE, 40, "MakeVectors" }, // pfnMakeVectors
1.127 + { mFALSE, 9, "AngleVectors" }, // pfnAngleVectors
1.128 + { mFALSE, 13, "CreateEntity" }, // pfnCreateEntity
1.129 + { mFALSE, 13, "RemoveEntity" }, // pfnRemoveEntity
1.130 + { mFALSE, 13, "CreateNamedEntity" }, // pfnCreateNamedEntity
1.131 + { mFALSE, 9, "MakeStatic" }, // pfnMakeStatic
1.132 + { mFALSE, 9, "EntIsOnFloor" }, // pfnEntIsOnFloor
1.133 + { mFALSE, 9, "DropToFloor" }, // pfnDropToFloor
1.134 + { mFALSE, 9, "WalkMove" }, // pfnWalkMove
1.135 + { mFALSE, 14, "SetOrigin" }, // pfnSetOrigin
1.136 + { mFALSE, 12, "EmitSound" }, // pfnEmitSound
1.137 + { mFALSE, 12, "EmitAmbientSound" }, // pfnEmitAmbientSound
1.138 + { mFALSE, 20, "TraceLine" }, // pfnTraceLine
1.139 + { mFALSE, 9, "TraceToss" }, // pfnTraceToss
1.140 + { mFALSE, 9, "TraceMonsterHull" }, // pfnTraceMonsterHull
1.141 + { mFALSE, 9, "TraceHull" }, // pfnTraceHull
1.142 + { mFALSE, 9, "TraceModel" }, // pfnTraceModel
1.143 + { mFALSE, 15, "TraceTexture" }, // pfnTraceTexture // CS: when moving
1.144 + { mFALSE, 9, "TraceSphere" }, // pfnTraceSphere
1.145 + { mFALSE, 9, "GetAimVector" }, // pfnGetAimVector
1.146 + { mFALSE, 9, "ServerCommand" }, // pfnServerCommand
1.147 + { mFALSE, 9, "ServerExecute" }, // pfnServerExecute
1.148 + { mFALSE, 11, "engClientCommand" }, // pfnClientCommand // d'oh, ClientCommand in dllapi too
1.149 + { mFALSE, 9, "ParticleEffect" }, // pfnParticleEffect
1.150 + { mFALSE, 9, "LightStyle" }, // pfnLightStyle
1.151 + { mFALSE, 9, "DecalIndex" }, // pfnDecalIndex
1.152 + { mFALSE, 15, "PointContents" }, // pfnPointContents // CS: when moving
1.153 + { mFALSE, 22, "MessageBegin" }, // pfnMessageBegin
1.154 + { mFALSE, 22, "MessageEnd" }, // pfnMessageEnd
1.155 + { mFALSE, 30, "WriteByte" }, // pfnWriteByte
1.156 + { mFALSE, 23, "WriteChar" }, // pfnWriteChar
1.157 + { mFALSE, 24, "WriteShort" }, // pfnWriteShort
1.158 + { mFALSE, 23, "WriteLong" }, // pfnWriteLong
1.159 + { mFALSE, 23, "WriteAngle" }, // pfnWriteAngle
1.160 + { mFALSE, 23, "WriteCoord" }, // pfnWriteCoord
1.161 + { mFALSE, 25, "WriteString" }, // pfnWriteString
1.162 + { mFALSE, 23, "WriteEntity" }, // pfnWriteEntity
1.163 + { mFALSE, 9, "CVarRegister" }, // pfnCVarRegister
1.164 + { mFALSE, 21, "CVarGetFloat" }, // pfnCVarGetFloat
1.165 + { mFALSE, 9, "CVarGetString" }, // pfnCVarGetString
1.166 + { mFALSE, 10, "CVarSetFloat" }, // pfnCVarSetFloat
1.167 + { mFALSE, 9, "CVarSetString" }, // pfnCVarSetString
1.168 + { mFALSE, 15, "AlertMessage" }, // pfnAlertMessage
1.169 + { mFALSE, 17, "EngineFprintf" }, // pfnEngineFprintf
1.170 + { mFALSE, 14, "PvAllocEntPrivateData" }, // pfnPvAllocEntPrivateData
1.171 + { mFALSE, 9, "PvEntPrivateData" }, // pfnPvEntPrivateData
1.172 + { mFALSE, 9, "FreeEntPrivateData" }, // pfnFreeEntPrivateData
1.173 + { mFALSE, 9, "SzFromIndex" }, // pfnSzFromIndex
1.174 + { mFALSE, 10, "AllocString" }, // pfnAllocString
1.175 + { mFALSE, 9, "GetVarsOfEnt" }, // pfnGetVarsOfEnt
1.176 + { mFALSE, 14, "PEntityOfEntOffset" }, // pfnPEntityOfEntOffset
1.177 + { mFALSE, 19, "EntOffsetOfPEntity" }, // pfnEntOffsetOfPEntity
1.178 + { mFALSE, 14, "IndexOfEdict" }, // pfnIndexOfEdict
1.179 + { mFALSE, 17, "PEntityOfEntIndex" }, // pfnPEntityOfEntIndex
1.180 + { mFALSE, 9, "FindEntityByVars" }, // pfnFindEntityByVars
1.181 + { mFALSE, 14, "GetModelPtr" }, // pfnGetModelPtr
1.182 + { mFALSE, 9, "RegUserMsg" }, // pfnRegUserMsg
1.183 + { mFALSE, 9, "AnimationAutomove" }, // pfnAnimationAutomove
1.184 + { mFALSE, 9, "GetBonePosition" }, // pfnGetBonePosition
1.185 + { mFALSE, 9, "FunctionFromName" }, // pfnFunctionFromName
1.186 + { mFALSE, 9, "NameForFunction" }, // pfnNameForFunction
1.187 + { mFALSE, 9, "ClientPrintf" }, // pfnClientPrintf
1.188 + { mFALSE, 9, "ServerPrint" }, // pfnServerPrint
1.189 + { mFALSE, 13, "Cmd_Args" }, // pfnCmd_Args
1.190 + { mFALSE, 13, "Cmd_Argv" }, // pfnCmd_Argv
1.191 + { mFALSE, 13, "Cmd_Argc" }, // pfnCmd_Argc
1.192 + { mFALSE, 9, "GetAttachment" }, // pfnGetAttachment
1.193 + { mFALSE, 9, "CRC32_Init" }, // pfnCRC32_Init
1.194 + { mFALSE, 9, "CRC32_ProcessBuffer" }, // pfnCRC32_ProcessBuffer
1.195 + { mFALSE, 9, "CRC32_ProcessByte" }, // pfnCRC32_ProcessByte
1.196 + { mFALSE, 9, "CRC32_Final" }, // pfnCRC32_Final
1.197 + { mFALSE, 16, "RandomLong" }, // pfnRandomLong
1.198 + { mFALSE, 14, "RandomFloat" }, // pfnRandomFloat // CS: when firing
1.199 + { mFALSE, 14, "SetView" }, // pfnSetView
1.200 + { mFALSE, 9, "Time" }, // pfnTime
1.201 + { mFALSE, 9, "CrosshairAngle" }, // pfnCrosshairAngle
1.202 + { mFALSE, 10, "LoadFileForMe" }, // pfnLoadFileForMe
1.203 + { mFALSE, 10, "FreeFile" }, // pfnFreeFile
1.204 + { mFALSE, 9, "EndSection" }, // pfnEndSection
1.205 + { mFALSE, 9, "CompareFileTime" }, // pfnCompareFileTime
1.206 + { mFALSE, 9, "GetGameDir" }, // pfnGetGameDir
1.207 + { mFALSE, 9, "Cvar_RegisterVariable" }, // pfnCvar_RegisterVariable
1.208 + { mFALSE, 9, "FadeClientVolume" }, // pfnFadeClientVolume
1.209 + { mFALSE, 14, "SetClientMaxspeed" }, // pfnSetClientMaxspeed
1.210 + { mFALSE, 9, "CreateFakeClient" }, // pfnCreateFakeClient
1.211 + { mFALSE, 9, "RunPlayerMove" }, // pfnRunPlayerMove
1.212 + { mFALSE, 9, "NumberOfEntities" }, // pfnNumberOfEntities
1.213 + { mFALSE, 17, "GetInfoKeyBuffer" }, // pfnGetInfoKeyBuffer
1.214 + { mFALSE, 13, "InfoKeyValue" }, // pfnInfoKeyValue
1.215 + { mFALSE, 9, "SetKeyValue" }, // pfnSetKeyValue
1.216 + { mFALSE, 12, "SetClientKeyValue" }, // pfnSetClientKeyValue
1.217 + { mFALSE, 9, "IsMapValid" }, // pfnIsMapValid
1.218 + { mFALSE, 9, "StaticDecal" }, // pfnStaticDecal
1.219 + { mFALSE, 9, "PrecacheGeneric" }, // pfnPrecacheGeneric
1.220 + { mFALSE, 10, "GetPlayerUserId" }, // pfnGetPlayerUserId
1.221 + { mFALSE, 9, "BuildSoundMsg" }, // pfnBuildSoundMsg
1.222 + { mFALSE, 9, "IsDedicatedServer" }, // pfnIsDedicatedServer
1.223 + { mFALSE, 9, "CVarGetPointer" }, // pfnCVarGetPointer
1.224 + { mFALSE, 9, "GetPlayerWONId" }, // pfnGetPlayerWONId
1.225 + { mFALSE, 9, "Info_RemoveKey" }, // pfnInfo_RemoveKey
1.226 + { mFALSE, 15, "GetPhysicsKeyValue" }, // pfnGetPhysicsKeyValue
1.227 + { mFALSE, 14, "SetPhysicsKeyValue" }, // pfnSetPhysicsKeyValue
1.228 + { mFALSE, 15, "GetPhysicsInfoString" }, // pfnGetPhysicsInfoString
1.229 + { mFALSE, 13, "PrecacheEvent" }, // pfnPrecacheEvent
1.230 + { mFALSE, 9, "PlaybackEvent" }, // pfnPlaybackEvent
1.231 + { mFALSE, 31, "SetFatPVS" }, // pfnSetFatPVS
1.232 + { mFALSE, 31, "SetFatPAS" }, // pfnSetFatPAS
1.233 + { mFALSE, 50, "CheckVisibility" }, // pfnCheckVisibility
1.234 + { mFALSE, 37, "DeltaSetField" }, // pfnDeltaSetField
1.235 + { mFALSE, 38, "DeltaUnsetField" }, // pfnDeltaUnsetField
1.236 + { mFALSE, 9, "DeltaAddEncoder" }, // pfnDeltaAddEncoder
1.237 + { mFALSE, 45, "GetCurrentPlayer" }, // pfnGetCurrentPlayer
1.238 + { mFALSE, 14, "CanSkipPlayer" }, // pfnCanSkipPlayer
1.239 + { mFALSE, 9, "DeltaFindField" }, // pfnDeltaFindField
1.240 + { mFALSE, 37, "DeltaSetFieldByIndex" }, // pfnDeltaSetFieldByIndex
1.241 + { mFALSE, 38, "DeltaUnsetFieldByIndex" }, // pfnDeltaUnsetFieldByIndex
1.242 + { mFALSE, 9, "SetGroupMask" }, // pfnSetGroupMask
1.243 + { mFALSE, 9, "engCreateInstancedBaseline" }, // pfnCreateInstancedBaseline // d'oh, CreateInstancedBaseline in dllapi too
1.244 + { mFALSE, 9, "Cvar_DirectSet" }, // pfnCvar_DirectSet
1.245 + { mFALSE, 9, "ForceUnmodified" }, // pfnForceUnmodified
1.246 + { mFALSE, 9, "GetPlayerStats" }, // pfnGetPlayerStats
1.247 + { mFALSE, 3, "AddServerCommand" }, // pfnAddServerCommand
1.248 + // Added in SDK 2.2:
1.249 + { mFALSE, 9, "Voice_GetClientListening" }, // Voice_GetClientListening
1.250 + { mFALSE, 9, "Voice_SetClientListening" }, // Voice_SetClientListening
1.251 + // Added for HL 1109 (no SDK update):
1.252 + { mFALSE, 9, "GetPlayerAuthId" }, // pfnGetPlayerAuthId
1.253 + // Added 2003/11/10 (no SDK update):
1.254 + { mFALSE, 30, "SequenceGet" }, // pfnSequenceGet
1.255 + { mFALSE, 30, "SequencePickSentence" }, // pfnSequencePickSentence
1.256 + { mFALSE, 30, "GetFileSize" }, // pfnGetFileSize
1.257 + { mFALSE, 30, "GetApproxWavePlayLen" }, // pfnGetApproxWavePlayLen
1.258 + { mFALSE, 30, "IsCareerMatch" }, // pfnIsCareerMatch
1.259 + { mFALSE, 30, "GetLocalizedStringLength" }, // pfnGetLocalizedStringLength
1.260 + { mFALSE, 30, "RegisterTutorMessageShown" }, // pfnRegisterTutorMessageShown
1.261 + { mFALSE, 30, "GetTimesTutorMessageShown" }, // pfnGetTimesTutorMessageShown
1.262 + { mFALSE, 30, "ProcessTutorMessageDecayBuffer" }, // pfnProcessTutorMessageDecayBuffer
1.263 + { mFALSE, 30, "ConstructTutorMessageDecayBuffer" }, // pfnConstructTutorMessageDecayBuffer
1.264 + { mFALSE, 9, "ResetTutorMessageDecayData" }, // pfnResetTutorMessageDecayData
1.265 + // end
1.266 + { mFALSE, 0, NULL },
1.267 +};