trace_plugin/engine_api_post.cpp
author Scott Ehlert <ds@alliedmods.net>
Fri Mar 15 14:59:27 2013 -0500 (2013-03-15)
changeset 274 194308bba518
parent 265 9e61d0d70e9a
child 277 e207522ad669
permissions -rw-r--r--
Added support for new engine function: EngCheckParm.
darope@0
     1
// vi: set ts=4 sw=4 :
darope@0
     2
// vim: set tw=75 :
darope@0
     3
darope@0
     4
// engine_api_post.cpp - implementation of "post" versions of Half-Life engine 
darope@0
     5
//                       functions
darope@0
     6
darope@0
     7
/*
darope@0
     8
 * Copyright (c) 2001-2003 Will Day <[email protected]>
darope@0
     9
 *
darope@0
    10
 *    This file is part of Metamod.
darope@0
    11
 *
darope@0
    12
 *    Metamod is free software; you can redistribute it and/or modify it
darope@0
    13
 *    under the terms of the GNU General Public License as published by the
darope@0
    14
 *    Free Software Foundation; either version 2 of the License, or (at
darope@0
    15
 *    your option) any later version.
darope@0
    16
 *
darope@0
    17
 *    Metamod is distributed in the hope that it will be useful, but
darope@0
    18
 *    WITHOUT ANY WARRANTY; without even the implied warranty of
darope@0
    19
 *    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
darope@0
    20
 *    General Public License for more details.
darope@0
    21
 *
darope@0
    22
 *    You should have received a copy of the GNU General Public License
darope@0
    23
 *    along with Metamod; if not, write to the Free Software Foundation,
darope@0
    24
 *    Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
darope@0
    25
 *
darope@0
    26
 *    In addition, as a special exception, the author gives permission to
darope@0
    27
 *    link the code of this program with the Half-Life Game Engine ("HL
darope@0
    28
 *    Engine") and Modified Game Libraries ("MODs") developed by Valve,
darope@0
    29
 *    L.L.C ("Valve").  You must obey the GNU General Public License in all
darope@0
    30
 *    respects for all of the code used other than the HL Engine and MODs
darope@0
    31
 *    from Valve.  If you modify this file, you may extend this exception
darope@0
    32
 *    to your version of the file, but you are not obligated to do so.  If
darope@0
    33
 *    you do not wish to do so, delete this exception statement from your
darope@0
    34
 *    version.
darope@0
    35
 *
darope@0
    36
 */
darope@0
    37
darope@0
    38
#include <stdio.h>
darope@0
    39
#include <stdarg.h>
darope@0
    40
darope@0
    41
#include <extdll.h>
darope@0
    42
darope@0
    43
#include "engine_api.h"
darope@0
    44
#include "meta_api.h"
darope@0
    45
#include "trace_api.h"
darope@0
    46
#include "log_plugin.h"
darope@0
    47
darope@0
    48
ds@265
    49
int PrecacheModel_Post(const char *s) {
darope@0
    50
	ENGINE_TRACE(pfnPrecacheModel, P_POST, (""));
darope@0
    51
	RETURN_META_VALUE(MRES_IGNORED, 0);
darope@0
    52
}
ds@265
    53
int PrecacheSound_Post(const char *s) {
darope@0
    54
	ENGINE_TRACE(pfnPrecacheSound, P_POST, (""));
darope@0
    55
	RETURN_META_VALUE(MRES_IGNORED, 0);
darope@0
    56
}
darope@0
    57
void SetModel_Post(edict_t *e, const char *m) {
darope@0
    58
	ENGINE_TRACE(pfnSetModel, P_POST, (""));
darope@0
    59
	RETURN_META(MRES_IGNORED);
darope@0
    60
}
darope@0
    61
int ModelIndex_Post(const char *m) {
darope@0
    62
	ENGINE_TRACE(pfnModelIndex, P_POST, (""));
darope@0
    63
	RETURN_META_VALUE(MRES_IGNORED, 0);
darope@0
    64
}
darope@0
    65
int ModelFrames_Post(int modelIndex) {
darope@0
    66
	ENGINE_TRACE(pfnModelFrames, P_POST, (""));
darope@0
    67
	RETURN_META_VALUE(MRES_IGNORED, 0);
darope@0
    68
}
darope@0
    69
darope@0
    70
void SetSize_Post(edict_t *e, const float *rgflMin, const float *rgflMax) {
darope@0
    71
	ENGINE_TRACE(pfnSetSize, P_POST, (""));
darope@0
    72
	RETURN_META(MRES_IGNORED);
darope@0
    73
}
ds@265
    74
void ChangeLevel_Post(const char *s1, const char *s2) {
darope@0
    75
	// trace output in Pre
darope@0
    76
	ENGINE_TRACE(pfnChangeLevel, P_POST, (""));
darope@0
    77
	RETURN_META(MRES_IGNORED);
darope@0
    78
}
darope@0
    79
void GetSpawnParms_Post(edict_t *ent) {
darope@0
    80
	ENGINE_TRACE(pfnGetSpawnParms, P_POST, (""));
darope@0
    81
	RETURN_META(MRES_IGNORED);
darope@0
    82
}
darope@0
    83
void SaveSpawnParms_Post(edict_t *ent) {
darope@0
    84
	ENGINE_TRACE(pfnSaveSpawnParms, P_POST, (""));
darope@0
    85
	RETURN_META(MRES_IGNORED);
darope@0
    86
}
darope@0
    87
darope@0
    88
float VecToYaw_Post(const float *rgflVector) {
darope@0
    89
	ENGINE_TRACE(pfnVecToYaw, P_POST, (""));
darope@0
    90
	RETURN_META_VALUE(MRES_IGNORED, 0.0);
darope@0
    91
}
darope@0
    92
void VecToAngles_Post(const float *rgflVectorIn, float *rgflVectorOut) {
darope@0
    93
	ENGINE_TRACE(pfnVecToAngles, P_POST, (""));
darope@0
    94
	RETURN_META(MRES_IGNORED);
darope@0
    95
}
darope@0
    96
void MoveToOrigin_Post(edict_t *ent, const float *pflGoal, float dist, int iMoveType) {
darope@0
    97
	ENGINE_TRACE(pfnMoveToOrigin, P_POST, (""));
darope@0
    98
	RETURN_META(MRES_IGNORED);
darope@0
    99
}
darope@0
   100
void ChangeYaw_Post(edict_t *ent) {
darope@0
   101
	ENGINE_TRACE(pfnChangeYaw, P_POST, (""));
darope@0
   102
	RETURN_META(MRES_IGNORED);
darope@0
   103
}
darope@0
   104
void ChangePitch_Post(edict_t *ent) {
darope@0
   105
	ENGINE_TRACE(pfnChangePitch, P_POST, (""));
darope@0
   106
	RETURN_META(MRES_IGNORED);
darope@0
   107
}
darope@0
   108
darope@0
   109
edict_t *FindEntityByString_Post(edict_t *pEdictStartSearchAfter, const char *pszField, const char *pszValue) {
darope@0
   110
	edict_t *ed=META_RESULT_ORIG_RET(edict_t *);
darope@0
   111
	ENGINE_TRACE(pfnFindEntityByString, P_POST, ("classname=%s netname=%s", 
darope@0
   112
				ed ? STRING(ed->v.classname) : "nil",
darope@0
   113
				ed ? STRING(ed->v.netname) : "nil"));
darope@0
   114
	RETURN_META_VALUE(MRES_IGNORED, NULL);
darope@0
   115
}
darope@0
   116
int GetEntityIllum_Post(edict_t *pEnt) {
darope@0
   117
	ENGINE_TRACE(pfnGetEntityIllum, P_POST, (""));
darope@0
   118
	RETURN_META_VALUE(MRES_IGNORED, 0);
darope@0
   119
}
darope@0
   120
edict_t *FindEntityInSphere_Post(edict_t *pEdictStartSearchAfter, const float *org, float rad) {
darope@0
   121
	edict_t *ret;
darope@0
   122
	ret=META_RESULT_ORIG_RET(edict_t *);
darope@0
   123
	ENGINE_TRACE(pfnFindEntityInSphere, P_POST, ("previous=%s current=%s", 
darope@0
   124
				pEdictStartSearchAfter ? STRING(pEdictStartSearchAfter->v.classname) : "nil",
darope@0
   125
				ret ? STRING(ret->v.classname) : "nil"));
darope@0
   126
	RETURN_META_VALUE(MRES_IGNORED, NULL);
darope@0
   127
}
darope@0
   128
edict_t *FindClientInPVS_Post(edict_t *pEdict) {
darope@0
   129
	ENGINE_TRACE(pfnFindClientInPVS, P_POST, (""));
darope@0
   130
	RETURN_META_VALUE(MRES_IGNORED, NULL);
darope@0
   131
}
darope@0
   132
edict_t *EntitiesInPVS_Post(edict_t *pplayer) {
darope@0
   133
	ENGINE_TRACE(pfnEntitiesInPVS, P_POST, (""));
darope@0
   134
	RETURN_META_VALUE(MRES_IGNORED, NULL);
darope@0
   135
}
darope@0
   136
darope@0
   137
void MakeVectors_Post(const float *rgflVector) {
darope@0
   138
	ENGINE_TRACE(pfnMakeVectors, P_POST, (""));
darope@0
   139
	RETURN_META(MRES_IGNORED);
darope@0
   140
}
darope@0
   141
void AngleVectors_Post(const float *rgflVector, float *forward, float *right, float *up) {
darope@0
   142
	ENGINE_TRACE(pfnAngleVectors, P_POST, (""));
darope@0
   143
	RETURN_META(MRES_IGNORED);
darope@0
   144
}
darope@0
   145
