doc/html/engine_notes.html
author darope
Tue Aug 23 20:31:28 2005 +0000 (2005-08-23)
changeset 248 f72386298cba
parent 0 d15304fcb7a7
child 176 9a743aab6b3d
child 249 0e54d20d8f28
permissions -rw-r--r--
Merged with working branch (bt-release-1_17_4) for release 1.18
darope@0
     1
<!-- vi: set ts=4 sw=4 : -->
darope@0
     2
<!-- vim: set tw=75 : -->
darope@0
     3
darope@0
     4
<HTML>
darope@0
     5
<head>
darope@0
     6
<title>HLSDK Engine Notes</title>
darope@0
     7
</head>
darope@0
     8
<body>
darope@0
     9
darope@0
    10
<h1>HLSDK Engine Notes
darope@0
    11
</h1>
darope@0
    12
darope@0
    13
<hr>
darope@0
    14
<ul>
darope@0
    15
   <li><a href=#PrecacheModel>PrecacheModel</a>
darope@0
    16
   <li><a href=#PrecacheSound>PrecacheSound</a>
darope@0
    17
   <li><a href=#SetModel>SetModel</a>
darope@0
    18
   <li><a href=#ModelIndex>ModelIndex</a>
darope@0
    19
   <li><a href=#ModelFrames>ModelFrames</a>
darope@0
    20
   <li><a href=#SetSize>SetSize</a>
darope@0
    21
   <li><a href=#ChangeLevel>ChangeLevel</a>
darope@0
    22
   <li><a href=#GetSpawnParms>GetSpawnParms</a>
darope@0
    23
   <li><a href=#SaveSpawnParms>SaveSpawnParms</a>
darope@0
    24
   <li><a href=#VecToYaw>VecToYaw</a>
darope@0
    25
   <li><a href=#VecToAngles>VecToAngles</a>
darope@0
    26
   <li><a href=#MoveToOrigin>MoveToOrigin</a>
darope@0
    27
   <li><a href=#ChangeYaw>ChangeYaw</a>
darope@0
    28
   <li><a href=#ChangePitch>ChangePitch</a>
darope@0
    29
   <li><a href=#FindEntityByString>FindEntityByString</a>
darope@0
    30
   <li><a href=#GetEntityIllum>GetEntityIllum</a>
darope@0
    31
   <li><a href=#FindEntityInSphere>FindEntityInSphere</a>
darope@0
    32
   <li><a href=#FindClientInPVS>FindClientInPVS</a>
darope@0
    33
   <li><a href=#EntitiesInPVS>EntitiesInPVS</a>
darope@0
    34
   <li><a href=#MakeVectors>MakeVectors</a>
darope@0
    35
   <li><a href=#AngleVectors>AngleVectors</a>
darope@0
    36
   <li><a href=#CreateEntity>CreateEntity</a>
darope@0
    37
   <li><a href=#RemoveEntity>RemoveEntity</a>
darope@0
    38
   <li><a href=#CreateNamedEntity>CreateNamedEntity</a>
darope@0
    39
   <li><a href=#MakeStatic>MakeStatic</a>
darope@0
    40
   <li><a href=#EntIsOnFloor>EntIsOnFloor</a>
darope@0
    41
   <li><a href=#DropToFloor>DropToFloor</a>
darope@0
    42
   <li><a href=#WalkMove>WalkMove</a>
darope@0
    43
   <li><a href=#SetOrigin>SetOrigin</a>
darope@0
    44
   <li><a href=#EmitSound>EmitSound</a>
darope@0
    45
   <li><a href=#EmitAmbientSound>EmitAmbientSound</a>
darope@0
    46
   <li><a href=#TraceLine>TraceLine</a>
darope@0
    47
   <li><a href=#TraceToss>TraceToss</a>
darope@0
    48
   <li><a href=#TraceMonsterHull>TraceMonsterHull</a>
darope@0
    49
   <li><a href=#TraceHull>TraceHull</a>
darope@0
    50
   <li><a href=#TraceModel>TraceModel</a>
darope@0
    51
   <li><a href=#TraceTexture>TraceTexture</a>
darope@0
    52
   <li><a href=#TraceSphere>TraceSphere</a>
darope@0
    53
   <li><a href=#GetAimVector>GetAimVector</a>
darope@0
    54
   <li><a href=#ServerCommand>ServerCommand</a>
darope@0
    55
   <li><a href=#ServerExecute>ServerExecute</a>
darope@0
    56
   <li><a href=#ClientCommand>ClientCommand</a>
darope@0
    57
   <li><a href=#ParticleEffect>ParticleEffect</a>
darope@0
    58
   <li><a href=#LightStyle>LightStyle</a>
darope@0
    59
   <li><a href=#DecalIndex>DecalIndex</a>
darope@0
    60
   <li><a href=#PointContents>PointContents</a>
darope@0
    61
   <li><a href=#MessageBegin>MessageBegin</a>
darope@0
    62
   <li><a href=#MessageEnd>MessageEnd</a>
darope@0
    63
   <li><a href=#WriteByte>WriteByte</a>
darope@0
    64
   <li><a href=#WriteChar>WriteChar</a>
darope@0
    65
   <li><a href=#WriteShort>WriteShort</a>
darope@0
    66
   <li><a href=#WriteLong>WriteLong</a>
darope@0
    67
   <li><a href=#WriteAngle>WriteAngle</a>
darope@0
    68
   <li><a href=#WriteCoord>WriteCoord</a>
darope@0
    69
   <li><a href=#WriteString>WriteString</a>
darope@0
    70
   <li><a href=#WriteEntity>WriteEntity</a>
darope@0
    71
   <li><a href=#CVarRegister>CVarRegister</a>
darope@0
    72
   <li><a href=#CVarGetFloat>CVarGetFloat</a>
darope@0
    73
   <li><a href=#CVarGetString>CVarGetString</a>
darope@0
    74
   <li><a href=#CVarSetFloat>CVarSetFloat</a>
darope@0
    75
   <li><a href=#CVarSetString>CVarSetString</a>
darope@0
    76
   <li><a href=#AlertMessage>AlertMessage</a>
darope@0
    77
   <li><a href=#EngineFprintf>EngineFprintf</a>
darope@0
    78
   <li><a href=#PvAllocEntPrivateData>PvAllocEntPrivateData</a>
darope@0
    79
   <li><a href=#PvEntPrivateData>PvEntPrivateData</a>
darope@0
    80
   <li><a href=#FreeEntPrivateData>FreeEntPrivateData</a>
darope@0
    81
   <li><a href=#SzFromIndex>SzFromIndex</a>
darope@0
    82
   <li><a href=#AllocString>AllocString</a>
darope@0
    83
   <li><a href=#GetVarsOfEnt>GetVarsOfEnt</a>
darope@0
    84
   <li><a href=#PEntityOfEntOffset>PEntityOfEntOffset</a>
darope@0
    85
   <li><a href=#EntOffsetOfPEntity>EntOffsetOfPEntity</a>
darope@0
    86
   <li><a href=#IndexOfEdict>IndexOfEdict</a>
darope@0
    87
   <li><a href=#PEntityOfEntIndex>PEntityOfEntIndex</a>
darope@0
    88
   <li><a href=#FindEntityByVars>FindEntityByVars</a>
darope@0
    89
   <li><a href=#GetModelPtr>GetModelPtr</a>
darope@0
    90
   <li><a href=#RegUserMsg>RegUserMsg</a>
darope@0
    91
   <li><a href=#AnimationAutomove>AnimationAutomove</a>
darope@0
    92
   <li><a href=#GetBonePosition>GetBonePosition</a>
darope@0
    93
   <li><a href=#FunctionFromName>FunctionFromName</a>
darope@0
    94
   <li><a href=#NameForFunction>NameForFunction</a>
darope@0
    95
   <li><a href=#ClientPrintf>ClientPrintf</a>
darope@0
    96
   <li><a href=#ServerPrint>ServerPrint</a>
darope@0
    97
   <li><a href=#Cmd_Args>Cmd_Args</a>
darope@0
    98
   <li><a href=#Cmd_Argv>Cmd_Argv</a>
darope@0
    99
   <li><a href=#Cmd_Argc>Cmd_Argc</a>
darope@0
   100
   <li><a href=#GetAttachment>GetAttachment</a>
darope@0
   101
   <li><a href=#CRC32_Init>CRC32_Init</a>
darope@0
   102
   <li><a href=#CRC32_ProcessBuffer>CRC32_ProcessBuffer</a>
darope@0
   103
   <li><a href=#CRC32_ProcessByte>CRC32_ProcessByte</a>
darope@0
   104
   <li><a href=#CRC32_Final>CRC32_Final</a>
darope@0
   105
   <li><a href=#RandomLong>RandomLong</a>
darope@0
   106
   <li><a href=#RandomFloat>RandomFloat</a>
darope@0
   107
   <li><a href=#SetView>SetView</a>
darope@0
   108
   <li><a href=#Time>Time</a>
darope@0
   109
   <li><a href=#CrosshairAngle>CrosshairAngle</a>
darope@0
   110
   <li><a href=#LoadFileForMe>LoadFileForMe</a>
darope@0
   111
   <li><a href=#FreeFile>FreeFile</a>
darope@0
   112
   <li><a href=#EndSection>EndSection</a>
darope@0
   113
   <li><a href=#CompareFileTime>CompareFileTime</a>
darope@0
   114
   <li><a href=#GetGameDir>GetGameDir</a>
darope@0
   115
   <li><a href=#Cvar_RegisterVariable>Cvar_RegisterVariable</a>
darope@0
   116
   <li><a href=#FadeClientVolume>FadeClientVolume</a>
darope@0
   117
   <li><a href=#SetClientMaxspeed>SetClientMaxspeed</a>
darope@0
   118
   <li><a href=#CreateFakeClient>CreateFakeClient</a>
darope@0
   119
   <li><a href=#RunPlayerMove>RunPlayerMove</a>
darope@0
   120
   <li><a href=#NumberOfEntities>NumberOfEntities</a>
darope@0
   121
   <li><a href=#GetInfoKeyBuffer>GetInfoKeyBuffer</a>
darope@0
   122
   <li><a href=#InfoKeyValue>InfoKeyValue</a>
darope@0
   123
   <li><a href=#SetKeyValue>SetKeyValue</a>
darope@0
   124
   <li><a href=#SetClientKeyValue>SetClientKeyValue</a>
darope@0
   125
   <li><a href=#IsMapValid>IsMapValid</a>
darope@0
   126
   <li><a href=#StaticDecal>StaticDecal</a>
darope@0
   127
   <li><a href=#PrecacheGeneric>PrecacheGeneric</a>
darope@0
   128
   <li><a href=#GetPlayerUserId>GetPlayerUserId</a>
darope@0
   129
   <li><a href=#BuildSoundMsg>BuildSoundMsg</a>
darope@0
   130
   <li><a href=#IsDedicatedServer>IsDedicatedServer</a>
darope@0
   131
   <li><a href=#CVarGetPointer>CVarGetPointer</a>
darope@0
   132
   <li><a href=#GetPlayerWONId>GetPlayerWONId</a>
darope@0
   133
   <li><a href=#Info_RemoveKey>Info_RemoveKey</a>
darope@0
   134
   <li><a href=#GetPhysicsKeyValue>GetPhysicsKeyValue</a>
darope@0
   135
   <li><a href=#SetPhysicsKeyValue>SetPhysicsKeyValue</a>
darope@0
   136
   <li><a href=#GetPhysicsInfoString>GetPhysicsInfoString</a>
darope@0
   137
   <li><a href=#PrecacheEvent>PrecacheEvent</a>
darope@0
   138
   <li><a href=#PlaybackEvent>PlaybackEvent</a>
darope@0
   139
   <li><a href=#SetFatPVS>SetFatPVS</a>
darope@0
   140
   <li><a href=#SetFatPAS>SetFatPAS</a>
darope@0
   141
   <li><a href=#CheckVisibility>CheckVisibility</a>
darope@0
   142
   <li><a href=#DeltaSetField>DeltaSetField</a>
darope@0
   143
   <li><a href=#DeltaUnsetField>DeltaUnsetField</a>
darope@0
   144
   <li><a href=#DeltaAddEncoder>DeltaAddEncoder</a>
darope@0
   145
   <li><a href=#GetCurrentPlayer>GetCurrentPlayer</a>
darope@0
   146
   <li><a href=#CanSkipPlayer>CanSkipPlayer</a>
darope@0
   147
   <li><a href=#DeltaFindField>DeltaFindField</a>
darope@0
   148
   <li><a href=#DeltaSetFieldByIndex>DeltaSetFieldByIndex</a>
darope@0
   149
   <li><a href=#DeltaUnsetFieldByIndex>DeltaUnsetFieldByIndex</a>
darope@0
   150
   <li><a href=#SetGroupMask>SetGroupMask</a>
darope@0
   151
   <li><a href=#CreateInstancedBaseline>CreateInstancedBaseline</a>
darope@0
   152
   <li><a href=#Cvar_DirectSet>Cvar_DirectSet</a>
darope@0
   153
   <li><a href=#ForceUnmodified>ForceUnmodified</a>
darope@0
   154
   <li><a href=#GetPlayerStats>GetPlayerStats</a>
darope@0
   155
   <li><a href=#AddServerCommand>AddServerCommand</a>
darope@0
   156
   <li><a href=#Voice_GetClientListening>Voice_GetClientListening</a>
darope@0
   157
   <li><a href=#Voice_SetClientListening>Voice_SetClientListening</a>
darope@0
   158
   <li><a href=#GetPlayerAuthId>GetPlayerAuthId</a>
darope@0
   159
   <li><a href=#SequenceGet>SequenceGet</a>
darope@0
   160
   <li><a href=#SequencePickSentence>SequencePickSentence</a>
darope@0
   161
   <li><a href=#GetFileSize>GetFileSize</a>
darope@0
   162
   <li><a href=#GetApproxWavePlayLen>GetApproxWavePlayLen</a>
darope@0
   163
   <li><a href=#IsCareerMatch>IsCareerMatch</a>
darope@0
   164
   <li><a href=#GetLocalizedStringLength>GetLocalizedStringLength</a>
darope@0
   165
   <li><a href=#RegisterTutorMessageShown>RegisterTutorMessageShown</a>
