1.1 --- a/metamod/engine_api.cpp Tue Aug 23 20:31:28 2005 +0000
1.2 +++ b/metamod/engine_api.cpp Wed Dec 21 18:40:50 2005 +0000
1.3 @@ -806,7 +806,7 @@
1.4 RETURN_API()
1.5 }
1.6
1.7 -// Added 2003/11/10 (no SDK update):
1.8 +// Added 2003-11-10 (no SDK update):
1.9
1.10 sequenceEntry_s *mm_SequenceGet(const char *fileName, const char *entryName) {
1.11 META_ENGINE_HANDLE(sequenceEntry_s *, NULL, FN_SEQUENCEGET, pfnSequenceGet, (fileName, entryName));
1.12 @@ -863,13 +863,13 @@
1.13 RETURN_API_void()
1.14 }
1.15
1.16 -//Added 2005/08/11 (no SDK update)
1.17 +//Added 2005-08-11 (no SDK update)
1.18 void mm_QueryClientCvarValue(const edict_t *pEdict, const char *cvarName)
1.19 {
1.20 //Engine version didn't change when this API was added. Check if pointer is valid.
1.21 if (g_engfuncs.pfnQueryClientCvarValue &&
1.22 !IS_VALID_PTR((void *)g_engfuncs.pfnQueryClientCvarValue))
1.23 - g_engfuncs.pfnQueryClientCvarValue = 0;
1.24 + g_engfuncs.pfnQueryClientCvarValue = NULL;
1.25
1.26 g_Players.set_player_cvar_query(pEdict, cvarName);
1.27
1.28 @@ -877,6 +877,18 @@
1.29 RETURN_API_void();
1.30 }
1.31
1.32 +//Added 2005-11-22 (no SDK update)
1.33 +void mm_QueryClientCvarValue2(const edict_t *pEdict, const char *cvarName, int requestId)
1.34 +{
1.35 + //Engine version didn't change when this API was added. Check if the pointer is valid.
1.36 + if (g_engfuncs.pfnQueryClientCvarValue2 &&
1.37 + !IS_VALID_PTR((void * )g_engfuncs.pfnQueryClientCvarValue2))
1.38 + g_engfuncs.pfnQueryClientCvarValue2 = NULL;
1.39 +
1.40 + META_ENGINE_HANDLE_void(FN_QUERYCLIENTCVARVALUE2, pfnQueryClientCvarValue2, (pEdict, cvarName, requestId));
1.41 + RETURN_API_void();
1.42 +}
1.43 +
1.44 enginefuncs_t meta_engfuncs = {
1.45 mm_PrecacheModel, // pfnPrecacheModel()
1.46 mm_PrecacheSound, // pfnPrecacheSound()
1.47 @@ -1068,7 +1080,7 @@
1.48 // Added for HL 1109 (no SDK update):
1.49 mm_GetPlayerAuthId, // pfnGetPlayerAuthId()
1.50
1.51 - // Added 2003/11/10 (no SDK update):
1.52 + // Added 2003-11-10 (no SDK update):
1.53 mm_SequenceGet, // pfnSequenceGet()
1.54 mm_SequencePickSentence, // pfnSequencePickSentence()
1.55 mm_GetFileSize, // pfnGetFileSize()
1.56 @@ -1081,8 +1093,11 @@
1.57 mm_ConstructTutorMessageDecayBuffer, // pfnConstructTutorMessageDecayBuffer()
1.58 mm_ResetTutorMessageDecayData, // pfnResetTutorMessageDecayData()
1.59
1.60 - //Added 2005/08/11 (no SDK update)
1.61 + //Added 2005-08-11 (no SDK update)
1.62 mm_QueryClientCvarValue, // pfnQueryClientCvarValue()
1.63 +
1.64 + //Added 2005-11-22 (no SDK update)
1.65 + mm_QueryClientCvarValue2, // pfnQueryClientCvarValue2()
1.66 };
1.67
1.68