darope@0
   146
edict_t *CreateEntity_Post(void) {
darope@0
   147
	ENGINE_TRACE(pfnCreateEntity, P_POST, (""));
darope@0
   148
	RETURN_META_VALUE(MRES_IGNORED, NULL);
darope@0
   149
}
darope@0
   150
void RemoveEntity_Post(edict_t *e) {
darope@0
   151
	ENGINE_TRACE(pfnRemoveEntity, P_POST, (""));
darope@0
   152
	RETURN_META(MRES_IGNORED);
darope@0
   153
}
darope@0
   154
edict_t *CreateNamedEntity_Post(int className) {
darope@0
   155
	edict_t *ret;
darope@0
   156
	ret=META_RESULT_ORIG_RET(edict_t *);
darope@0
   157
	ENGINE_TRACE(pfnCreateNamedEntity, P_POST, ("created=%s", 
darope@0
   158
				ret ? STRING(ret->v.classname) : "nil"));
darope@0
   159
	RETURN_META_VALUE(MRES_IGNORED, NULL);
darope@0
   160
}
darope@0
   161
darope@0
   162
void MakeStatic_Post(edict_t *ent) {
darope@0
   163
	ENGINE_TRACE(pfnMakeStatic, P_POST, (""));
darope@0
   164
	RETURN_META(MRES_IGNORED);
darope@0
   165
}
darope@0
   166
int EntIsOnFloor_Post(edict_t *e) {
darope@0
   167
	ENGINE_TRACE(pfnEntIsOnFloor, P_POST, (""));
darope@0
   168
	RETURN_META_VALUE(MRES_IGNORED, 0);
darope@0
   169
}
darope@0
   170
int DropToFloor_Post(edict_t *e) {
darope@0
   171
	ENGINE_TRACE(pfnDropToFloor, P_POST, (""));
darope@0
   172
	RETURN_META_VALUE(MRES_IGNORED, 0);
darope@0
   173
}
darope@0
   174
darope@0
   175
int WalkMove_Post(edict_t *ent, float yaw, float dist, int iMode) {
darope@0
   176
	ENGINE_TRACE(pfnWalkMove, P_POST, (""));
darope@0
   177
	RETURN_META_VALUE(MRES_IGNORED, 0);
darope@0
   178
}
darope@0
   179
void SetOrigin_Post(edict_t *e, const float *rgflOrigin) {
darope@0
   180
	ENGINE_TRACE(pfnSetOrigin, P_POST, (""));
darope@0
   181
	RETURN_META(MRES_IGNORED);
darope@0
   182
}
darope@0
   183
darope@0
   184
void EmitSound_Post(edict_t *entity, int channel, const char *sample, /*int*/float volume, float attenuation, int fFlags, int pitch) {
darope@0
   185
	ENGINE_TRACE(pfnEmitSound, P_POST, (""));
darope@0
   186
	RETURN_META(MRES_IGNORED);
darope@0
   187
}
darope@0
   188
void EmitAmbientSound_Post(edict_t *entity, float *pos, const char *samp, float vol, float attenuation, int fFlags, int pitch) {
darope@0
   189
	ENGINE_TRACE(pfnEmitAmbientSound, P_POST, (""));
darope@0
   190
	RETURN_META(MRES_IGNORED);
darope@0
   191
}
darope@0
   192
darope@0
   193
void TraceLine_Post(const float *v1, const float *v2, int fNoMonsters, edict_t *pentToSkip, TraceResult *ptr) {
darope@0
   194
	ENGINE_TRACE(pfnTraceLine, P_POST, (""));
darope@0
   195
	RETURN_META(MRES_IGNORED);
darope@0
   196
}
darope@0
   197
void TraceToss_Post(edict_t *pent, edict_t *pentToIgnore, TraceResult *ptr) {
darope@0
   198
	ENGINE_TRACE(pfnTraceToss, P_POST, (""));
darope@0
   199
	RETURN_META(MRES_IGNORED);
darope@0
   200
}
darope@0
   201
int TraceMonsterHull_Post(edict_t *pEdict, const float *v1, const float *v2, int fNoMonsters, edict_t *pentToSkip, TraceResult *ptr) {
darope@0
   202
	ENGINE_TRACE(pfnTraceMonsterHull, P_POST, (""));
darope@0
   203
	RETURN_META_VALUE(MRES_IGNORED, 0);
darope@0
   204
}
darope@0
   205
void TraceHull_Post(const float *v1, const float *v2, int fNoMonsters, int hullNumber, edict_t *pentToSkip, TraceResult *ptr) {
darope@0
   206
	ENGINE_TRACE(pfnTraceHull, P_POST, (""));
darope@0
   207
	RETURN_META(MRES_IGNORED);
darope@0
   208
}
darope@0
   209
void TraceModel_Post(const float *v1, const float *v2, int hullNumber, edict_t *pent, TraceResult *ptr) {
darope@0
   210
	ENGINE_TRACE(pfnTraceModel, P_POST, (""));
darope@0
   211
	RETURN_META(MRES_IGNORED);
darope@0
   212
}
darope@0
   213
const char *TraceTexture_Post(edict_t *pTextureEntity, const float *v1, const float *v2 ) {
darope@0
   214
	ENGINE_TRACE(pfnTraceTexture, P_POST, (""));
darope@0
   215
	RETURN_META_VALUE(MRES_IGNORED, NULL);
darope@0
   216
}
darope@0
   217
void TraceSphere_Post(const float *v1, const float *v2, int fNoMonsters, float radius, edict_t *pentToSkip, TraceResult *ptr) {
darope@0
   218
	ENGINE_TRACE(pfnTraceSphere, P_POST, (""));
darope@0
   219
	RETURN_META(MRES_IGNORED);
darope@0
   220
}
darope@0
   221
void GetAimVector_Post(edict_t *ent, float speed, float *rgflReturn) {
darope@0
   222
	ENGINE_TRACE(pfnGetAimVector, P_POST, (""));
darope@0
   223
	RETURN_META(MRES_IGNORED);
darope@0
   224
}
darope@0
   225
ds@265
   226
void ServerCommand_Post(const char *str) {
darope@0
   227
	// trace output in Pre
darope@0
   228
	ENGINE_TRACE(pfnServerCommand, P_POST, (""));
darope@0
   229
	RETURN_META(MRES_IGNORED);
darope@0
   230
}
darope@0
   231
void ServerExecute_Post(void) {
darope@0
   232
	ENGINE_TRACE(pfnServerExecute, P_POST, (""));
darope@0
   233
	RETURN_META(MRES_IGNORED);
darope@0
   234
}
ds@265
   235
void engClientCommand_Post(edict_t *pEdict, const char *szFmt, ...) {
darope@0
   236
	// trace output in Pre
darope@0
   237
	ENGINE_TRACE(pfnClientCommand, P_POST, (""));
darope@0
   238
	RETURN_META(MRES_IGNORED);
darope@0
   239
}
darope@0
   240
darope@0
   241
void ParticleEffect_Post(const float *org, const float *dir, float color, float count) {
darope@0
   242
	ENGINE_TRACE(pfnParticleEffect, P_POST, (""));
darope@0
   243
	RETURN_META(MRES_IGNORED);
darope@0
   244
}
darope@0
   245
void LightStyle_Post(int style, char *val) {
darope@0
   246
	ENGINE_TRACE(pfnLightStyle, P_POST, (""));
darope@0
   247
	RETURN_META(MRES_IGNORED);
darope@0
   248
}
darope@0
   249
int DecalIndex_Post(const char *name) {
darope@0
   250
	ENGINE_TRACE(pfnDecalIndex, P_POST, (""));
darope@0
   251
	RETURN_META_VALUE(MRES_IGNORED, 0);
darope@0
   252
}
darope@0
   253
int PointContents_Post(const float *rgflVector) {
darope@0
   254
	ENGINE_TRACE(pfnPointContents, P_POST, (""));
darope@0
   255
	RETURN_META_VALUE(MRES_IGNORED, 0);
darope@0
   256
}
darope@0
   257
darope@0
   258
void MessageBegin_Post(int msg_dest, int msg_type, const float *pOrigin, edict_t *ed) {
darope@0
   259
	if(msg_type > 64)
darope@0
   260
		ENGINE_TRACE(pfnMessageBegin, P_POST, (""));
darope@0
   261
	RETURN_META(MRES_IGNORED);
darope@0
   262
}
darope@0
   263
void MessageEnd_Post(void) {
darope@0
   264
	ENGINE_TRACE(pfnMessageEnd, P_POST, (""));
darope@0
   265
	RETURN_META(MRES_IGNORED);
darope@0
   266
}
darope@0
   267
darope@0
   268
void WriteByte_Post(int iValue) {
darope@0
   269
	ENGINE_TRACE(pfnWriteByte, P_POST, (""));
darope@0
   270
	RETURN_META(MRES_IGNORED);
darope@0
   271
}
darope@0
   272
void WriteChar_Post(int iValue) {
darope@0
   273
	ENGINE_TRACE(pfnWriteChar, P_POST, (""));
darope@0
   274
	RETURN_META(MRES_IGNORED);
darope@0
   275
}
darope@0
   276
void WriteShort_Post(int iValue) {
darope@0
   277
	ENGINE_TRACE(pfnWriteShort, P_POST, (""));
darope@0
   278
	RETURN_META(MRES_IGNORED);
darope@0
   279
}
darope@0
   280
