diff -r 25b41f83458f -r fa27b9403af3 metamod/dllapi.cpp --- a/metamod/dllapi.cpp Mon Apr 17 12:28:51 2006 +0000 +++ b/metamod/dllapi.cpp Mon Apr 17 12:35:34 2006 +0000 @@ -342,21 +342,21 @@ // "(wd)" indicates my comments on the functions static DLL_FUNCTIONS sFunctionTable = { - mm_GameDLLInit, //! pfnGameInit() Initialize the game (one-time call after loading of game .dll) + mm_GameDLLInit, //! pfnGameInit() Initialize the game (one-time call after loading of game .dll) mm_DispatchSpawn, //! pfnSpawn() mm_DispatchThink, //! pfnThink() - mm_DispatchUse, //! pfnUse() + mm_DispatchUse, //! pfnUse() mm_DispatchTouch, //! pfnTouch() - mm_DispatchBlocked, //! pfnBlocked() + mm_DispatchBlocked, //! pfnBlocked() mm_DispatchKeyValue, //! pfnKeyValue() mm_DispatchSave, //! pfnSave() - mm_DispatchRestore, //! pfnRestore() + mm_DispatchRestore, //! pfnRestore() mm_DispatchObjectCollsionBox, //! pfnSetAbsBox() - mm_SaveWriteFields, //! pfnSaveWriteFields() + mm_SaveWriteFields, //! pfnSaveWriteFields() mm_SaveReadFields, //! pfnSaveReadFields() - mm_SaveGlobalState, //! pfnSaveGlobalState() + mm_SaveGlobalState, //! pfnSaveGlobalState() mm_RestoreGlobalState, //! pfnRestoreGlobalState() mm_ResetGlobalState, //! pfnResetGlobalState() @@ -370,26 +370,26 @@ mm_ServerDeactivate, //! pfnServerDeactivate() (wd) Server is leaving the map (shutdown, or changelevel); SDK2 mm_PlayerPreThink, //! pfnPlayerPreThink() - mm_PlayerPostThink, //! pfnPlayerPostThink() + mm_PlayerPostThink, //! pfnPlayerPostThink() mm_StartFrame, //! pfnStartFrame() mm_ParmsNewLevel, //! pfnParmsNewLevel() mm_ParmsChangeLevel, //! pfnParmsChangeLevel() mm_GetGameDescription, //! pfnGetGameDescription() Returns string describing current .dll. E.g. "TeamFotrress 2", "Half-Life" - mm_PlayerCustomization, //! pfnPlayerCustomization() Notifies .dll of new customization for player. + mm_PlayerCustomization, //! pfnPlayerCustomization() Notifies .dll of new customization for player. mm_SpectatorConnect, //! pfnSpectatorConnect() Called when spectator joins server - mm_SpectatorDisconnect, //! pfnSpectatorDisconnect() Called when spectator leaves the server + mm_SpectatorDisconnect, //! pfnSpectatorDisconnect() Called when spectator leaves the server mm_SpectatorThink, //! pfnSpectatorThink() Called when spectator sends a command packet (usercmd_t) mm_Sys_Error, //! pfnSys_Error() Notify game .dll that engine is going to shut down. Allows mod authors to set a breakpoint. SDK2 - mm_PM_Move, //! pfnPM_Move() (wd) SDK2 - mm_PM_Init, //! pfnPM_Init() Server version of player movement initialization; (wd) SDK2 + mm_PM_Move, //! pfnPM_Move() (wd) SDK2 + mm_PM_Init, //! pfnPM_Init() Server version of player movement initialization; (wd) SDK2 mm_PM_FindTextureType, //! pfnPM_FindTextureType() (wd) SDK2 - mm_SetupVisibility, //! pfnSetupVisibility() Set up PVS and PAS for networking for this client; (wd) SDK2 + mm_SetupVisibility, //! pfnSetupVisibility() Set up PVS and PAS for networking for this client; (wd) SDK2 mm_UpdateClientData, //! pfnUpdateClientData() Set up data sent only to specific client; (wd) SDK2 mm_AddToFullPack, //! pfnAddToFullPack() (wd) SDK2 mm_CreateBaseline, //! pfnCreateBaseline() Tweak entity baseline for network encoding, allows setup of player baselines, too.; (wd) SDK2 @@ -434,28 +434,9 @@ return(FALSE); } -//+TBR -#ifdef MM_DEBUG - META_LOG( "==DEBUG==> [GetEntityAPI] Setting up engine's DLL_FUNCTIONS struct @%p, version %u.", - pFunctionTable, interfaceVersion); - META_LOG( "==DEBUG==> [GetEntityAPI] Our version is %u. Our current table size is %u, %u entries.", - INTERFACE_VERSION, sizeof(DLL_FUNCTIONS), - sizeof(DLL_FUNCTIONS) / sizeof(void(*)())); -#endif -//-TBR memcpy(pFunctionTable, &sFunctionTable, sizeof(DLL_FUNCTIONS)); -//+TBR -#ifdef MM_DEBUG - if ( g_engfuncs.pfnIsDedicatedServer() ) { - META_LOG( "==DEBUG==> [GetEntityAPI] Engine says this is a dedicated server.\n" ); - } - else { - META_LOG( "==DEBUG==> [GetEntityAPI] Engine says this is a listenserver.\n" ); - } -#endif -//-TBR return(TRUE); } @@ -475,28 +456,9 @@ return(FALSE); } -//+TBR -#ifdef MM_DEBUG - META_LOG( "==DEBUG==> [GetEntityAPI2] Setting up engine's DLL_FUNCTIONS struct @%p, version %u.", - pFunctionTable, *interfaceVersion); - META_LOG( "==DEBUG==> [GetEntityAPI2] Our version is %u. Our current table size is %u, %u entries.", - INTERFACE_VERSION, sizeof(DLL_FUNCTIONS), - sizeof(DLL_FUNCTIONS) / sizeof(void(*)()) ); -#endif -//-TBR memcpy(pFunctionTable, &sFunctionTable, sizeof(DLL_FUNCTIONS)); -//+TBR -#ifdef MM_DEBUG - if ( g_engfuncs.pfnIsDedicatedServer() ) { - META_LOG( "==DEBUG==> [GetEntityAPI2] Engine says this is a dedicated server.\n" ); - } - else { - META_LOG( "==DEBUG==> [GetEntityAPI2] Engine says this is a listenserver.\n" ); - } -#endif -//-TBR return(TRUE); } @@ -549,28 +511,9 @@ *interfaceVersion = NEW_DLL_FUNCTIONS_VERSION; return(FALSE); } -//+TBR -#ifdef MM_DEBUG - META_LOG( "==DEBUG==> [GetNewDLLFunctions] Setting up engine's NEW_DLL_FUNCTIONS struct @%p, version %u.", - pNewFunctionTable, *interfaceVersion); - META_LOG( "==DEBUG==> [GetNewDLLFunctions] Our version is %u. Our current table size is %u, %u entries.", - NEW_DLL_FUNCTIONS_VERSION, sizeof(NEW_DLL_FUNCTIONS), - sizeof(NEW_DLL_FUNCTIONS) / sizeof(void(*)()) ); -#endif -//-TBR sNewFunctionTable.copy_to(pNewFunctionTable); -//+TBR -#ifdef MM_DEBUG - if ( g_engfuncs.pfnIsDedicatedServer() ) { - META_LOG( "==DEBUG==> [GetNewDLLFunctions] Engine says this is a dedicated server.\n" ); - } - else { - META_LOG( "==DEBUG==> [GetNewDLLFunctions] Engine says this is a listenserver.\n" ); - } -#endif -//-TBR return(TRUE); }