darope@0
   166
   <li><a href=#GetTimesTutorMessageShown>GetTimesTutorMessageShown</a>
darope@0
   167
   <li><a href=#ProcessTutorMessageDecayBuffer>ProcessTutorMessageDecayBuffer</a>
darope@0
   168
   <li><a href=#ConstructTutorMessageDecayBuffer>ConstructTutorMessageDecayBuffer</a>
darope@0
   169
   <li><a href=#ResetTutorMessageDecayData>ResetTutorMessageDecayData</a>
darope@248
   170
   <li><a href=#QueryClientCvar>QueryClientCvar</a>
darope@0
   171
</ul>
darope@0
   172
darope@0
   173
<hr><h3><tt><a name="PrecacheModel">PrecacheModel</a></tt></h3>
darope@0
   174
<i>from engine/eiface.h:</i><br>
darope@0
   175
<dd><tt>int PrecacheModel(char *s);</tt><br>
darope@0
   176
<dd><tt>PRECACHE_MODEL()</tt>
darope@0
   177
<p><i>comments:</i><br>
darope@0
   178
<blockquote>
darope@0
   179
	.
darope@0
   180
</blockquote>
darope@0
   181
darope@0
   182
<hr><h3><tt><a name="PrecacheSound">PrecacheSound</a></tt></h3>
darope@0
   183
<i>from engine/eiface.h:</i><br>
darope@0
   184
<dd><tt>int PrecacheSound(char *s);</tt><br>
darope@0
   185
<dd><tt>PRECACHE_SOUND()</tt>
darope@0
   186
<p><i>comments:</i><br>
darope@0
   187
<blockquote>
darope@0
   188
	.
darope@0
   189
</blockquote>
darope@0
   190
darope@0
   191
<hr><h3><tt><a name="SetModel">SetModel</a></tt></h3>
darope@0
   192
<i>from engine/eiface.h:</i><br>
darope@0
   193
<dd><tt>void SetModel(edict_t *e, const char *m);</tt><br>
darope@0
   194
<dd><tt>SET_MODEL()</tt>
darope@0
   195
<p><i>comments:</i><br>
darope@0
   196
<blockquote>
darope@0
   197
	.
darope@0
   198
</blockquote>
darope@0
   199
darope@0
   200
<hr><h3><tt><a name="ModelIndex">ModelIndex</a></tt></h3>
darope@0
   201
<i>from engine/eiface.h:</i><br>
darope@0
   202
<dd><tt>int ModelIndex(const char *m);</tt><br>
darope@0
   203
<dd><tt>MODEL_INDEX()</tt>
darope@0
   204
<p><i>comments:</i><br>
darope@0
   205
<blockquote>
darope@0
   206
	.
darope@0
   207
</blockquote>
darope@0
   208
darope@0
   209
<hr><h3><tt><a name="ModelFrames">ModelFrames</a></tt></h3>
darope@0
   210
<i>from engine/eiface.h:</i><br>
darope@0
   211
<dd><tt>int ModelFrames(int modelIndex);</tt><br>
darope@0
   212
<dd><tt>MODEL_FRAMES()</tt>
darope@0
   213
<p><i>comments:</i><br>
darope@0
   214
<blockquote>
darope@0
   215
	.
darope@0
   216
</blockquote>
darope@0
   217
darope@0
   218
<hr><h3><tt><a name="SetSize">SetSize</a></tt></h3>
darope@0
   219
<i>from engine/eiface.h:</i><br>
darope@0
   220
<dd><tt>void SetSize(edict_t *e, const float *rgflMin, const float *rgflMax);</tt><br>
darope@0
   221
<dd><tt>SET_SIZE()</tt>
darope@0
   222
<p><i>comments:</i><br>
darope@0
   223
<blockquote>
darope@0
   224
	.
darope@0
   225
</blockquote>
darope@0
   226
darope@0
   227
<hr><h3><tt><a name="ChangeLevel">ChangeLevel</a></tt></h3>
darope@0
   228
<i>from engine/eiface.h:</i><br>
darope@0
   229
<dd><tt>void ChangeLevel(char *s1, char *s2);</tt><br>
darope@0
   230
<dd><tt>CHANGE_LEVEL()</tt>
darope@0
   231
<p><i>comments:</i><br>
darope@0
   232
<blockquote>
darope@0
   233
	.
darope@0
   234
</blockquote>
darope@0
   235
darope@0
   236
<hr><h3><tt><a name="GetSpawnParms">GetSpawnParms</a></tt></h3>
darope@0
   237
<i>from engine/eiface.h:</i><br>
darope@0
   238
<dd><tt>void GetSpawnParms(edict_t *ent);</tt><br>
darope@0
   239
<dd><tt>GET_SPAWN_PARMS()</tt>
darope@0
   240
<p><i>comments:</i><br>
darope@0
   241
<blockquote>
darope@0
   242
	.
darope@0
   243
</blockquote>
darope@0
   244
darope@0
   245
<hr><h3><tt><a name="SaveSpawnParms">SaveSpawnParms</a></tt></h3>
darope@0
   246
<i>from engine/eiface.h:</i><br>
darope@0
   247
<dd><tt>void SaveSpawnParms(edict_t *ent);</tt><br>
darope@0
   248
<dd><tt>SAVE_SPAWN_PARMS()</tt>
darope@0
   249
<p><i>comments:</i><br>
darope@0
   250
<blockquote>
darope@0
   251
	.
darope@0
   252
</blockquote>
darope@0
   253
darope@0
   254
<hr><h3><tt><a name="VecToYaw">VecToYaw</a></tt></h3>
darope@0
   255
<i>from engine/eiface.h:</i><br>
darope@0
   256
<dd><tt>float VecToYaw(const float *rgflVector);</tt><br>
darope@0
   257
<dd><tt>VEC_TO_YAW()</tt>
darope@0
   258
<p><i>comments:</i><br>
darope@0
   259
<blockquote>
darope@0
   260
	.
darope@0
   261
</blockquote>
darope@0
   262
darope@0
   263
<hr><h3><tt><a name="VecToAngles">VecToAngles</a></tt></h3>
darope@0
   264
<i>from engine/eiface.h:</i><br>
darope@0
   265
<dd><tt>void VecToAngles(const float *rgflVectorIn, float *rgflVectorOut);</tt><br>
darope@0
   266
<dd><tt>VEC_TO_ANGLES()</tt>
darope@0
   267
<p><i>comments:</i><br>
darope@0
   268
<blockquote>
darope@0
   269
	.
darope@0
   270
</blockquote>
darope@0
   271
darope@0
   272
<hr><h3><tt><a name="MoveToOrigin">MoveToOrigin</a></tt></h3>
darope@0
   273
<i>from engine/eiface.h:</i><br>
darope@0
   274
<dd><tt>void MoveToOrigin(edict_t *ent, const float *pflGoal, float dist, int iMoveType);</tt><br>
darope@0
   275
<dd><tt>MOVE_TO_ORIGIN()</tt>
darope@0
   276
<p><i>comments:</i><br>
darope@0
   277
<blockquote>
darope@0
   278
	.
darope@0
   279
</blockquote>
darope@0
   280
darope@0
   281
<hr><h3><tt><a name="ChangeYaw">ChangeYaw</a></tt></h3>
darope@0
   282
<i>from engine/eiface.h:</i><br>
darope@0
   283
<dd><tt>void ChangeYaw(edict_t *ent);</tt><br>
darope@0
   284
<dd><tt>oldCHANGE_YAW()</tt>
darope@0
   285
<p><i>comments:</i><br>
darope@0
   286
<blockquote>
darope@0
   287
	.
darope@0
   288
</blockquote>
darope@0
   289
darope@0
   290
<hr><h3><tt><a name="ChangePitch">ChangePitch</a></tt></h3>
darope@0
   291
<i>from engine/eiface.h:</i><br>
darope@0
   292
<dd><tt>void ChangePitch(edict_t *ent);</tt><br>
darope@0
   293
<dd><tt>CHANGE_PITCH()</tt>
darope@0
   294
<p><i>comments:</i><br>
darope@0
   295
<blockquote>
darope@0
   296
	.
darope@0
   297
</blockquote>
darope@0
   298
darope@0
   299
<hr><h3><tt><a name="FindEntityByString">FindEntityByString</a></tt></h3>
darope@0
   300
<i>from engine/eiface.h:</i><br>
darope@0
   301
<dd><tt>edict_t *FindEntityByString(edict_t *pEdictStartSearchAfter, const char *pszField, const char *pszValue);</tt><br>
darope@0
   302
<dd><tt>FIND_ENTITY_BY_STRING()</tt>
darope@0
   303
<p><i>comments:</i><br>
darope@0
   304
<blockquote>
darope@0
   305
	.
darope@0
   306
</blockquote>
darope@0
   307
darope@0
   308
<hr><h3><tt><a name="GetEntityIllum">GetEntityIllum</a></tt></h3>
darope@0
   309
<i>from engine/eiface.h:</i><br>
darope@0
   310
<dd><tt>int GetEntityIllum(edict_t *pEnt);</tt><br>
darope@0
   311
<dd><tt>GETENTITYILLUM()</tt>
darope@0
   312
<p><i>comments:</i><br>
darope@0
   313
<blockquote>
darope@0
   314
	.
darope@0
   315
</blockquote>
darope@0
   316
darope@0
   317
<hr><h3><tt><a name="FindEntityInSphere">FindEntityInSphere</a></tt></h3>
darope@0
   318
<i>from engine/eiface.h:</i><br>
darope@0
   319
<dd><tt>edict_t *FindEntityInSphere(edict_t *pEdictStartSearchAfter, const float *org, float rad);</tt><br>
darope@0
   320
<dd><tt>FIND_ENTITY_IN_SPHERE()</tt>
darope@0
   321
<p><i>comments:</i><br>
darope@0
   322
<blockquote>
darope@0
   323
	.
darope@0
   324
</blockquote>
darope@0
   325
darope@0
   326
<hr><h3><tt><a name="FindClientInPVS">FindClientInPVS</a></tt></h3>
darope@0
   327
<i>from engine/eiface.h:</i><br>
darope@0
   328
<dd><tt>edict_t *FindClientInPVS(edict_t *pEdict);</tt><br>
darope@0
   329
<dd><tt>FIND_ENTITY_IN_PVS()</tt>
darope@0
   330
<p><i>comments:</i><br>
darope@0
   331
<blockquote>
darope@0
   332
	.
darope@0
   333
</blockquote>
darope@0
   334
darope@0
   335
<hr><h3><tt><a name="EntitiesInPVS">EntitiesInPVS</a></tt></h3>
darope@0
   336
<i>from engine/eiface.h:</i><br>
darope@0
   337
<dd><tt>edict_t *EntitiesInPVS(edict_t *pplayer);</tt>
darope@0
   338
<p><i>comments:</i><br>
darope@0
   339
<blockquote>
darope@0
   340
	.
darope@0
   341
</blockquote>
darope@0
   342
darope@0
   343
<hr><h3><tt><a name="MakeVectors">MakeVectors</a></tt></h3>
darope@0
   344
<i>from engine/eiface.h:</i><br>
darope@0
   345
<dd><tt>void MakeVectors(const float *rgflVector);</tt><br>
darope@0
   346
<dd><tt>MAKE_VECTORS()</tt>
darope@0
   347
<p><i>comments:</i><br>
darope@0
   348
<blockquote>
darope@0
   349
	.
darope@0
   350
</blockquote>
darope@0
   351
darope@0
   352
<hr><h3><tt><a name="AngleVectors">AngleVectors</a></tt></h3>
darope@0
   353
<i>from engine/eiface.h:</i><br>
darope@0
   354
<dd><tt>void AngleVectors(const float *rgflVector, float *forward, float *right, float *up);</tt>
darope@0
   355
<p><i>comments:</i><br>
darope@0
   356
<blockquote>
darope@0
   357
	.
darope@0
   358
</blockquote>
darope@0
   359
darope@0
   360
<hr><h3><tt><a name="CreateEntity">CreateEntity</a></tt></h3>
darope@0
   361
<i>from engine/eiface.h:</i><br>
darope@0
   362
<dd><tt>edict_t *CreateEntity(void);</tt><br>
darope@0
   363
<dd><tt>CREATE_ENTITY()</tt>
darope@0
   364
<p><i>comments:</i><br>
darope@0
   365
<blockquote>
darope@0
   366
	.
darope@0
   367
</blockquote>
darope@0
   368
darope@0
   369
<hr><h3><tt><a name="RemoveEntity">RemoveEntity</a></tt></h3>
darope@0
   370
<i>from engine/eiface.h:</i><br>
darope@0
   371
<dd><tt>void RemoveEntity(edict_t *e);</tt><br>
darope@0
   372
<dd><tt>REMOVE_ENTITY()</tt>
darope@0
   373
<p><i>comments:</i><br>
darope@0
   374
<blockquote>
darope@0
   375
	.
darope@0
   376
</blockquote>
darope@0
   377
darope@0
   378
<hr><h3><tt><a name="CreateNamedEntity">CreateNamedEntity</a></tt></h3>
darope@0
   379
<i>from engine/eiface.h:</i><br>
darope@0
   380
<dd><tt>edict_t *CreateNamedEntity(int className);</tt><br>
darope@0
   381
<dd><tt>CREATE_NAMED_ENTITY()</tt>
darope@0
   382
<p><i>comments:</i><br>
darope@0
   383
<blockquote>
darope@0
   384
	.
darope@0
   385
</blockquote>
darope@0
   386
darope@0
   387
<hr><h3><tt><a name="MakeStatic">MakeStatic</a></tt></h3>
darope@0
   388
<i>from engine/eiface.h:</i><br>
darope@0
   389
<dd><tt>void MakeStatic(edict_t *ent);</tt><br>
darope@0
   390
<dd><tt>MAKE_STATIC()</tt>
darope@0
   391
<p><i>comments:</i><br>
darope@0
   392
<blockquote>
darope@0
   393
	.
darope@0
   394
</blockquote>
darope@0
   395
darope@0
   396
<hr><h3><tt><a name="EntIsOnFloor">EntIsOnFloor</a></tt></h3>
darope@0
   397
<i>from engine/eiface.h:</i><br>
darope@0
   398