void WriteLong_Post(int iValue) {
darope@0
   281
	ENGINE_TRACE(pfnWriteLong, P_POST, (""));
darope@0
   282
	RETURN_META(MRES_IGNORED);
darope@0
   283
}
darope@0
   284
void WriteAngle_Post(float flValue) {
darope@0
   285
	ENGINE_TRACE(pfnWriteAngle, P_POST, (""));
darope@0
   286
	RETURN_META(MRES_IGNORED);
darope@0
   287
}
darope@0
   288
void WriteCoord_Post(float flValue) {
darope@0
   289
	ENGINE_TRACE(pfnWriteCoord, P_POST, (""));
darope@0
   290
	RETURN_META(MRES_IGNORED);
darope@0
   291
}
darope@0
   292
void WriteString_Post(const char *sz) {
darope@0
   293
	// trace output in Pre
darope@0
   294
	ENGINE_TRACE(pfnWriteString, P_POST, (""));
darope@0
   295
	RETURN_META(MRES_IGNORED);
darope@0
   296
}
darope@0
   297
void WriteEntity_Post(int iValue) {
darope@0
   298
	ENGINE_TRACE(pfnWriteEntity, P_POST, (""));
darope@0
   299
	RETURN_META(MRES_IGNORED);
darope@0
   300
}
darope@0
   301
darope@0
   302
void CVarRegister_Post(cvar_t *pCvar) {
darope@0
   303
	// trace output in Pre
darope@0
   304
	ENGINE_TRACE(pfnCVarRegister, P_POST, (""));
darope@0
   305
	RETURN_META(MRES_IGNORED);
darope@0
   306
}
darope@0
   307
float CVarGetFloat_Post(const char *szVarName) {
darope@0
   308
	ENGINE_TRACE(pfnCVarGetFloat, P_POST, ("cvar=%s val=%f",
darope@0
   309
				szVarName, META_RESULT_ORIG_RET(float)));
darope@0
   310
	RETURN_META_VALUE(MRES_IGNORED, 0.0);
darope@0
   311
}
darope@0
   312
const char *CVarGetString_Post(const char *szVarName) {
darope@0
   313
	const char *val=META_RESULT_ORIG_RET(const char *);
darope@0
   314
	ENGINE_TRACE(pfnCVarGetString, P_POST, ("cvar=%s val=%s",
darope@0
   315
				szVarName,
darope@0
   316
				val ? val : "nil"));
darope@0
   317
	RETURN_META_VALUE(MRES_IGNORED, NULL);
darope@0
   318
}
darope@0
   319
void CVarSetFloat_Post(const char *szVarName, float flValue) {
darope@0
   320
	// trace output in Pre
darope@0
   321
	ENGINE_TRACE(pfnCVarSetFloat, P_POST, (""));
darope@0
   322
	RETURN_META(MRES_IGNORED);
darope@0
   323
}
darope@0
   324
void CVarSetString_Post(const char *szVarName, const char *szValue) {
darope@0
   325
	// trace output in Pre
darope@0
   326
	ENGINE_TRACE(pfnCVarSetString, P_POST, (""));
darope@0
   327
	RETURN_META(MRES_IGNORED);
darope@0
   328
}
darope@0
   329
ds@265
   330
void AlertMessage_Post(ALERT_TYPE atype, const char *szFmt, ...) {
darope@0
   331
	// trace output in Pre
darope@0
   332
	ENGINE_TRACE(pfnAlertMessage, P_POST, (""));
darope@0
   333
	RETURN_META(MRES_IGNORED);
darope@0
   334
}
darope@242
   335
#ifdef HLSDK_3_2_OLD_EIFACE
ds@265
   336
