1.1 --- a/metamod/dllapi.cpp Mon Apr 17 12:28:51 2006 +0000
1.2 +++ b/metamod/dllapi.cpp Mon Apr 17 12:35:34 2006 +0000
1.3 @@ -342,21 +342,21 @@
1.4 // "(wd)" indicates my comments on the functions
1.5 static DLL_FUNCTIONS sFunctionTable =
1.6 {
1.7 - mm_GameDLLInit, //! pfnGameInit() Initialize the game (one-time call after loading of game .dll)
1.8 + mm_GameDLLInit, //! pfnGameInit() Initialize the game (one-time call after loading of game .dll)
1.9 mm_DispatchSpawn, //! pfnSpawn()
1.10 mm_DispatchThink, //! pfnThink()
1.11 - mm_DispatchUse, //! pfnUse()
1.12 + mm_DispatchUse, //! pfnUse()
1.13 mm_DispatchTouch, //! pfnTouch()
1.14 - mm_DispatchBlocked, //! pfnBlocked()
1.15 + mm_DispatchBlocked, //! pfnBlocked()
1.16 mm_DispatchKeyValue, //! pfnKeyValue()
1.17 mm_DispatchSave, //! pfnSave()
1.18 - mm_DispatchRestore, //! pfnRestore()
1.19 + mm_DispatchRestore, //! pfnRestore()
1.20 mm_DispatchObjectCollsionBox, //! pfnSetAbsBox()
1.21
1.22 - mm_SaveWriteFields, //! pfnSaveWriteFields()
1.23 + mm_SaveWriteFields, //! pfnSaveWriteFields()
1.24 mm_SaveReadFields, //! pfnSaveReadFields()
1.25
1.26 - mm_SaveGlobalState, //! pfnSaveGlobalState()
1.27 + mm_SaveGlobalState, //! pfnSaveGlobalState()
1.28 mm_RestoreGlobalState, //! pfnRestoreGlobalState()
1.29 mm_ResetGlobalState, //! pfnResetGlobalState()
1.30
1.31 @@ -370,26 +370,26 @@
1.32 mm_ServerDeactivate, //! pfnServerDeactivate() (wd) Server is leaving the map (shutdown, or changelevel); SDK2
1.33
1.34 mm_PlayerPreThink, //! pfnPlayerPreThink()
1.35 - mm_PlayerPostThink, //! pfnPlayerPostThink()
1.36 + mm_PlayerPostThink, //! pfnPlayerPostThink()
1.37
1.38 mm_StartFrame, //! pfnStartFrame()
1.39 mm_ParmsNewLevel, //! pfnParmsNewLevel()
1.40 mm_ParmsChangeLevel, //! pfnParmsChangeLevel()
1.41
1.42 mm_GetGameDescription, //! pfnGetGameDescription() Returns string describing current .dll. E.g. "TeamFotrress 2", "Half-Life"
1.43 - mm_PlayerCustomization, //! pfnPlayerCustomization() Notifies .dll of new customization for player.
1.44 + mm_PlayerCustomization, //! pfnPlayerCustomization() Notifies .dll of new customization for player.
1.45
1.46 mm_SpectatorConnect, //! pfnSpectatorConnect() Called when spectator joins server
1.47 - mm_SpectatorDisconnect, //! pfnSpectatorDisconnect() Called when spectator leaves the server
1.48 + mm_SpectatorDisconnect, //! pfnSpectatorDisconnect() Called when spectator leaves the server
1.49 mm_SpectatorThink, //! pfnSpectatorThink() Called when spectator sends a command packet (usercmd_t)
1.50
1.51 mm_Sys_Error, //! pfnSys_Error() Notify game .dll that engine is going to shut down. Allows mod authors to set a breakpoint. SDK2
1.52
1.53 - mm_PM_Move, //! pfnPM_Move() (wd) SDK2
1.54 - mm_PM_Init, //! pfnPM_Init() Server version of player movement initialization; (wd) SDK2
1.55 + mm_PM_Move, //! pfnPM_Move() (wd) SDK2
1.56 + mm_PM_Init, //! pfnPM_Init() Server version of player movement initialization; (wd) SDK2
1.57 mm_PM_FindTextureType, //! pfnPM_FindTextureType() (wd) SDK2
1.58
1.59 - mm_SetupVisibility, //! pfnSetupVisibility() Set up PVS and PAS for networking for this client; (wd) SDK2
1.60 + mm_SetupVisibility, //! pfnSetupVisibility() Set up PVS and PAS for networking for this client; (wd) SDK2
1.61 mm_UpdateClientData, //! pfnUpdateClientData() Set up data sent only to specific client; (wd) SDK2
1.62 mm_AddToFullPack, //! pfnAddToFullPack() (wd) SDK2
1.63 mm_CreateBaseline, //! pfnCreateBaseline() Tweak entity baseline for network encoding, allows setup of player baselines, too.; (wd) SDK2
1.64 @@ -434,28 +434,9 @@
1.65 return(FALSE);
1.66 }
1.67
1.68 -//+TBR
1.69 -#ifdef MM_DEBUG
1.70 - META_LOG( "==DEBUG==> [GetEntityAPI] Setting up engine's DLL_FUNCTIONS struct @%p, version %u.",
1.71 - pFunctionTable, interfaceVersion);
1.72 - META_LOG( "==DEBUG==> [GetEntityAPI] Our version is %u. Our current table size is %u, %u entries.",
1.73 - INTERFACE_VERSION, sizeof(DLL_FUNCTIONS),
1.74 - sizeof(DLL_FUNCTIONS) / sizeof(void(*)()));
1.75 -#endif
1.76 -//-TBR
1.77
1.78 memcpy(pFunctionTable, &sFunctionTable, sizeof(DLL_FUNCTIONS));
1.79
1.80 -//+TBR
1.81 -#ifdef MM_DEBUG
1.82 - if ( g_engfuncs.pfnIsDedicatedServer() ) {
1.83 - META_LOG( "==DEBUG==> [GetEntityAPI] Engine says this is a dedicated server.\n" );
1.84 - }
1.85 - else {
1.86 - META_LOG( "==DEBUG==> [GetEntityAPI] Engine says this is a listenserver.\n" );
1.87 - }
1.88 -#endif
1.89 -//-TBR
1.90
1.91 return(TRUE);
1.92 }
1.93 @@ -475,28 +456,9 @@
1.94 return(FALSE);
1.95 }
1.96
1.97 -//+TBR
1.98 -#ifdef MM_DEBUG
1.99 - META_LOG( "==DEBUG==> [GetEntityAPI2] Setting up engine's DLL_FUNCTIONS struct @%p, version %u.",
1.100 - pFunctionTable, *interfaceVersion);
1.101 - META_LOG( "==DEBUG==> [GetEntityAPI2] Our version is %u. Our current table size is %u, %u entries.",
1.102 - INTERFACE_VERSION, sizeof(DLL_FUNCTIONS),
1.103 - sizeof(DLL_FUNCTIONS) / sizeof(void(*)()) );
1.104 -#endif
1.105 -//-TBR
1.106
1.107 memcpy(pFunctionTable, &sFunctionTable, sizeof(DLL_FUNCTIONS));
1.108
1.109 -//+TBR
1.110 -#ifdef MM_DEBUG
1.111 - if ( g_engfuncs.pfnIsDedicatedServer() ) {
1.112 - META_LOG( "==DEBUG==> [GetEntityAPI2] Engine says this is a dedicated server.\n" );
1.113 - }
1.114 - else {
1.115 - META_LOG( "==DEBUG==> [GetEntityAPI2] Engine says this is a listenserver.\n" );
1.116 - }
1.117 -#endif
1.118 -//-TBR
1.119
1.120 return(TRUE);
1.121 }
1.122 @@ -549,28 +511,9 @@
1.123 *interfaceVersion = NEW_DLL_FUNCTIONS_VERSION;
1.124 return(FALSE);
1.125 }
1.126 -//+TBR
1.127 -#ifdef MM_DEBUG
1.128 - META_LOG( "==DEBUG==> [GetNewDLLFunctions] Setting up engine's NEW_DLL_FUNCTIONS struct @%p, version %u.",
1.129 - pNewFunctionTable, *interfaceVersion);
1.130 - META_LOG( "==DEBUG==> [GetNewDLLFunctions] Our version is %u. Our current table size is %u, %u entries.",
1.131 - NEW_DLL_FUNCTIONS_VERSION, sizeof(NEW_DLL_FUNCTIONS),
1.132 - sizeof(NEW_DLL_FUNCTIONS) / sizeof(void(*)()) );
1.133 -#endif
1.134 -//-TBR
1.135
1.136 sNewFunctionTable.copy_to(pNewFunctionTable);
1.137
1.138 -//+TBR
1.139 -#ifdef MM_DEBUG
1.140 - if ( g_engfuncs.pfnIsDedicatedServer() ) {
1.141 - META_LOG( "==DEBUG==> [GetNewDLLFunctions] Engine says this is a dedicated server.\n" );
1.142 - }
1.143 - else {
1.144 - META_LOG( "==DEBUG==> [GetNewDLLFunctions] Engine says this is a listenserver.\n" );
1.145 - }
1.146 -#endif
1.147 -//-TBR
1.148
1.149 return(TRUE);
1.150 }