<dd><tt>int EntIsOnFloor(edict_t *e);</tt><br>
darope@0
   399
<dd><tt>ENT_IS_ON_FLOOR()</tt>
darope@0
   400
<p><i>comments:</i><br>
darope@0
   401
<blockquote>
darope@0
   402
	.
darope@0
   403
</blockquote>
darope@0
   404
darope@0
   405
<hr><h3><tt><a name="DropToFloor">DropToFloor</a></tt></h3>
darope@0
   406
<i>from engine/eiface.h:</i><br>
darope@0
   407
<dd><tt>int DropToFloor(edict_t *e);</tt><br>
darope@0
   408
<dd><tt>DROP_TO_FLOOR()</tt>
darope@0
   409
<p><i>comments:</i><br>
darope@0
   410
<blockquote>
darope@0
   411
	.
darope@0
   412
</blockquote>
darope@0
   413
darope@0
   414
<hr><h3><tt><a name="WalkMove">WalkMove</a></tt></h3>
darope@0
   415
<i>from engine/eiface.h:</i><br>
darope@0
   416
<dd><tt>int WalkMove(edict_t *ent, float yaw, float dist, int iMode);</tt><br>
darope@0
   417
<dd><tt>WALK_MOVE()</tt>
darope@0
   418
<p><i>comments:</i><br>
darope@0
   419
<blockquote>
darope@0
   420
	.
darope@0
   421
</blockquote>
darope@0
   422
darope@0
   423
<hr><h3><tt><a name="SetOrigin">SetOrigin</a></tt></h3>
darope@0
   424
<i>from engine/eiface.h:</i><br>
darope@0
   425
<dd><tt>void SetOrigin(edict_t *e, const float *rgflOrigin);</tt><br>
darope@0
   426
<dd><tt>SET_ORIGIN()</tt>
darope@0
   427
<p><i>comments:</i><br>
darope@0
   428
<blockquote>
darope@0
   429
	.
darope@0
   430
</blockquote>
darope@0
   431
darope@0
   432
<hr><h3><tt><a name="EmitSound">EmitSound</a></tt></h3>
darope@0
   433
<i>from engine/eiface.h:</i><br>
darope@0
   434
<dd><tt>void EmitSound(edict_t *entity, int channel, const char *sample, /*int*/float volume, float attenuation, int fFlags, int pitch);</tt><br>
darope@0
   435
<dd><tt>EMIT_SOUND_DYN2()</tt>
darope@0
   436
<p><i>comments:</i><br>
darope@0
   437
<blockquote>
darope@0
   438
	.
darope@0
   439
</blockquote>
darope@0
   440
darope@0
   441
<hr><h3><tt><a name="EmitAmbientSound">EmitAmbientSound</a></tt></h3>
darope@0
   442
<i>from engine/eiface.h:</i><br>
darope@0
   443
<dd><tt>void EmitAmbientSound(edict_t *entity, float *pos, const char *samp, float vol, float attenuation, int fFlags, int pitch);</tt><br>
darope@0
   444
<dd><tt>EMIT_AMBIENT_SOUND()</tt>
darope@0
   445
<p><i>comments:</i><br>
darope@0
   446
<blockquote>
darope@0
   447
	.
darope@0
   448
</blockquote>
darope@0
   449
darope@0
   450
<hr><h3><tt><a name="TraceLine">TraceLine</a></tt></h3>
darope@0
   451
<i>from engine/eiface.h:</i><br>
darope@0
   452
<dd><tt>void TraceLine(const float *v1, const float *v2, int fNoMonsters, edict_t *pentToSkip, TraceResult *ptr);</tt><br>
darope@0
   453
<dd><tt>TRACE_LINE()</tt>
darope@0
   454
<p><i>comments:</i><br>
darope@0
   455
<blockquote>
darope@0
   456
	.
darope@0
   457
</blockquote>
darope@0
   458
darope@0
   459
<hr><h3><tt><a name="TraceToss">TraceToss</a></tt></h3>
darope@0
   460
<i>from engine/eiface.h:</i><br>
darope@0
   461
<dd><tt>void TraceToss(edict_t *pent, edict_t *pentToIgnore, TraceResult *ptr);</tt><br>
darope@0
   462
<dd><tt>TRACE_TOSS()</tt>
darope@0
   463
<p><i>comments:</i><br>
darope@0
   464
<blockquote>
darope@0
   465
	.
darope@0
   466
</blockquote>
darope@0
   467
darope@0
   468
<hr><h3><tt><a name="TraceMonsterHull">TraceMonsterHull</a></tt></h3>
darope@0
   469
<i>from engine/eiface.h:</i><br>
darope@0
   470
<dd><tt>int TraceMonsterHull(edict_t *pEdict, const float *v1, const float *v2, int fNoMonsters, edict_t *pentToSkip, TraceResult *ptr);</tt><br>
darope@0
   471
<dd><tt>TRACE_MONSTER_HULL()</tt>
darope@0
   472
<p><i>comments:</i><br>
darope@0
   473
<blockquote>
darope@0
   474
	.
darope@0
   475
</blockquote>
darope@0
   476
darope@0
   477
<hr><h3><tt><a name="TraceHull">TraceHull</a></tt></h3>
darope@0
   478
<i>from engine/eiface.h:</i><br>
darope@0
   479
<dd><tt>void TraceHull(const float *v1, const float *v2, int fNoMonsters, int hullNumber, edict_t *pentToSkip, TraceResult *ptr);</tt><br>
darope@0
   480
<dd><tt>TRACE_HULL()</tt>
darope@0
   481
<p><i>comments:</i><br>
darope@0
   482
<blockquote>
darope@0
   483
	.
darope@0
   484
</blockquote>
darope@0
   485
darope@0
   486
<hr><h3><tt><a name="TraceModel">TraceModel</a></tt></h3>
darope@0
   487
<i>from engine/eiface.h:</i><br>
darope@0
   488
<dd><tt>void TraceModel(const float *v1, const float *v2, int hullNumber, edict_t *pent, TraceResult *ptr);</tt>
darope@0
   489
<p><i>comments:</i><br>
darope@0
   490
<blockquote>
darope@0
   491
	.
darope@0
   492
</blockquote>
darope@0
   493
darope@0
   494
<hr><h3><tt><a name="TraceTexture">TraceTexture</a></tt></h3>
darope@0
   495
<i>from engine/eiface.h:</i><br>
darope@0
   496
<dd><tt>const char *TraceTexture(edict_t *pTextureEntity, const float *v1, const float *v2);</tt><br>
darope@0
   497
<dd><tt>TRACE_TEXTURE()</tt>
darope@0
   498
<p><i>comments:</i><br>
darope@0
   499
<blockquote>
darope@0
   500
	.
darope@0
   501
</blockquote>
darope@0
   502
darope@0
   503
<hr><h3><tt><a name="TraceSphere">TraceSphere</a></tt></h3>
darope@0
   504
<i>from engine/eiface.h:</i><br>
darope@0
   505
<dd><tt>void TraceSphere(const float *v1, const float *v2, int fNoMonsters, float radius, edict_t *pentToSkip, TraceResult *ptr);</tt>
darope@0
   506
<p><i>comments:</i><br>
darope@0
   507
<blockquote>
darope@0
   508
	.
darope@0
   509
</blockquote>
darope@0
   510
darope@0
   511
<hr><h3><tt><a name="GetAimVector">GetAimVector</a></tt></h3>
darope@0
   512
<i>from engine/eiface.h:</i><br>
darope@0
   513
<dd><tt>void GetAimVector(edict_t *ent, float speed, float *rgflReturn);</tt><br>
darope@0
   514
<dd><tt>GET_AIM_VECTOR()</tt>
darope@0
   515
<p><i>comments:</i><br>
darope@0
   516
<blockquote>
darope@0
   517
	.
darope@0
   518
</blockquote>
darope@0
   519
darope@0
   520
<hr><h3><tt><a name="ServerCommand">ServerCommand</a></tt></h3>
darope@0
   521
<i>from engine/eiface.h:</i><br>
darope@0
   522
<dd><tt>void ServerCommand(char *str);</tt><br>
darope@0
   523
<dd><tt>SERVER_COMMAND()</tt>
darope@0
   524
<p><i>comments:</i><br>
darope@0
   525