void EngineFprintf_Post(FILE *pfile, const char *szFmt, ...) {
darope@242
   337
#else 
ds@265
   338
void EngineFprintf_Post(void *pfile, const char *szFmt, ...) {
darope@242
   339
#endif
darope@0
   340
	// trace output in Pre
darope@0
   341
	ENGINE_TRACE(pfnEngineFprintf, P_POST, (""));
darope@0
   342
	RETURN_META(MRES_IGNORED);
darope@0
   343
}
darope@0
   344
darope@236
   345
#ifdef HLSDK_3_2_OLD_EIFACE
darope@0
   346
void *PvAllocEntPrivateData_Post(edict_t *pEdict, long cb) {
darope@236
   347
#else
darope@236
   348
void *PvAllocEntPrivateData_Post(edict_t *pEdict, int32 cb) {
darope@236
   349
#endif
darope@0
   350
	ENGINE_TRACE(pfnPvAllocEntPrivateData, P_POST, (""));
darope@0
   351
	RETURN_META_VALUE(MRES_IGNORED, NULL);
darope@0
   352
}
darope@0
   353
void *PvEntPrivateData_Post(edict_t *pEdict) {
darope@0
   354
	ENGINE_TRACE(pfnPvEntPrivateData, P_POST, (""));
darope@0
   355
	RETURN_META_VALUE(MRES_IGNORED, NULL);
darope@0
   356
}
darope@0
   357
void FreeEntPrivateData_Post(edict_t *pEdict) {
darope@0
   358
	ENGINE_TRACE(pfnFreeEntPrivateData, P_POST, (""));
darope@0
   359
	RETURN_META(MRES_IGNORED);
darope@0
   360
}
darope@0
   361
darope@0
   362
const char *SzFromIndex_Post(int iString) {
darope@0
   363
	ENGINE_TRACE(pfnSzFromIndex, P_POST, (""));
darope@0
   364
	RETURN_META_VALUE(MRES_IGNORED, NULL);
darope@0
   365
}
darope@0
   366
int AllocString_Post(const char *szValue) {
darope@0
   367
	ENGINE_TRACE(pfnAllocString, P_POST, ("str=%s alloc=%d",
darope@0
   368
				szValue, META_RESULT_ORIG_RET(int)));
darope@0
   369
	RETURN_META_VALUE(MRES_IGNORED, 0);
darope@0
   370
}
darope@0
   371
darope@0
   372
struct entvars_s *GetVarsOfEnt_Post(edict_t *pEdict) {
darope@0
   373
	ENGINE_TRACE(pfnGetVarsOfEnt, P_POST, (""));
darope@0
   374
	RETURN_META_VALUE(MRES_IGNORED, NULL);
darope@0
   375
}
darope@0
   376
edict_t *PEntityOfEntOffset_Post(int iEntOffset) {
darope@0
   377
	ENGINE_TRACE(pfnPEntityOfEntOffset, P_POST, (""));
darope@0
   378
	RETURN_META_VALUE(MRES_IGNORED, NULL);
darope@0
   379
}
darope@0
   380
int EntOffsetOfPEntity_Post(const edict_t *pEdict) {
darope@0
   381
	ENGINE_TRACE(pfnEntOffsetOfPEntity, P_POST, ("offset=%d", 
darope@0
   382
				META_RESULT_ORIG_RET(int)));
darope@0
   383
	RETURN_META_VALUE(MRES_IGNORED, 0);
darope@0
   384
}
darope@0
   385
int IndexOfEdict_Post(const edict_t *pEdict) {
darope@0
   386
	ENGINE_TRACE(pfnIndexOfEdict, P_POST, (""));
darope@0
   387
	RETURN_META_VALUE(MRES_IGNORED, 0);
darope@0
   388
}
darope@0
   389
edict_t *PEntityOfEntIndex_Post(int iEntIndex) {
darope@0
   390
	edict_t *ed=META_RESULT_ORIG_RET(edict_t *);
darope@0
   391
	ENGINE_TRACE(pfnPEntityOfEntIndex, P_POST, ("classname=%s netname=%s", 
darope@0
   392
				ed ? STRING(ed->v.classname) : "nil",
darope@0
   393
				ed ? STRING(ed->v.netname) : "nil"));
darope@0
   394
	RETURN_META_VALUE(MRES_IGNORED, NULL);
darope@0
   395
}
darope@0
   396
edict_t *FindEntityByVars_Post(struct entvars_s *pvars) {
darope@0
   397
	ENGINE_TRACE(pfnFindEntityByVars, P_POST, (""));
darope@0
   398
	RETURN_META_VALUE(MRES_IGNORED, NULL);
darope@0
   399
}
darope@0
   400
void *GetModelPtr_Post(edict_t *pEdict) {
darope@0
   401
	ENGINE_TRACE(pfnGetModelPtr, P_POST, (""));
darope@0
   402
	RETURN_META_VALUE(MRES_IGNORED, NULL);
darope@0
   403
}
darope@0
   404
darope@0
   405
int RegUserMsg_Post(const char *pszName, int iSize) {
darope@0
   406
	ENGINE_TRACE(pfnRegUserMsg, P_POST, ("msg=%s, id=%d, size=%d", 
darope@0
   407
				pszName, META_RESULT_ORIG_RET(int), iSize));
darope@0
   408
	RETURN_META_VALUE(MRES_IGNORED, 0);
darope@0
   409
}
darope@0
   410
darope@0
   411
void AnimationAutomove_Post(const edict_t *pEdict, float flTime) {
darope@0
   412
	ENGINE_TRACE(pfnAnimationAutomove, P_POST, (""));
darope@0
   413
	RETURN_META(MRES_IGNORED);
darope@0
   414
}
darope@0
   415
void GetBonePosition_Post(const edict_t *pEdict, int iBone, float *rgflOrigin, float *rgflAngles ) {
darope@0
   416
	ENGINE_TRACE(pfnGetBonePosition, P_POST, (""));
darope@0
   417
	RETURN_META(MRES_IGNORED);
darope@0
   418
}
darope@0
   419
darope@236
   420
#ifdef HLSDK_3_2_OLD_EIFACE
darope@0
   421
unsigned long FunctionFromName_Post( const char *pName ) {
darope@236
   422
#else
darope@236
   423
uint32 FunctionFromName_Post( const char *pName ) {
darope@236
   424
#endif
darope@0
   425
	ENGINE_TRACE(pfnFunctionFromName, P_POST, (""));
darope@0
   426
	RETURN_META_VALUE(MRES_IGNORED, 0UL);
darope@0
   427
}
darope@236
   428
#ifdef HLSDK_3_2_OLD_EIFACE
darope@0
   429
const char *NameForFunction_Post( unsigned long function ) {
darope@236
   430
#else
darope@236
   431
const char *NameForFunction_Post( uint32 function ) {
darope@236
   432
#endif
darope@0
   433
	ENGINE_TRACE(pfnNameForFunction, P_POST, (""));
darope@0
   434
	RETURN_META_VALUE(MRES_IGNORED, NULL);
darope@0
   435
}
darope@0
   436
darope@0
   437
//! JOHN: engine callbacks so game DLL can print messages to individual clients
darope@0
   438
void ClientPrintf_Post( edict_t *pEdict, PRINT_TYPE ptype, const char *szMsg ) {
darope@0
   439
	// trace output in Pre
darope@0
   440
	ENGINE_TRACE(pfnClientPrintf, P_POST, (""));
darope@0
   441
	RETURN_META(MRES_IGNORED);
darope@0
   442
}
darope@0
   443
void ServerPrint_Post( const char *szMsg ) {
darope@0
   444
	// trace output in Pre
darope@0
   445
	ENGINE_TRACE(pfnServerPrint, P_POST, (""));
darope@0
   446
	RETURN_META(MRES_IGNORED);
darope@0
   447
}
darope@0
   448
darope@0
   449
//! these 3 added so game DLL can easily access client 'cmd' strings
darope@0
   450
const char *Cmd_Args_Post( void ) {
darope@0
   451
	ENGINE_TRACE(pfnCmd_Args, P_POST, ("args=%s", 
darope@0
   452
				META_RESULT_ORIG_RET(char *)));
darope@0
   453
	RETURN_META_VALUE(MRES_IGNORED, NULL);
darope@0
   454
}
darope@0
   455
const char *Cmd_Argv_Post( int argc ) {
darope@0
   456
	ENGINE_TRACE(pfnCmd_Argv, P_POST, ("arg=%s", 
darope@0
   457
				META_RESULT_ORIG_RET(char *)));
darope@0
   458
	RETURN_META_VALUE(MRES_IGNORED, NULL);
darope@0
   459
}
darope@0
   460
int Cmd_Argc_Post( void ) {
darope@0
   461
	ENGINE_TRACE(pfnCmd_Argc, P_POST, ("argc=%d", 
darope@0
   462
				META_RESULT_ORIG_RET(int)));
darope@0
   463
	RETURN_META_VALUE(MRES_IGNORED, 0);
darope@0
   464
}
darope@0
   465
darope@0
   466
void GetAttachment_Post(const edict_t *pEdict, int iAttachment, float *rgflOrigin, float *rgflAngles ) {
darope@0
   467
	ENGINE_TRACE(pfnGetAttachment, P_POST, (""));
darope@0
   468
	RETURN_META(MRES_IGNORED);
darope@0
   469
}
darope@0
   470
darope@0
   471
void CRC32_Init_Post(CRC32_t *pulCRC) {
darope@0
   472
	ENGINE_TRACE(pfnCRC32_Init, P_POST, (""));
darope@0
   473
	RETURN_META(MRES_IGNORED);
darope@0
   474
}
darope@0
   475
void CRC32_ProcessBuffer_Post(CRC32_t *pulCRC, void *p, int len) {
darope@0
   476
	ENGINE_TRACE(pfnCRC32_ProcessBuffer, P_POST, (""));
darope@0
   477
	RETURN_META(MRES_IGNORED);
darope@0
   478
}
darope@0
   479
void CRC32_ProcessByte_Post(CRC32_t *pulCRC, unsigned char ch) {
darope@0
   480
	ENGINE_TRACE(pfnCRC32_ProcessByte, P_POST, (""));
darope@0
   481
	RETURN_META(MRES_IGNORED);
darope@0
   482
}
darope@0
   483
CRC32_t CRC32_Final_Post(CRC32_t pulCRC) {
darope@0
   484
	ENGINE_TRACE(pfnCRC32_Final, P_POST, (""));
darope@0
   485
	RETURN_META_VALUE(MRES_IGNORED, 0);
darope@0
   486
}
darope@0
   487
darope@236
   488
#ifdef HLSDK_3_2_OLD_EIFACE
darope@0
   489
long RandomLong_Post(long lLow, long lHigh) {
darope@236
   490
#else
darope@236
   491
int32 RandomLong_Post(int32 lLow, int32 lHigh) {
darope@236
   492
#endif
darope@0
   493
	ENGINE_TRACE(pfnRandomLong, P_POST, ("random=%ld", 
darope@0
   494
				META_RESULT_ORIG_RET(long)));
darope@0
   495
	RETURN_META_VALUE(MRES_IGNORED, 0L);
darope@0
   496
}
darope@0
   497
float RandomFloat_Post(float flLow, float flHigh) {
darope@0
   498
	ENGINE_TRACE(pfnRandomFloat, P_POST, ("random=%f", 
darope@0
   499
				META_RESULT_ORIG_RET(float)));
darope@0
   500
	RETURN_META_VALUE(MRES_IGNORED, 0.0);
darope@0
   501
}
darope@0
   502
darope@0
   503
void SetView_Post(const edict_t *pClient, const edict_t *pViewent ) {
darope@0
   504
	ENGINE_TRACE(pfnSetView, P_POST, (""));
darope@0
   505
	RETURN_META(MRES_IGNORED);
darope@0
   506
}
darope@0
   507
float Time_Post( void ) {
darope@0
   508
	ENGINE_TRACE(pfnTime, P_POST, ("time=%f", 
darope@0
   509
				META_RESULT_ORIG_RET(float)));
darope@0
   510
	RETURN_META_VALUE(MRES_IGNORED, 0.0);
darope@0
   511
}
darope@0
   512
void CrosshairAngle_Post(const edict_t *pClient, float pitch, float yaw) {
darope@0
   513
	ENGINE_TRACE(pfnCrosshairAngle, P_POST, (""));
darope@0
   514
	RETURN_META(MRES_IGNORED);
darope@0
   515
}
darope@0
   516
darope@0
   517
byte *LoadFileForMe_Post(char *filename, int *pLength) {
darope@0
   518
	ENGINE_TRACE(pfnLoadFileForMe, P_POST, (""));
darope@0
   519
	RETURN_META_VALUE(MRES_IGNORED, NULL);
darope@0
   520
}
darope@0
   521
void FreeFile_Post(void *buffer) {
darope@0
   522
	ENGINE_TRACE(pfnFreeFile, P_POST, (""));
darope@0
   523
	RETURN_META(MRES_IGNORED);
darope@0
   524
}
darope@0
   525
darope@0
   526
//! trigger_endsection
darope@0
   527
void EndSection_Post(const char *pszSectionName) {
darope@0
   528
	ENGINE_TRACE(pfnEndSection, P_POST, (""));
darope@0
   529
	RETURN_META(MRES_IGNORED);
darope@0
   530
}
darope@0
   531
int CompareFileTime_Post(char *filename1, char *filename2, int *iCompare) {
darope@0
   532
	ENGINE_TRACE(pfnCompareFileTime, P_POST, (""));
darope@0
   533
	RETURN_META_VALUE(MRES_IGNORED, 0);
darope@0
   534
}
darope@0
   535
void GetGameDir_Post(char *szGetGameDir) {
darope@0
   536
	ENGINE_TRACE(pfnGetGameDir, P_POST, ("gamedir=%s", szGetGameDir));
darope@0
   537
	RETURN_META(MRES_IGNORED);
darope@0
   538
}
darope@0
   539
void Cvar_RegisterVariable_Post(cvar_t *variable) {
darope@0
   540
	// trace output in Pre
darope@0
   541
	ENGINE_TRACE(pfnCvar_RegisterVariable, P_POST, (""));
darope@0
   542
	RETURN_META(MRES_IGNORED);
darope@0
   543
}
darope@0
   544
void FadeClientVolume_Post(const edict_t *pEdict, int fadePercent, int fadeOutSeconds, int holdTime, int fadeInSeconds) {
darope@0
   545
	ENGINE_TRACE(pfnFadeClientVolume, P_POST, (""));
darope@0
   546
	RETURN_META(MRES_IGNORED);
darope@0
   547
}
darope@0
   548
void SetClientMaxspeed_Post(const edict_t *pEdict, float fNewMaxspeed) {
darope@0
   549
	ENGINE_TRACE(pfnSetClientMaxspeed, P_POST, (""));
darope@0
   550
	RETURN_META(MRES_IGNORED);
darope@0
   551
}
darope@0
   552
//! returns NULL if fake client can't be created
darope@0
   553
edict_t * CreateFakeClient_Post(const char *netname) {
darope@0
   554
	ENGINE_TRACE(pfnCreateFakeClient, P_POST, (""));
darope@0
   555
	RETURN_META_VALUE(MRES_IGNORED, NULL);
darope@0
   556
}
darope@0
   557
void RunPlayerMove_Post(edict_t *fakeclient, const float *viewangles, float forwardmove, float sidemove, float upmove, unsigned short buttons, byte impulse, byte msec ) {
darope@0
   558
	ENGINE_TRACE(pfnRunPlayerMove, P_POST, (""));
darope@0
   559
	RETURN_META(MRES_IGNORED);
darope@0
   560
}
darope@0
   561
int NumberOfEntities_Post(void) {
darope@0
   562
	ENGINE_TRACE(pfnNumberOfEntities, P_POST, ("num=%d", 
darope@0
   563
				META_RESULT_ORIG_RET(int)));
darope@0
   564
	RETURN_META_VALUE(MRES_IGNORED, 0);
darope@0
   565
}
darope@0
   566
darope@0
   567
//! passing in NULL gets the serverinfo
darope@0
   568
char *GetInfoKeyBuffer_Post(edict_t *e) {
darope@0
   569
	ENGINE_TRACE(pfnGetInfoKeyBuffer, P_POST, (""));
darope@0
   570
	RETURN_META_VALUE(MRES_IGNORED, NULL);
darope@0
   571
}
ds@265
   572
char *InfoKeyValue_Post(char *infobuffer, const char *key) {
darope@0
   573
	ENGINE_TRACE(pfnInfoKeyValue, P_POST, ("value=%s", 
darope@0
   574
				META_RESULT_ORIG_RET(char *)));
darope@0
   575
	RETURN_META_VALUE(MRES_IGNORED, NULL);
darope@0
   576
}
ds@265
   577
void SetKeyValue_Post(char *infobuffer, const char *key, const char *value) {
darope@0
   578
	ENGINE_TRACE(pfnSetKeyValue, P_POST, (""));
darope@0
   579
	RETURN_META(MRES_IGNORED);
darope@0
   580
}
ds@265
   581
void SetClientKeyValue_Post(int clientIndex, char *infobuffer, const char *key, const char *value) {
darope@0
   582
	ENGINE_TRACE(pfnSetClientKeyValue, P_POST, (""));
darope@0
   583
	RETURN_META(MRES_IGNORED);
darope@0
   584
}
darope@0
   585
ds@265
   586
int IsMapValid_Post(const char *filename) {
darope@0
   587
	ENGINE_TRACE(pfnIsMapValid, P_POST, ("file=%s, val=%d",
darope@0
   588
				filename, META_RESULT_ORIG_RET(int)));
darope@0
   589
	RETURN_META_VALUE(MRES_IGNORED, 0);
darope@0
   590
}
darope@0
   591
void StaticDecal_Post( const float *origin, int decalIndex, int entityIndex, int modelIndex ) {
darope@0
   592
	ENGINE_TRACE(pfnStaticDecal, P_POST, (""));
darope@0
   593
	RETURN_META(MRES_IGNORED);
darope@0
   594
}
ds@265
   595
int PrecacheGeneric_Post(const char *s) {
darope@0
   596
	ENGINE_TRACE(pfnPrecacheGeneric, P_POST, (""));
darope@0
   597
	RETURN_META_VALUE(MRES_IGNORED, 0);
darope@0
   598
}
darope@0
   599
//! returns the server assigned userid for this player. useful for logging frags, etc. returns -1 if the edict couldn't be found in the list of clients
darope@0
   600
int GetPlayerUserId_Post(edict_t *e ) {
darope@0
   601
	edict_t *ed = e;
darope@0
   602
	int userid=META_RESULT_ORIG_RET(int);
darope@0
   603
	ENGINE_TRACE(pfnGetPlayerUserId, P_POST, ("netname=%s userid=%d",
darope@0
   604
				ed ? STRING(ed->v.netname) : "nil",
darope@0
   605
				userid));
darope@0
   606
	RETURN_META_VALUE(MRES_IGNORED, 0);
darope@0
   607
}
darope@0
   608
void BuildSoundMsg_Post(edict_t *entity, int channel, const char *sample, /*int*/float volume, float attenuation, int fFlags, int pitch, int msg_dest, int msg_type, const float *pOrigin, edict_t *ed) 
darope@0
   609
{
darope@0
   610
	ENGINE_TRACE(pfnBuildSoundMsg, P_POST, ("sample=%s", sample));
darope@0
   611
	RETURN_META(MRES_IGNORED);
darope@0
   612
}
darope@0
   613
//! is this a dedicated server?
darope@0
   614
int IsDedicatedServer_Post(void) {
darope@0
   615
	ENGINE_TRACE(pfnIsDedicatedServer, P_POST, ("val=%d",
darope@0
   616
				META_RESULT_ORIG_RET(int)));
darope@0
   617
	RETURN_META_VALUE(MRES_IGNORED, 0);
darope@0
   618
}
darope@0
   619
cvar_t *CVarGetPointer_Post(const char *szVarName) {
darope@0
   620
	// output in Pre
darope@0
   621
	ENGINE_TRACE(pfnCVarGetPointer, P_POST, (""));
darope@0
   622
	RETURN_META_VALUE(MRES_IGNORED, NULL);
darope@0
   623
}
darope@0
   624
//! returns the server assigned WONid for this player. useful for logging frags, etc. returns -1 if the edict couldn't be found in the list of clients
darope@0
   625
unsigned int GetPlayerWONId_Post(edict_t *e) {
darope@0
   626
	edict_t *ed = e;
darope@0
   627
	unsigned int wonid=META_RESULT_ORIG_RET(unsigned int);
darope@0
   628
	ENGINE_TRACE(pfnGetPlayerWONId, P_POST, ("netname=%s wonid=%u",
darope@0
   629
				ed ? STRING(ed->v.netname) : "nil",
darope@0
   630
				wonid));
darope@0
   631
	RETURN_META_VALUE(MRES_IGNORED, 0U);
darope@0
   632
}
darope@0
   633
darope@0
   634
//! YWB 8/1/99 TFF Physics additions
darope@0
   635
void Info_RemoveKey_Post( char *s, const char *key ) {
darope@0
   636
	ENGINE_TRACE(pfnInfo_RemoveKey, P_POST, (""));
darope@0
   637
	RETURN_META(MRES_IGNORED);
darope@0
   638
}
darope@0
   639
const char *GetPhysicsKeyValue_Post( const edict_t *pClient, const char *key ) {
darope@0
   640
	ENGINE_TRACE(pfnGetPhysicsKeyValue, P_POST, (""));
darope@0
   641
	RETURN_META_VALUE(MRES_IGNORED, NULL);
darope@0
   642
}
darope@0
   643
void SetPhysicsKeyValue_Post( const edict_t *pClient, const char *key, const char *value ) {
darope@0
   644
	ENGINE_TRACE(pfnSetPhysicsKeyValue, P_POST, (""));
darope@0
   645
	RETURN_META(MRES_IGNORED);
darope@0
   646
}
darope@0
   647
const char *GetPhysicsInfoString_Post( const edict_t *pClient ) {
darope@0
   648
	ENGINE_TRACE(pfnGetPhysicsInfoString, P_POST, (""));
darope@0
   649
	RETURN_META_VALUE(MRES_IGNORED, NULL);
darope@0
   650
}
darope@0
   651
unsigned short PrecacheEvent_Post( int type, const char *psz ) {
darope@0
   652
	ENGINE_TRACE(pfnPrecacheEvent, P_POST, (""));
darope@0
   653
	RETURN_META_VALUE(MRES_IGNORED, 0U);
darope@0
   654
}
darope@0
   655
void PlaybackEvent_Post( int flags, const edict_t *pInvoker, unsigned short eventindex, float delay, float *origin, float *angles, float fparam1, float fparam2, int iparam1, int iparam2, int bparam1, int bparam2 ) 
darope@0
   656
{
darope@0
   657
	ENGINE_TRACE(pfnPlaybackEvent, P_POST, (""));
darope@0
   658
	RETURN_META(MRES_IGNORED);
darope@0
   659
}
darope@0
   660
darope@0
   661
unsigned char *SetFatPVS_Post( float *org ) {
darope@0
   662
	ENGINE_TRACE(pfnSetFatPVS, P_POST, (""));
darope@0
   663
	RETURN_META_VALUE(MRES_IGNORED, NULL);
darope@0
   664
}
darope@0
   665
unsigned char *SetFatPAS_Post( float *org ) {
darope@0
   666
	ENGINE_TRACE(pfnSetFatPAS, P_POST, (""));
darope@0
   667
	RETURN_META_VALUE(MRES_IGNORED, NULL);
darope@0
   668
}
darope@0
   669
darope@0
   670
int CheckVisibility_Post( const edict_t *entity, unsigned char *pset ) {
darope@0
   671
	ENGINE_TRACE(pfnCheckVisibility, P_POST, (""));
darope@0
   672
	RETURN_META_VALUE(MRES_IGNORED, 0);
darope@0
   673
}
darope@0
   674
darope@0
   675
void DeltaSetField_Post( struct delta_s *pFields, const char *fieldname ) {
darope@0
   676
	ENGINE_TRACE(pfnDeltaSetField, P_POST, (""));
darope@0
   677
	RETURN_META(MRES_IGNORED);
darope@0
   678
}
darope@0
   679
void DeltaUnsetField_Post( struct delta_s *pFields, const char *fieldname ) {
darope@0
   680
	ENGINE_TRACE(pfnDeltaUnsetField, P_POST, (""));
darope@0
   681
	RETURN_META(MRES_IGNORED);
darope@0
   682
}
darope@0
   683
void DeltaAddEncoder_Post( char *name, void (*conditionalencode)( struct delta_s *pFields, const unsigned char *from, const unsigned char *to ) ) {
darope@0
   684
	ENGINE_TRACE(pfnDeltaAddEncoder, P_POST, (""));
darope@0
   685
	RETURN_META(MRES_IGNORED);
darope@0
   686
}
darope@0
   687
int GetCurrentPlayer_Post( void ) {
darope@0
   688
	ENGINE_TRACE(pfnGetCurrentPlayer, P_POST, ("val=%d",
darope@0
   689
				META_RESULT_ORIG_RET(int)));
darope@0
   690
	RETURN_META_VALUE(MRES_IGNORED, 0);
darope@0
   691
}
darope@0
   692
int CanSkipPlayer_Post( const edict_t *player ) {
darope@0
   693
	ENGINE_TRACE(pfnCanSkipPlayer, P_POST, (""));
darope@0
   694
	RETURN_META_VALUE(MRES_IGNORED, 0);
darope@0
   695
}
darope@0
   696
int DeltaFindField_Post( struct delta_s *pFields, const char *fieldname ) {
darope@0
   697
	ENGINE_TRACE(pfnDeltaFindField, P_POST, (""));
darope@0
   698
	RETURN_META_VALUE(MRES_IGNORED, 0);
darope@0
   699
}
darope@0
   700
void DeltaSetFieldByIndex_Post( struct delta_s *pFields, int fieldNumber ) {
darope@0
   701
	ENGINE_TRACE(pfnDeltaSetFieldByIndex, P_POST, (""));
darope@0
   702
	RETURN_META(MRES_IGNORED);
darope@0
   703
}
darope@0
   704
void DeltaUnsetFieldByIndex_Post( struct delta_s *pFields, int fieldNumber ) {
darope@0
   705
	ENGINE_TRACE(pfnDeltaUnsetFieldByIndex, P_POST, (""));
darope@0
   706
	RETURN_META(MRES_IGNORED);
darope@0
   707
}
darope@0
   708
darope@0
   709
void SetGroupMask_Post( int mask, int op ) {
darope@0
   710
	ENGINE_TRACE(pfnSetGroupMask, P_POST, (""));
darope@0
   711
	RETURN_META(MRES_IGNORED);
darope@0
   712
}
darope@0
   713
darope@0
   714
int engCreateInstancedBaseline_Post( int classname, struct entity_state_s *baseline ) {
darope@0
   715
	ENGINE_TRACE(pfnCreateInstancedBaseline, P_POST, (""));
darope@0
   716
	RETURN_META_VALUE(MRES_IGNORED, 0);
darope@0
   717
}
darope@0
   718
void Cvar_DirectSet_Post( struct cvar_s *var, char *value ) {
darope@0
   719
	ENGINE_TRACE(pfnCvar_DirectSet, P_POST, (""));
darope@0
   720
	RETURN_META(MRES_IGNORED);
darope@0
   721
}
darope@0
   722
darope@0
   723
//! Forces the client and server to be running with the same version of the specified file
darope@0
   724
//!( e.g., a player model ).
darope@0
   725
//! Calling this has no effect in single player
darope@0
   726
void ForceUnmodified_Post( FORCE_TYPE type, float *mins, float *maxs, const char *filename ) {
darope@0
   727
	// trace output in Pre
darope@0
   728
	ENGINE_TRACE(pfnForceUnmodified, P_POST, (""));
darope@0
   729
	RETURN_META(MRES_IGNORED);
darope@0
   730
}
darope@0
   731
darope@0
   732
void GetPlayerStats_Post( const edict_t *pClient, int *ping, int *packet_loss ) {
darope@0
   733
	const edict_t *ed=pClient;
darope@0
   734
	ENGINE_TRACE(pfnGetPlayerStats, P_POST, 
darope@0
   735
			("netname=%s ping=%d packet_loss=%d",
darope@0
   736
				ed ? STRING(ed->v.netname) : "nil",
darope@0
   737
				*ping,
darope@0
   738
				*packet_loss));
darope@0
   739
	RETURN_META(MRES_IGNORED);
darope@0
   740
}
darope@0
   741
ds@265
   742
void AddServerCommand_Post( const char *cmd_name, void (*function) (void) ) {
darope@0
   743
	// trace output in Pre
darope@0
   744
	ENGINE_TRACE(pfnAddServerCommand, P_POST, (""));
darope@0
   745
	RETURN_META(MRES_IGNORED);
darope@0
   746
}
darope@0
   747
darope@0
   748
// Added in SDK 2.2:
darope@0
   749
darope@0
   750
//! For voice communications, set which clients hear eachother.
darope@0
   751
//! NOTE: these functions take player entity indices (starting at 1).
darope@0
   752
qboolean Voice_GetClientListening_Post(int iReceiver, int iSender) {
darope@0
   753
	ENGINE_TRACE(pfnVoice_GetClientListening, P_POST, (""));
darope@0
   754
	RETURN_META_VALUE(MRES_IGNORED, false);
darope@0
   755
}
darope@0
   756
qboolean Voice_SetClientListening_Post(int iReceiver, int iSender, qboolean bListen) {
darope@0
   757
	ENGINE_TRACE(pfnVoice_SetClientListening, P_POST, (""));
darope@0
   758
	RETURN_META_VALUE(MRES_IGNORED, false);
darope@0
   759
}
darope@0
   760
darope@0
   761
// Added for HL 1109 (no SDK update):
darope@0
   762
darope@0
   763
const char *GetPlayerAuthId_Post(edict_t *e) {
darope@0
   764
	edict_t *ed = e;
darope@0
   765
	const char *authid=META_RESULT_ORIG_RET(const char *);
darope@0
   766
	ENGINE_TRACE(pfnGetPlayerAuthId, P_POST, ("netname=%s authid=%s",
darope@0
   767
				ed ? STRING(ed->v.netname) : "nil",
darope@0
   768
				authid ? authid : "nil"));
darope@0
   769
	RETURN_META_VALUE(MRES_IGNORED, NULL);
darope@0
   770
}
darope@0
   771
darope@249
   772
// Added 2003-11-10 (no SDK update):
darope@0
   773
darope@236
   774
sequenceEntry_s *SequenceGet_Post(const char* fileName, const char* entryName) {
darope@0
   775
	// trace output in Post
darope@0
   776
	ENGINE_TRACE(pfnSequenceGet, P_PRE, (""));
darope@0
   777
	RETURN_META_VALUE(MRES_IGNORED, NULL);
darope@0
   778
}
darope@0
   779
darope@236
   780
sentenceEntry_s *SequencePickSentence_Post(const char* groupName, int pickMethod, int *picked) {
darope@0
   781
	// trace output in Post
darope@0
   782
	ENGINE_TRACE(pfnSequencePickSentence, P_PRE, (""));
darope@0
   783
	RETURN_META_VALUE(MRES_IGNORED, NULL);
darope@0
   784
}
darope@0
   785
ds@265
   786
int GetFileSize_Post(const char *filename) {
darope@0
   787
	// trace output in Post
darope@0
   788
	ENGINE_TRACE(pfnGetFileSize, P_PRE, (""));
darope@0
   789
	RETURN_META_VALUE(MRES_IGNORED, 0);
darope@0
   790
}
darope@0
   791
darope@0
   792
unsigned int GetApproxWavePlayLen_Post(const char *filepath) {
darope@0
   793
	// trace output in Post
darope@0
   794
	ENGINE_TRACE(pfnGetApproxWavePlayLen, P_PRE, (""));
darope@0
   795
	RETURN_META_VALUE(MRES_IGNORED, 0);
darope@0
   796
}
darope@0
   797
darope@0
   798
int IsCareerMatch_Post(void) {
darope@0
   799
	// trace output in Post
darope@0
   800
	ENGINE_TRACE(pfnIsCareerMatch, P_PRE, (""));
darope@0
   801
	RETURN_META_VALUE(MRES_IGNORED, 0);
darope@0
   802
}
darope@0
   803
darope@0
   804
int GetLocalizedStringLength_Post(const char *label) {
darope@0
   805
	// trace output in Post
darope@0
   806
	ENGINE_TRACE(pfnGetLocalizedStringLength, P_PRE, (""));
darope@0
   807
	RETURN_META_VALUE(MRES_IGNORED, 0);
darope@0
   808
}
darope@0
   809
darope@0
   810
void RegisterTutorMessageShown_Post(int mid) {
darope@0
   811
	// trace output in Post
darope@0
   812
	ENGINE_TRACE(pfnRegisterTutorMessageShown, P_PRE, (""));
darope@0
   813
	RETURN_META(MRES_IGNORED);
darope@0
   814
}
darope@0
   815
darope@0
   816
int GetTimesTutorMessageShown_Post(int mid) {
darope@0
   817
	// trace output in Post
darope@0
   818
	ENGINE_TRACE(pfnGetTimesTutorMessageShown, P_PRE, (""));
darope@0
   819
	RETURN_META_VALUE(MRES_IGNORED, 0);
darope@0
   820
}
darope@0
   821
darope@0
   822
void ProcessTutorMessageDecayBuffer_Post(int *buffer, int bufferLength) {
darope@0
   823
	// trace output in Post
darope@0
   824
	ENGINE_TRACE(pfnProcessTutorMessageDecayBuffer, P_PRE, (""));
darope@0
   825
	RETURN_META(MRES_IGNORED);
darope@0
   826
}
darope@0
   827
darope@0
   828
void ConstructTutorMessageDecayBuffer_Post(int *buffer, int bufferLength) {
darope@0
   829
	// trace output in Post
darope@0
   830
	ENGINE_TRACE(pfnConstructTutorMessageDecayBuffer, P_PRE, (""));
darope@0
   831
	RETURN_META(MRES_IGNORED);
darope@0
   832
}
darope@0
   833
darope@0
   834
void ResetTutorMessageDecayData_Post(void) {
darope@0
   835
	// trace output in Post
darope@0
   836
	ENGINE_TRACE(pfnResetTutorMessageDecayData, P_PRE, (""));
darope@0
   837
	RETURN_META(MRES_IGNORED);
darope@0
   838
}
darope@0
   839
darope@249
   840
// Added 2005-08-11 (no SDK update):
darope@248
   841
darope@248
   842
void QueryClientCvarValue_Post(const edict_t *pEdict, const char *cvar) {
darope@248
   843
	// trace output in Post
darope@248
   844
	ENGINE_TRACE(pfnQueryClientCvarValue, P_POST, ("queried=%s",cvar?cvar:"nil"));
darope@248
   845
	RETURN_META(MRES_IGNORED);
darope@248
   846
}
darope@248
   847
darope@249
   848
// Added 2005-11-22 (no SDK update):
darope@249
   849
darope@249
   850
void QueryClientCvarValue2_Post(const edict_t *pEdict, const char *cvar, int requestID) {
darope@249
   851
	// trace output in Post
darope@249
   852
	ENGINE_TRACE(pfnQueryClientCvarValue2, P_POST, ("queried=%s, requestID=%d",cvar?cvar:"nil",requestID));
darope@249
   853
	RETURN_META(MRES_IGNORED);
darope@249
   854
}
darope@249
   855
ds@274
   856
// Added 2009-06-17 (no SDK update):
ds@274
   857
ds@274
   858
int EngCheckParm_Post(const char *pchCmdLineToken, char **pchNextVal) {
ds@274
   859
	// trace output in Post
ds@274
   860
	ENGINE_TRACE(pfnEngCheckParm, P_POST, ("token=%s, nextval=%s",pchCmdLineToken?pchCmdLineToken:"nil",pchNextVal?*pchNextVal:"nil"));
ds@274
   861
	RETURN_META_VALUE(MRES_IGNORED, 0);
ds@274
   862
}
ds@274
   863
darope@0
   864
enginefuncs_t meta_engfuncs_post = {
darope@0
   865
	PrecacheModel_Post,			// pfnPrecacheModel()
darope@0
   866
	PrecacheSound_Post,			// pfnPrecacheSound()
darope@0
   867
	SetModel_Post,				// pfnSetModel()
darope@0
   868
	ModelIndex_Post,			// pfnModelIndex()
darope@0
   869
	ModelFrames_Post,			// pfnModelFrames()
darope@0
   870
darope@0
   871
	SetSize_Post,				// pfnSetSize()
darope@0
   872
	ChangeLevel_Post,			// pfnChangeLevel()
darope@0
   873
	GetSpawnParms_Post,			// pfnGetSpawnParms()
darope@0
   874
	SaveSpawnParms_Post,		// pfnSaveSpawnParms()
darope@0
   875
darope@0
   876
	VecToYaw_Post,				// pfnVecToYaw()
darope@0
   877
	VecToAngles_Post,			// pfnVecToAngles()
darope@0
   878
	MoveToOrigin_Post,			// pfnMoveToOrigin()
darope@0
   879
	ChangeYaw_Post,				// pfnChangeYaw()
darope@0
   880
	ChangePitch_Post,			// pfnChangePitch()
darope@0
   881
darope@0
   882
	FindEntityByString_Post,	// pfnFindEntityByString()
darope@0
   883
	GetEntityIllum_Post,		// pfnGetEntityIllum()
darope@0
   884
	FindEntityInSphere_Post,	// pfnFindEntityInSphere()
darope@0
   885
	FindClientInPVS_Post,		// pfnFindClientInPVS()
darope@0
   886
	EntitiesInPVS_Post,			// pfnEntitiesInPVS()
darope@0
   887
darope@0
   888
	MakeVectors_Post,			// pfnMakeVectors()
darope@0
   889
	AngleVectors_Post,			// pfnAngleVectors()
darope@0
   890
darope@0
   891
	CreateEntity_Post,			// pfnCreateEntity()
darope@0
   892
	RemoveEntity_Post,			// pfnRemoveEntity()
darope@0
   893
	CreateNamedEntity_Post,		// pfnCreateNamedEntity()
darope@0
   894
darope@0
   895
	MakeStatic_Post,			// pfnMakeStatic()
darope@0
   896
	EntIsOnFloor_Post,			// pfnEntIsOnFloor()
darope@0
   897
	DropToFloor_Post,			// pfnDropToFloor()
darope@0
   898
darope@0
   899
	WalkMove_Post,				// pfnWalkMove()
darope@0
   900
	SetOrigin_Post,				// pfnSetOrigin()
darope@0
   901
darope@0
   902
	EmitSound_Post,				// pfnEmitSound()
darope@0
   903
	EmitAmbientSound_Post,		// pfnEmitAmbientSound()
darope@0
   904
darope@0
   905
	TraceLine_Post,				// pfnTraceLine()
darope@0
   906
	TraceToss_Post,				// pfnTraceToss()
darope@0
   907
	TraceMonsterHull_Post,		// pfnTraceMonsterHull()
darope@0
   908
	TraceHull_Post,				// pfnTraceHull()
darope@0
   909
	TraceModel_Post,			// pfnTraceModel()
darope@0
   910
	TraceTexture_Post,			// pfnTraceTexture()
darope@0
   911
	TraceSphere_Post,			// pfnTraceSphere()
darope@0
   912
	GetAimVector_Post,			// pfnGetAimVector()
darope@0
   913
darope@0
   914
	ServerCommand_Post,			// pfnServerCommand()
darope@0
   915
	ServerExecute_Post,			// pfnServerExecute()
darope@0
   916
	engClientCommand_Post,		// pfnClientCommand()	// d'oh, ClientCommand in dllapi too
darope@0
   917
darope@0
   918
	ParticleEffect_Post,		// pfnParticleEffect()
darope@0
   919
	LightStyle_Post,			// pfnLightStyle()
darope@0
   920
	DecalIndex_Post,			// pfnDecalIndex()
darope@0
   921
	PointContents_Post,			// pfnPointContents()
darope@0
   922
darope@0
   923
	MessageBegin_Post,			// pfnMessageBegin()
darope@0
   924
	MessageEnd_Post,			// pfnMessageEnd()
darope@0
   925
darope@0
   926
	WriteByte_Post,				// pfnWriteByte()
darope@0
   927
	WriteChar_Post,				// pfnWriteChar()
darope@0
   928
	WriteShort_Post,			// pfnWriteShort()
darope@0
   929
	WriteLong_Post,				// pfnWriteLong()
darope@0
   930
	WriteAngle_Post,			// pfnWriteAngle()
darope@0
   931
	WriteCoord_Post,			// pfnWriteCoord()
darope@0
   932
	WriteString_Post,			// pfnWriteString()
darope@0
   933
	WriteEntity_Post,			// pfnWriteEntity()
darope@0
   934
darope@0
   935
	CVarRegister_Post,			// pfnCVarRegister()
darope@0
   936
	CVarGetFloat_Post,			// pfnCVarGetFloat()
darope@0
   937
	CVarGetString_Post,			// pfnCVarGetString()
darope@0
   938
	CVarSetFloat_Post,			// pfnCVarSetFloat()
darope@0
   939
	CVarSetString_Post,			// pfnCVarSetString()
darope@0
   940
darope@0
   941
	AlertMessage_Post,			// pfnAlertMessage()
darope@0
   942
	EngineFprintf_Post,			// pfnEngineFprintf()
darope@0
   943
darope@0
   944
	PvAllocEntPrivateData_Post,	// pfnPvAllocEntPrivateData()
darope@0
   945
	PvEntPrivateData_Post,		// pfnPvEntPrivateData()
darope@0
   946
	FreeEntPrivateData_Post,	// pfnFreeEntPrivateData()
darope@0
   947
darope@0
   948
	SzFromIndex_Post,			// pfnSzFromIndex()
darope@0
   949
	AllocString_Post,			// pfnAllocString()
darope@0
   950
darope@0
   951
	GetVarsOfEnt_Post, 			// pfnGetVarsOfEnt()
darope@0
   952
	PEntityOfEntOffset_Post,	// pfnPEntityOfEntOffset()
darope@0
   953
	EntOffsetOfPEntity_Post,	// pfnEntOffsetOfPEntity()
darope@0
   954
	IndexOfEdict_Post,			// pfnIndexOfEdict()
darope@0
   955
	PEntityOfEntIndex_Post,		// pfnPEntityOfEntIndex()
darope@0
   956
	FindEntityByVars_Post,		// pfnFindEntityByVars()
darope@0
   957
	GetModelPtr_Post,			// pfnGetModelPtr()
darope@0
   958
darope@0
   959
	RegUserMsg_Post,			// pfnRegUserMsg()
darope@0
   960
darope@0
   961
	AnimationAutomove_Post,		// pfnAnimationAutomove()
darope@0
   962
	GetBonePosition_Post,		// pfnGetBonePosition()
darope@0
   963
darope@0
   964
	FunctionFromName_Post,		// pfnFunctionFromName()
darope@0
   965
	NameForFunction_Post,		// pfnNameForFunction()
darope@0
   966
darope@0
   967
	ClientPrintf_Post,			// pfnClientPrintf()			//! JOHN: engine callbacks so game DLL can print messages to individual clients
darope@0
   968
	ServerPrint_Post,			// pfnServerPrint()
darope@0
   969
darope@0
   970
	Cmd_Args_Post,				// pfnCmd_Args()				//! these 3 added 
darope@0
   971
	Cmd_Argv_Post,				// pfnCmd_Argv()				//! so game DLL can easily 
darope@0
   972
	Cmd_Argc_Post,				// pfnCmd_Argc()				//! access client 'cmd' strings
darope@0
   973
darope@0
   974
	GetAttachment_Post,			// pfnGetAttachment()
darope@0
   975
darope@0
   976
	CRC32_Init_Post,			// pfnCRC32_Init()
darope@0
   977
	CRC32_ProcessBuffer_Post,	// pfnCRC32_ProcessBuffer()
darope@0
   978
	CRC32_ProcessByte_Post,		// pfnCRC32_ProcessByte()
darope@0
   979
	CRC32_Final_Post,			// pfnCRC32_Final()
darope@0
   980
darope@0
   981
	RandomLong_Post,			// pfnRandomLong()
darope@0
   982
	RandomFloat_Post,			// pfnRandomFloat()
darope@0
   983
darope@0
   984
	SetView_Post,				// pfnSetView()
darope@0
   985
	Time_Post,					// pfnTime()
darope@0
   986
	CrosshairAngle_Post,		// pfnCrosshairAngle()
darope@0
   987
darope@0
   988
	LoadFileForMe_Post,			// pfnLoadFileForMe()
darope@0
   989
	FreeFile_Post,				// pfnFreeFile()
darope@0
   990
darope@0
   991
	EndSection_Post,			// pfnEndSection()				//! trigger_endsection
darope@0
   992
	CompareFileTime_Post,		// pfnCompareFileTime()
darope@0
   993
	GetGameDir_Post,			// pfnGetGameDir()
darope@0
   994
	Cvar_RegisterVariable_Post,	// pfnCvar_RegisterVariable()
darope@0
   995
	FadeClientVolume_Post,		// pfnFadeClientVolume()
darope@0
   996
	SetClientMaxspeed_Post,		// pfnSetClientMaxspeed()
darope@0
   997
	CreateFakeClient_Post,		// pfnCreateFakeClient() 		//! returns NULL if fake client can't be created
darope@0
   998
	RunPlayerMove_Post,			// pfnRunPlayerMove()
darope@0
   999
	NumberOfEntities_Post,		// pfnNumberOfEntities()
darope@0
  1000
darope@0
  1001
	GetInfoKeyBuffer_Post,		// pfnGetInfoKeyBuffer()		//! passing in NULL gets the serverinfo
darope@0
  1002
	InfoKeyValue_Post,			// pfnInfoKeyValue()
darope@0
  1003
	SetKeyValue_Post,			// pfnSetKeyValue()
darope@0
  1004
	SetClientKeyValue_Post,		// pfnSetClientKeyValue()
darope@0
  1005
darope@0
  1006
	IsMapValid_Post,			// pfnIsMapValid()
darope@0
  1007
	StaticDecal_Post,			// pfnStaticDecal()
darope@0
  1008
	PrecacheGeneric_Post,		// pfnPrecacheGeneric()
darope@0
  1009
	GetPlayerUserId_Post, 		// pfnGetPlayerUserId()			//! returns the server assigned userid for this player.
darope@0
  1010
	BuildSoundMsg_Post,			// pfnBuildSoundMsg()
darope@0
  1011
	IsDedicatedServer_Post,		// pfnIsDedicatedServer()		//! is this a dedicated server?
darope@0
  1012
	CVarGetPointer_Post,		// pfnCVarGetPointer()
darope@0
  1013
	GetPlayerWONId_Post,		// pfnGetPlayerWONId()			//! returns the server assigned WONid for this player.
darope@0
  1014
darope@0
  1015
	//! YWB 8/1/99 TFF Physics additions
darope@0
  1016
	Info_RemoveKey_Post,		// pfnInfo_RemoveKey()
darope@0
  1017
	GetPhysicsKeyValue_Post,	// pfnGetPhysicsKeyValue()
darope@0
  1018
	SetPhysicsKeyValue_Post,	// pfnSetPhysicsKeyValue()
darope@0
  1019
	GetPhysicsInfoString_Post,	// pfnGetPhysicsInfoString()
darope@0
  1020
	PrecacheEvent_Post,			// pfnPrecacheEvent()
darope@0
  1021
	PlaybackEvent_Post,			// pfnPlaybackEvent()
darope@0
  1022
darope@0
  1023
	SetFatPVS_Post,				// pfnSetFatPVS()
darope@0
  1024
	SetFatPAS_Post,				// pfnSetFatPAS()
darope@0
  1025
darope@0
  1026
	CheckVisibility_Post,		// pfnCheckVisibility()
darope@0
  1027
darope@0
  1028
	DeltaSetField_Post,			// pfnDeltaSetField()
darope@0
  1029
	DeltaUnsetField_Post,		// pfnDeltaUnsetField()
darope@0
  1030
	DeltaAddEncoder_Post,		// pfnDeltaAddEncoder()
darope@0
  1031
	GetCurrentPlayer_Post,		// pfnGetCurrentPlayer()
darope@0
  1032
	CanSkipPlayer_Post,			// pfnCanSkipPlayer()
darope@0
  1033
	DeltaFindField_Post,		// pfnDeltaFindField()
darope@0
  1034
	DeltaSetFieldByIndex_Post,	// pfnDeltaSetFieldByIndex()
darope@0
  1035
	DeltaUnsetFieldByIndex_Post,// pfnDeltaUnsetFieldByIndex()
darope@0
  1036
darope@0
  1037
	SetGroupMask_Post,			// pfnSetGroupMask()
darope@0
  1038
darope@0
  1039
	engCreateInstancedBaseline_Post, // pfnCreateInstancedBaseline()		// d'oh, CreateInstancedBaseline in dllapi too
darope@0
  1040
	Cvar_DirectSet_Post,		// pfnCvar_DirectSet()
darope@0
  1041
darope@0
  1042
	ForceUnmodified_Post,		// pfnForceUnmodified()
darope@0
  1043
darope@0
  1044
	GetPlayerStats_Post,		// pfnGetPlayerStats()
darope@0
  1045
darope@0
  1046
	AddServerCommand_Post,		// pfnAddServerCommand()
darope@0
  1047
darope@0
  1048
	// Added in SDK 2.2:
darope@0
  1049
	Voice_GetClientListening_Post,	// pfnVoice_GetClientListening()
darope@0
  1050
	Voice_SetClientListening_Post,	// pfnVoice_SetClientListening()
darope@0
  1051
darope@0
  1052
	// Added for HL 1109 (no SDK update):
darope@0
  1053
	GetPlayerAuthId_Post,		// pfnGetPlayerAuthId()
darope@0
  1054
darope@249
  1055
	// Added 2003-11-10 (no SDK update):
darope@0
  1056
	SequenceGet_Post,					// pfnSequenceGet()
darope@0
  1057
	SequencePickSentence_Post,			// pfnSequencePickSentence()
darope@0
  1058
	GetFileSize_Post,					// pfnGetFileSize()
darope@0
  1059
	GetApproxWavePlayLen_Post,			// pfnGetApproxWavePlayLen()
darope@0
  1060
	IsCareerMatch_Post,					// pfnIsCareerMatch()
darope@0
  1061
	GetLocalizedStringLength_Post,		// pfnGetLocalizedStringLength()
darope@0
  1062
	RegisterTutorMessageShown_Post,		// pfnRegisterTutorMessageShown()
darope@0
  1063
	GetTimesTutorMessageShown_Post,		// pfnGetTimesTutorMessageShown()
darope@0
  1064
	ProcessTutorMessageDecayBuffer_Post,	// pfnProcessTutorMessageDecayBuffer()
darope@0
  1065
	ConstructTutorMessageDecayBuffer_Post,	// pfnConstructTutorMessageDecayBuffer()
darope@0
  1066
	ResetTutorMessageDecayData_Post,		// pfnResetTutorMessageDecayData()
darope@249
  1067
	// Added 2005-08-11 (no SDK update):
darope@248
  1068
	QueryClientCvarValue_Post,			// pfnQueryClientCvarValue()
darope@249
  1069
	// Added 2005-11-22 (no SDK update):
darope@249
  1070
	QueryClientCvarValue2_Post,			// pfnQueryClientCvarValue2()
ds@274
  1071
	// Added 2009-06-17 (no SDK update):
ds@274
  1072
	EngCheckParm_Post,					// pfnEngCheckParm()
darope@0
  1073
};
darope@0
  1074
darope@0
  1075
C_DLLEXPORT int GetEngineFunctions_Post(enginefuncs_t *pengfuncsFromEngine, int *interfaceVersion ) 
darope@0
  1076
{
darope@0
  1077
	LOG_DEVELOPER(PLID, "called: GetEngineFunctions_Post; version=%d", *interfaceVersion);
darope@0
  1078
	if(!pengfuncsFromEngine) {
darope@0
  1079
		LOG_ERROR(PLID, "GetEngineFunctions_Post called with null pengfuncsFromEngine");
darope@0
  1080
		return(FALSE);
darope@0
  1081
	}
darope@0
  1082
	else if(*interfaceVersion != ENGINE_INTERFACE_VERSION) {
darope@0
  1083
		LOG_ERROR(PLID, "GetEngineFunctions_Post version mismatch; requested=%d ours=%d", *interfaceVersion, ENGINE_INTERFACE_VERSION);
darope@0
  1084
		// Tell metamod what version we had, so it can figure out who is out of date.
darope@0
  1085
		*interfaceVersion = ENGINE_INTERFACE_VERSION;
darope@0
  1086
		return(FALSE);
darope@0
  1087
	}
darope@0
  1088
	memcpy(pengfuncsFromEngine, &meta_engfuncs_post, sizeof(enginefuncs_t));
darope@0
  1089
	return TRUE;
darope@0
  1090
}
darope@249
  1091