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