<blockquote>
darope@0
   526
	Executes a server command, as if typed at the console (ie "exec
darope@0
   527
	myconfig.cfg", or "quit").  Note that it appears no commands are
darope@0
   528
	executed until <b>after</b> GameDLLInit is called.  If
darope@0
   529
	ServerCommand is called earlier than that, the command is delayed until
darope@0
   530
	then.
darope@0
   531
</blockquote>
darope@0
   532
darope@0
   533
<hr><h3><tt><a name="ServerExecute">ServerExecute</a></tt></h3>
darope@0
   534
<i>from engine/eiface.h:</i><br>
darope@0
   535
<dd><tt>void ServerExecute(void);</tt><br>
darope@0
   536
<dd><tt>SERVER_EXECUTE()</tt>
darope@0
   537
<p><i>comments:</i><br>
darope@0
   538
<blockquote>
darope@0
   539
	.
darope@0
   540
</blockquote>
darope@0
   541
darope@0
   542
<hr><h3><tt><a name="ClientCommand">ClientCommand</a></tt></h3>
darope@0
   543
<i>from engine/eiface.h:</i><br>
darope@0
   544
<dd><tt>void ClientCommand(edict_t *pEdict, char *szFmt, ...);</tt><br>
darope@0
   545
<dd><tt>CLIENT_COMMAND()</tt>
darope@0
   546
<p><i>comments:</i><br>
darope@0
   547
<blockquote>
darope@0
   548
	.
darope@0
   549
</blockquote>
darope@0
   550
darope@0
   551
<hr><h3><tt><a name="ParticleEffect">ParticleEffect</a></tt></h3>
darope@0
   552
<i>from engine/eiface.h:</i><br>
darope@0
   553
<dd><tt>void ParticleEffect(const float *org, const float *dir, float color, float count);</tt><br>
darope@0
   554
<dd><tt>PARTICLE_EFFECT()</tt>
darope@0
   555
<p><i>comments:</i><br>
darope@0
   556
<blockquote>
darope@0
   557
	.
darope@0
   558
</blockquote>
darope@0
   559
darope@0
   560
<hr><h3><tt><a name="LightStyle">LightStyle</a></tt></h3>
darope@0
   561
<i>from engine/eiface.h:</i><br>
darope@0
   562
<dd><tt>void LightStyle(int style, char *val);</tt><br>
darope@0
   563
<dd><tt>LIGHT_STYLE()</tt>
darope@0
   564
<p><i>comments:</i><br>
darope@0
   565
<blockquote>
darope@0
   566
	.
darope@0
   567
</blockquote>
darope@0
   568
darope@0
   569
<hr><h3><tt><a name="DecalIndex">DecalIndex</a></tt></h3>
darope@0
   570
<i>from engine/eiface.h:</i><br>
darope@0
   571
<dd><tt>int DecalIndex(const char *name);</tt><br>
darope@0
   572
<dd><tt>DECAL_INDEX()</tt>
darope@0
   573
<p><i>comments:</i><br>
darope@0
   574
<blockquote>
darope@0
   575
	.
darope@0
   576
</blockquote>
darope@0
   577
darope@0
   578
<hr><h3><tt><a name="PointContents">PointContents</a></tt></h3>
darope@0
   579
<i>from engine/eiface.h:</i><br>
darope@0
   580
<dd><tt>int PointContents(const float *rgflVector);</tt><br>
darope@0
   581
<dd><tt>POINT_CONTENTS()</tt>
darope@0
   582
<p><i>comments:</i><br>
darope@0
   583
<blockquote>
darope@0
   584
	.
darope@0
   585
</blockquote>
darope@0
   586
darope@0
   587
<hr><h3><tt><a name="MessageBegin">MessageBegin</a></tt></h3>
darope@0
   588
<i>from engine/eiface.h:</i><br>
darope@0
   589
<dd><tt>void MessageBegin(int msg_dest, int msg_type, const float *pOrigin, edict_t *ed);</tt><br>
darope@0
   590
<dd><tt>MESSAGE_BEGIN()</tt>
darope@0
   591
<p><i>comments:</i><br>
darope@0
   592
<blockquote>
darope@0
   593
	Begin a network message to send to the client.
darope@0
   594
	<br><b><tt>msg_type</tt></b> should be a number returned by <a
darope@0
   595
	href="#RegUserMsg">RegUserMsg</a>.  
darope@0
   596
	<br><b><tt>msg_dest</tt></b> is one of:
darope@0
   597
	<ul>
darope@0
   598
	<li> <b><tt>MSG_BROADCAST</tt></b> - "unreliable to all"
darope@0
   599
	<li> <b><tt>MSG_ONE</tt></b> - "reliable to one (msg_entity)"
darope@0
   600
	<li> <b><tt>MSG_ALL</tt></b> - "reliable to all"
darope@0
   601
	<li> <b><tt>MSG_INIT</tt></b> - "write to the init string"
darope@0
   602
	<li> <b><tt>MSG_PVS</tt></b> - "Ents in PVS of org" (PVS=potentially visible set)
darope@0
   603
	<li> <b><tt>MSG_PAS</tt></b> - "Ents in PAS of org" (PAS=potentially audible set)
darope@0
   604
	<li> <b><tt>MSG_PVS_R</tt></b> - "Reliable to PVS"
darope@0
   605
	<li> <b><tt>MSG_PAS_R</tt></b> - "Reliable to PAS"
darope@0
   606
	<li> <b><tt>MSG_ONE_UNRELIABLE</tt></b> - "Send to one client, but don't put in reliable stream, put in unreliable datagram (could be dropped)"
darope@0
   607
	</ul>
darope@0
   608
</blockquote>
darope@0
   609
darope@0
   610
<hr><h3><tt><a name="MessageEnd">MessageEnd</a></tt></h3>
darope@0
   611
<i>from engine/eiface.h:</i><br>
darope@0
   612
<dd><tt>void MessageEnd(void);</tt><br>
darope@0
   613
<dd><tt>MESSAGE_END()</tt>
darope@0
   614
<p><i>comments:</i><br>
darope@0
   615
<blockquote>
darope@0
   616
	.
darope@0
   617
</blockquote>
darope@0
   618
darope@0
   619
<hr><h3><tt><a name="WriteByte">WriteByte</a></tt></h3>
darope@0
   620
<i>from engine/eiface.h:</i><br>
darope@0
   621
<dd><tt>void WriteByte(int iValue);</tt><br>
darope@0
   622
<dd><tt>WRITE_BYTE()</tt>
darope@0
   623
<p><i>comments:</i><br>
darope@0
   624
<blockquote>
darope@0
   625
	.
darope@0
   626
</blockquote>
darope@0
   627
darope@0
   628
<hr><h3><tt><a name="WriteChar">WriteChar</a></tt></h3>
darope@0
   629
<i>from engine/eiface.h:</i><br>
darope@0
   630
<dd><tt>void WriteChar(int iValue);</tt><br>
darope@0
   631
<dd><tt>WRITE_CHAR()</tt>
darope@0
   632
<p><i>comments:</i><br>
darope@0
   633
<blockquote>
darope@0
   634
	.
darope@0
   635
</blockquote>
darope@0
   636
darope@0
   637
<hr><h3><tt><a name="WriteShort">WriteShort</a></tt></h3>
darope@0
   638
<i>from engine/eiface.h:</i><br>
darope@0
   639
<dd><tt>void WriteShort(int iValue);</tt><br>
darope@0
   640
<dd><tt>WRITE_SHORT()</tt>
darope@0
   641
<p><i>comments:</i><br>
darope@0
   642
<blockquote>
darope@0
   643
	.
darope@0
   644
</blockquote>
darope@0
   645
darope@0
   646
<hr><h3><tt><a name="WriteLong">WriteLong</a></tt></h3>
darope@0
   647
<i>from engine/eiface.h:</i><br>
darope@0
   648
<dd><tt>void WriteLong(int iValue);</tt><br>
darope@0
   649
<dd><tt>WRITE_LONG()</tt>
darope@0
   650
<p><i>comments:</i><br>
darope@0
   651
<blockquote>
darope@0
   652
	.
darope@0
   653
</blockquote>
darope@0
   654
darope@0
   655
<hr><h3><tt><a name="WriteAngle">WriteAngle</a></tt></h3>
darope@0
   656
<i>from engine/eiface.h:</i><br>
darope@0
   657
<dd><tt>void WriteAngle(float flValue);</tt><br>
darope@0
   658
<dd><tt>WRITE_ANGLE()</tt>
darope@0
   659
<p><i>comments:</i><br>
darope@0
   660
<blockquote>
darope@0
   661
	.
darope@0
   662
</blockquote>
darope@0
   663
darope@0
   664
<hr><h3><tt><a name="WriteCoord">WriteCoord</a></tt></h3>
darope@0
   665
<i>from engine/eiface.h:</i><br>
darope@0
   666
<dd><tt>void WriteCoord(float flValue);</tt><br>
darope@0
   667
<dd><tt>WRITE_COORD()</tt>
darope@0
   668
<p><i>comments:</i><br>
darope@0
   669
<blockquote>
darope@0
   670
	.
darope@0
   671
</blockquote>
darope@0
   672
darope@0
   673
<hr><h3><tt><a name="WriteString">WriteString</a></tt></h3>
darope@0
   674
<i>from engine/eiface.h:</i><br>
darope@0
   675
<dd><tt>void WriteString(const char *sz);</tt><br>
darope@0
   676
<dd><tt>WRITE_STRING()</tt>
darope@0
   677
<p><i>comments:</i><br>
darope@0
   678
<blockquote>
darope@0
   679
	.
darope@0
   680
</blockquote>
darope@0
   681
darope@0
   682
<hr><h3><tt><a name="WriteEntity">WriteEntity</a></tt></h3>
darope@0
   683
<i>from engine/eiface.h:</i><br>
darope@0
   684
<dd><tt>void WriteEntity(int iValue);</tt><br>
darope@0
   685
<dd><tt>WRITE_ENTITY()</tt>
darope@0
   686
<p><i>comments:</i><br>
darope@0
   687
<blockquote>
darope@0
   688
	.
darope@0
   689
</blockquote>
darope@0
   690
darope@0
   691
<hr><h3><tt><a name="CVarRegister">CVarRegister</a></tt></h3>
darope@0
   692
<i>from engine/eiface.h:</i><br>
darope@0
   693
<dd><tt>void CVarRegister(cvar_t *pCvar);</tt><br>
darope@0
   694
<dd><tt>CVAR_REGISTER()</tt>
darope@0
   695
<p><i>comments:</i><br>
darope@0
   696
<blockquote>
darope@0
   697
	Register a new cvar (server variable).
darope@0
   698
</blockquote>
darope@0
   699
darope@0
   700
<hr><h3><tt><a name="CVarGetFloat">CVarGetFloat</a></tt></h3>
darope@0
   701
<i>from engine/eiface.h:</i><br>
darope@0
   702
<dd><tt>float CVarGetFloat(const char *szVarName);</tt><br>
darope@0
   703
<dd><tt>CVAR_GET_FLOAT()</tt>
darope@0
   704
<p><i>comments:</i><br>
darope@0
   705
<blockquote>
darope@0
   706
	Return the float value of a cvar.
darope@0
   707
</blockquote>
darope@0
   708
darope@0
   709
<hr><h3><tt><a name="CVarGetString">CVarGetString</a></tt></h3>
darope@0
   710
<i>from engine/eiface.h:</i><br>
darope@0
   711
<dd><tt>const char *CVarGetString(const char *szVarName);</tt><br>
darope@0
   712
<dd><tt>CVAR_GET_STRING()</tt>
darope@0
   713
<p><i>comments:</i><br>
darope@0
   714
<blockquote>
darope@0
   715
	Return the string value of a cvar.
darope@0
   716
</blockquote>
darope@0
   717
darope@0
   718
<hr><h3><tt><a name="CVarSetFloat">CVarSetFloat</a></tt></h3>
darope@0
   719
<i>from engine/eiface.h:</i><br>
darope@0
   720
<dd><tt>void CVarSetFloat(const char *szVarName, float flValue);</tt><br>
darope@0
   721
<dd><tt>CVAR_SET_FLOAT()</tt>
darope@0
   722
<p><i>comments:</i><br>
darope@0
   723
<blockquote>
darope@0
   724
	Set the float value of a cvar.
darope@0
   725
</blockquote>
darope@0
   726
darope@0
   727
<hr><h3><tt><a name="CVarSetString">CVarSetString</a></tt></h3>
darope@0
   728
<i>from engine/eiface.h:</i><br>
darope@0
   729
<dd><tt>void CVarSetString(const char *szVarName, const char *szValue);</tt><br>
darope@0
   730
<dd><tt>CVAR_SET_STRING()</tt>
darope@0
   731
<p><i>comments:</i><br>
darope@0
   732
<blockquote>
darope@0
   733
	Set the string value of a cvar.
darope@0
   734
</blockquote>
darope@0
   735
darope@0
   736
<hr><h3><tt><a name="AlertMessage">AlertMessage</a></tt></h3>
darope@0
   737
<i>from engine/eiface.h:</i><br>
darope@0
   738
<dd><tt>void AlertMessage(ALERT_TYPE atype, char *szFmt, ...);</tt><br>
darope@0
   739
<dd><tt>ALERT()</tt>
darope@0
   740
<p><i>comments:</i><br>
darope@0
   741
<blockquote>
darope@0
   742
	Print an alert message.
darope@0
   743
	<br><b><tt>atype</tt></b> is one of:
darope@0
   744
	<ul>
darope@0
   745
	<li> <b><tt>at_notice</tt></b>
darope@0
   746
	<li> <b><tt>at_console</tt></b> - "same as at_notice, but forces a ConPrintf, not a message box".  Prints output to server console, but only shown if 'developer' is set.
darope@0
   747
	<li> <b><tt>at_aiconsole</tt></b> - "same as at_console, but only shown if developer level is 2!"
darope@0
   748
	<li> <b><tt>at_warning</tt></b>
darope@0
   749
	<li> <b><tt>at_error</tt></b>
darope@0
   750
	<li> <b><tt>at_logged</tt></b> - "Server print to console (only in multiplayer games)."  Prints output to server logs and console.
darope@0
   751
	</ul>
darope@0
   752
</blockquote>
darope@0
   753
darope@0
   754
<hr><h3><tt><a name="EngineFprintf">EngineFprintf</a></tt></h3>
darope@0
   755
<i>from engine/eiface.h:</i><br>
darope@0
   756
<dd><tt>void EngineFprintf(FILE *pfile, char *szFmt, ...);</tt><br>
darope@0
   757
<dd><tt>ENGINE_FPRINTF()</tt>
darope@0
   758
<p><i>comments:</i><br>
darope@0
   759
<blockquote>
darope@0
   760
	.
darope@0
   761
</blockquote>
darope@0
   762
darope@0
   763
<hr><h3><tt><a name="PvAllocEntPrivateData">PvAllocEntPrivateData</a></tt></h3>
darope@0
   764
<i>from engine/eiface.h:</i><br>
darope@0
   765
<dd><tt>void *PvAllocEntPrivateData(edict_t *pEdict, long cb);</tt><br>
darope@0
   766
<dd><tt>ALLOC_PRIVATE()</tt>
darope@0
   767
<p><i>comments:</i><br>
darope@0
   768
<blockquote>
darope@0
   769
	.
darope@0
   770
</blockquote>
darope@0
   771
darope@0
   772
<hr><h3><tt><a name="PvEntPrivateData">PvEntPrivateData</a></tt></h3>
darope@0
   773
<i>from engine/eiface.h:</i><br>
darope@0
   774
<dd><tt>void *PvEntPrivateData(edict_t *pEdict);</tt><br>
darope@0
   775
<dd><tt>GET_PRIVATE()</tt>
darope@0
   776
<p><i>comments:</i><br>
darope@0
   777
<blockquote>
darope@0
   778
	Returns a pointer to the base class type of the given edict.  For
darope@0
   779
	instance:
darope@0
   780
	<pre>
darope@0
   781
    CBaseEntity *pPlayer=(CBaseEntity *)GET_PRIVATE(pEntity);
darope@0
   782
	</pre>
darope@0
   783
</blockquote>
darope@0
   784
darope@0
   785
<hr><h3><tt><a name="FreeEntPrivateData">FreeEntPrivateData</a></tt></h3>
darope@0
   786
<i>from engine/eiface.h:</i><br>
darope@0
   787
<dd><tt>void FreeEntPrivateData(edict_t *pEdict);</tt><br>
darope@0
   788
<dd><tt>FREE_PRIVATE()</tt>
darope@0
   789
<p><i>comments:</i><br>
darope@0
   790
<blockquote>
darope@0
   791
	.
darope@0
   792
</blockquote>
darope@0
   793
darope@0
   794
<hr><h3><tt><a name="SzFromIndex">SzFromIndex</a></tt></h3>
darope@0
   795
<i>from engine/eiface.h:</i><br>
darope@0
   796
<dd><tt>const char *SzFromIndex(int iString);</tt>
darope@0
   797
<p><i>comments:</i><br>
darope@0
   798
<blockquote>
darope@0
   799
	.
darope@0
   800
</blockquote>
darope@0
   801
darope@0
   802
<hr><h3><tt><a name="AllocString">AllocString</a></tt></h3>
darope@0
   803
<i>from engine/eiface.h:</i><br>
darope@0
   804
<dd><tt>int AllocString(const char *szValue);</tt><br>
darope@0
   805
<dd><tt>ALLOC_STRING()</tt>
darope@0
   806
<p><i>comments:</i><br>
darope@0
   807
<blockquote>
darope@0
   808
	.
darope@0
   809
</blockquote>
darope@0
   810
darope@0
   811
<hr><h3><tt><a name="GetVarsOfEnt">GetVarsOfEnt</a></tt></h3>
darope@0
   812
<i>from engine/eiface.h:</i><br>
darope@0
   813
<dd><tt>struct entvars_s *GetVarsOfEnt(edict_t *pEdict);</tt>
darope@0
   814
<p><i>comments:</i><br>
darope@0
   815
<blockquote>
darope@0
   816
	.
darope@0
   817
</blockquote>
darope@0
   818
darope@0
   819
<hr><h3><tt><a name="PEntityOfEntOffset">PEntityOfEntOffset</a></tt></h3>
darope@0
   820
<i>from engine/eiface.h:</i><br>
darope@0
   821
<dd><tt>edict_t *PEntityOfEntOffset(int iEntOffset);</tt><br>
darope@0
   822
<dd><tt>ENT()</tt>
darope@0
   823
<p><i>comments:</i><br>
darope@0
   824
<blockquote>
darope@0
   825
	.
darope@0
   826
</blockquote>
darope@0
   827
darope@0
   828
<hr><h3><tt><a name="EntOffsetOfPEntity">EntOffsetOfPEntity</a></tt></h3>
darope@0
   829
<i>from engine/eiface.h:</i><br>
darope@0
   830
<dd><tt>int EntOffsetOfPEntity(const edict_t *pEdict);</tt>
darope@0
   831
<p><i>comments:</i><br>
darope@0
   832
<blockquote>
darope@0
   833
	.
darope@0
   834
</blockquote>
darope@0
   835
darope@0
   836
<hr><h3><tt><a name="IndexOfEdict">IndexOfEdict</a></tt></h3>
darope@0
   837
<i>from engine/eiface.h:</i><br>
darope@0
   838
<dd><tt>int IndexOfEdict(const edict_t *pEdict);</tt><br>
darope@0
   839
<dd><tt>ENTINDEX()</tt>
darope@0
   840
<p><i>comments:</i><br>
darope@0
   841
<blockquote>
darope@0
   842
	Returns the server slot (ie 1 to maxplayers) of the given player edict.
darope@0
   843
</blockquote>
darope@0
   844
darope@0
   845
<hr><h3><tt><a name="PEntityOfEntIndex">PEntityOfEntIndex</a></tt></h3>
darope@0
   846
<i>from engine/eiface.h:</i><br>
darope@0
   847
<dd><tt>edict_t *PEntityOfEntIndex(int iEntIndex);</tt><br>
darope@0
   848
<dd><tt>INDEXENT()</tt>
darope@0
   849
<p><i>comments:</i><br>
darope@0
   850
<blockquote>
darope@0
   851
	Returns the edict for the player in the given server slot (ie 1 to 
darope@0
   852
	maxplayers).
darope@0
   853
</blockquote>
darope@0
   854
darope@0
   855
<hr><h3><tt><a name="FindEntityByVars">FindEntityByVars</a></tt></h3>
darope@0
   856
<i>from engine/eiface.h:</i><br>
darope@0
   857
<dd><tt>edict_t *FindEntityByVars(struct entvars_s *pvars);</tt>
darope@0
   858
<p><i>comments:</i><br>
darope@0
   859
<blockquote>
darope@0
   860
	.
darope@0
   861
</blockquote>
darope@0
   862
darope@0
   863
<hr><h3><tt><a name="GetModelPtr">GetModelPtr</a></tt></h3>
darope@0
   864
<i>from engine/eiface.h:</i><br>
darope@0
   865
<dd><tt>void *GetModelPtr(edict_t *pEdict);</tt><br>
darope@0
   866
<dd><tt>GET_MODEL_PTR()</tt>
darope@0
   867
<p><i>comments:</i><br>
darope@0
   868
<blockquote>
darope@0
   869
	.
darope@0
   870
</blockquote>
darope@0
   871
darope@0
   872
<hr><h3><tt><a name="RegUserMsg">RegUserMsg</a></tt></h3>
darope@0
   873
<i>from engine/eiface.h:</i><br>
darope@0
   874
<dd><tt>int RegUserMsg(const char *pszName, int iSize);</tt><br>
darope@0
   875
<dd><tt>REG_USER_MSG()</tt>
darope@0
   876
<p><i>comments:</i><br>
darope@0
   877
<blockquote>
darope@0
   878
	Register a network message type with the given name, and size if known.
darope@0
   879
	Returns the number assigned for the network message, to be used with <a
darope@0
   880
	href="#MessageBegin">MessageBegin</a>.  It appears that message
darope@0
   881
	ID's 1-63 are reserved for the Engine, and that GameDLL messages are
darope@0
   882
	allocated IDs starting at 64.  The SDK <tt>dlls/util.h</tt> appears to 
darope@0
   883
	define six Engine messages:
darope@0
   884
	<ul>
darope@0
   885
		<li> <tt>SVC_TEMPENTITY = 23</tt>
darope@0
   886
		<li> <tt>SVC_INTERMISSION = 30</tt>
darope@0
   887
		<li> <tt>SVC_CDTRACK = 32</tt>
darope@0
   888
		<li> <tt>SVC_WEAPONANIM = 35</tt>
darope@0
   889
		<li> <tt>SVC_ROOMTYPE = 37</tt>
darope@0
   890
		<li> <tt>SVC_HLTV = 50</tt>
darope@0
   891
	</ul>
darope@0
   892
</blockquote>
darope@0
   893
darope@0
   894
<hr><h3><tt><a name="AnimationAutomove">AnimationAutomove</a></tt></h3>
darope@0
   895
<i>from engine/eiface.h:</i><br>
darope@0
   896
<dd><tt>void AnimationAutomove(const edict_t *pEdict, float flTime);</tt>
darope@0
   897
<p><i>comments:</i><br>
darope@0
   898
<blockquote>
darope@0
   899
	.
darope@0
   900
</blockquote>
darope@0
   901
darope@0
   902
<hr><h3><tt><a name="GetBonePosition">GetBonePosition</a></tt></h3>
darope@0
   903
<i>from engine/eiface.h:</i><br>
darope@0
   904
<dd><tt>void GetBonePosition(const edict_t *pEdict, int iBone, float *rgflOrigin, float *rgflAngles);</tt><br>
darope@0
   905
<dd><tt>GET_BONE_POSITION()</tt>
darope@0
   906
<p><i>comments:</i><br>
darope@0
   907
<blockquote>
darope@0
   908
	.
darope@0
   909
</blockquote>
darope@0
   910
darope@0
   911
<hr><h3><tt><a name="FunctionFromName">FunctionFromName</a></tt></h3>
darope@0
   912
<i>from engine/eiface.h:</i><br>
darope@0
   913
<dd><tt>unsigned long FunctionFromName(const char *pName);</tt><br>
darope@0
   914
<dd><tt>FUNCTION_FROM_NAME()</tt>
darope@0
   915
<p><i>comments:</i><br>
darope@0
   916
<blockquote>
darope@0
   917
	Apparently, this finds the given exported function name string in the
darope@0
   918
	GameDLL, and returns a pointer to said function (much like unix dlsym
darope@0
   919
	or win32 GetProcAddress?).  This appears to be used in GameDLL code for
darope@0
   920
	loading savegames, as the savegames contain names of exported functions
darope@0
   921
	in the GameDLL.  Basically, this is the opposite of <a
darope@0
   922
	href="#NameForFunction">NameForFunction</a>.
darope@0
   923
</blockquote>
darope@0
   924
darope@0
   925
<hr><h3><tt><a name="NameForFunction">NameForFunction</a></tt></h3>
darope@0
   926
<i>from engine/eiface.h:</i><br>
darope@0
   927
<dd><tt>const char *NameForFunction(unsigned long function);</tt><br>
darope@0
   928
<dd><tt>NAME_FOR_FUNCTION()</tt>
darope@0
   929
<p><i>comments:</i><br>
darope@0
   930
<blockquote>
darope@0
   931
	Basically, the opposite of <a
darope@0
   932
	href="#FunctionFromName">FunctionFromName</a>.  Finds the given
darope@0
   933
	function pointer address in the GameDLL, and returns the string name
darope@0
   934
	for the corresponding function.  This appears to be used in GameDLL
darope@0
   935
	code for saving games, taking known function pointers and converting
darope@0
   936
	them to function name strings to be stored in the savegames, so that
darope@0
   937
	they can be converted back to function pointers upon game load.
darope@0
   938
</blockquote>
darope@0
   939
darope@0
   940
<hr><h3><tt><a name="ClientPrintf">ClientPrintf</a></tt></h3>
darope@0
   941
<i>from engine/eiface.h:</i><br>
darope@0
   942
<dd><tt>void ClientPrintf(edict_t *pEdict, PRINT_TYPE ptype, const char *szMsg);</tt><br>
darope@0
   943
<dd><tt>CLIENT_PRINTF()</tt>
darope@0
   944
<blockquote><tt>
darope@0
   945
	JOHN: engine callbacks so game DLL can print messages to individual
darope@0
   946
	clients
darope@0
   947
</tt></blockquote>
darope@0
   948
<p><i>comments:</i><br>
darope@0
   949
<blockquote>
darope@0
   950
	.
darope@0
   951
</blockquote>
darope@0
   952
darope@0
   953
<hr><h3><tt><a name="ServerPrint">ServerPrint</a></tt></h3>
darope@0
   954
<i>from engine/eiface.h:</i><br>
darope@0
   955
<dd><tt>void ServerPrint(const char *szMsg);</tt>
darope@0
   956
<p><i>comments:</i><br>
darope@0
   957
<blockquote>
darope@0
   958
	Prints output to the server console.
darope@0
   959
</blockquote>
darope@0
   960
darope@0
   961
<hr><h3><tt><a name="Cmd_Args">Cmd_Args</a></tt></h3>
darope@0
   962
<i>from engine/eiface.h:</i><br>
darope@0
   963
<dd><tt>const char *Cmd_Args(void);</tt><br>
darope@0
   964
<dd><tt>CMD_ARGS()</tt>
darope@0
   965
<blockquote><tt>
darope@0
   966
	these 3 added so game DLL can easily access client 'cmd' strings
darope@0
   967
</tt></blockquote>
darope@0
   968
<p><i>comments:</i><br>
darope@0
   969
<blockquote>
darope@0
   970
	Returns the arguments for a command, as a single string.  The command
darope@0
   971
	string itself is not included, and must be queried with 
darope@0
   972
	<a href="#Cmd_Argv"><tt>CMD_ARGV(0)</tt></a>.  For use in <a
darope@0
   973
	href="dllapi_notes.html#ClientCommand">DLLAPI ClientCommand</a>, or in
darope@0
   974
	the function provided to <a
darope@0
   975
	href="#AddServerCommand">AddServerCommand</a>.
darope@0
   976
</blockquote>
darope@0
   977
darope@0
   978
<hr><h3><tt><a name="Cmd_Argv">Cmd_Argv</a></tt></h3>
darope@0
   979
<i>from engine/eiface.h:</i><br>
darope@0
   980
<dd><tt>const char *Cmd_Argv(int argc);</tt><br>
darope@0
   981
<dd><tt>CMD_ARGV()</tt>
darope@0
   982
<p><i>comments:</i><br>
darope@0
   983
<blockquote>
darope@0
   984
	Returns the <i>nth</i> argument to the command.  <tt>CMD_ARGV(0)</tt>
darope@0
   985
	returns the command name itself.
darope@0
   986
</blockquote>
darope@0
   987
darope@0
   988
<hr><h3><tt><a name="Cmd_Argc">Cmd_Argc</a></tt></h3>
darope@0
   989
<i>from engine/eiface.h:</i><br>
darope@0
   990
<dd><tt>int Cmd_Argc(void);</tt><br>
darope@0
   991
<dd><tt>CMD_ARGC()</tt>
darope@0
   992
<p><i>comments:</i><br>
darope@0
   993
<blockquote>
darope@0
   994
	Returns the number of arguments given to the command.
darope@0
   995
</blockquote>
darope@0
   996
darope@0
   997
<hr><h3><tt><a name="GetAttachment">GetAttachment</a></tt></h3>
darope@0
   998
<i>from engine/eiface.h:</i><br>
darope@0
   999
<dd><tt>void GetAttachment(const edict_t *pEdict, int iAttachment, float *rgflOrigin, float *rgflAngles);</tt><br>
darope@0
  1000
<dd><tt>GET_ATTACHMENT()</tt>
darope@0
  1001
<p><i>comments:</i><br>
darope@0
  1002
<blockquote>
darope@0
  1003
	.
darope@0
  1004
</blockquote>
darope@0
  1005
darope@0
  1006
<hr><h3><tt><a name="CRC32_Init">CRC32_Init</a></tt></h3>
darope@0
  1007
<i>from engine/eiface.h:</i><br>
darope@0
  1008
<dd><tt>void CRC32_Init(CRC32_t *pulCRC);</tt><br>
darope@0
  1009
<dd><tt>CRC32_INIT()</tt>
darope@0
  1010
<p><i>comments:</i><br>
darope@0
  1011
<blockquote>
darope@0
  1012
	.
darope@0
  1013
</blockquote>
darope@0
  1014
darope@0
  1015
<hr><h3><tt><a name="CRC32_ProcessBuffer">CRC32_ProcessBuffer</a></tt></h3>
darope@0
  1016
<i>from engine/eiface.h:</i><br>
darope@0
  1017
<dd><tt>void CRC32_ProcessBuffer(CRC32_t *pulCRC, void *p, int len);</tt><br>
darope@0
  1018
<dd><tt>CRC32_PROCESS_BUFFER()</tt>
darope@0
  1019
<p><i>comments:</i><br>
darope@0
  1020
<blockquote>
darope@0
  1021
	.
darope@0
  1022
</blockquote>
darope@0
  1023
darope@0
  1024
<hr><h3><tt><a name="CRC32_ProcessByte">CRC32_ProcessByte</a></tt></h3>
darope@0
  1025
<i>from engine/eiface.h:</i><br>
darope@0
  1026
<dd><tt>void CRC32_ProcessByte(CRC32_t *pulCRC, unsigned char ch);</tt><br>
darope@0
  1027
<dd><tt>CRC32_PROCESS_BYTE()</tt>
darope@0
  1028
<p><i>comments:</i><br>
darope@0
  1029
<blockquote>
darope@0
  1030
	.
darope@0
  1031
</blockquote>
darope@0
  1032
darope@0
  1033
<hr><h3><tt><a name="CRC32_Final">CRC32_Final</a></tt></h3>
darope@0
  1034
<i>from engine/eiface.h:</i><br>
darope@0
  1035
<dd><tt>CRC32_t CRC32_Final(CRC32_t pulCRC);</tt><br>
darope@0
  1036
<dd><tt>CRC32_FINAL()</tt>
darope@0
  1037
<p><i>comments:</i><br>
darope@0
  1038
<blockquote>
darope@0
  1039
	.
darope@0
  1040
</blockquote>
darope@0
  1041
darope@0
  1042
<hr><h3><tt><a name="RandomLong">RandomLong</a></tt></h3>
darope@0
  1043
<i>from engine/eiface.h:</i><br>
darope@0
  1044
<dd><tt>long RandomLong(long lLow, long lHigh);</tt><br>
darope@0
  1045
<dd><tt>RANDOM_LONG()</tt>
darope@0
  1046
<p><i>comments:</i><br>
darope@0
  1047
<blockquote>
darope@0
  1048
	.
darope@0
  1049
</blockquote>
darope@0
  1050
darope@0
  1051
<hr><h3><tt><a name="RandomFloat">RandomFloat</a></tt></h3>
darope@0
  1052
<i>from engine/eiface.h:</i><br>
darope@0
  1053
<dd><tt>float RandomFloat(float flLow, float flHigh);</tt><br>
darope@0
  1054
<dd><tt>RANDOM_FLOAT()</tt>
darope@0
  1055
<p><i>comments:</i><br>
darope@0
  1056
<blockquote>
darope@0
  1057
	.
darope@0
  1058
</blockquote>
darope@0
  1059
darope@0
  1060
<hr><h3><tt><a name="SetView">SetView</a></tt></h3>
darope@0
  1061
<i>from engine/eiface.h:</i><br>
darope@0
  1062
<dd><tt>void SetView(const edict_t *pClient, const edict_t *pViewent);</tt><br>
darope@0
  1063
<dd><tt>SET_VIEW() </tt>
darope@0
  1064
<p><i>comments:</i><br>
darope@0
  1065
<blockquote>
darope@0
  1066
	.
darope@0
  1067
</blockquote>
darope@0
  1068
darope@0
  1069
<hr><h3><tt><a name="Time">Time</a></tt></h3>
darope@0
  1070
<i>from engine/eiface.h:</i><br>
darope@0
  1071
<dd><tt>float Time(void);</tt>
darope@0
  1072
<p><i>comments:</i><br>
darope@0
  1073
<blockquote>
darope@0
  1074
	.
darope@0
  1075
</blockquote>
darope@0
  1076
darope@0
  1077
<hr><h3><tt><a name="CrosshairAngle">CrosshairAngle</a></tt></h3>
darope@0
  1078
<i>from engine/eiface.h:</i><br>
darope@0
  1079
<dd><tt>void CrosshairAngle(const edict_t *pClient, float pitch, float yaw);</tt><br>
darope@0
  1080
<dd><tt>SET_CROSSHAIRANGLE()</tt>
darope@0
  1081
<p><i>comments:</i><br>
darope@0
  1082
<blockquote>
darope@0
  1083
	.
darope@0
  1084
</blockquote>
darope@0
  1085
darope@0
  1086
<hr><h3><tt><a name="LoadFileForMe">LoadFileForMe</a></tt></h3>
darope@0
  1087
<i>from engine/eiface.h:</i><br>
darope@0
  1088
<dd><tt>byte * LoadFileForMe(char *filename, int *pLength);</tt><br>
darope@0
  1089
<dd><tt>LOAD_FILE_FOR_ME()</tt>
darope@0
  1090
<p><i>comments:</i><br>
darope@0
  1091
<blockquote>
darope@0
  1092
	Opens the given filename (relative to the gamedir, or relative to the
darope@0
  1093
	hlds directory, in that order), and returns a pointer to a byte array
darope@0
  1094
	(character string) with the contents of the file.  NULL-termination of
darope@0
  1095
	the array indicates end of file.  Length of the file in bytes is
darope@0
  1096
	returned in the given int pointer.
darope@0
  1097
</blockquote>
darope@0
  1098
darope@0
  1099
<hr><h3><tt><a name="FreeFile">FreeFile</a></tt></h3>
darope@0
  1100
<i>from engine/eiface.h:</i><br>
darope@0
  1101
<dd><tt>void FreeFile(void *buffer);</tt><br>
darope@0
  1102
<dd><tt>FREE_FILE()</tt>
darope@0
  1103
<p><i>comments:</i><br>
darope@0
  1104
<blockquote>
darope@0
  1105
	Free the byte array of the given buffer which was returned by <a
darope@0
  1106
	href="#LoadFileForMe">LoadFileForMe</a>.
darope@0
  1107
</blockquote>
darope@0
  1108
darope@0
  1109
<hr><h3><tt><a name="EndSection">EndSection</a></tt></h3>
darope@0
  1110
<i>from engine/eiface.h:</i><br>
darope@0
  1111
<dd><tt>void EndSection(const char *pszSectionName);</tt>
darope@0
  1112
<blockquote><tt>
darope@0
  1113
	trigger_endsection
darope@0
  1114
</tt></blockquote>
darope@0
  1115
<p><i>comments:</i><br>
darope@0
  1116
<blockquote>
darope@0
  1117
	.
darope@0
  1118
</blockquote>
darope@0
  1119
darope@0
  1120
<hr><h3><tt><a name="CompareFileTime">CompareFileTime</a></tt></h3>
darope@0
  1121
<i>from engine/eiface.h:</i><br>
darope@0
  1122
<dd><tt>int CompareFileTime(char *filename1, char *filename2, int *iCompare);</tt><br>
darope@0
  1123
<dd><tt>COMPARE_FILE_TIME()</tt>
darope@0
  1124
<p><i>comments:</i><br>
darope@0
  1125
<blockquote>
darope@0
  1126
	.
darope@0
  1127
</blockquote>
darope@0
  1128
darope@0
  1129
<hr><h3><tt><a name="GetGameDir">GetGameDir</a></tt></h3>
darope@0
  1130
<i>from engine/eiface.h:</i><br>
darope@0
  1131
<dd><tt>void GetGameDir(char *szGetGameDir);</tt><br>
darope@0
  1132
<dd><tt>GET_GAME_DIR() </tt>
darope@0
  1133
<p><i>comments:</i><br>
darope@0
  1134
<blockquote>
darope@0
  1135
	Copies the pathname of the game directory into the given buffer.  Note
darope@0
  1136
	that there's no way to inform the engine how big the buffer is, so be
darope@0
  1137
	forewarned.
darope@0
  1138
	<p>
darope@0
  1139
	Prior to HL 1.1.1.1 (CS 1.6), this gave the full pathname of the game
darope@0
  1140
	directory, ie "/usr/local/half-life/cstrike" or
darope@0
  1141
	"C:\Games\Half-Life\cstrike".  Now, it is only the string passed to
darope@0
  1142
	hlds as the argument to "-game", ie "cstrike".
darope@0
  1143
</blockquote>
darope@0
  1144
darope@0
  1145
<hr><h3><tt><a name="Cvar_RegisterVariable">Cvar_RegisterVariable</a></tt></h3>
darope@0
  1146
<i>from engine/eiface.h:</i><br>
darope@0
  1147
<dd><tt>void Cvar_RegisterVariable(cvar_t *variable);</tt><br>
darope@0
  1148
<dd><tt>CVAR_CREATE()</tt>
darope@0
  1149
<p><i>comments:</i><br>
darope@0
  1150
<blockquote>
darope@0
  1151
	.
darope@0
  1152
</blockquote>
darope@0
  1153
darope@0
  1154
<hr><h3><tt><a name="FadeClientVolume">FadeClientVolume</a></tt></h3>
darope@0
  1155
<i>from engine/eiface.h:</i><br>
darope@0
  1156
<dd><tt>void FadeClientVolume(const edict_t *pEdict, int fadePercent, int fadeOutSeconds, int holdTime, int fadeInSeconds);</tt>
darope@0
  1157
<p><i>comments:</i><br>
darope@0
  1158
<blockquote>
darope@0
  1159
	.
darope@0
  1160
</blockquote>
darope@0
  1161
darope@0
  1162
<hr><h3><tt><a name="SetClientMaxspeed">SetClientMaxspeed</a></tt></h3>
darope@0
  1163
<i>from engine/eiface.h:</i><br>
darope@0
  1164
<dd><tt>void SetClientMaxspeed(const edict_t *pEdict, float fNewMaxspeed);</tt>
darope@0
  1165
<p><i>comments:</i><br>
darope@0
  1166
<blockquote>
darope@0
  1167
	.
darope@0
  1168
</blockquote>
darope@0
  1169
darope@0
  1170
<hr><h3><tt><a name="CreateFakeClient">CreateFakeClient</a></tt></h3>
darope@0
  1171
<i>from engine/eiface.h:</i><br>
darope@0
  1172
<dd><tt>edict_t * CreateFakeClient(const char *netname);</tt>
darope@0
  1173
<blockquote><tt>
darope@0
  1174
	returns NULL if fake client can't be created
darope@0
  1175
</tt></blockquote>
darope@0
  1176
<p><i>comments:</i><br>
darope@0
  1177
<blockquote>
darope@0
  1178
	Creates "bots" (?).
darope@0
  1179
</blockquote>
darope@0
  1180
darope@0
  1181
<hr><h3><tt><a name="RunPlayerMove">RunPlayerMove</a></tt></h3>
darope@0
  1182
<i>from engine/eiface.h:</i><br>
darope@0
  1183
<dd><tt>void RunPlayerMove(edict_t *fakeclient, const float *viewangles, float forwardmove, float sidemove, float upmove, unsigned short buttons, byte impulse, byte msec);</tt>
darope@0
  1184
<p><i>comments:</i><br>
darope@0
  1185
<blockquote>
darope@0
  1186
	.
darope@0
  1187
</blockquote>
darope@0
  1188
darope@0
  1189
<hr><h3><tt><a name="NumberOfEntities">NumberOfEntities</a></tt></h3>
darope@0
  1190
<i>from engine/eiface.h:</i><br>
darope@0
  1191
<dd><tt>int NumberOfEntities(void);</tt><br>
darope@0
  1192
<dd><tt>NUMBER_OF_ENTITIES()</tt>
darope@0
  1193
<p><i>comments:</i><br>
darope@0
  1194
<blockquote>
darope@0
  1195
	.
darope@0
  1196
</blockquote>
darope@0
  1197
darope@0
  1198
<hr><h3><tt><a name="GetInfoKeyBuffer">GetInfoKeyBuffer</a></tt></h3>
darope@0
  1199
<i>from engine/eiface.h:</i><br>
darope@0
  1200
<dd><tt>char *GetInfoKeyBuffer(edict_t *e);</tt>
darope@0
  1201
<blockquote><tt>
darope@0
  1202
	passing in NULL gets the serverinfo
darope@0
  1203
</tt></blockquote>
darope@0
  1204
<p><i>comments:</i><br>
darope@0
  1205
<blockquote>
darope@0
  1206
	Returns the InfoKeyBuffer for the given edict.  This is basically the
darope@0
  1207
	fields from "setinfo" at the client console, and includes things like
darope@0
  1208
	the player name.
darope@0
  1209
	<p>
darope@0
  1210
	The sourcecode comment ("<i>passing in NULL gets the serverinfo</i>")
darope@0
  1211
	isn't entirely accurate.  There appear to be two server-side info
darope@0
  1212
	buffers available, "<b>serverinfo</b>" and "<b>localinfo</b>", both
darope@0
  1213
	accessible from the console by those two commands, respectively.
darope@0
  1214
	<p>
darope@0
  1215
	Calling <tt>GetInfoKeyBuffer(NULL)</tt> will return the
darope@0
  1216
	<b>localinfo</b> buffer.  Calling 
darope@0
  1217
	<tt>GetInfoKeyBuffer(PEntityOfEntIndex(0))</tt>, ie passing the entity 
darope@0
  1218
	of slot 0, will return the <b>serverinfo</b> buffer.
darope@0
  1219
</blockquote>
darope@0
  1220
darope@0
  1221
<hr><h3><tt><a name="InfoKeyValue">InfoKeyValue</a></tt></h3>
darope@0
  1222
<i>from engine/eiface.h:</i><br>
darope@0
  1223
<dd><tt>char *InfoKeyValue(char *infobuffer, char *key);</tt>
darope@0
  1224
<p><i>comments:</i><br>
darope@0
  1225
<blockquote>
darope@0
  1226
	Returns the value for the given key in the given InfoKeyBuffer.
darope@0
  1227
</blockquote>
darope@0
  1228
darope@0
  1229
<hr><h3><tt><a name="SetKeyValue">SetKeyValue</a></tt></h3>
darope@0
  1230
<i>from engine/eiface.h:</i><br>
darope@0
  1231
<dd><tt>void SetKeyValue(char *infobuffer, char *key, char *value);</tt>
darope@0
  1232
<p><i>comments:</i><br>
darope@0
  1233
<blockquote>
darope@0
  1234
	Adds or sets a key/value pair in the given InfoKeyBuffer.  Appears to
darope@0
  1235
	work for only server info, and not client info.  For clients, use <a
darope@0
  1236
	href="#SetClientKeyValue">SetClientKeyValue</a>.
darope@0
  1237
</blockquote>
darope@0
  1238
darope@0
  1239
<hr><h3><tt><a name="SetClientKeyValue">SetClientKeyValue</a></tt></h3>
darope@0
  1240
<i>from engine/eiface.h:</i><br>
darope@0
  1241
<dd><tt>void SetClientKeyValue(int clientIndex, char *infobuffer, char *key, char *value);</tt>
darope@0
  1242
<p><i>comments:</i><br>
darope@0
  1243
<blockquote>
darope@0
  1244
	Adds or sets a key/value pair in a client's InfoKeyBuffer, by server
darope@0
  1245
	slot (ie 1 to maxplayers).
darope@0
  1246
</blockquote>
darope@0
  1247
darope@0
  1248
<hr><h3><tt><a name="IsMapValid">IsMapValid</a></tt></h3>
darope@0
  1249
<i>from engine/eiface.h:</i><br>
darope@0
  1250
<dd><tt>int IsMapValid(char *filename);</tt><br>
darope@0
  1251
<dd><tt>IS_MAP_VALID()</tt>
darope@0
  1252
<p><i>comments:</i><br>
darope@0
  1253
<blockquote>
darope@0
  1254
	.
darope@0
  1255
</blockquote>
darope@0
  1256
darope@0
  1257
<hr><h3><tt><a name="StaticDecal">StaticDecal</a></tt></h3>
darope@0
  1258
<i>from engine/eiface.h:</i><br>
darope@0
  1259
<dd><tt>void StaticDecal(const float *origin, int decalIndex, int entityIndex, int modelIndex);</tt>
darope@0
  1260
<p><i>comments:</i><br>
darope@0
  1261
<blockquote>
darope@0
  1262
	.
darope@0
  1263
</blockquote>
darope@0
  1264
darope@0
  1265
<hr><h3><tt><a name="PrecacheGeneric">PrecacheGeneric</a></tt></h3>
darope@0
  1266
<i>from engine/eiface.h:</i><br>
darope@0
  1267
<dd><tt>int PrecacheGeneric(char *s);</tt><br>
darope@0
  1268
<dd><tt>PRECACHE_GENERIC()</tt>
darope@0
  1269
<p><i>comments:</i><br>
darope@0
  1270
<blockquote>
darope@0
  1271
	.
darope@0
  1272
</blockquote>
darope@0
  1273
darope@0
  1274
<hr><h3><tt><a name="GetPlayerUserId">GetPlayerUserId</a></tt></h3>
darope@0
  1275
<i>from engine/eiface.h:</i><br>
darope@0
  1276
<dd><tt>int GetPlayerUserId(edict_t *e);</tt><br>
darope@0
  1277
<dd><tt>GETPLAYERUSERID()
darope@0
  1278
<blockquote><tt>
darope@0
  1279
	returns the server assigned userid for this player.  useful for logging
darope@0
  1280
	frags, etc.  returns -1 if the edict couldn't be found in the list of
darope@0
  1281
	clients
darope@0
  1282
</tt></blockquote>
darope@0
  1283
<p><i>comments:</i><br>
darope@0
  1284
<blockquote>
darope@0
  1285
	Returns the session userid for the given player edict.  As of server
darope@0
  1286
	x106, this is constant for the life of the player connection, and
darope@0
  1287
	unique for the life of the server process.  Each time a client
darope@0
  1288
	connects, they are given a userid of 1 plus the userid of the previous
darope@0
  1289
	connecting client.  When the server starts/restarts, the server starts
darope@0
  1290
	again at userid 1.
darope@0
  1291
</blockquote>
darope@0
  1292
darope@0
  1293
<hr><h3><tt><a name="BuildSoundMsg">BuildSoundMsg</a></tt></h3>
darope@0
  1294
<i>from engine/eiface.h:</i><br>
darope@0
  1295
<dd><tt>void BuildSoundMsg(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);</tt><br>
darope@0
  1296
<dd><tt>BUILD_SOUND_MSG()</tt>
darope@0
  1297
<p><i>comments:</i><br>
darope@0
  1298
<blockquote>
darope@0
  1299
	.
darope@0
  1300
</blockquote>
darope@0
  1301
darope@0
  1302
<hr><h3><tt><a name="IsDedicatedServer">IsDedicatedServer</a></tt></h3>
darope@0
  1303
<i>from engine/eiface.h:</i><br>
darope@0
  1304
<dd><tt>int IsDedicatedServer(void);</tt><br>
darope@0
  1305
<dd><tt>IS_DEDICATED_SERVER()
darope@0
  1306
<blockquote><tt>
darope@0
  1307
	is this a dedicated server?
darope@0
  1308
</tt></blockquote>
darope@0
  1309
<p><i>comments:</i><br>
darope@0
  1310
<blockquote>
darope@0
  1311
	.
darope@0
  1312
</blockquote>
darope@0
  1313
darope@0
  1314
<hr><h3><tt><a name="CVarGetPointer">CVarGetPointer</a></tt></h3>
darope@0
  1315
<i>from engine/eiface.h:</i><br>
darope@0
  1316
<dd><tt>cvar_t *CVarGetPointer(const char *szVarName);</tt><br>
darope@0
  1317
<dd><tt>CVAR_GET_POINTER()</tt>
darope@0
  1318
<p><i>comments:</i><br>
darope@0
  1319
<blockquote>
darope@0
  1320
	Returns a pointer to a <tt>cvar_t</tt> struct for the given cvar
darope@0
  1321
	(server variable) name.
darope@0
  1322
</blockquote>
darope@0
  1323
darope@0
  1324
<hr><h3><tt><a name="GetPlayerWONId">GetPlayerWONId</a></tt></h3>
darope@0
  1325
<i>from engine/eiface.h:</i><br>
darope@0
  1326
<dd><tt>unsigned int GetPlayerWONId(edict_t *e);</tt>
darope@0
  1327
<dd><tt>GETPLAYERWONID()</tt>
darope@0
  1328
<blockquote><tt>
darope@0
  1329
	returns the server assigned WONid for this player.  useful for logging
darope@0
  1330
	frags, etc.  returns -1 if the edict couldn't be found in the list of
darope@0
  1331
	clients
darope@0
  1332
</tt></blockquote>
darope@0
  1333
<p><i>comments:</i><br>
darope@0
  1334
<blockquote>
darope@0
  1335
	Returns the WON id for the given player edict.  As of server x106, this
darope@0
  1336
	should be unique per client CD KEY, and should be consistent across all
darope@0
  1337
	WON auth servers.
darope@0
  1338
</blockquote>
darope@0
  1339
darope@0
  1340
<hr><h3><tt><a name="Info_RemoveKey">Info_RemoveKey</a></tt></h3>
darope@0
  1341
<i>from engine/eiface.h:</i><br>
darope@0
  1342
<dd><tt>void Info_RemoveKey(char *s, const char *key);</tt>
darope@0
  1343
<blockquote><tt>
darope@0
  1344
	YWB 8/1/99 TFF Physics additions
darope@0
  1345
</tt></blockquote>
darope@0
  1346
<p><i>comments:</i><br>
darope@0
  1347
<blockquote>
darope@0
  1348
	.
darope@0
  1349
</blockquote>
darope@0
  1350
darope@0
  1351
<hr><h3><tt><a name="GetPhysicsKeyValue">GetPhysicsKeyValue</a></tt></h3>
darope@0
  1352
<i>from engine/eiface.h:</i><br>
darope@0
  1353
<dd><tt>const char *GetPhysicsKeyValue(const edict_t *pClient, const char *key);</tt>
darope@0
  1354
<p><i>comments:</i><br>
darope@0
  1355
<blockquote>
darope@0
  1356
	.
darope@0
  1357
</blockquote>
darope@0
  1358
darope@0
  1359
<hr><h3><tt><a name="SetPhysicsKeyValue">SetPhysicsKeyValue</a></tt></h3>
darope@0
  1360
<i>from engine/eiface.h:</i><br>
darope@0
  1361
<dd><tt>void SetPhysicsKeyValue(const edict_t *pClient, const char *key, const char *value);</tt>
darope@0
  1362
<p><i>comments:</i><br>
darope@0
  1363
<blockquote>
darope@0
  1364
	.
darope@0
  1365
</blockquote>
darope@0
  1366
darope@0
  1367
<hr><h3><tt><a name="GetPhysicsInfoString">GetPhysicsInfoString</a></tt></h3>
darope@0
  1368
<i>from engine/eiface.h:</i><br>
darope@0
  1369
<dd><tt>const char *GetPhysicsInfoString(const edict_t *pClient);</tt><br>
darope@0
  1370
<dd><tt>ENGINE_GETPHYSINFO()</tt>
darope@0
  1371
<p><i>comments:</i><br>
darope@0
  1372
<blockquote>
darope@0
  1373
	.
darope@0
  1374
</blockquote>
darope@0
  1375
darope@0
  1376
<hr><h3><tt><a name="PrecacheEvent">PrecacheEvent</a></tt></h3>
darope@0
  1377
<i>from engine/eiface.h:</i><br>
darope@0
  1378
<dd><tt>unsigned short PrecacheEvent(int type, const char *psz);</tt><br>
darope@0
  1379
<dd><tt>PRECACHE_EVENT()</tt>
darope@0
  1380
<p><i>comments:</i><br>
darope@0
  1381
<blockquote>
darope@0
  1382
	.
darope@0
  1383
</blockquote>
darope@0
  1384
darope@0
  1385
<hr><h3><tt><a name="PlaybackEvent">PlaybackEvent</a></tt></h3>
darope@0
  1386
<i>from engine/eiface.h:</i><br>
darope@0
  1387
<dd><tt>void PlaybackEvent(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);</tt><br>
darope@0
  1388
<dd><tt>PLAYBACK_EVENT_FULL()</tt>
darope@0
  1389
<p><i>comments:</i><br>
darope@0
  1390
<blockquote>
darope@0
  1391
	.
darope@0
  1392
</blockquote>
darope@0
  1393
darope@0
  1394
<hr><h3><tt><a name="SetFatPVS">SetFatPVS</a></tt></h3>
darope@0
  1395
<i>from engine/eiface.h:</i><br>
darope@0
  1396
<dd><tt>unsigned char *SetFatPVS(float *org);</tt><br>
darope@0
  1397
<dd><tt>ENGINE_SET_PVS()</tt>
darope@0
  1398
<p><i>comments:</i><br>
darope@0
  1399
<blockquote>
darope@0
  1400
	.
darope@0
  1401
</blockquote>
darope@0
  1402
darope@0
  1403
<hr><h3><tt><a name="SetFatPAS">SetFatPAS</a></tt></h3>
darope@0
  1404
<i>from engine/eiface.h:</i><br>
darope@0
  1405
<dd><tt>unsigned char *SetFatPAS(float *org);</tt><br>
darope@0
  1406
<dd><tt>ENGINE_SET_PAS()</tt>
darope@0
  1407
<p><i>comments:</i><br>
darope@0
  1408
<blockquote>
darope@0
  1409
	.
darope@0
  1410
</blockquote>
darope@0
  1411
darope@0
  1412
<hr><h3><tt><a name="CheckVisibility">CheckVisibility</a></tt></h3>
darope@0
  1413
<i>from engine/eiface.h:</i><br>
darope@0
  1414
<dd><tt>int CheckVisibility(const edict_t *entity, unsigned char *pset);</tt><br>
darope@0
  1415
<dd><tt>ENGINE_CHECK_VISIBILITY()</tt>
darope@0
  1416
<p><i>comments:</i><br>
darope@0
  1417
<blockquote>
darope@0
  1418
	.
darope@0
  1419
</blockquote>
darope@0
  1420
darope@0
  1421
<hr><h3><tt><a name="DeltaSetField">DeltaSetField</a></tt></h3>
darope@0
  1422
<i>from engine/eiface.h:</i><br>
darope@0
  1423
<dd><tt>void DeltaSetField(struct delta_s *pFields, const char *fieldname);</tt><br>
darope@0
  1424
<dd><tt>DELTA_SET()</tt>
darope@0
  1425
<p><i>comments:</i><br>
darope@0
  1426
<blockquote>
darope@0
  1427
	.
darope@0
  1428
</blockquote>
darope@0
  1429
darope@0
  1430
<hr><h3><tt><a name="DeltaUnsetField">DeltaUnsetField</a></tt></h3>
darope@0
  1431
<i>from engine/eiface.h:</i><br>
darope@0
  1432
<dd><tt>void DeltaUnsetField(struct delta_s *pFields, const char *fieldname);</tt><br>
darope@0
  1433
<dd><tt>DELTA_UNSET()</tt>
darope@0
  1434
<p><i>comments:</i><br>
darope@0
  1435
<blockquote>
darope@0
  1436
	.
darope@0
  1437
</blockquote>
darope@0
  1438
darope@0
  1439
<hr><h3><tt><a name="DeltaAddEncoder">DeltaAddEncoder</a></tt></h3>
darope@0
  1440
<i>from engine/eiface.h:</i><br>
darope@0
  1441
<dd><tt>void DeltaAddEncoder(char *name, void (*conditionalencode)( struct delta_s *pFields, const unsigned char *from, const unsigned char *to) );</tt><br>
darope@0
  1442
<dd><tt>DELTA_ADDENCODER()</tt>
darope@0
  1443
<p><i>comments:</i><br>
darope@0
  1444
<blockquote>
darope@0
  1445
	.
darope@0
  1446
</blockquote>
darope@0
  1447
darope@0
  1448
<hr><h3><tt><a name="GetCurrentPlayer">GetCurrentPlayer</a></tt></h3>
darope@0
  1449
<i>from engine/eiface.h:</i><br>
darope@0
  1450
<dd><tt>int GetCurrentPlayer(void);</tt><br>
darope@0
  1451
<dd><tt>ENGINE_CURRENT_PLAYER()</tt>
darope@0
  1452
<p><i>comments:</i><br>
darope@0
  1453
<blockquote>
darope@0
  1454
	.
darope@0
  1455
</blockquote>
darope@0
  1456
darope@0
  1457
<hr><h3><tt><a name="CanSkipPlayer">CanSkipPlayer</a></tt></h3>
darope@0
  1458
<i>from engine/eiface.h:</i><br>
darope@0
  1459
<dd><tt>int CanSkipPlayer(const edict_t *player);</tt><br>
darope@0
  1460
<dd><tt>ENGINE_CANSKIP()</tt>
darope@0
  1461
<p><i>comments:</i><br>
darope@0
  1462
<blockquote>
darope@0
  1463
	.
darope@0
  1464
</blockquote>
darope@0
  1465
darope@0
  1466
<hr><h3><tt><a name="DeltaFindField">DeltaFindField</a></tt></h3>
darope@0
  1467
<i>from engine/eiface.h:</i><br>
darope@0
  1468
<dd><tt>int DeltaFindField(struct delta_s *pFields, const char *fieldname);</tt><br>
darope@0
  1469
<dd><tt>DELTA_FINDFIELD()</tt>
darope@0
  1470
<p><i>comments:</i><br>
darope@0
  1471
<blockquote>
darope@0
  1472
	.
darope@0
  1473
</blockquote>
darope@0
  1474
darope@0
  1475
<hr><h3><tt><a name="DeltaSetFieldByIndex">DeltaSetFieldByIndex</a></tt></h3>
darope@0
  1476
<i>from engine/eiface.h:</i><br>
darope@0
  1477
<dd><tt>void DeltaSetFieldByIndex(struct delta_s *pFields, int fieldNumber);</tt><br>
darope@0
  1478
<dd><tt>DELTA_SETBYINDEX()</tt>
darope@0
  1479
<p><i>comments:</i><br>
darope@0
  1480
<blockquote>
darope@0
  1481
	.
darope@0
  1482
</blockquote>
darope@0
  1483
darope@0
  1484
<hr><h3><tt><a name="DeltaUnsetFieldByIndex">DeltaUnsetFieldByIndex</a></tt></h3>
darope@0
  1485
<i>from engine/eiface.h:</i><br>
darope@0
  1486
<dd><tt>void DeltaUnsetFieldByIndex(struct delta_s *pFields, int fieldNumber);</tt><br>
darope@0
  1487
<dd><tt>DELTA_UNSETBYINDEX()</tt>
darope@0
  1488
<p><i>comments:</i><br>
darope@0
  1489
<blockquote>
darope@0
  1490
	.
darope@0
  1491
</blockquote>
darope@0
  1492
darope@0
  1493
<hr><h3><tt><a name="SetGroupMask">SetGroupMask</a></tt></h3>
darope@0
  1494
<i>from engine/eiface.h:</i><br>
darope@0
  1495
<dd><tt>void SetGroupMask(int mask, int op);</tt><br>
darope@0
  1496
<dd><tt>ENGINE_SETGROUPMASK()</tt>
darope@0
  1497
<p><i>comments:</i><br>
darope@0
  1498
<blockquote>
darope@0
  1499
	.
darope@0
  1500
</blockquote>
darope@0
  1501
darope@0
  1502
<hr><h3><tt><a name="CreateInstancedBaseline">CreateInstancedBaseline</a></tt></h3>
darope@0
  1503
<i>from engine/eiface.h:</i><br>
darope@0
  1504
<dd><tt>int CreateInstancedBaseline(int classname, struct entity_state_s *baseline);</tt><br>
darope@0
  1505
<dd><tt>ENGINE_INSTANCE_BASELINE()</tt>
darope@0
  1506
<p><i>comments:</i><br>
darope@0
  1507
<blockquote>
darope@0
  1508
	.
darope@0
  1509
</blockquote>
darope@0
  1510
darope@0
  1511
<hr><h3><tt><a name="Cvar_DirectSet">Cvar_DirectSet</a></tt></h3>
darope@0
  1512
<i>from engine/eiface.h:</i><br>
darope@0
  1513
<dd><tt>void Cvar_DirectSet(struct cvar_s *var, char *value);</tt>
darope@0
  1514
<p><i>comments:</i><br>
darope@0
  1515
<blockquote>
darope@0
  1516
	.
darope@0
  1517
</blockquote>
darope@0
  1518
darope@0
  1519
<hr><h3><tt><a name="ForceUnmodified">ForceUnmodified</a></tt></h3>
darope@0
  1520
<i>from engine/eiface.h:</i><br>
darope@0
  1521
<dd><tt>void ForceUnmodified(FORCE_TYPE type, float *mins, float *maxs, const char *filename);</tt><br>
darope@0
  1522
<dd><tt>ENGINE_FORCE_UNMODIFIED()</tt>
darope@0
  1523
<blockquote><tt>
darope@0
  1524
	Forces the client and server to be running with the same version of the
darope@0
  1525
	specified file ( e.g., a player model ).  Calling this has no effect in
darope@0
  1526
	single player.
darope@0
  1527
</tt></blockquote>
darope@0
  1528
<p><i>comments:</i><br>
darope@0
  1529
<blockquote>
darope@0
  1530
	.
darope@0
  1531
</blockquote>
darope@0
  1532
darope@0
  1533
<hr><h3><tt><a name="GetPlayerStats">GetPlayerStats</a></tt></h3>
darope@0
  1534
<i>from engine/eiface.h:</i><br>
darope@0
  1535
<dd><tt>void GetPlayerStats(const edict_t *pClient, int *ping, int *packet_loss);</tt><br>
darope@0
  1536
<dd><tt>PLAYER_CNX_STATS()</tt>
darope@0
  1537
<p><i>comments:</i><br>
darope@0
  1538
<blockquote>
darope@0
  1539
	.
darope@0
  1540
</blockquote>
darope@0
  1541
darope@0
  1542
<hr><h3><tt><a name="AddServerCommand">AddServerCommand</a></tt></h3>
darope@0
  1543
<i>from engine/eiface.h:</i><br>
darope@0
  1544
<dd><tt>void AddServerCommand(char *cmd_name, void (*function) (void));</tt>
darope@0
  1545
<p><i>comments:</i><br>
darope@0
  1546
<blockquote>
darope@0
  1547
	Registers a new server console command.  When the given command string
darope@0
  1548
	is typed at the console, the given function will be called.  Arguments
darope@0
  1549
	for the command can be retrieved in the function with 
darope@0
  1550
	<a href="#Cmd_Args">Cmd_Args</a>, <a href="#Cmd_Argv">Cmd_Argv</a>, and
darope@0
  1551
	<a href="#Cmd_Argc">Cmd_Argc</a>.
darope@0
  1552
</blockquote>
darope@0
  1553
darope@0
  1554
<hr><h3><tt><a name="Voice_GetClientListening">Voice_GetClientListening</a></tt></h3>
darope@0
  1555
<i>from engine/eiface.h:</i><br>
darope@0
  1556
<dd><tt>qboolean Voice_GetClientListening)(int iReceiver, int iSender);</tt>
darope@0
  1557
<blockquote><tt>
darope@0
  1558
	For voice communications, set which clients hear each other.  NOTE: these 
darope@0
  1559
	functions take player entity indices (starting at 1).
darope@0
  1560
</tt></blockquote>
darope@0
  1561
<p><i>comments:</i><br>
darope@0
  1562
<blockquote>
darope@0
  1563
	Added in SDK 2.2.
darope@0
  1564
</blockquote>
darope@0
  1565
darope@0
  1566
<hr><h3><tt><a name="Voice_SetClientListening">Voice_SetClientListening</a></tt></h3>
darope@0
  1567
<i>from engine/eiface.h:</i><br>
darope@0
  1568
<dd><tt>qboolean Voice_SetClientListening)(int iReceiver, int iSender, qboolean bListen);</tt>
darope@0
  1569
<blockquote><tt>
darope@0
  1570
	For voice communications, set which clients hear each other.  NOTE: these 
darope@0
  1571
	functions take player entity indices (starting at 1).
darope@0
  1572
</tt></blockquote>
darope@0
  1573
<p><i>comments:</i><br>
darope@0
  1574
<blockquote>
darope@0
  1575
	Added in SDK 2.2.
darope@0
  1576
</blockquote>
darope@0
  1577
darope@0
  1578
<hr><h3><tt><a name="GetPlayerAuthId">GetPlayerAuthId</a></tt></h3>
darope@0
  1579
<i>from engine/eiface.h:</i><br>
darope@0
  1580
<dd><tt>const char *GetPlayerAuthId(edict_t *e);</tt>
darope@0
  1581
<p><i>From Eric Smith &lt;[email protected]&gt; on <a href="http://list.valvesoftware.com/pipermail/hlcoders/2002-April/002865.html">hlcoders</a>:</i> 
darope@0
  1582
<blockquote><tt>
darope@0
  1583
	The AuthID is a way for applications/mods to get the Authentication ID
darope@0
  1584
	(uniqueID) for a player.  The AuthID can be a WonID or a SteamID.  The
darope@0
  1585
	function I've written returns the AuthID as a string.  Calling <a
darope@0
  1586
	href="#GetPlayerWONId">GetPlayerWONId</a> will still work for Non-Steam
darope@0
  1587
	players just like it always has.  If applications/mods want to get a
darope@0
  1588
	jump start on getting ready to support Steam players, then they can
darope@0
  1589
	start using GetPlayerAuthId, which will still work for Non-Steam
darope@0
  1590
	players, but it will give the WonID as a string instead of an unsigned
darope@0
  1591
	int.
darope@0
  1592
</tt></blockquote>
darope@0
  1593
<p><i>From Eric Smith &lt;[email protected]&gt; on <a href="http://list.valvesoftware.com/pipermail/servertest/2002-April/000567.html">servertest:</a></i>
darope@0
  1594
<blockquote><tt>
darope@0
  1595
	Only clients playing via Steam will have SteamIDs.  Clients who are not
darope@0
  1596
	using Steam will still have WonIDs (just like they always have).  The
darope@0
  1597
	server now supports WonIDs\SteamIDs and banning using either of them.
darope@0
  1598
	WonIDs have not changed.  SteamIDs use the format: STEAM_<#>:<#>  where
darope@0
  1599
	<#> is replaced by numbers.  An example SteamID would be
darope@0
  1600
	"STEAM_0:94534".
darope@0
  1601
</tt></blockquote>
darope@0
  1602
<p><i>From Eric Smith &lt;[email protected]&gt; on <a href="http://list.valvesoftware.com/pipermail/hlcoders/2002-April/002925.html">hlcoders:</a></i>
darope@0
  1603
<blockquote><tt>
darope@0
  1604
	This function will now return the string "BOT" as the AuthID for fake
darope@0
  1605
	clients.
darope@0
  1606
</tt></blockquote>
darope@0
  1607
<p><i>comments:</i><br>
darope@0
  1608
<blockquote>
darope@0
  1609
	Added for HL 1109; no SDK update.  
darope@0
  1610
</blockquote>
darope@0
  1611
darope@0
  1612
<hr><h3><tt><a name="SequenceGet">SequenceGet</a></tt></h3>
darope@0
  1613
<i>from engine/eiface.h:</i><br>
darope@0
  1614
<dd><tt>void *SequenceGet(const char *fileName, const char *entryName);</tt>
darope@0
  1615
<p><i>comments:</i><br>
darope@0
  1616
<blockquote>
darope@0
  1617
	Added for HL 1xxx; no SDK update.  
darope@0
  1618
</blockquote>
darope@0
  1619
darope@0
  1620
<hr><h3><tt><a name="SequencePickSentence">SequencePickSentence</a></tt></h3>
darope@0
  1621
<i>from engine/eiface.h:</i><br>
darope@0
  1622
<dd><tt>void *SequencePickSentence(const char *groupName, int pickMethod,
darope@0
  1623
int *picked);</tt>
darope@0
  1624
<p><i>comments:</i><br>
darope@0
  1625
<blockquote>
darope@0
  1626
	Added for HL 1xxx; no SDK update.  
darope@0
  1627
</blockquote>
darope@0
  1628
darope@0
  1629
<hr><h3><tt><a name="GetFileSize">GetFileSize</a></tt></h3>
darope@0
  1630
<i>from engine/eiface.h:</i><br>
darope@0
  1631
<dd><tt>int GetFileSize(char *filename);</tt>
darope@0
  1632
<p><i>comments:</i><br>
darope@0
  1633
<blockquote>
darope@0
  1634
	Added for HL 1xxx; no SDK update.  
darope@0
  1635
</blockquote>
darope@0
  1636
darope@0
  1637
<hr><h3><tt><a name="GetApproxWavePlayLen">GetApproxWavePlayLen</a></tt></h3>
darope@0
  1638
<i>from engine/eiface.h:</i><br>
darope@0
  1639
<dd><tt>unsigned int GetApproxWavePlayLen(const char *filepath);</tt>
darope@0
  1640
<p><i>comments:</i><br>
darope@0
  1641
<blockquote>
darope@0
  1642
	Added for HL 1xxx; no SDK update.  
darope@0
  1643
</blockquote>
darope@0
  1644
darope@0
  1645
<hr><h3><tt><a name="IsCareerMatch">IsCareerMatch</a></tt></h3>
darope@0
  1646
<i>from engine/eiface.h:</i><br>
darope@0
  1647
<dd><tt>int IsCareerMatch(void);</tt>
darope@0
  1648
<p><i>comments:</i><br>
darope@0
  1649
<blockquote>
darope@0
  1650
	Added for HL 1xxx; no SDK update.  
darope@0
  1651
</blockquote>
darope@0
  1652
darope@0
  1653
<hr><h3><tt><a name="GetLocalizedStringLength">GetLocalizedStringLength</a></tt></h3>
darope@0
  1654
<i>from engine/eiface.h:</i><br>
darope@0
  1655
<dd><tt>int GetLocalizedStringLength(const char *label);</tt>
darope@0
  1656
<p><i>comments:</i><br>
darope@0
  1657
<blockquote>
darope@0
  1658
	Added for HL 1xxx; no SDK update.  
darope@0
  1659
</blockquote>
darope@0
  1660
darope@0
  1661
<hr><h3><tt><a name="RegisterTutorMessageShown">RegisterTutorMessageShown</a></tt></h3>
darope@0
  1662
<i>from engine/eiface.h:</i><br>
darope@0
  1663
<dd><tt>void RegisterTutorMessageShown(int mid);</tt>
darope@0
  1664
<p><i>comments:</i><br>
darope@0
  1665
<blockquote>
darope@0
  1666
	Added for HL 1xxx; no SDK update.  
darope@0
  1667
</blockquote>
darope@0
  1668
darope@0
  1669
<hr><h3><tt><a name="GetTimesTutorMessageShown">GetTimesTutorMessageShown</a></tt></h3>
darope@0
  1670
<i>from engine/eiface.h:</i><br>
darope@0
  1671
<dd><tt>int GetTimesTutorMessageShown(int mid);</tt>
darope@0
  1672
<p><i>comments:</i><br>
darope@0
  1673
<blockquote>
darope@0
  1674
	Added for HL 1xxx; no SDK update.  
darope@0
  1675
</blockquote>
darope@0
  1676
darope@0
  1677
<hr><h3><tt><a name="ProcessTutorMessageDecayBuffer">ProcessTutorMessageDecayBuffer</a></tt></h3>
darope@0
  1678
<i>from engine/eiface.h:</i><br>
darope@0
  1679
<dd><tt>void ProcessTutorMessageDecayBuffer(int *buffer, int bufferLength);</tt>
darope@0
  1680
<p><i>comments:</i><br>
darope@0
  1681
<blockquote>
darope@0
  1682
	Added for HL 1xxx; no SDK update.  
darope@0
  1683
</blockquote>
darope@0
  1684
darope@0
  1685
<hr><h3><tt><a name="ConstructTutorMessageDecayBuffer">ConstructTutorMessageDecayBuffer</a></tt></h3>
darope@0
  1686
<i>from engine/eiface.h:</i><br>
darope@0
  1687
<dd><tt>void ConstructTutorMessageDecayBuffer(int *buffer, int bufferLength);</tt>
darope@0
  1688
<p><i>comments:</i><br>
darope@0
  1689
<blockquote>
darope@0
  1690
	Added for HL 1xxx; no SDK update.  
darope@0
  1691
</blockquote>
darope@0
  1692
darope@0
  1693
<hr><h3><tt><a name="ResetTutorMessageDecayData">ResetTutorMessageDecayData</a></tt></h3>
darope@0
  1694
<i>from engine/eiface.h:</i><br>
darope@0
  1695
<dd><tt>void ResetTutorMessageDecayData(void);</tt>
darope@0
  1696
<p><i>comments:</i><br>
darope@0
  1697
<blockquote>
darope@0
  1698
	Added for HL 1xxx; no SDK update.  
darope@0
  1699
</blockquote>
darope@0
  1700
darope@248
  1701
<hr><h3><tt><a name="QueryClientCvar">QueryClientCvar</a></tt></h3>
darope@248
  1702
<dd><tt>void (*pfnQueryClientCvarValue)( const edict_t *player, const char *cvarName );</tt><p>
darope@248
  1703
<i>from [email protected], via HLCoders</i><br>
darope@248
  1704
<blockquote><tt>
darope@248
  1705
Calling this function requests the value of cvarName from player. The
darope@248
  1706
result is returned via a callback from NEW_DLL_FUNCTIONS.
darope@248
  1707
</tt></blockquote>
darope@248
  1708
<p><i>comments:</i><br>
darope@248
  1709
<blockquote>
darope@248
  1710
	Added 2005/08/11, no SDK update.
darope@248
  1711
</blockquote>
darope@248
  1712
darope@0
  1713
darope@0
  1714
<p>
darope@0
  1715
<hr>
darope@0
  1716
darope@0
  1717
</body>
darope@0
  1718
</HTML>